canonical / charm-local-users

A subordinate charm for creating and managing local user accounts and groups on principal units.
Apache License 2.0
0 stars 4 forks source link

Charm fails to install because of missing charmhelpers library #10

Closed jneo8 closed 11 months ago

jneo8 commented 11 months ago

Charm needs to install charmhelpers library:

unit-local-users-8: 07:16:21 WARNING unit.local-users/8.install Traceback (most recent call last): unit-local-users-8: 07:16:21 WARNING unit.local-users/8.install File "./src/charm.py", line 26, in unit-local-users-8: 07:16:21 WARNING unit.local-users/8.install from lib.local_users import ( unit-local-users-8: 07:16:21 WARNING unit.local-users/8.install File "/var/lib/juju/agents/unit-local-users-8/charm/src/lib/local_users.py", line 26, in unit-local-users-8: 07:16:21 WARNING unit.local-users/8.install from charmhelpers.core import host unit-local-users-8: 07:16:21 WARNING unit.local-users/8.install ModuleNotFoundError: No module named 'charmhelpers'

Workaround is to run: juju run -a local-users 'sudo python3 -m pip install charmhelpers'

and resolve errored units.


Imported from Launchpad using lp2gh.