can't launch an instance - no network

asked 2015-09-22 10:02:14 -0500

BlackSpy21 gravatar image

updated 2015-09-23 02:54:22 -0500

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.
edit retag flag offensive close merge delete

Comments

Check if the network is created with admin user or demo, and if your request from cli and instance creation is with the same user as the one who created the network. Also, admin user can be in demo project, check that too. Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-09-23 02:57:06 -0500 )edit

Hi Eduardo. Thanks for the suggestions. The network was created in Horizon while logged in as Admin. I deleted the network and logged in as a project member and recreated the network. Then as the same user I tried creating the instance. Same result I'm afraid. Do you have any other ideas?

BlackSpy21 gravatar imageBlackSpy21 ( 2015-09-23 07:56:42 -0500 )edit

P.S. When running nova net-list I can only see the "demo-net" created during install. This network does not exist in Horizon. And none of the Horizon created networks appear when running nova net-list. This is very confusing. Its almost like Horizon is using a different network service.

BlackSpy21 gravatar imageBlackSpy21 ( 2015-09-23 08:00:02 -0500 )edit

Another update: If i run neutron net-list I can see my networks, but nova net-list and I only see demo. Have I missed a step that syncs neutron with nova?

BlackSpy21 gravatar imageBlackSpy21 ( 2015-09-23 08:15:02 -0500 )edit

verify the state of nova and neutron services once. if thats correct , then perform database sync, follow any openstack link that helps in creation of network and then instace using command line. better to go with fresh creation.

ritesh.singh.aricent@gmail.com gravatar imageritesh.singh.aricent@gmail.com ( 2015-10-01 05:44:33 -0500 )edit