Add workaround for cellv2 race condition
We've seen on ubuntu that the nova computes are taking a bit longer to register so we end up running discover_hosts prior to the registration. This results in a failure when we attempt to use nova. So for p-o-i we need to add in a sleep to give the computes enough time to register before the discover_hosts is run. In most down stream consumers of these modules, this should be handled as part of the overall orchestration (tripleo/fuel/etc) rather than puppet itself because it's something that will require cross node orchestration. Change-Id: I9ad0393a34fc1416a3f4959eb83deb7a9b5aa9af
This commit is contained in:
parent
676221cbc0
commit
b748e03f16
@ -70,6 +70,17 @@ class openstack_integration::nova (
|
||||
password => 'nova',
|
||||
}
|
||||
include ::nova::cell_v2::simple_setup
|
||||
|
||||
# NOTE(aschultz): workaround for race condition for discover_hosts being run
|
||||
# prior to the compute being registered
|
||||
exec { 'wait-for-compute-registration':
|
||||
path => ['/bin', '/usr/bin'],
|
||||
command => 'sleep 10',
|
||||
refreshonly => true,
|
||||
notify => Class['nova::cell_v2::discover_hosts'],
|
||||
subscribe => Anchor['nova::service::end'],
|
||||
}
|
||||
|
||||
class { '::nova::db::mysql_placement':
|
||||
password => 'nova',
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user