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