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:
parent
89b9c7cd13
commit
a3f52d40e6
@ -84,7 +84,7 @@ define cinder::quota_set (
|
|||||||
# lint:endignore
|
# lint:endignore
|
||||||
onlyif => 'openstack quota show --class default | grep -qP -- -1',
|
onlyif => 'openstack quota show --class default | grep -qP -- -1',
|
||||||
environment => $cinder_env,
|
environment => $cinder_env,
|
||||||
require => Anchor['cinder::install::end'],
|
require => Anchor['cinder::service::end'],
|
||||||
path => ['/usr/bin', '/bin'],
|
path => ['/usr/bin', '/bin'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ describe 'cinder::quota_set' do
|
|||||||
'OS_AUTH_URL=http://127.127.127.1:5000/v3/',
|
'OS_AUTH_URL=http://127.127.127.1:5000/v3/',
|
||||||
],
|
],
|
||||||
:onlyif => 'openstack quota show --class default | grep -qP -- -1',
|
:onlyif => 'openstack quota show --class default | grep -qP -- -1',
|
||||||
:require => 'Anchor[cinder::install::end]',
|
:require => 'Anchor[cinder::service::end]',
|
||||||
)}
|
)}
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ describe 'cinder::quota_set' do
|
|||||||
'OS_REGION_NAME=test',
|
'OS_REGION_NAME=test',
|
||||||
],
|
],
|
||||||
:onlyif => 'openstack quota show --class default | grep -qP -- -1',
|
:onlyif => 'openstack quota show --class default | grep -qP -- -1',
|
||||||
:require => 'Anchor[cinder::install::end]',
|
:require => 'Anchor[cinder::service::end]',
|
||||||
)}
|
)}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user