For example, if source the project scoped token that rally config support at the current phase, role list failed with the same 401 error:
$ . ~/.rally/openrc
OS_REGION_NAME=regionOne
OS_USER_DOMAIN_NAME=Default
OS_PROJECT_NAME=default
OS_IDENTITY_API_VERSION=3
OS_PASSWORD=admin
OS_AUTH_URL=https://localhost:5000/v3/
OS_USERNAME=admin
OS_CACERT=/usr/local/share/ca-certificates/ephemeralca-cacert.crt
OS_PROJECT_DOMAIN_NAME=Default
cetest@cer305n0016:~/ysong/rally/environments$ openstack role list
ERROR: openstack The request you have made requires authentication. (HTTP 401)
For example, if source the project scoped token that rally config support at the current phase, role list failed with the same 401 error: NAME=regionOne DOMAIN_ NAME=Default NAME=default API_VERSION= 3 /localhost: 5000/v3/ /usr/local/ share/ca- certificates/ ephemeralca- cacert. crt DOMAIN_ NAME=Default cer305n0016: ~/ysong/ rally/environme nts$ openstack role list
$ . ~/.rally/openrc
OS_REGION_
OS_USER_
OS_PROJECT_
OS_IDENTITY_
OS_PASSWORD=admin
OS_AUTH_URL=https:/
OS_USERNAME=admin
OS_CACERT=
OS_PROJECT_
cetest@
ERROR: openstack The request you have made requires authentication. (HTTP 401)