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