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