Ask Your Question

ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500)

asked 2014-03-31 12:21:13 -0500

Indeep_Minku-OPENSTACK gravatar image

I am enabling networking on my Compute node and it says that i have to run nova network-create command on Controller Node as -

image description

But when i run this command on my controller Node i get this error -

image description

edit retag flag offensive close merge delete


I tried to run this command as well

#nova --debug network-create vmnet --fixed-range-v4= --bridge-interface=br100 --multi-host=T

But still i got same ERROR at last.

Indeep_Minku-OPENSTACK gravatar imageIndeep_Minku-OPENSTACK ( 2014-03-31 12:25:31 -0500 )edit

Are you able to get output with other nova commands such as:

nova list
nova net-list

If you get the same error you may want to look at the Nova endpoint that you setup in Keystone, as well as the service, make sure the api is running and listening on the same port as the endpoint.

mpetason gravatar imagempetason ( 2014-03-31 13:43:08 -0500 )edit

Yes I am getting all other ouptuts very well. I have restarted each service like mysql, keystone, rabbit-mq, glance, nova. But i am getting error on running this command

Indeep_Minku-OPENSTACK gravatar imageIndeep_Minku-OPENSTACK ( 2014-03-31 21:15:17 -0500 )edit

Enable debug logs in nova (by adding debug=True in 'default' section of nova.conf), restart nova-api service and then retry the command. Provide the errors in nova-api logs, that will make life easier!

unmesh-gurjar gravatar imageunmesh-gurjar ( 2014-04-01 00:09:32 -0500 )edit

I did this too. And restarted the nova-api services. But still same errors. I went through the log files and can find only one negative line ==> /var/log/nova/nova-cert.log <== 2014-04-01 21:11:25.189 1037 WARNING nova.openstack.common.db.sqlalchemy.session [req-ed77e3d1-cbd3-49ea-8383-62ccc974babc None None] SQL connection failed. 10 attempts left.

Indeep_Minku-OPENSTACK gravatar imageIndeep_Minku-OPENSTACK ( 2014-04-01 11:02:06 -0500 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2014-04-02 07:48:43 -0500

On my Centos-6.5-based test installation, I had the same problem until I noticed that the compute node, where nova-network runs, could not connect to the MySQL database. On the compute node, the following error appeared in /var/log/nova/network.log:

WARNING nova.openstack.common.db.sqlalchemy.session [req-2cb587c7-1cc4-4c54-ad23-be8f1ff7bfad None None] SQL connection failed.

I then found that most network ports on the control node, where MySQL runs, were closed. Opening the MySQL port 3306 solved this problem. Later, I was unable to boot an instance. Again, I had to open a port, this time 9292 for Glance.

edit flag offensive delete link more


So how can I open the port of MYSQL on controller node.

Indeep_Minku-OPENSTACK gravatar imageIndeep_Minku-OPENSTACK ( 2014-04-02 08:40:19 -0500 )edit

answered 2015-09-16 15:25:06 -0500

naveen venkat gravatar image

Firewall is blocking the launch of the VM. Include these in /etc/nova/nova.conf to make firewall allow launch the instances

network_api_class =

security_group_api = neutron

linuxnet_interface_driver =

firewall_driver = nova.virt.firewall.NoopFirewallDriver

edit flag offensive delete link more

answered 2014-04-02 10:31:12 -0500

dbaxps gravatar image

updated 2014-06-25 17:49:47 -0500

smaffulli gravatar image

Add to /etc/sysconfig/iptables (*filter section) :-

-A INPUT -p tcp -m multiport --dports 3306 -m comment --comment "001 mariadb incoming" -j ACCEPT 
-A INPUT -p tcp -m multiport --dports 9292 -m comment --comment "001 glance incoming" -j ACCEPT

save file.

# service iptables restart

Verify update in IPv4 iptables firewall :-

# netstat  -lntp | grep 3306
# netstat  -lntp | grep  9292

Should look like:-

    [root@dallas1 ~]# netstat  -lntp | grep 3306
    tcp        0      0  *               LISTEN      1987/mysqld         
   [root@dallas1 ~]# netstat  -lntp | grep  9292
   tcp        0      0  *               LISTEN      1197/python         
   [root@dallas1 ~]# ps -ef|grep 1197
   glance    1197     1  0 19:07 ?        00:00:00 /usr/bin/python /usr/bin/glance-api
  glance    2104  1197  0 19:07 ?        00:00:00 /usr/bin/python /usr/bin/glance-api
edit flag offensive delete link more


What is 001 mariadb incoming

Indeep_Minku-OPENSTACK gravatar imageIndeep_Minku-OPENSTACK ( 2014-04-02 10:47:31 -0500 )edit

It's just comment. Don't worry. You would better write --comment "001 mysqld incoming"

dbaxps gravatar imagedbaxps ( 2014-04-02 12:09:19 -0500 )edit

there is no such directory as sysconfig in my etc dir. Should i create it???

Indeep_Minku-OPENSTACK gravatar imageIndeep_Minku-OPENSTACK ( 2014-04-02 12:13:42 -0500 )edit

And @dbaxps I am unable to create a vmnet due to this only my nova instance does not has a vmnet ip specified. So i cannot ssh my instance. please help.

Indeep_Minku-OPENSTACK gravatar imageIndeep_Minku-OPENSTACK ( 2014-04-02 12:15:18 -0500 )edit

No. When you run #service iptables save on RH systems iptables create file /etc/sysconfig/iptables. For Ubuntu view IptablesHowTo. Using iptables-save/restore to test rules

If you edit your iptables beyond this tutorial, you may want to use the iptables-save and iptables-restore feature to edit and test your rules. To do this open the rules file in your favorite text editor (in this example gedit).

sudo sh -c "iptables-save > /etc/iptables.rules"
gksudo gedit /etc/iptables.rules

You will have a file that appears similiar to (following the example above):

# Generated by iptables-save v1.3.1 on Sun Apr 23 06:19:53 2006
:INPUT ACCEPT [368:102354]
:OUTPUT ACCEPT [92952:20764374]
-A INPUT -i lo -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -i eth0 -p ...
dbaxps gravatar imagedbaxps ( 2014-04-02 12:24:20 -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


Asked: 2014-03-31 12:21:13 -0500

Seen: 7,491 times

Last updated: Sep 16 '15