Ask Your Question
0

error http 404 No networks defined

asked 2015-01-21 10:16:48 -0500

Roberto19760811 gravatar image

Hello,

I have finished the OpenStack installation. And I am trying to launch an instance. But It returns the following error:

2015-01-21 10:57:43.106 2823 TRACE nova.api.openstack NoNetworksFound: No networks defined. 2015-01-21 10:57:43.106 2823 TRACE nova.api.openstack 2015-01-21 10:57:43.106 2823 TRACE nova.api.openstack 2015-01-21 10:57:43.106 2823 TRACE nova.api.openstack 2015-01-21 10:57:43.108 2823 INFO nova.api.openstack [req-baea6e5e-7011-4fd7-a93a-2a67566dd0a6 None] http://controller:8774/v2/f3b3e78fea9e42ebb2275e1c3199452e/os-volumes_boot (http://controller:8774/v2/f3b3e78fea9...) returned with HTTP 404

And I have three networks defined and one of them selected in the instance launch process.

Can somebody help me?

Thank you.

edit retag flag offensive close merge delete

Comments

Are you able to list the networks using the credentials used for launching the VM?

Ranjit gravatar imageRanjit ( 2015-01-22 02:59:28 -0500 )edit

No, I am not able to list them and I am not able to execute any other command: ....continue as an answer...

Roberto19760811 gravatar imageRoberto19760811 ( 2015-01-22 04:53:34 -0500 )edit

3 answers

Sort by » oldest newest most voted
0

answered 2015-01-22 04:51:55 -0500

Roberto19760811 gravatar image

updated 2015-01-22 10:45:14 -0500

Hello Ranjit,

No, I am not able to list them and I am not able to execute any other command:

[root@controller ~]# nova network-list ERROR (CommandError): You must provide a username or user id via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID] [root@controller ~]# nova service-list ERROR (CommandError): You must provide a username or user id via --os-username, --os-user-id, env[OS_USERNAME] or env[OS_USER_ID] [root@controller ~]# keystone tenant-list Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL] [root@controller ~]#

I can already launch commands:

-bash-4.2$ nova network-list +--------------------------------------+----------+-----------------+ | ID | Label | Cidr | +--------------------------------------+----------+-----------------+ | d77a2c86-2536-4471-aecc-21d61413ef5a | demo-net | 203.0.113.24/29 | +--------------------------------------+----------+-----------------+

But it only shows the demo-net and in the dashboard it shows 3 networks:

Nombre Subredes asociadas Compartido Estado Estado de administración Acciones

test test 192.168.174.0/24 no ACTIVE UP Editar red

demo-net demo-subnet 192.168.1.0/24 no ACTIVE UP Editar red

ext-net ext-subnet 203.0.113.0/24 Sí ACTIVE UP
Mostrando 3 elementos


I access to the dashboard as admin.

I access to the VM as root and the I do that:

Last login: Thu Jan 22 08:07:31 2015 from 192.168.129.18 [root@controller ~]# su - keystone Last login: Thu Jan 22 07:49:22 EST 2015 on pts/3 -bash-4.2$ source admin-openrc.sh -bash-4.2$ cat admin-openrc.sh export OS_TENANT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=os_pass export OS_AUTH_URL=http://controller:35357/v2.0

-bash-4.2$

Now I could to launch two instances from command line but they have an ERROR status:

-bash-4.2$ nova boot --image 73898070-b986-4e33-add3-f6ff1f8f73dd --flavor m1.tiny INS20150122 -bash-4.2$ nova boot --image dd97eeff-0881-426a-828b-35f6e97c3224 --flavor m1.tiny INS20150122-1 -bash-4.2$

