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