Merge "Convert resource_name to number" into stable/ocata

This commit is contained in:
Zuul 2018-05-31 10:45:11 +00:00 committed by Gerrit Code Review
commit 4ec837e39c
2 changed files with 6 additions and 1 deletions

View File

@ -64,7 +64,7 @@ for role in $OVERCLOUD_ROLES; do
rg_stack=$(openstack stack resource show $STACK_NAME $role -c physical_resource_id -f value)
done
stacks=$(openstack stack resource list $rg_stack -c resource_name -c physical_resource_id -f json | jq -r "sort_by(.resource_name) | .[] | .physical_resource_id")
stacks=$(openstack stack resource list $rg_stack -c resource_name -c physical_resource_id -f json | jq -r "sort_by(.resource_name | tonumber) | .[] | .physical_resource_id")
i=0

View File

@ -0,0 +1,5 @@
---
fixes:
- Previously, get-occ-config.sh could configure nodes out of order when
deploying with more than 10 nodes. The script has been updated to properly
sort the node resource names by first converting the names to a number.