Fix the unit test error

1. What is the problem?

           the unit test can not pass.

        2. What is the solution to the problem?

           after the devstac run export the OS_PASSWORD as

           define in the devstack.

        3. What the features to be implemented in the Tricircle to realize the solution?

           I compare the faild and before passed local.conf they are all the same. so

           it is look like a bug of devstack. later on I will pull a bug for this in

           devstack bug list.wait on devstack to fix this bug.

        Signed-off-by: song baisen <songbaisen@szzt.com.cn>

        Co-Authored-By: tangzhuo <ztang@hnu.edu.cn>, zhiyuan_cai <luckyvega.g@gmail.com>

Change-Id: I0c004ca3a7f31159372ff69d6e7ea0dcede0e66a
This commit is contained in:
songbaisen 2018-06-29 15:55:25 +08:00
parent c889fd525e
commit 593bfa0c39
1 changed files with 11 additions and 4 deletions

View File

@ -30,16 +30,23 @@ PRIMARY_NODE_IP=$(cat /etc/nodepool/primary_node_private)
# use admin role to create Tricircle top Pod and Pod1
source $DEVSTACK_DIR/openrc admin admin
unset OS_REGION_NAME
mytoken=$(openstack --os-region-name=RegionOne token issue | awk 'NR==5 {print $4}')
echo $mytoken
openstack multiregion networking pod create --region-name CentralRegion
curl -X POST http://$PRIMARY_NODE_IP/tricircle/v1.0/pods \
-H "Content-Type: application/json" \
-H "X-Auth-Token: $mytoken" -d '{"pod": {"region_name": "CentralRegion"}}'
openstack multiregion networking pod create --region-name RegionOne --availability-zone az1
curl -X POST http://$PRIMARY_NODE_IP/tricircle/v1.0/pods \
-H "Content-Type: application/json" \
-H "X-Auth-Token: $mytoken" \
-d '{"pod": {"region_name": "RegionOne", "az_name": "az1"}}'
if [ "$DEVSTACK_GATE_TOPOLOGY" == "multinode" ]; then
openstack multiregion networking pod create --region-name RegionTwo --availability-zone az2
curl -X POST http://$PRIMARY_NODE_IP/tricircle/v1.0/pods \
-H "Content-Type: application/json" \
-H "X-Auth-Token: $mytoken" \
-d '{"pod": {"region_name": "RegionTwo", "az_name": "az2"}}'
fi
# the usage of "nova flavor-create":