Fix wrong anchor in quota_set

We have to ensure cinder services are up before the quota command is
executed, because the command needs access to cinder API.

Change-Id: I44ae2f5628283818a7aa4e20b823808e30b559c7
This commit is contained in:
Takashi Kajinami 2023-11-20 00:22:40 +09:00
parent 89b9c7cd13
commit a3f52d40e6
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ define cinder::quota_set (
# lint:endignore
onlyif => 'openstack quota show --class default | grep -qP -- -1',
environment => $cinder_env,
require => Anchor['cinder::install::end'],
require => Anchor['cinder::service::end'],
path => ['/usr/bin', '/bin'],
}
}

View File

@ -29,7 +29,7 @@ describe 'cinder::quota_set' do
'OS_AUTH_URL=http://127.127.127.1:5000/v3/',
],
:onlyif => 'openstack quota show --class default | grep -qP -- -1',
:require => 'Anchor[cinder::install::end]',
:require => 'Anchor[cinder::service::end]',
)}
end
@ -48,7 +48,7 @@ describe 'cinder::quota_set' do
'OS_REGION_NAME=test',
],
:onlyif => 'openstack quota show --class default | grep -qP -- -1',
:require => 'Anchor[cinder::install::end]',
:require => 'Anchor[cinder::service::end]',
)}
end
end