Simplify anchor definitions
We have been using redundant definitions so that users can override order but this is no longer required in recent upgrades. Change-Id: Id60a655fcdbd05abd34165a5430ab1683bf7cfd5
This commit is contained in:
parent
c39ac513f4
commit
8547f78556
@ -32,7 +32,6 @@ class nova::db::online_data_migrations(
|
|||||||
subscribe => [
|
subscribe => [
|
||||||
Anchor['nova::install::end'],
|
Anchor['nova::install::end'],
|
||||||
Anchor['nova::config::end'],
|
Anchor['nova::config::end'],
|
||||||
Anchor['nova::dbsync_api::end'],
|
|
||||||
Anchor['nova::db_online_data_migrations::begin']
|
Anchor['nova::db_online_data_migrations::begin']
|
||||||
],
|
],
|
||||||
notify => Anchor['nova::db_online_data_migrations::end'],
|
notify => Anchor['nova::db_online_data_migrations::end'],
|
||||||
|
@ -32,7 +32,6 @@ class nova::db::sync(
|
|||||||
subscribe => [
|
subscribe => [
|
||||||
Anchor['nova::install::end'],
|
Anchor['nova::install::end'],
|
||||||
Anchor['nova::config::end'],
|
Anchor['nova::config::end'],
|
||||||
Anchor['nova::db::end'],
|
|
||||||
Anchor['nova::dbsync::begin']
|
Anchor['nova::dbsync::begin']
|
||||||
],
|
],
|
||||||
notify => Anchor['nova::dbsync::end'],
|
notify => Anchor['nova::dbsync::end'],
|
||||||
|
@ -41,7 +41,6 @@ class nova::db::sync_api(
|
|||||||
subscribe => [
|
subscribe => [
|
||||||
Anchor['nova::install::end'],
|
Anchor['nova::install::end'],
|
||||||
Anchor['nova::config::end'],
|
Anchor['nova::config::end'],
|
||||||
Anchor['nova::db::end'],
|
|
||||||
Anchor['nova::dbsync_api::begin']
|
Anchor['nova::dbsync_api::begin']
|
||||||
],
|
],
|
||||||
notify => Anchor['nova::dbsync_api::end'],
|
notify => Anchor['nova::dbsync_api::end'],
|
||||||
|
@ -18,6 +18,8 @@ class nova::deps {
|
|||||||
~> anchor { 'nova::config::end': }
|
~> anchor { 'nova::config::end': }
|
||||||
-> anchor { 'nova::db::begin': }
|
-> anchor { 'nova::db::begin': }
|
||||||
-> anchor { 'nova::db::end': }
|
-> anchor { 'nova::db::end': }
|
||||||
|
~> anchor { 'nova::dbsync::begin': }
|
||||||
|
-> anchor { 'nova::dbsync::end': }
|
||||||
~> anchor { 'nova::service::begin': }
|
~> anchor { 'nova::service::begin': }
|
||||||
~> Service<| tag == 'nova-service' |>
|
~> Service<| tag == 'nova-service' |>
|
||||||
~> anchor { 'nova::service::end': }
|
~> anchor { 'nova::service::end': }
|
||||||
@ -95,46 +97,22 @@ class nova::deps {
|
|||||||
Anchor['nova::install::end'] ~> Anchor['nova::service::begin']
|
Anchor['nova::install::end'] ~> Anchor['nova::service::begin']
|
||||||
Anchor['nova::config::end'] ~> Anchor['nova::service::begin']
|
Anchor['nova::config::end'] ~> Anchor['nova::service::begin']
|
||||||
|
|
||||||
#############################################################################
|
# Nova requres separate sync operation for API db, and it should be executed
|
||||||
# NOTE(aschultz): these are defined here because this syntax allows us
|
# before non-API db sync.
|
||||||
# to override the subscribe/notify order using the spaceship operator.
|
Anchor['nova::db::end']
|
||||||
# The ->/~> does not seem to be able to be updated after the fact. Since
|
~> anchor { 'nova::dbsync_api::begin': }
|
||||||
# we have to flip cell v2 ordering for the N->O upgrade process, we need
|
-> anchor { 'nova::dbsync_api::end': }
|
||||||
# to not use the chaining arrows. ugh.
|
~> Anchor['nova::dbsync::begin']
|
||||||
#############################################################################
|
|
||||||
# Wedge this in after the db creation and before the services
|
|
||||||
anchor { 'nova::dbsync_api::begin':
|
|
||||||
subscribe => Anchor['nova::db::end']
|
|
||||||
}
|
|
||||||
-> anchor { 'nova::dbsync_api::end':
|
|
||||||
notify => Anchor['nova::service::begin'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# Wedge this after db creation and api sync but before the services
|
Anchor['nova::dbsync_api::end'] ~> Anchor['nova::service::begin']
|
||||||
anchor { 'nova::dbsync::begin':
|
|
||||||
subscribe => [
|
|
||||||
Anchor['nova::db::end'],
|
|
||||||
Anchor['nova::dbsync_api::end']
|
|
||||||
]
|
|
||||||
}
|
|
||||||
-> anchor { 'nova::dbsync::end':
|
|
||||||
notify => Anchor['nova::service::begin']
|
|
||||||
}
|
|
||||||
|
|
||||||
# Between api sync and db sync by default but can be overridden
|
Anchor['nova::dbsync_api::end']
|
||||||
# using the spaceship operator to move it around when needed
|
~> anchor { 'nova::cell_v2::begin': }
|
||||||
anchor { 'nova::cell_v2::begin':
|
~> anchor { 'nova::cell_v2::end': }
|
||||||
subscribe => Anchor['nova::dbsync_api::end']
|
~> Anchor['nova::dbsync::begin']
|
||||||
}
|
|
||||||
~> anchor { 'nova::cell_v2::end':
|
|
||||||
notify => Anchor['nova::dbsync::begin']
|
|
||||||
}
|
|
||||||
|
|
||||||
# Wedge online data migrations after db/api_sync and before service
|
Anchor['nova::dbsync_api::end']
|
||||||
anchor { 'nova::db_online_data_migrations::begin':
|
~> anchor { 'nova::db_online_data_migrations::begin': }
|
||||||
subscribe => Anchor['nova::dbsync_api::end']
|
-> anchor { 'nova::db_online_data_migrations::end': }
|
||||||
}
|
~> Anchor['nova::service::begin']
|
||||||
-> anchor { 'nova::db_online_data_migrations::end':
|
|
||||||
notify => Anchor['nova::service::begin']
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ describe 'nova::db::online_data_migrations' do
|
|||||||
:logoutput => 'on_failure',
|
:logoutput => 'on_failure',
|
||||||
:subscribe => ['Anchor[nova::install::end]',
|
:subscribe => ['Anchor[nova::install::end]',
|
||||||
'Anchor[nova::config::end]',
|
'Anchor[nova::config::end]',
|
||||||
'Anchor[nova::dbsync_api::end]',
|
|
||||||
'Anchor[nova::db_online_data_migrations::begin]'],
|
'Anchor[nova::db_online_data_migrations::begin]'],
|
||||||
:notify => 'Anchor[nova::db_online_data_migrations::end]',
|
:notify => 'Anchor[nova::db_online_data_migrations::end]',
|
||||||
)
|
)
|
||||||
@ -39,7 +38,6 @@ describe 'nova::db::online_data_migrations' do
|
|||||||
:logoutput => 'on_failure',
|
:logoutput => 'on_failure',
|
||||||
:subscribe => ['Anchor[nova::install::end]',
|
:subscribe => ['Anchor[nova::install::end]',
|
||||||
'Anchor[nova::config::end]',
|
'Anchor[nova::config::end]',
|
||||||
'Anchor[nova::dbsync_api::end]',
|
|
||||||
'Anchor[nova::db_online_data_migrations::begin]'],
|
'Anchor[nova::db_online_data_migrations::begin]'],
|
||||||
:notify => 'Anchor[nova::db_online_data_migrations::end]',
|
:notify => 'Anchor[nova::db_online_data_migrations::end]',
|
||||||
)
|
)
|
||||||
@ -64,7 +62,6 @@ describe 'nova::db::online_data_migrations' do
|
|||||||
:logoutput => 'on_failure',
|
:logoutput => 'on_failure',
|
||||||
:subscribe => ['Anchor[nova::install::end]',
|
:subscribe => ['Anchor[nova::install::end]',
|
||||||
'Anchor[nova::config::end]',
|
'Anchor[nova::config::end]',
|
||||||
'Anchor[nova::dbsync_api::end]',
|
|
||||||
'Anchor[nova::db_online_data_migrations::begin]'],
|
'Anchor[nova::db_online_data_migrations::begin]'],
|
||||||
:notify => 'Anchor[nova::db_online_data_migrations::end]',
|
:notify => 'Anchor[nova::db_online_data_migrations::end]',
|
||||||
)
|
)
|
||||||
|
@ -13,7 +13,6 @@ describe 'nova::db::sync_api' do
|
|||||||
:logoutput => 'on_failure',
|
:logoutput => 'on_failure',
|
||||||
:subscribe => ['Anchor[nova::install::end]',
|
:subscribe => ['Anchor[nova::install::end]',
|
||||||
'Anchor[nova::config::end]',
|
'Anchor[nova::config::end]',
|
||||||
'Anchor[nova::db::end]',
|
|
||||||
'Anchor[nova::dbsync_api::begin]'],
|
'Anchor[nova::dbsync_api::begin]'],
|
||||||
:notify => 'Anchor[nova::dbsync_api::end]',
|
:notify => 'Anchor[nova::dbsync_api::end]',
|
||||||
:tag => 'openstack-db',
|
:tag => 'openstack-db',
|
||||||
@ -39,7 +38,6 @@ describe 'nova::db::sync_api' do
|
|||||||
:logoutput => 'on_failure',
|
:logoutput => 'on_failure',
|
||||||
:subscribe => ['Anchor[nova::install::end]',
|
:subscribe => ['Anchor[nova::install::end]',
|
||||||
'Anchor[nova::config::end]',
|
'Anchor[nova::config::end]',
|
||||||
'Anchor[nova::db::end]',
|
|
||||||
'Anchor[nova::dbsync_api::begin]'],
|
'Anchor[nova::dbsync_api::begin]'],
|
||||||
:notify => 'Anchor[nova::dbsync_api::end]',
|
:notify => 'Anchor[nova::dbsync_api::end]',
|
||||||
:tag => 'openstack-db',
|
:tag => 'openstack-db',
|
||||||
@ -64,7 +62,6 @@ describe 'nova::db::sync_api' do
|
|||||||
:logoutput => 'on_failure',
|
:logoutput => 'on_failure',
|
||||||
:subscribe => ['Anchor[nova::install::end]',
|
:subscribe => ['Anchor[nova::install::end]',
|
||||||
'Anchor[nova::config::end]',
|
'Anchor[nova::config::end]',
|
||||||
'Anchor[nova::db::end]',
|
|
||||||
'Anchor[nova::dbsync_api::begin]'],
|
'Anchor[nova::dbsync_api::begin]'],
|
||||||
:notify => 'Anchor[nova::dbsync_api::end]',
|
:notify => 'Anchor[nova::dbsync_api::end]',
|
||||||
:tag => 'openstack-db',
|
:tag => 'openstack-db',
|
||||||
|
@ -17,7 +17,6 @@ describe 'nova::db::sync' do
|
|||||||
:logoutput => 'on_failure',
|
:logoutput => 'on_failure',
|
||||||
:subscribe => ['Anchor[nova::install::end]',
|
:subscribe => ['Anchor[nova::install::end]',
|
||||||
'Anchor[nova::config::end]',
|
'Anchor[nova::config::end]',
|
||||||
'Anchor[nova::db::end]',
|
|
||||||
'Anchor[nova::dbsync::begin]'],
|
'Anchor[nova::dbsync::begin]'],
|
||||||
:notify => 'Anchor[nova::dbsync::end]',
|
:notify => 'Anchor[nova::dbsync::end]',
|
||||||
:tag => 'openstack-db',
|
:tag => 'openstack-db',
|
||||||
@ -42,7 +41,6 @@ describe 'nova::db::sync' do
|
|||||||
:logoutput => 'on_failure',
|
:logoutput => 'on_failure',
|
||||||
:subscribe => ['Anchor[nova::install::end]',
|
:subscribe => ['Anchor[nova::install::end]',
|
||||||
'Anchor[nova::config::end]',
|
'Anchor[nova::config::end]',
|
||||||
'Anchor[nova::db::end]',
|
|
||||||
'Anchor[nova::dbsync::begin]'],
|
'Anchor[nova::dbsync::begin]'],
|
||||||
:notify => 'Anchor[nova::dbsync::end]',
|
:notify => 'Anchor[nova::dbsync::end]',
|
||||||
:tag => 'openstack-db',
|
:tag => 'openstack-db',
|
||||||
@ -68,7 +66,6 @@ describe 'nova::db::sync' do
|
|||||||
:logoutput => 'on_failure',
|
:logoutput => 'on_failure',
|
||||||
:subscribe => ['Anchor[nova::install::end]',
|
:subscribe => ['Anchor[nova::install::end]',
|
||||||
'Anchor[nova::config::end]',
|
'Anchor[nova::config::end]',
|
||||||
'Anchor[nova::db::end]',
|
|
||||||
'Anchor[nova::dbsync::begin]'],
|
'Anchor[nova::dbsync::begin]'],
|
||||||
:notify => 'Anchor[nova::dbsync::end]',
|
:notify => 'Anchor[nova::dbsync::end]',
|
||||||
:tag => 'openstack-db',
|
:tag => 'openstack-db',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user