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:
JJ Asghar 2014-11-18 15:42:48 -06:00
parent 75bed0cc83
commit 858277dad5
6 changed files with 11 additions and 4 deletions

View File

@ -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

View File

@ -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' => [],

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -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