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