From 5be74c5ce47905cb854ee91f258ef4d9960f398a Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Mon, 12 Mar 2018 16:33:09 +0800 Subject: [PATCH] Add 'openstack-db' tag to db-sync Exec resource In order to make easy orchestration on all OpenStack db-sync, add this tag so people can use this tag in composition layer. A use case it to set some orchestration to make sure MySQL Galera is ready before running any Exec with this tag. Change-Id: I2c215acfbfda9b6a8db88f4ab37db8ef911ea17e Closes-Bug: #1755102 (cherry picked from commit 51dd0b90ef1bd18307fc198aaac296c4c2897b7e) --- manifests/db/sync.pp | 1 + releasenotes/notes/openstack_db_tag-a69183ca2ee8a4d9.yaml | 3 +++ spec/classes/neutron_db_sync_spec.rb | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 releasenotes/notes/openstack_db_tag-a69183ca2ee8a4d9.yaml diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index 6e6a8b9bc..09dc45ff7 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -37,5 +37,6 @@ class neutron::db::sync( Anchor['neutron::dbsync::begin'] ], notify => Anchor['neutron::dbsync::end'], + tag => 'openstack-db', } } diff --git a/releasenotes/notes/openstack_db_tag-a69183ca2ee8a4d9.yaml b/releasenotes/notes/openstack_db_tag-a69183ca2ee8a4d9.yaml new file mode 100644 index 000000000..4872e117d --- /dev/null +++ b/releasenotes/notes/openstack_db_tag-a69183ca2ee8a4d9.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add openstack-db tag to Exec that run db-sync. diff --git a/spec/classes/neutron_db_sync_spec.rb b/spec/classes/neutron_db_sync_spec.rb index 7bbf798c9..823b44652 100644 --- a/spec/classes/neutron_db_sync_spec.rb +++ b/spec/classes/neutron_db_sync_spec.rb @@ -17,6 +17,7 @@ describe 'neutron::db::sync' do 'Anchor[neutron::config::end]', 'Anchor[neutron::dbsync::begin]'], :notify => 'Anchor[neutron::dbsync::end]', + :tag => 'openstack-db', ) end @@ -40,6 +41,7 @@ describe 'neutron::db::sync' do 'Anchor[neutron::config::end]', 'Anchor[neutron::dbsync::begin]'], :notify => 'Anchor[neutron::dbsync::end]', + :tag => 'openstack-db', ) } end