From f3218a1d42d3634e2cf61969c7cbd504002927fa Mon Sep 17 00:00:00 2001 From: Valeriy Ponomaryov Date: Thu, 9 Feb 2017 13:47:49 +0200 Subject: [PATCH] [Grenade] Switch base to stable/ocata We should test two neighbour branches in grenade job. So, after branching of stable/ocata we should use it as base for testing of manila migration to current master branch (Pike-dev). Also, update existing code to be consistent with newer microversion. Change-Id: Id78c30e2000186958a2eb8f6fd727042d9b31862 --- devstack/upgrade/resources.sh | 23 ++++++++++++----------- devstack/upgrade/settings | 6 +++--- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/devstack/upgrade/resources.sh b/devstack/upgrade/resources.sh index 52c8f5f195..5d75d6d968 100755 --- a/devstack/upgrade/resources.sh +++ b/devstack/upgrade/resources.sh @@ -120,17 +120,18 @@ function scenario_1_do_share_with_rules_and_metadata { while (( wait_timeout > 0 )) ; do current_state=$( manila access-list $MANILA_GRENADE_SHARE_NAME | \ grep " $MANILA_GRENADE_ACCESS_TO " | get_field 5 ) - if [[ $current_state == 'active' ]]; then - active='true' - break - elif [[ $current_state == 'creating' || $current_state == 'new' ]]; then - ((wait_timeout-=$MANILA_GRENADE_WAIT_STEP)) - sleep $MANILA_GRENADE_WAIT_STEP - elif [[ $current_state == 'error' ]]; then - die $LINENO "Failed to create access rule." - else - die $LINENO "Should never reach this line." - fi + case $current_state in + active) + active='true' + break;; + creating|new|queued_to_apply|applying) + ((wait_timeout-=$MANILA_GRENADE_WAIT_STEP)) + sleep $MANILA_GRENADE_WAIT_STEP;; + error) + die $LINENO "Failed to create access rule.";; + *) + die $LINENO "Should never reach this line.";; + esac done if [[ $active == 'true' ]]; then echo "Access rule has been created successfully." diff --git a/devstack/upgrade/settings b/devstack/upgrade/settings index 66d37959da..2821e049db 100644 --- a/devstack/upgrade/settings +++ b/devstack/upgrade/settings @@ -8,17 +8,17 @@ export TARGET_RUN_SMOKE=False export ENABLE_TEMPEST=False devstack_localrc base enable_service manila m-api m-shr m-sch m-dat -devstack_localrc base enable_plugin manila git://git.openstack.org/openstack/manila stable/newton +devstack_localrc base enable_plugin manila git://git.openstack.org/openstack/manila stable/ocata devstack_localrc base MANILA_UI_ENABLED=False devstack_localrc base OSLO_SERVICE_WORKS=True # NOTE(vponomaryov): stable client is used for keeping scenarios stable # so they are not broken by changed CLI view. -devstack_localrc base MANILACLIENT_BRANCH="stable/newton" +devstack_localrc base MANILACLIENT_BRANCH="stable/ocata" devstack_localrc target enable_service manila m-api m-shr m-sch m-dat devstack_localrc target enable_plugin manila git://git.openstack.org/openstack/manila devstack_localrc target MANILA_UI_ENABLED=False devstack_localrc target OSLO_SERVICE_WORKS=True devstack_localrc target MANILA_USE_DOWNGRADE_MIGRATIONS=False -devstack_localrc target MANILACLIENT_BRANCH="stable/newton" +devstack_localrc target MANILACLIENT_BRANCH="stable/ocata"