Amulet breaks when inspecting the relation-sentry regarding charms not in charmstore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Amulet |
Fix Released
|
High
|
Unassigned |
Bug Description
Release: Trusty
Providor: LXC
amulet 1.5.0-0ubuntu1~
juju-core 1.18.3-
juju-deployer 0.3.6-0ubuntu2
juju-local 1.18.3-
juju-mongodb 2.4.9-0ubuntu3
When I interrogate the relation sentry for charms which are not yet in the charm store I'm getting a "request failed with: 404" and it seems to be trying to query https:/
I have tried with charms stored on local filesystem and in lp. Below is an example:
>>> import amulet
>>> d = amulet.
>>> d.add('nova-cell', charm='lp:~gnuoy/charms/precise/nova-cell/trunk')
>>> d.add('
>>> d.relate(
>>> d.configure(
>>> d.setup()
2014-05-14 15:53:00 Starting deployment of local
2014-05-14 15:53:11 Deploying services...
2014-05-14 15:53:11 Deploying service nova-cell using local:trusty/
2014-05-14 15:53:12 Deploying service nova-cell-sentry using local:trusty/
2014-05-14 15:53:13 Deploying service nova-cloud-
2014-05-14 15:53:14 Deploying service nova-cloud-
2014-05-14 15:53:14 Deploying service relation-sentry using local:trusty/
2014-05-14 15:53:20 Config specifies num units for subordinate: nova-cell-sentry
2014-05-14 15:53:20 Config specifies num units for subordinate: nova-cloud-
<fix relation-sentry install error>
2014-05-14 15:56:24 Adding relations...
2014-05-14 15:56:25 Adding relation nova-cell:juju-info <-> nova-cell-
2014-05-14 15:56:25 Adding relation nova-cloud-
2014-05-14 15:56:25 Adding relation relation-
2014-05-14 15:56:25 Adding relation relation-
2014-05-14 15:57:25 Exposing service 'nova-cell-sentry'
2014-05-14 15:57:25 Exposing service 'nova-cloud-
2014-05-14 15:57:25 Exposing service 'relation-sentry'
2014-05-14 15:57:25 Deployment complete in 74.66 seconds
>>> cell_unit = d.sentry.
>>> rel_info = cell_unit.
Traceback (most recent call last):
File "/usr/lib/
revision=
File "/usr/lib/
return self.fetch_
File "/usr/lib/
raise Exception('Request failed with: %s' % r.status_code)
Exception: Request failed with: 404
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
rel_data = get_relation(
File "/usr/lib/
c = get_charm(charm)
File "/usr/lib/
return Charm(charm_path)
File "/usr/lib/
self.
File "/usr/lib/
raise CharmNotFound('API request failed: %s' % str(e))
charmworldlib.
>>>
summary: |
- Amulet breaks when insepcting relation-sentry regarding charms not in - charmstore + Amulet breaks when inspecting the relation-sentry regarding charms not + in charmstore |
Changed in amulet: | |
status: | New → Confirmed |
milestone: | none → 1.5.1 |
importance: | Undecided → High |
status: | Confirmed → Triaged |
Fixed as of amulet 1.8, in which sentries were rewritten:
>>> import amulet Deployment( series= 'trusty' , juju_env='local',) nova-cloud- controller' , charm='lp:~gnuoy/charms/precise/nova-cloud-controller/cell-support') 'nova-cell: cell', 'nova-cloud- controller: cell') 'nova-cell' , {'cell_name': 'api', 'cell_type': 'api'}) nova-cell controller using local:trusty/ nova-cloud- controller controller: cell unit['nova- cell/0' ] relation( 'cell', 'nova-cloud- controller: cell')
>>> d = amulet.
>>> d.add('nova-cell', charm='lp:~gnuoy/charms/precise/nova-cell/trunk')
>>> d.add('
>>> d.relate(
>>> d.configure(
>>> d.setup()
2014-12-18 11:25:01 Starting deployment of local
2014-12-18 11:25:02 Deploying services...
2014-12-18 11:25:02 Deploying service nova-cell using local:trusty/
2014-12-18 11:25:06 Deploying service nova-cloud-
2014-12-18 11:27:58 Adding relations...
2014-12-18 11:27:58 Adding relation nova-cell:cell <-> nova-cloud-
2014-12-18 11:28:59 Deployment complete in 238.08 seconds
>>> cell_unit = d.sentry.
>>> rel_info = cell_unit.
>>>