Revert "[Devstack] Workaround osclient breakage"

This reverts commit 10b14bb50e.

Change-Id: I1cbc33a4b76e5ab8a65db86ed00b0ccba579d5d9
This commit is contained in:
Valeriy Ponomaryov 2017-01-25 18:36:58 +00:00
parent 10b14bb50e
commit 32708bda48
1 changed files with 4 additions and 11 deletions

View File

@ -389,16 +389,10 @@ function create_manila_service_image {
# create_manila_service_secgroup - creates security group that is used by
# Nova VMs when generic driver is configured.
function create_manila_service_secgroup {
# TODO(vponomaryov): replace usage of novaclient with openstackclient back
# right after bug #1652317 is fixed.
# Create a secgroup
# if ! openstack security group list | grep -q $MANILA_SERVICE_SECGROUP; then
if ! nova secgroup-list | grep -q $MANILA_SERVICE_SECGROUP; then
# openstack security group create $MANILA_SERVICE_SECGROUP --description "$MANILA_SERVICE_SECGROUP description"
nova secgroup-create $MANILA_SERVICE_SECGROUP "$MANILA_SERVICE_SECGROUP description"
# if ! timeout 30 sh -c "while ! openstack security group list | grep -q $MANILA_SERVICE_SECGROUP; do sleep 1; done"; then
if ! timeout 30 sh -c "while ! nova secgroup-list | grep -q $MANILA_SERVICE_SECGROUP; do sleep 1; done"; then
if ! openstack security group list | grep -q $MANILA_SERVICE_SECGROUP; then
openstack security group create $MANILA_SERVICE_SECGROUP --description "$MANILA_SERVICE_SECGROUP description"
if ! timeout 30 sh -c "while ! openstack security group list | grep -q $MANILA_SERVICE_SECGROUP; do sleep 1; done"; then
echo "Security group not created"
exit 1
fi
@ -431,8 +425,7 @@ function create_manila_service_secgroup {
fi
# List secgroup rules
# openstack security group rule list $MANILA_SERVICE_SECGROUP
nova secgroup-list-rules $MANILA_SERVICE_SECGROUP
openstack security group rule list $MANILA_SERVICE_SECGROUP
}
# create_manila_accounts - Set up common required manila accounts