Merge next branch
This commit is contained in:
commit
25b67ab52c
5
Makefile
5
Makefile
@ -18,10 +18,7 @@ test:
|
|||||||
# coreycb note: The -v should only be temporary until Amulet sends
|
# coreycb note: The -v should only be temporary until Amulet sends
|
||||||
# raise_status() messages to stderr:
|
# raise_status() messages to stderr:
|
||||||
# https://bugs.launchpad.net/amulet/+bug/1320357
|
# https://bugs.launchpad.net/amulet/+bug/1320357
|
||||||
@juju test -v -p AMULET_HTTP_PROXY --timeout 1200 \
|
@juju test -v -p AMULET_HTTP_PROXY,AMULET_OS_VIP --timeout 2700
|
||||||
00-setup 14-basic-precise-icehouse 15-basic-trusty-icehouse \
|
|
||||||
16-basic-trusty-icehouse-git 17-basic-trusty-juno \
|
|
||||||
18-basic-trusty-juno-git
|
|
||||||
|
|
||||||
sync: bin/charm_helpers_sync.py
|
sync: bin/charm_helpers_sync.py
|
||||||
@$(PYTHON) bin/charm_helpers_sync.py -c charm-helpers-hooks.yaml
|
@$(PYTHON) bin/charm_helpers_sync.py -c charm-helpers-hooks.yaml
|
||||||
|
@ -306,9 +306,7 @@ def db_changed():
|
|||||||
# acl entry has been added. So, if the db supports passing a list of
|
# acl entry has been added. So, if the db supports passing a list of
|
||||||
# permitted units then check if we're in the list.
|
# permitted units then check if we're in the list.
|
||||||
allowed_units = relation_get('nova_allowed_units')
|
allowed_units = relation_get('nova_allowed_units')
|
||||||
if allowed_units and local_unit() not in allowed_units.split():
|
if allowed_units and local_unit() in allowed_units.split():
|
||||||
log('Allowed_units list provided and this unit not present')
|
|
||||||
return
|
|
||||||
migrate_nova_database()
|
migrate_nova_database()
|
||||||
log('Triggering remote cloud-compute restarts.')
|
log('Triggering remote cloud-compute restarts.')
|
||||||
[compute_joined(rid=rid, remote_restart=True)
|
[compute_joined(rid=rid, remote_restart=True)
|
||||||
@ -317,6 +315,9 @@ def db_changed():
|
|||||||
[nova_cell_relation_joined(rid=rid, remote_restart=True)
|
[nova_cell_relation_joined(rid=rid, remote_restart=True)
|
||||||
for rid in relation_ids('cell')]
|
for rid in relation_ids('cell')]
|
||||||
conditional_neutron_migration()
|
conditional_neutron_migration()
|
||||||
|
else:
|
||||||
|
log('allowed_units either not presented, or local unit '
|
||||||
|
'not in acl list: %s' % repr(allowed_units))
|
||||||
|
|
||||||
|
|
||||||
@hooks.hook('pgsql-nova-db-relation-changed')
|
@hooks.hook('pgsql-nova-db-relation-changed')
|
||||||
|
10
tests/010-basic-precise-essex
Executable file
10
tests/010-basic-precise-essex
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
"""Amulet tests on a basic nova cloud controller deployment on
|
||||||
|
precise-essex."""
|
||||||
|
|
||||||
|
from basic_deployment import NovaCCBasicDeployment
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
deployment = NovaCCBasicDeployment(series='precise')
|
||||||
|
deployment.run_tests()
|
12
tests/017-basic-trusty-kilo
Normal file
12
tests/017-basic-trusty-kilo
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
"""Amulet tests on a basic nova cloud controller deployment on
|
||||||
|
trusty-kilo."""
|
||||||
|
|
||||||
|
from basic_deployment import NovaCCBasicDeployment
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
deployment = NovaCCBasicDeployment(series='trusty',
|
||||||
|
openstack='cloud:trusty-kilo',
|
||||||
|
source='cloud:trusty-updates/kilo')
|
||||||
|
deployment.run_tests()
|
10
tests/018-basic-utopic-juno
Executable file
10
tests/018-basic-utopic-juno
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
"""Amulet tests on a basic nova cloud controller deployment on
|
||||||
|
utopic-juno."""
|
||||||
|
|
||||||
|
from basic_deployment import NovaCCBasicDeployment
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
deployment = NovaCCBasicDeployment(series='utopic')
|
||||||
|
deployment.run_tests()
|
10
tests/019-basic-vivid-kilo
Normal file
10
tests/019-basic-vivid-kilo
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
"""Amulet tests on a basic nova cloud controller deployment on
|
||||||
|
vivid-kilo."""
|
||||||
|
|
||||||
|
from basic_deployment import NovaCCBasicDeployment
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
deployment = NovaCCBasicDeployment(series='vivid')
|
||||||
|
deployment.run_tests()
|
Loading…
Reference in New Issue
Block a user