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