Browse Source

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
changes/95/579095/4
songbaisen 3 years ago
parent
commit
593bfa0c39
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      tricircle/tempestplugin/post_test_hook.sh

+ 11
- 4
tricircle/tempestplugin/post_test_hook.sh 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":


Loading…
Cancel
Save