Skip to content

Commit

Permalink
SM: ensure nova_config runs before system reboot.
Browse files Browse the repository at this point in the history
Closes-Bug: #1663866

Nova_config must run before Reboot resources, else it may caused partial
configuration changes for nova.conf for compute.

Change-Id: Id472a7687bab551ca8b71191a69f86c674927b24
  • Loading branch information
Dheeraj Gautam committed Mar 16, 2017
1 parent 5427a90 commit f5bf38b
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -400,6 +400,7 @@
if ($::operatingsystem == 'Centos' or $::operatingsystem == 'Fedora') {
Class['::contrail::compute::setup_compute_server_setup'] ->
Class['::contrail::compute::cp_ifcfg_file'] ->
Nova_config <| |> ->
# remove blank password line from nova.conf
exec { "set-nova-password":
command => "sed -i \'s/^password=$/password=${keystone_admin_password}/\' /etc/nova/nova.conf && echo exec-set-nova-password >> /etc/contrail/exec-contrail-compute.out",
Expand Down

0 comments on commit f5bf38b

Please sign in to comment.