charm doesn't work in bionic with bionic landscape-client

Bug #1750668 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
landscape-client-charm
Fix Committed
Undecided
Simon Poirier

Bug Description

I branched https://code.launchpad.net/~landscape/landscape-client-charm/trunk and hacked metadata.yaml to support bionic.

Then I deployed it like this:
juju deploy ./landscape-client-charm --config origin=ppa:landscape/trunk --series bionic

I already had a cs:bionic/ubuntu container deployed, so I related them together:

juju add-relation landscape-client ubuntu

That failed with this error:
unit-landscape-client-0: 18:21:17 ERROR juju.worker.uniter.operation hook "config-changed" failed: fork/exec /var/lib/juju/agents/unit-landscape-client-0/charm/hooks/config-changed: no such file or directory

config-changed is a symlink to hooks.py, which has a shebank line like this: "#!/usr/bin/python".

There is no /usr/bin/python in that bionic ubuntu container, just /usr/bin/python3.

Just to see how far it would get, I made a symlink /usr/bin/python -> python3. Then I get this import error:
unit-landscape-client-0: 18:25:16 DEBUG unit.landscape-client/0.config-changed Traceback (most recent call last):
unit-landscape-client-0: 18:25:16 DEBUG unit.landscape-client/0.config-changed File "/var/lib/juju/agents/unit-landscape-client-0/charm/hooks/config-changed", line 16, in <module>
unit-landscape-client-0: 18:25:16 DEBUG unit.landscape-client/0.config-changed from common import (
unit-landscape-client-0: 18:25:16 DEBUG unit.landscape-client/0.config-changed File "/var/lib/juju/agents/unit-landscape-client-0/charm/hooks/common.py", line 11, in <module>
unit-landscape-client-0: 18:25:16 DEBUG unit.landscape-client/0.config-changed from landscape.configuration import (
unit-landscape-client-0: 18:25:16 DEBUG unit.landscape-client/0.config-changed ModuleNotFoundError: No module named 'landscape.configuration'

Related branches

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

If I install python-minimal, which provides /usr/bin/python (python2.7), it also fails with the same import error.

Simon Poirier (simpoir)
Changed in landscape-client-charm:
status: New → Confirmed
assignee: nobody → Simon Poirier (simpoir)
Simon Poirier (simpoir)
Changed in landscape-client-charm:
status: Confirmed → In Progress
Changed in landscape-client-charm:
status: In Progress → Fix Committed
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.