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