++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=f8bdd790b6564c4195f0a6638cc6a751 + openstack domain show f8bdd790b6564c4195f0a6638cc6a751 +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | description | Service Domain for RegionOne/magnum | | enabled | True | | id | f8bdd790b6564c4195f0a6638cc6a751 | | name | magnum | | options | {} | | tags | [] | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=f8bdd790b6564c4195f0a6638cc6a751 --description 'Service User for RegionOne/magnum' --password=Fx4eEFXwDsTu0DTYwr2xXZty6G0JuAz9 magnum-domain-RegionOne + SERVICE_OS_USERID=db426aa4bbee4fc98373c223d0b69f1a + openstack user set --password=Fx4eEFXwDsTu0DTYwr2xXZty6G0JuAz9 db426aa4bbee4fc98373c223d0b69f1a + openstack user show db426aa4bbee4fc98373c223d0b69f1a +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | f8bdd790b6564c4195f0a6638cc6a751 | | email | None | | enabled | True | | id | db426aa4bbee4fc98373c223d0b69f1a | | name | magnum-domain-RegionOne | | description | Service User for RegionOne/magnum | | password_expires_at | None | +---------------------+-----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=708e1fb596554172893dbb757fa3c111 + openstack role add --domain=f8bdd790b6564c4195f0a6638cc6a751 --user=db426aa4bbee4fc98373c223d0b69f1a --user-domain=f8bdd790b6564c4195f0a6638cc6a751 708e1fb596554172893dbb757fa3c111 + openstack role assignment list --role=708e1fb596554172893dbb757fa3c111 --user-domain=f8bdd790b6564c4195f0a6638cc6a751 --user=db426aa4bbee4fc98373c223d0b69f1a +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 708e1fb596554172893dbb757fa3c111 | db426aa4bbee4fc98373c223d0b69f1a | | | f8bdd790b6564c4195f0a6638cc6a751 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+