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