Merge "Remove volume_api_class option"
This commit is contained in:
@@ -211,10 +211,6 @@
|
|||||||
# (optional) DEPRECATED. The keystone url where nova should send requests for ec2tokens
|
# (optional) DEPRECATED. The keystone url where nova should send requests for ec2tokens
|
||||||
# Defaults to undef
|
# Defaults to undef
|
||||||
#
|
#
|
||||||
# [*volume_api_class*]
|
|
||||||
# (optional) DEPRECATED. The name of the class that nova will use to access volumes. Cinder is the only option.
|
|
||||||
# Defaults to undef
|
|
||||||
#
|
|
||||||
# [*ec2_listen_port*]
|
# [*ec2_listen_port*]
|
||||||
# (optional) DEPRECATED. The port on which the EC2 API will listen.
|
# (optional) DEPRECATED. The port on which the EC2 API will listen.
|
||||||
# Defaults to port undef
|
# Defaults to port undef
|
||||||
@@ -311,7 +307,6 @@ class nova::api(
|
|||||||
$ec2_workers = undef,
|
$ec2_workers = undef,
|
||||||
$keystone_ec2_url = undef,
|
$keystone_ec2_url = undef,
|
||||||
$auth_version = undef,
|
$auth_version = undef,
|
||||||
$volume_api_class = undef,
|
|
||||||
$osapi_v3 = undef,
|
$osapi_v3 = undef,
|
||||||
$admin_password = undef,
|
$admin_password = undef,
|
||||||
$auth_uri = undef,
|
$auth_uri = undef,
|
||||||
@@ -334,10 +329,6 @@ class nova::api(
|
|||||||
warning('osapi_v3 is deprecated, has no effect and will be removed in a future release.')
|
warning('osapi_v3 is deprecated, has no effect and will be removed in a future release.')
|
||||||
}
|
}
|
||||||
|
|
||||||
if $volume_api_class {
|
|
||||||
warning('volume_api_class parameter is deprecated, has no effect and will be removed in a future release.')
|
|
||||||
}
|
|
||||||
|
|
||||||
if $ec2_listen_port or $ec2_workers or $keystone_ec2_url {
|
if $ec2_listen_port or $ec2_workers or $keystone_ec2_url {
|
||||||
warning('ec2_listen_port, ec2_workers and keystone_ec2_url are deprecated and have no effect. Deploy openstack/ec2-api instead.')
|
warning('ec2_listen_port, ec2_workers and keystone_ec2_url are deprecated and have no effect. Deploy openstack/ec2-api instead.')
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- The deprecated ``volume_api_class`` config option has been
|
||||||
|
removed.
|
@@ -103,7 +103,6 @@ describe 'nova::api' do
|
|||||||
:metadata_listen => '127.0.0.1',
|
:metadata_listen => '127.0.0.1',
|
||||||
:metadata_listen_port => 8875,
|
:metadata_listen_port => 8875,
|
||||||
:osapi_compute_listen_port => 8874,
|
:osapi_compute_listen_port => 8874,
|
||||||
:volume_api_class => 'nova.volume.cinder.API',
|
|
||||||
:use_forwarded_for => false,
|
:use_forwarded_for => false,
|
||||||
:ratelimits => '(GET, "*", .*, 100, MINUTE);(POST, "*", .*, 200, MINUTE)',
|
:ratelimits => '(GET, "*", .*, 100, MINUTE);(POST, "*", .*, 200, MINUTE)',
|
||||||
:neutron_metadata_proxy_shared_secret => 'secrete',
|
:neutron_metadata_proxy_shared_secret => 'secrete',
|
||||||
@@ -204,11 +203,11 @@ describe 'nova::api' do
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
it { is_expected.to contain_exec('execute nova-api validation').with(
|
it { is_expected.to contain_exec('execute nova-api validation').with(
|
||||||
:path => '/usr/bin:/bin:/usr/sbin:/sbin',
|
:path => '/usr/bin:/bin:/usr/sbin:/sbin',
|
||||||
:provider => 'shell',
|
:provider => 'shell',
|
||||||
:tries => '10',
|
:tries => '10',
|
||||||
:try_sleep => '2',
|
:try_sleep => '2',
|
||||||
:command => 'nova --os-auth-url http://127.0.0.1:5000/ --os-project-name services --os-username nova --os-password passw0rd flavor-list',
|
:command => 'nova --os-auth-url http://127.0.0.1:5000/ --os-project-name services --os-username nova --os-password passw0rd flavor-list',
|
||||||
)}
|
)}
|
||||||
|
|
||||||
it { is_expected.to contain_anchor('create nova-api anchor').with(
|
it { is_expected.to contain_anchor('create nova-api anchor').with(
|
||||||
@@ -224,11 +223,11 @@ describe 'nova::api' do
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
it { is_expected.to contain_exec('execute nova-api validation').with(
|
it { is_expected.to contain_exec('execute nova-api validation').with(
|
||||||
:path => '/usr/bin:/bin:/usr/sbin:/sbin',
|
:path => '/usr/bin:/bin:/usr/sbin:/sbin',
|
||||||
:provider => 'shell',
|
:provider => 'shell',
|
||||||
:tries => '10',
|
:tries => '10',
|
||||||
:try_sleep => '2',
|
:try_sleep => '2',
|
||||||
:command => 'my-script',
|
:command => 'my-script',
|
||||||
)}
|
)}
|
||||||
|
|
||||||
it { is_expected.to contain_anchor('create nova-api anchor').with(
|
it { is_expected.to contain_anchor('create nova-api anchor').with(
|
||||||
@@ -239,8 +238,8 @@ describe 'nova::api' do
|
|||||||
context 'while not managing service state' do
|
context 'while not managing service state' do
|
||||||
before do
|
before do
|
||||||
params.merge!({
|
params.merge!({
|
||||||
:enabled => false,
|
:enabled => false,
|
||||||
:manage_service => false,
|
:manage_service => false,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -301,10 +300,10 @@ describe 'nova::api' do
|
|||||||
|
|
||||||
it 'enable nova API service' do
|
it 'enable nova API service' do
|
||||||
is_expected.to contain_service('nova-api').with(
|
is_expected.to contain_service('nova-api').with(
|
||||||
:ensure => 'running',
|
:ensure => 'running',
|
||||||
:name => platform_params[:nova_api_service],
|
:name => platform_params[:nova_api_service],
|
||||||
:enable => true,
|
:enable => true,
|
||||||
:tag => 'nova-service',
|
:tag => 'nova-service',
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
it 'enable metadata in evenlet configuration' do
|
it 'enable metadata in evenlet configuration' do
|
||||||
@@ -326,10 +325,10 @@ describe 'nova::api' do
|
|||||||
|
|
||||||
it 'disable nova API service' do
|
it 'disable nova API service' do
|
||||||
is_expected.to contain_service('nova-api').with(
|
is_expected.to contain_service('nova-api').with(
|
||||||
:ensure => 'stopped',
|
:ensure => 'stopped',
|
||||||
:name => platform_params[:nova_api_service],
|
:name => platform_params[:nova_api_service],
|
||||||
:enable => false,
|
:enable => false,
|
||||||
:tag => 'nova-service',
|
:tag => 'nova-service',
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user