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