After bootstrapping with a custom ensembe-branch, config-get no longer works.

Bug #846129 reported by Adam Gandelman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
Undecided
Kapil Thangavelu

Bug Description

When specifying a custom ensemble-branch in environments.yaml (ie, lp:ensemble), machines bootstrap and provision fine, but 'config-get' commands fail from within hooks and debug-hooks:

root@ip-10-243-17-239:/var/lib/ensemble/units/nova-cloud-controller-1/formula# config-get
Traceback (most recent call last):
  File "/usr/local/bin/config-get", line 7, in <module>
    execfile(__file__)
  File "/usr/lib/ensemble/ensemble/bin/config-get", line 8, in <module>
    from ensemble.hooks.commands import config_get
ImportError: No module named ensemble.hooks.commands

Related branches

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Also affects other commands:

2011-09-09 23:45:49,582: hook.executor@DEBUG: Running hook: /var/lib/ensemble/units/mysql-4/formula/hooks/shared-db-relation-changed
2011-09-09 23:45:49,743: unit.hook.api@INFO: HOOK: shared-db-relation-changed fired.
2011-09-09 23:45:49,907: unit.hook.api@INFO: mysql - shared-db: Relation CHANGED
2011-09-09 23:45:49,977: hook.output@ERROR: Traceback (most recent call last):
  File "/usr/local/bin/relation-get", line 7, in <module>
    execfile(__file__)
  File "/usr/lib/ensemble/ensemble/bin/relation-get", line 8, in <module>
    from ensemble.hooks.commands import relation_get
ImportError: No module named ensemble.hooks.commands

2011-09-09 23:45:49,980: hook.output@DEBUG: hook shared-db-relation-changed exited, exit code Traceback (most recent call last):
Failure: ensemble.errors.FormulaInvocationError: Error processing '/var/lib/ensemble/units/mysql-4/formula/hooks/shared-db-relation-changed': exit code 1.

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

that seems strange.. i've use this functionality all the time to deploy formulas.. which published branch on lp is being used?

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Originally hit this when using lp:~andreserl/+junk/ensemble-cloud-init, but bootstrapping a fresh environment with ensemble-branch pointing to lp:ensemble results in the same.

Revision history for this message
Adam Gandelman (gandelman-a) wrote :

Looks like the custom branch is cloned to /usr/lib/ensemble/ensemble but this is missing from $ENSEMBLE_PYTHONPATH during execution of the hooks.

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

the sys.path replacement is borken since it bypasses the setuptools magic against develop eggs.. nixing it and restoring the sys.path extension usage that was previously here, with preferential treatment of the ensemble-python-path var over sys.path to ensure dev installations take precendence over a sys package.

Changed in ensemble:
assignee: nobody → Kapil Thangavelu (hazmat)
milestone: none → eureka
status: New → In Progress
Changed in juju:
status: In Progress → Fix Released
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.