Remove unused exec resource to refresh network interfaces

This resource was used to set up nova-network, which was already
removed.

Change-Id: Ia2adbe27d7a586176a3bcc8adadc2d952e541d03
(cherry picked from commit 16aa7716ac)
This commit is contained in:
Takashi Kajinami 2023-01-05 15:36:41 +09:00
parent f07430f407
commit 32e4e80330
3 changed files with 0 additions and 13 deletions

View File

@ -440,7 +440,6 @@ class nova::compute (
package_name => $::nova::params::compute_package_name, package_name => $::nova::params::compute_package_name,
service_name => $::nova::params::compute_service_name, service_name => $::nova::params::compute_service_name,
ensure_package => $ensure_package, ensure_package => $ensure_package,
before => Exec['networking-refresh']
} }
if $force_config_drive { if $force_config_drive {

View File

@ -568,13 +568,6 @@ but should be one of: ssh-rsa, ssh-dsa, ssh-ecdsa.")
tag => ['openstack', 'nova-package'], tag => ['openstack', 'nova-package'],
} }
# used by debian/ubuntu in nova::network_bridge to refresh
# interfaces based on /etc/network/interfaces
exec { 'networking-refresh':
command => '/sbin/ifdown -a ; /sbin/ifup -a',
refreshonly => true,
}
resources { 'nova_config': resources { 'nova_config':
purge => $purge_config, purge => $purge_config,
} }

View File

@ -25,11 +25,6 @@ describe 'nova' do
is_expected.to contain_nova_config('DEFAULT/rootwrap_config').with_value('/etc/nova/rootwrap.conf') is_expected.to contain_nova_config('DEFAULT/rootwrap_config').with_value('/etc/nova/rootwrap.conf')
end end
it { is_expected.to contain_exec('networking-refresh').with(
:command => '/sbin/ifdown -a ; /sbin/ifup -a',
:refreshonly => true
)}
it 'does not configure auth_strategy' do it 'does not configure auth_strategy' do
is_expected.not_to contain_nova_config('api/auth_strategy') is_expected.not_to contain_nova_config('api/auth_strategy')
end end