- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Re: How do you add a new user to the controller? (...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2015 09:34 AM
тАО02-12-2015 09:34 AM
How do you add a new user to the controller? (2.4.5)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2015 10:04 AM - edited тАО02-12-2015 10:04 AM
тАО02-12-2015 10:04 AM - edited тАО02-12-2015 10:04 AM
Re: How do you add a new user to the controller? (2.4.5)
After a clean install of Keystone and the controller, there is a script that will create a user: sdn with a password: skyline.
sudo /opt/sdn/admin/config_local_keystone
Or here are some steps for the Icehouse build of keystone:
export OS_SERVICE_TOKEN=ADMIN
export OS_SERVICE_ENDPOINT=http://127.0.0.1:35357/v2.0
keystone user-create --name sdn
keystone role-create --name sdn-admin
keystone role-create --name sdn-user
keystone tenant-create --name sdn
keystone user-role-add --user <user-id> --role <role-id> --tenant_id <tenant-id>
keystone user-password-update --pass skyline <user-id>
To validate success:
keystone user-list
keystone role-list
keystone tenant-list
keystone user-role-list --user <user-id> --tenant <tenant-id>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2015 02:44 PM - edited тАО02-12-2015 02:48 PM
тАО02-12-2015 02:44 PM - edited тАО02-12-2015 02:48 PM
Re: How do you add a new user to the controller? (2.4.5)
So can we add a second user so everyone doesn't share the same credentials? Something like...
export OS_SERVICE_TOKEN=ADMIN
export OS_SERVICE_ENDPOINT=http://127.0.0.1:35357/v2.0
keystone user-create --name otherguy
keystone user-role-add --user otherguy --role sdn-admin --tenant_id <tenant-id>
keystone user-password-update --pass otherskyline otherguy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2015 03:47 PM
тАО02-12-2015 03:47 PM
Re: How do you add a new user to the controller? (2.4.5)
Correct. You can create as many users as you like.
I would recommend that you have a dedicated installation of Keystone for the Controller(s) and not use it for anything else. I assume this is what you are doing anyway.
By the way, you only have to do the two Export commands once. You could add them as permanent environment variables or just enter them when you need to after loging into the system via the console or ssh.
And just to be clear, the <variable> fields need to be replaced by the actual alpha numeric string generated when you create a user, group, or tenant. It is a long string, maybe 30 characters or so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2015 03:28 AM
тАО02-13-2015 03:28 AM
Re: How do you add a new user to the controller? (2.4.5)
Thanks! That's exactly what I needed.