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