Ask Your Question
0

nova net list failing

asked 2014-04-11 05:47:42 -0500

somesh gravatar image

updated 2014-04-11 06:13:23 -0500

control01 ip = 172.17.2.91 control02 ip = 172.17.2.92 virtual ip = 172.17.2.201

nova --os-username=admin --os-password=password --os-tenant-name=admin --os-auth-   url=http://172.17.2.91:35357/v2.0 net-list

+--------------------------------------+----------+------+
| ID                                   | Label    | CIDR |
+--------------------------------------+----------+------+
| 641608f0-97d5-4faf-ba61-c45f3cf0a8b2 | internal | None |
+--------------------------------------+----------+------+

for control02 or using virtual_ip

nova --os-username=admin --os-password=password --os-tenant-name=admin --os-auth-url=http://172.17.2.92:35357/v2.0 net-list

ERROR: Unauthorized (HTTP 401)

Any idea why this is happening ?

edit retag flag offensive close merge delete

Comments

That was a typo. I edited the question. Apologies for that

somesh gravatar imagesomesh ( 2014-04-11 06:13:05 -0500 )edit

192.168.1.127 is virtual ip ?

Still it fails with same results as above.

somesh gravatar imagesomesh ( 2014-04-11 06:16:28 -0500 )edit

Register in UNIX(LINUX) does matter OS_USERNAME and etc. This should work as well

[root@dfw02 ~]# nova --os-username=admin --os-password=fedora --os-tenant-name=admin --os_auth_url=http://192.168.1.127:35357/v2.0 net-list
+--------------------------------------+-------+------+
| ID                                   | Label | CIDR |
+--------------------------------------+-------+------+
| 1eea88bb-4952-4aa4-9148-18b61c22d5b7 | int   | None |
| 426bb226-0ab9-440d-ba14-05634a17fb2b | int1  | None |
| 780ce2f3-2e6e-4881-bbac-857813f9a8e0 | ext   | None |
+--------------------------------------+-------+------+
dbaxps gravatar imagedbaxps ( 2014-04-11 06:22:04 -0500 )edit

Followed line by line. still no success

Is there anything that I need to look into configuration files ?

somesh gravatar imagesomesh ( 2014-04-11 06:34:01 -0500 )edit

Here --os-auth-url should be --os_auth_url

--os-auth-url shouldn't   work or it is a typo
dbaxps gravatar imagedbaxps ( 2014-04-11 06:37:50 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-04-11 06:00:07 -0500

dbaxps gravatar image

updated 2014-04-11 06:23:52 -0500

Create file keystonerc_admin :-

# cat >> ~/keystonerc_admin <<EOF
>  export OS_USERNAME=admin
>  export OS_TENANT_NAME=admin
>  export OS_PASSWORD=xxxxx
>   export OS_AUTH_URL=http://192.168.1.127:35357/v2.0/
>  export PS1='[\u@\h \W(keystone_admin)]\$ '
EOF
 Source it
    # .   keystonerc_admin
    $ nova net-list
edit flag offensive delete link more

Comments

Do you have more than one controller node ?

somesh gravatar imagesomesh ( 2014-04-11 07:03:03 -0500 )edit

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

Stats

Asked: 2014-04-11 05:47:42 -0500

Seen: 568 times

Last updated: Apr 11 '14