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