Ask Your Question

[error]: you must provide a username via either --os-username or env[OS_USERNAME]

asked 2016-06-27 05:55:20 -0500

Ha jar gravatar image

while adding the network interface "Legacy networking (nova-network), while creating network : nova network-create demo-net --bridge br100 --multi-host T --fixed-range-v4 i get this : [error]: you must provide a username via either --os-username or env[OS_USERNAME] please help !!!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-06-28 06:18:20 -0500

jckreddy gravatar image
 you should have already created or please source them
 if you have not created please use the below sample and create it 

Sample  is mentioned below 

export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=changeit
export OS_AUTH_URL=http://$(hostname)/v3

where $(hostname) is your controller host name
edit flag offensive delete link more



You can also download the correct file by using Horizon: Menu item "Project" -> Menu item "Access & Security" -> Tab "API Access" -> Button "Download OpenStack RC File v2.0"

Markus Zoeller gravatar imageMarkus Zoeller ( 2016-07-01 04:46:07 -0500 )edit

it works perfectly for me. Thank you very much

Mukthar gravatar imageMukthar ( 2017-04-30 08:30:02 -0500 )edit

answered 2016-06-27 06:00:13 -0500

sagar gravatar image

source or and try the command

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-06-27 05:55:20 -0500

Seen: 6,652 times

Last updated: Jun 28 '16