++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=edb9250c4c474b05bc4b01e72b9383b9 + openstack domain show edb9250c4c474b05bc4b01e72b9383b9 +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | description | Service Domain for RegionOne/magnum | | enabled | True | | id | edb9250c4c474b05bc4b01e72b9383b9 | | name | magnum | | options | {} | | tags | [] | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=edb9250c4c474b05bc4b01e72b9383b9 --description 'Service User for RegionOne/magnum' --password=VaiTIPO7Fmy3PUWKEs0Kajxh0KMPNlfL magnum-domain-RegionOne + SERVICE_OS_USERID=bb6985e3f6e94647a0da055b8759338a + openstack user set --password=VaiTIPO7Fmy3PUWKEs0Kajxh0KMPNlfL bb6985e3f6e94647a0da055b8759338a + openstack user show bb6985e3f6e94647a0da055b8759338a +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | edb9250c4c474b05bc4b01e72b9383b9 | | email | None | | enabled | True | | id | bb6985e3f6e94647a0da055b8759338a | | name | magnum-domain-RegionOne | | description | Service User for RegionOne/magnum | | password_expires_at | None | +---------------------+-----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=6734c9a6bb044d2da5de3174a6efffa5 + openstack role add --domain=edb9250c4c474b05bc4b01e72b9383b9 --user=bb6985e3f6e94647a0da055b8759338a --user-domain=edb9250c4c474b05bc4b01e72b9383b9 6734c9a6bb044d2da5de3174a6efffa5 + openstack role assignment list --role=6734c9a6bb044d2da5de3174a6efffa5 --user-domain=edb9250c4c474b05bc4b01e72b9383b9 --user=bb6985e3f6e94647a0da055b8759338a +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 6734c9a6bb044d2da5de3174a6efffa5 | bb6985e3f6e94647a0da055b8759338a | | | edb9250c4c474b05bc4b01e72b9383b9 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+