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