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