1. Move keystone resources management at step 4.
2. Move nova-compute startup at step 5.
That way, we make sure nova-compute will start when all Keystone
resources are ready.
Change-Id: I6e153e11b8519254d2a67b9142bf774a25bce69d
Closes-Bug: #
1663273
}
- if $step >= 5 and $manage_db_purge {
+ if $step >= 4 and $manage_db_purge {
include ::keystone::cron::token_flush
}
- if $step >= 5 and $manage_domain {
+ if $step >= 4 and $manage_domain {
if hiera('heat_engine_enabled', false) {
# create these seperate and don't use ::heat::keystone::domain since
# that class writes out the configs
}
}
- if $step >= 5 and $manage_endpoint{
+ if $step >= 4 and $manage_endpoint{
if hiera('aodh_api_enabled', false) {
include ::aodh::keystone::auth
}
$cinder_nfs_backend = hiera('cinder_enable_nfs_backend', false),
) {
- if $step >= 4 {
+ if $step >= 5 {
# deploy basic bits for nova
include ::tripleo::profile::base::nova
# before nova-compute.
Service<| title == 'nova-conductor' |> -> Service['nova-compute']
+
# deploy bits to connect nova compute to neutron
include ::nova::network::neutron
describe 'tripleo::profile::base::nova::compute' do
shared_examples_for 'tripleo::profile::base::nova::compute' do
- context 'with step less than 4' do
+ context 'with step less than 5' do
let(:params) { { :step => 1, } }
it {
}
end
- context 'with step 4' do
+ context 'with step 5' do
let(:pre_condition) do
<<-eos
class { '::tripleo::profile::base::nova':
end
context 'default params' do
- let(:params) { { :step => 4, } }
+ let(:params) { { :step => 5, } }
it {
is_expected.to contain_class('tripleo::profile::base::nova::compute')
end
context 'cinder nfs backend' do
- let(:params) { { :step => 4, :cinder_nfs_backend => true } }
+ let(:params) { { :step => 5, :cinder_nfs_backend => true } }
it {
is_expected.to contain_class('tripleo::profile::base::nova::compute')