telegraf: ImportError: No module named charmhelpers.core -> hook failed: "install"

Bug #1563073 reported by mahmoh
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Charms Collection
New
Undecided
Unassigned

Bug Description

1.25.3-trusty-amd64, charm: cs:~chris.macnaughton/trusty/telegraf-7

Attempting to deploy with C-D, hit this error:

unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 ImportError: No module named charmhelpers.core
unit-telegraf-0[35563]: 2016-03-28 20:54:24 ERROR juju.worker.uniter.operation runhook.go:107 hook "install" failed: exit status 1

from juju debug-log below:
...
m@mv:~$ unit-telegraf-0[35563]: 2016-03-28 20:54:23 INFO unit.telegraf/0.install logger.go:40 Reading package lists...
unit-telegraf-0[35563]: 2016-03-28 20:54:23 INFO unit.telegraf/0.install logger.go:40 Building dependency tree...
unit-telegraf-0[35563]: 2016-03-28 20:54:23 INFO unit.telegraf/0.install logger.go:40 Reading state information...
unit-telegraf-0[35563]: 2016-03-28 20:54:23 INFO unit.telegraf/0.install logger.go:40 python-pip is already the newest version.
unit-telegraf-0[35563]: 2016-03-28 20:54:23 INFO unit.telegraf/0.install logger.go:40 The following package was automatically installed and is no longer required:
unit-telegraf-0[35563]: 2016-03-28 20:54:23 INFO unit.telegraf/0.install logger.go:40 grub-pc-bin
unit-telegraf-0[35563]: 2016-03-28 20:54:23 INFO unit.telegraf/0.install logger.go:40 Use 'apt-get autoremove' to remove it.
unit-telegraf-0[35563]: 2016-03-28 20:54:23 INFO unit.telegraf/0.install logger.go:40 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 Requirement already satisfied (use --upgrade to upgrade): charmhelpers in /usr/local/lib/python3.4/dist-packages
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 Requirement already satisfied (use --upgrade to upgrade): Jinja2 in /usr/local/lib/python3.4/dist-packages (from charmhelpers)
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python3.4/dist-packages (from charmhelpers)
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 Requirement already satisfied (use --upgrade to upgrade): netaddr in /usr/local/lib/python3.4/dist-packages (from charmhelpers)
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 Requirement already satisfied (use --upgrade to upgrade): Tempita in /usr/local/lib/python3.4/dist-packages (from charmhelpers)
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 Requirement already satisfied (use --upgrade to upgrade): PyYAML in /usr/local/lib/python3.4/dist-packages (from charmhelpers)
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in /usr/local/lib/python3.4/dist-packages (from Jinja2->charmhelpers)
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 You are using pip version 7.1.2, however version 8.1.1 is available.
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 You should consider upgrading via the 'pip install --upgrade pip' command.
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 Traceback (most recent call last):
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 File "/var/lib/juju/agents/unit-telegraf-0/charm/hooks/install", line 8, in <module>
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 from charmhelpers.core import hookenv
unit-telegraf-0[35563]: 2016-03-28 20:54:24 INFO unit.telegraf/0.install logger.go:40 ImportError: No module named charmhelpers.core
unit-telegraf-0[35563]: 2016-03-28 20:54:24 ERROR juju.worker.uniter.operation runhook.go:107 hook "install" failed: exit status 1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.