Updated to start metadata-api
This starts the nova-metadata-api service on the compute nodes when nova-networking is leveraged. This it seems that in the compute node with nova-networking the service doesn't start, this patch starts it up and allows for the local machines to access the metadata-api. This also updates the test so it confirms that the correct process starts. Change-Id: I22e0173eab746d54ec50ab9231e75705874ee973
This commit is contained in:
parent
75bed0cc83
commit
858277dad5
|
@ -1,6 +1,9 @@
|
|||
# CHANGELOG for cookbook-openstack-compute
|
||||
|
||||
This file is used to list changes made in each version of cookbook-openstack-compute.
|
||||
## 9.3.3
|
||||
* Updated the nova-networking to start metadata-api
|
||||
|
||||
## 9.3.2
|
||||
* Updated Berksfile.lock for the UTF8 issue in common
|
||||
|
||||
|
|
|
@ -337,7 +337,7 @@ when 'fedora', 'rhel', 'suse' # :pragma-foodcritic: ~FC024 - won't fix this
|
|||
'neutron_python_packages' => ['python-neutronclient', 'pyparsing'],
|
||||
'memcache_python_packages' => ['python-memcached'],
|
||||
'compute_api_metadata_packages' => ['openstack-nova-api'],
|
||||
'compute_api_metadata_service' => 'openstack-nova-api',
|
||||
'compute_api_metadata_service' => 'openstack-nova-metadata-api',
|
||||
'compute_client_packages' => ['python-novaclient'],
|
||||
'compute_compute_packages' => ['openstack-nova-compute'],
|
||||
'qemu_compute_packages' => [],
|
||||
|
|
|
@ -4,7 +4,7 @@ maintainer_email 'matt@opscode.com'
|
|||
license 'Apache 2.0'
|
||||
description 'The OpenStack Compute service Nova.'
|
||||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||
version '9.3.2'
|
||||
version '9.3.3'
|
||||
|
||||
recipe 'openstack-compute::api-ec2', 'Installs AWS EC2 compatible API'
|
||||
recipe 'openstack-compute::api-metadata', 'Installs the nova metadata package'
|
||||
|
|
|
@ -47,7 +47,7 @@ service 'nova-api-metadata' do
|
|||
supports status: true, restart: true
|
||||
subscribes :restart, resources('template[/etc/nova/nova.conf]')
|
||||
|
||||
action :enable
|
||||
action [:enable, :start]
|
||||
end
|
||||
|
||||
template '/etc/nova/api-paste.ini' do
|
||||
|
|
|
@ -18,7 +18,7 @@ describe 'openstack-compute::api-metadata' do
|
|||
end
|
||||
|
||||
it 'starts metadata api on boot' do
|
||||
expect(chef_run).to enable_service 'openstack-nova-api'
|
||||
expect(chef_run).to enable_service 'nova-api-metadata'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,6 +22,10 @@ describe 'openstack-compute::api-metadata' do
|
|||
expect(chef_run).to enable_service 'nova-api-metadata'
|
||||
end
|
||||
|
||||
it 'starts metadata api now' do
|
||||
expect(chef_run).to start_service 'nova-api-metadata'
|
||||
end
|
||||
|
||||
expect_creates_api_paste 'service[nova-api-metadata]'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue