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