++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=801dd3b33db84a57aa9fde132473c9f4 + openstack domain show 801dd3b33db84a57aa9fde132473c9f4 +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | id | 801dd3b33db84a57aa9fde132473c9f4 | | name | magnum | | enabled | True | | description | Service Domain for RegionOne/magnum | | options | {} | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=801dd3b33db84a57aa9fde132473c9f4 --description 'Service User for RegionOne/magnum' --password=LpVxOUy3fBYHZprYUUf9XCN6dufVKtLD magnum-domain-RegionOne + SERVICE_OS_USERID=6a8fa031f4eb4a0291f03d09187b49be + openstack user set --password=LpVxOUy3fBYHZprYUUf9XCN6dufVKtLD 6a8fa031f4eb4a0291f03d09187b49be + openstack user show 6a8fa031f4eb4a0291f03d09187b49be +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | 801dd3b33db84a57aa9fde132473c9f4 | | email | None | | enabled | True | | id | 6a8fa031f4eb4a0291f03d09187b49be | | 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=261ca7c17d0544bc866605ad283e2b7a + openstack role add --domain=801dd3b33db84a57aa9fde132473c9f4 --user=6a8fa031f4eb4a0291f03d09187b49be --user-domain=801dd3b33db84a57aa9fde132473c9f4 261ca7c17d0544bc866605ad283e2b7a + openstack role assignment list --role=261ca7c17d0544bc866605ad283e2b7a --user-domain=801dd3b33db84a57aa9fde132473c9f4 --user=6a8fa031f4eb4a0291f03d09187b49be +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 261ca7c17d0544bc866605ad283e2b7a | 6a8fa031f4eb4a0291f03d09187b49be | | | 801dd3b33db84a57aa9fde132473c9f4 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+