Set host on all ironic-compute to same value

All ironic-computes should has same value of 'host' parameter to avoid problem
with multiplication of hypervisors in nova.

This is workaround, proper solution should be implemented in Ironic's upstream
in next releases.

Change-Id: I91f3028306177c037c8afa3c98fc56e176a9066e
Closes-bug: #1522361
This commit is contained in:
Andrey Shestakov 2015-12-04 13:53:12 +02:00
parent e54d4e1f2e
commit 691e7075fe
2 changed files with 5 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class { 'nova::network::neutron':
}
file { '/etc/nova/nova-compute.conf':
ensure => absent,
content => "[DEFAULT]\nhost=ironic-compute",
require => Package['nova-compute'],
} ~> Service['nova-compute']

View File

@ -43,6 +43,10 @@ describe manifest do
'value' => memcache_servers,
)
end
it 'nova-compute.conf should have host set to "ironic-compute"' do
should contain_file('/etc/nova/nova-compute.conf').with('content' => "[DEFAULT]\nhost=ironic-compute")
end
end
end