Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

can't launch an instance - no network

Before pulling the trigger... yes I have searched for this issue, and the posts I have found did not fix my problem. And am an OpenStack newb.

As many other have found, I get a 404 when trying to launch an instance. I get the same error in the Nova Logs "No networks defined".

I have defined my network in horizon and attached appropriate router, and both interfaces are up.

When trying to run "nova net-list" and passing in the admin tenant it returns my demo-net network, but not my newly created one. When trying to run it with the tenant the network is created for I get "Invalid OpenStack Nova credentials".

Stumped! Why is my network not visible in nova but appears in horizon? I know this is probably a simple problem for most, but for a new user its a hair pulling exercise.

Any help much appreciated.

nova-api.log is:

2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack return getattr(target, method)(context, args, *kwargs) 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/objects/base.py", line$ 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack result = fn(cls, context, args, *kwargs) 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/objects/network.py", l$ 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack project_only) 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 988, $ 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack project_only=project_only) 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py",$ 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack return f(args, *kwargs) 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py",$ 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack raise exception.NoNetworksFound() 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack 2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack NoNetworksFound: No networks defined.

can't launch an instance - no network

Before pulling the trigger... yes I have searched for this issue, and the posts I have found did not fix my problem. And am an OpenStack newb.

As many other have found, I get a 404 when trying to launch an instance. I get the same error in the Nova Logs "No networks defined".

I have defined my network in horizon and attached appropriate router, and both interfaces are up.

When trying to run "nova net-list" and passing in the admin tenant it returns my demo-net network, but not my newly created one. When trying to run it with the tenant the network is created for I get "Invalid OpenStack Nova credentials".

Stumped! Why is my network not visible in nova but appears in horizon? I know this is probably a simple problem for most, but for a new user its a hair pulling exercise.

Any help much appreciated.

nova-api.log is:

2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack     return getattr(target, method)(context, args, *kwargs)
*args, **kwargs)
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/objects/base.py", line$
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack     result = fn(cls, context, args, *kwargs)
*args, **kwargs)
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/objects/network.py", l$
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack     project_only)
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 988, $
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack     project_only=project_only)
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py",$
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack     return f(args, *kwargs)
f(*args, **kwargs)
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py",$
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack     raise exception.NoNetworksFound()
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack
2015-09-22 16:30:15.087 2295 TRACE nova.api.openstack NoNetworksFound: No networks defined.

defined.