+ shopt -s nocasematch + [[ service == \D\e\f\a\u\l\t ]] ++ openstack domain create --or-show --enable -f value -c id '--description=Domain for RegionOne/service' service + PROJECT_DOMAIN_ID=aabdc323047d41cf9aee72a7b62c2fc5 + [[ service == \D\e\f\a\u\l\t ]] ++ openstack domain create --or-show --enable -f value -c id '--description=Domain for RegionOne/service' service + USER_DOMAIN_ID=aabdc323047d41cf9aee72a7b62c2fc5 + shopt -u nocasematch + USER_PROJECT_DESC='Service Project for RegionOne/service' ++ openstack project create --or-show --enable -f value -c id --domain=aabdc323047d41cf9aee72a7b62c2fc5 '--description=Service Project for RegionOne/service' service + USER_PROJECT_ID=f9b18afb8a53445da99c607b6a4a5d5e + USER_DESC='Service User for RegionOne/service/nova' ++ openstack user create --or-show --enable -f value -c id --domain=aabdc323047d41cf9aee72a7b62c2fc5 --project-domain=aabdc323047d41cf9aee72a7b62c2fc5 --project=f9b18afb8a53445da99c607b6a4a5d5e '--description=Service User for RegionOne/service/nova' nova-RegionOne No password was supplied, authentication will fail when a user does not have a password. + USER_ID=9bfa3c7ac4544db3a7be4a1f648fb061 + set +x Setting user password via: openstack user set --password=xxxxxxx 9bfa3c7ac4544db3a7be4a1f648fb061 + IFS=, + for SERVICE_OS_ROLE in ${SERVICE_OS_ROLES} + ks_assign_user_role + [[ admin == \a\d\m\i\n ]] + USER_ROLE_ID=admin + openstack role add --user=9bfa3c7ac4544db3a7be4a1f648fb061 --user-domain=aabdc323047d41cf9aee72a7b62c2fc5 --project-domain=aabdc323047d41cf9aee72a7b62c2fc5 --project=f9b18afb8a53445da99c607b6a4a5d5e admin + for SERVICE_OS_ROLE in ${SERVICE_OS_ROLES} + ks_assign_user_role + [[ service == \a\d\m\i\n ]] ++ openstack role create --or-show -f value -c id service + USER_ROLE_ID=c6f7b9060cd946c29066ca8e87ee055e + openstack role add --user=9bfa3c7ac4544db3a7be4a1f648fb061 --user-domain=aabdc323047d41cf9aee72a7b62c2fc5 --project-domain=aabdc323047d41cf9aee72a7b62c2fc5 --project=f9b18afb8a53445da99c607b6a4a5d5e c6f7b9060cd946c29066ca8e87ee055e + : member ++ openstack role create --or-show -f value -c id member + export USER_ROLE_ID=ab5cd36f3cfc40598767f220f9306061 + USER_ROLE_ID=ab5cd36f3cfc40598767f220f9306061 + ks_assign_user_role + [[ service == \a\d\m\i\n ]] ++ openstack role create --or-show -f value -c id service + USER_ROLE_ID=c6f7b9060cd946c29066ca8e87ee055e + openstack role add --user=9bfa3c7ac4544db3a7be4a1f648fb061 --user-domain=aabdc323047d41cf9aee72a7b62c2fc5 --project-domain=aabdc323047d41cf9aee72a7b62c2fc5 --project=f9b18afb8a53445da99c607b6a4a5d5e c6f7b9060cd946c29066ca8e87ee055e