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