topology deployed by amulet test does not satisfy workload status (REQUIRED_INTERFACES)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystone (Juju Charms Collection) |
Fix Released
|
Medium
|
Ryan Beisner | ||
neutron-api (Juju Charms Collection) |
Fix Released
|
Medium
|
Ryan Beisner | ||
neutron-gateway (Juju Charms Collection) |
Fix Released
|
Medium
|
Ryan Beisner | ||
neutron-openvswitch (Juju Charms Collection) |
Fix Released
|
Medium
|
Ryan Beisner |
Bug Description
Several of OpenStack charm amulet tests deploy topologies deployed which do not satisfy required interfaces, resulting in a blocked status of one or more units in the deployment.
This is important to resolve so that the affected tests can wait for workload status to indicate deployment readiness prior to testing.
The old method was an arbitrary 30s sleep, which is prone to races (testing too early).
If the wait-for-status amulet test helper is enabled without resolving the required interfaces, tests will timeout waiting for a ready workload status:
http://
This may require one or both of the following:
* Adding the required services and relations is the fix.
* Removing the post-deploy sleep and adding the post-deploy wait-for-status helper.
Here is an example of one os-charm that has this resolved:
http://
Related branches
- David Ames (community): Approve
-
Diff: 53 lines (+8/-4)1 file modifiedtests/basic_deployment.py (+8/-4)
- David Ames (community): Approve
-
Diff: 190 lines (+76/-25)1 file modifiedtests/basic_deployment.py (+76/-25)
- David Ames (community): Approve
-
Diff: 1 lines (+0/-0)0 files modified
- Liam Young (community): Approve
-
Diff: 315 lines (+145/-14)8 files modifiedhooks/charmhelpers/contrib/openstack/amulet/deployment.py (+40/-0)
hooks/charmhelpers/contrib/openstack/amulet/utils.py (+1/-1)
hooks/charmhelpers/contrib/openstack/context.py (+25/-9)
hooks/charmhelpers/contrib/openstack/neutron.py (+14/-0)
hooks/charmhelpers/contrib/openstack/utils.py (+1/-0)
hooks/charmhelpers/core/host.py (+12/-1)
tests/basic_deployment.py (+12/-3)
tests/charmhelpers/contrib/openstack/amulet/deployment.py (+40/-0)
description: | updated |
Changed in keystone (Juju Charms Collection): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Ryan Beisner (1chb1n) |
milestone: | none → 16.01 |
Changed in keystone (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in neutron-openvswitch (Juju Charms Collection): | |
status: | New → Fix Committed |
assignee: | nobody → Ryan Beisner (1chb1n) |
milestone: | none → 16.01 |
importance: | Undecided → Medium |
Changed in neutron-api (Juju Charms Collection): | |
status: | New → Fix Committed |
assignee: | nobody → Ryan Beisner (1chb1n) |
milestone: | none → 16.01 |
Changed in neutron-gateway (Juju Charms Collection): | |
status: | New → Fix Committed |
assignee: | nobody → Ryan Beisner (1chb1n) |
milestone: | none → 16.01 |
importance: | Undecided → Medium |
Changed in neutron-api (Juju Charms Collection): | |
importance: | Undecided → Medium |
Changed in keystone (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Changed in neutron-openvswitch (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Changed in neutron-api (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Changed in neutron-gateway (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |