++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=e4469a4414be4ec8a3422f075286ee1c + openstack domain show e4469a4414be4ec8a3422f075286ee1c +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | description | Service Domain for RegionOne/magnum | | enabled | True | | id | e4469a4414be4ec8a3422f075286ee1c | | name | magnum | | options | {} | | tags | [] | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=e4469a4414be4ec8a3422f075286ee1c --description 'Service User for RegionOne/magnum' --password=3u5fPh5PaJlWsY5dGUh0gadSx0C03HqB magnum-domain-RegionOne + SERVICE_OS_USERID=9dcc724669344a5aa5e8668e4e8c19da + openstack user set --password=3u5fPh5PaJlWsY5dGUh0gadSx0C03HqB 9dcc724669344a5aa5e8668e4e8c19da + openstack user show 9dcc724669344a5aa5e8668e4e8c19da +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | e4469a4414be4ec8a3422f075286ee1c | | email | None | | enabled | True | | id | 9dcc724669344a5aa5e8668e4e8c19da | | name | magnum-domain-RegionOne | | description | Service User for RegionOne/magnum | | password_expires_at | None | +---------------------+-----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=782273c9b2cc4cee9b0204f65b7b652e + openstack role add --domain=e4469a4414be4ec8a3422f075286ee1c --user=9dcc724669344a5aa5e8668e4e8c19da --user-domain=e4469a4414be4ec8a3422f075286ee1c 782273c9b2cc4cee9b0204f65b7b652e + openstack role assignment list --role=782273c9b2cc4cee9b0204f65b7b652e --user-domain=e4469a4414be4ec8a3422f075286ee1c --user=9dcc724669344a5aa5e8668e4e8c19da +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 782273c9b2cc4cee9b0204f65b7b652e | 9dcc724669344a5aa5e8668e4e8c19da | | | e4469a4414be4ec8a3422f075286ee1c | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+