Charm needs to install the python-requests package

Bug #1408532 reported by José Antonio Rey
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nsx-transport-node (Juju Charms Collection)
Fix Released
High
Larry Michel
nvp-transport-node (Juju Charms Collection)
Fix Released
High
Larry Michel

Bug Description

The install hook on this charm is failing because the python-requests package is missing. It needs to be installed so it doesn't throw any errors.

Tags: oil

Related branches

Revision history for this message
Larry Michel (lmic) wrote :

I am also seeing this with this branch: lp:~openstack-charmers/charms/trusty/nsx-transport-node/trunk

2015-08-14 16:59:48 INFO install Reading state information...
2015-08-14 16:59:48 INFO install The following NEW packages will be installed:
2015-08-14 16:59:48 INFO install python-dnspython
2015-08-14 16:59:48 INFO install 0 upgraded, 1 newly installed, 0 to remove and 49 not upgraded.
2015-08-14 16:59:48 INFO install Need to get 99.2 kB of archives.
2015-08-14 16:59:48 INFO install After this operation, 548 kB of additional disk space will be used.
2015-08-14 16:59:48 INFO install Get:1 http://archive.ubuntu.com//ubuntu/ precise/main python-dnspython all 1.9.4-0ubuntu3 [99.2 kB]
2015-08-14 16:59:48 INFO install Fetched 99.2 kB in 0s (0 B/s)
2015-08-14 16:59:49 INFO install Selecting previously unselected package python-dnspython.
2015-08-14 16:59:49 INFO install (Reading database ... 78566 files and directories currently installed.)
2015-08-14 16:59:49 INFO install Unpacking python-dnspython (from .../python-dnspython_1.9.4-0ubuntu3_all.deb) ...
2015-08-14 16:59:49 INFO install Setting up python-dnspython (1.9.4-0ubuntu3) ...
2015-08-14 16:59:50 DEBUG juju.worker.uniter.filter filter.go:434 got unit change
2015-08-14 16:59:51 INFO install Traceback (most recent call last):
2015-08-14 16:59:51 INFO install File "/var/lib/juju/agents/unit-nvp-transport-node-0/charm/hooks/install", line 20, in <module>
2015-08-14 16:59:51 INFO install from nvp import NVPHelper
2015-08-14 16:59:51 INFO install File "/var/lib/juju/agents/unit-nvp-transport-node-0/charm/hooks/nvp.py", line 3, in <module>
2015-08-14 16:59:51 INFO install import requests
2015-08-14 16:59:51 INFO install ImportError: No module named requests
2015-08-14 16:59:51 INFO juju.worker.uniter.context context.go:543 handling reboot
2015-08-14 16:59:51 ERROR juju.worker.uniter.operation runhook.go:103 hook "install" failed: exit status 1
2015-08-14 16:59:51 DEBUG juju.worker.uniter modes.go:31 [AGENT-STATUS] failed: run install hook
2015-08-14 16:59:51 INFO juju.worker.uniter modes.go:543 ModeContinue exiting
2015-08-14 16:59:51 INFO juju.worker.uniter modes.go:541 ModeHookError starting
2015-08-14 16:59:51 DEBUG juju.worker.uniter.filter filter.go:597 want resolved event
2015-08-14 16:59:51 DEBUG juju.worker.uniter.filter filter.go:591 want forced upgrade true
2015-08-14 16:59:51 DEBUG juju.worker.uniter.filter filter.go:727 no new charm event
2015-08-14 16:59:51 DEBUG juju.worker.uniter modes.go:31 [AGENT-STATUS] error: hook failed: "install"

tags: added: oil
Revision history for this message
Liam Young (gnuoy) wrote :

Hi Larry, I'd like to be able to reproduce the issue but python-requests seems to be available by default on Trusty. Is this a Trusty deploy?

Changed in nvp-transport-node (Juju Charms Collection):
status: New → Incomplete
Changed in nsx-transport-node (Juju Charms Collection):
status: New → Incomplete
importance: Undecided → High
Changed in nvp-transport-node (Juju Charms Collection):
importance: Undecided → High
Revision history for this message
Larry Michel (lmic) wrote :

Hi Liam, this is for Precise only not Trusty. It doesn't look to be available on Precise.

Changed in nsx-transport-node (Juju Charms Collection):
status: Incomplete → New
Changed in nvp-transport-node (Juju Charms Collection):
status: Incomplete → New
Revision history for this message
Larry Michel (lmic) wrote :

I have tested fix from this branch: lp:~lmic/charms/trusty/nsx-transport-node/requests-install-fix

But I am not seeing bug 1487237

Revision history for this message
Liam Young (gnuoy) wrote :

Hi Larry,

Your branch looks like the right solution and I think, from your previous comment, you're saying it fixes the issue for you. If you propose your branch for merging I'll get it landed.

Thanks
Liam

Changed in nsx-transport-node (Juju Charms Collection):
status: New → In Progress
Changed in nvp-transport-node (Juju Charms Collection):
status: New → In Progress
Revision history for this message
Larry Michel (lmic) wrote :

Hi Liam, Yes, I don't see this particular issue when testing this branch. In my previous comment I meant to say, I'm 'now' seeing bug 1487237. But, it looks unrelated, so I submitted the MP. Thanks.

Larry Michel (lmic)
Changed in nsx-transport-node (Juju Charms Collection):
status: In Progress → Fix Released
Changed in nvp-transport-node (Juju Charms Collection):
status: In Progress → Fix Released
Changed in nsx-transport-node (Juju Charms Collection):
assignee: nobody → Larry Michel (lmic)
Changed in nvp-transport-node (Juju Charms Collection):
assignee: nobody → Larry Michel (lmic)
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.