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