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