环境:openstack Q版本
1:
export OS_TOKEN=cat /etc/keystone/keystone.conf | grep ^admin_token | awk -F '=' '{print $2}'
export OS_URL=http://YOUR_HOST:35357/v3
export OS_IDENTITY_API_VERSION=3
2:
openstack user set --password NEW_PASSWORD admin
NEW_PASSWORD替换成需要设置的密码