-bash-4.2$ nova list +--------------------------------------+---------------+--------+------------+-------------+-----------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+---------------+--------+------------+-------------+-----------------------+ | 6d6bdc91-292d-494b-94e5-e8500032f3b0 | INS20150122 | ERROR | - | NOSTATE | demo-net=203.0.113.26 | | 0e2dbf68-2ef9-4be9-a775-d22b60a51a4b | INS20150122-1 | ERROR | - | NOSTATE | | +--------------------------------------+---------------+--------+------------+-------------+-----------------------+ -bash-4.2$ nova show 6d6bdc91-292d-494b-94e5-e8500032f3b0^C -bash-4.2$ nova show 6d6bdc91-292d-494b-94e5-e8500032f3b0 +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Property | Value | +--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | compute | | OS-EXT-SRV-ATTR:hypervisor_hostname | compute | | OS-EXT-SRV-ATTR:instance_name | instance-00000002 | | OS-EXT-STS:power_state | 0 | | OS-EXT-STS:task_state | - | | OS-EXT-STS:vm_state | error | | OS-SRV-USG:launched_at | - | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | config_drive | | | created | 2015-01-22T15:32:05Z | | demo-net network | 203.0.113.26 | | fault | {"message": "No valid host was found. ", "code": 500, "details": " File \"/usr/lib/python2.7/site-packages/nova/conductor/manager.py\", line 614, in build_instances | | | request_spec, filter_properties) | | | File \"/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py\", line 49, in select_destinations | | | context, request_spec, filter_properties) | | | File \"/usr/lib/python2.7/site-packages/nova/scheduler/client/__init__.py\", line 35, in __run_method | | | return getattr(self.instance, __name)(args, *kwargs) | | | File \"/usr/lib/python2.7/site-packages/nova/scheduler/client/query.py\", line 34, in select_destinations | | | context, request_spec, filter_properties) | | | File \"/usr/lib/python2.7/site-packages/nova/scheduler/rpcapi.py\", line 108, in select_destinations | | | request_spec=request_spec, filter_properties=filter_properties) | | | File \"/usr/lib/python2.7/site-packages/oslo/messaging/rpc/client.py\", line 152, in call | | | retry=self.retry) | | | File \"/usr/lib/python2.7/site-packages/oslo/messaging/transport.py\", line 90, in _send | | | timeout=timeout, retry=retry) | | | File \"/usr/lib/python2.7/site-packages/oslo/messaging/_drivers ...

(more)
edit flag offensive delete link more

Comments

All thing depends on credentials . If you are using admin login for dashboard , you can see whole openstack infrastructure networks.

But from command line, it looks, you are using demo user. So how you are launching VM? From command line or dashboard.

Ranjit gravatar imageRanjit ( 2015-01-22 06:36:34 -0500 )edit

Hi Ranjit,

I have edit my previous comment.

Roberto19760811 gravatar imageRoberto19760811 ( 2015-01-22 07:17:42 -0500 )edit
1

Little confused.

I access to the VM as root Are you able to successfully launch VM?

If not, what error you are getting?

Ranjit gravatar imageRanjit ( 2015-01-22 07:34:07 -0500 )edit

When I say "I access to the VM as root", I want to say that I access to the controller maquine as root.

Last login: Thu Jan 22 09:45:48 2015 from 192.168.129.6 [root@controller ~]#

I can not launch an instance yet, like I say in the first answer. And I am launching the instance from dashboard.

Roberto19760811 gravatar imageRoberto19760811 ( 2015-01-22 08:57:21 -0500 )edit

I have edit my previous comment.

Roberto19760811 gravatar imageRoberto19760811 ( 2015-01-22 10:40:37 -0500 )edit
0

answered 2015-01-22 06:05:28 -0500

dbaxps gravatar image

Source keystonerc_admin

[root@junoDocker01 ~(keystone_admin)]# cat  keystonerc_admin
export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export OS_PASSWORD=26dc40500dad464a
export OS_AUTH_URL=http://192.168.1.137:5000/v2.0/
export OS_REGION_NAME=RegionOne
export PS1='[\u@\h \W(keystone_admin)]\$ '

$source keystonerc_admin

edit flag offensive delete link more

Comments

Thank you.

Roberto19760811 gravatar imageRoberto19760811 ( 2015-01-22 06:20:22 -0500 )edit
0

answered 2015-07-02 08:04:31 -0500

abdelsnake gravatar image

hey i have the same problem in openstack_juno centos7 i can't launch a instance

error network not defined but when a do cmmand nova net-list i get the newtok 19.168.1.1/29 ressources not found

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

Stats

Asked: 2015-01-21 10:16:48 -0500

Seen: 630 times

Last updated: Jul 02 '15