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