++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=015699a89bc541f69e8420afe60b80ad + openstack domain show 015699a89bc541f69e8420afe60b80ad +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | id | 015699a89bc541f69e8420afe60b80ad | | name | magnum | | enabled | True | | description | Service Domain for RegionOne/magnum | | options | {} | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=015699a89bc541f69e8420afe60b80ad --description 'Service User for RegionOne/magnum' --password=IushkQUuQIMo7oGw1xB2tUlfLqOzoEbC magnum-domain-RegionOne + SERVICE_OS_USERID=3835176c9d5442b189fc62df527d93c2 + openstack user set --password=IushkQUuQIMo7oGw1xB2tUlfLqOzoEbC 3835176c9d5442b189fc62df527d93c2 + openstack user show 3835176c9d5442b189fc62df527d93c2 +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | 015699a89bc541f69e8420afe60b80ad | | email | None | | enabled | True | | id | 3835176c9d5442b189fc62df527d93c2 | | name | magnum-domain-RegionOne | | description | Service User for RegionOne/magnum | | password_expires_at | None | | options | {} | +---------------------+-----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=b88d8cd8658446cfaadb8bf71856d8d0 + openstack role add --domain=015699a89bc541f69e8420afe60b80ad --user=3835176c9d5442b189fc62df527d93c2 --user-domain=015699a89bc541f69e8420afe60b80ad b88d8cd8658446cfaadb8bf71856d8d0 + openstack role assignment list --role=b88d8cd8658446cfaadb8bf71856d8d0 --user-domain=015699a89bc541f69e8420afe60b80ad --user=3835176c9d5442b189fc62df527d93c2 +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | b88d8cd8658446cfaadb8bf71856d8d0 | 3835176c9d5442b189fc62df527d93c2 | | | 015699a89bc541f69e8420afe60b80ad | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+