Ask Your Question
0

openstack-nova-api dead but pid file exists

asked 2014-08-22 14:26:59 -0500

kolobok gravatar image

updated 2014-08-22 14:28:52 -0500

Hello I wonder if anybody can help me out I am hitting the following after RDO install

[root@openstack /(keystone_admin)]# nova image-list
ERROR: [Errno 111] Connection refused

root@openstack /(keystone_admin)]# keystone service-list
+----------------------------------+------------+--------------+--------------------------------+
|                id                |    name    |     type     |          description           |
+----------------------------------+------------+--------------+--------------------------------+
| 0f8f41ba329e482fac1a92aa17294361 | ceilometer |   metering   |   Openstack Metering Service   |
| a7049546d5434181bdbeb73e5b2bbbbf |   cinder   |    volume    |         Cinder Service         |
| 3a53437058cb46d292cd0edda6bd63b1 | cinder_v2  |   volumev2   |       Cinder Service v2        |
| 488c300ad0d94d28ab44981683a0ee91 |  cinderv2  |   volumev2   |       Cinder Service v2        |
| f3cc3879b96e4d8cb5bc858dbdb9272c |   glance   |    image     |    Openstack Image Service     |
| 6dee0c1fec684e0181192f12157f729a |  keystone  |   identity   |   OpenStack Identity Service   |
| 00e607d8a0434d7d88faa36e11037cf7 |  neutron   |   network    |   Neutron Networking Service   |
| 04b7a52d8bdb4bba91873b8754b3c00a |    nova    |   compute    |   Openstack Compute Service    |
| 872bf978e6494749993dbf363809de9c |  nova_ec2  |     ec2      |          EC2 Service           |
| a7596838b02f49718edc85affd35cc23 |   swift    | object-store | Openstack Object-Store Service |
| 377c7b81e58244b2bb4ab31d84efeb62 |  swift_s3  |      s3      |      Openstack S3 Service      |
+----------------------------------+------------+--------------+--------------------------------+
[root@openstack /(keystone_admin)]# nova-manage service list
Binary           Host                                 Zone             Status     State Updated_At
nova-consoleauth openstack                      internal         enabled    :-)   2014-08-22 19:18:55
nova-scheduler   openstack                      internal         enabled    :-)   2014-08-22 19:18:55
nova-conductor   openstack                      internal         enabled    :-)   2014-08-22 19:18:55
nova-compute     openstack                      nova             enabled    :-)   2014-08-22 19:18:57
nova-cert        openstack                      internal         enabled    :-)   2014-08-22 19:18:55
nova-console     openstack                      internal         enabled    :-)   2014-08-22 19:18:55

I have followed this http://stackoverflow.com/questions/22616974/nova-error-errno-111-connection-refused (http://stackoverflow.com/questions/22...) but both of the services return the same result

dead but pid file exists

Best Regards

edit retag flag offensive close merge delete

Comments

netstat -antp | grep 8775 Produces no output

    ps -ef | grep 1580
    root     19090 69527  0 15:37 pts/0    00:00:00 grep 1580
kolobok gravatar imagekolobok ( 2014-08-22 14:37:01 -0500 )edit

Post /var/log/nova/nova-api.log

dbaxps gravatar imagedbaxps ( 2014-08-22 15:29:20 -0500 )edit

2014-08-22 16:52:52.900 25202 INFO nova.wsgi [-] WSGI server has stopped. 2014-08-22 16:52:52.900 25185 INFO nova.openstack.common.service [-] Parent process has died unexpectedly, exiting 2014-08-22 16:52:52.900 25281 INFO nova.wsgi [-] WSGI server has stopped. 2014-08-22 16:52:52.901 25185 INFO nova.wsgi [-] Stopping WSGI server. 2014-08-22 16:52:52.901 25211 INFO nova.wsgi [-] WSGI server has stopped. 2014-08-22 16:52:52.901 25169 INFO nova.wsgi [-] WSGI server has stopped. 2014-08-22 16:52:52.901 25293 INFO nova.wsgi [-] WSGI server has stopped. 2014-08-22 16:52:52.901 25185 INFO nova.wsgi [-] WSGI server has stopped.

kolobok gravatar imagekolobok ( 2014-08-22 15:54:56 -0500 )edit

Edit your question, don't add details to the comments as that makes things hard to read.

smaffulli gravatar imagesmaffulli ( 2014-08-22 16:02:03 -0500 )edit

No problem will do

kolobok gravatar imagekolobok ( 2014-08-22 16:42:20 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-08-25 00:16:30 -0500

Anand TS gravatar image

updated 2014-08-25 15:42:52 -0500

smaffulli gravatar image

Hello, Check that your openstack-nova-metadata-api is running, If that service is running , try to stop openstack-nova-metadata-api service and start openstack-nova-api service.

I think by default packstack put entry like this in your /etc/nova/nova.conf file

enabled_apis=ec2,osapi_compute,metadata

If there is metadata entry is there in enabled apis, no need to start openstack-nova-metadata-api . Hope it helps.

edit flag offensive delete link more

Comments

I have removed metadata from the enabled_apis and started nova-api and it works :). Thank you

kolobok gravatar imagekolobok ( 2014-08-25 08:27:41 -0500 )edit

are you sure neutron wont use this in neutron_metadata_agent service ?

amirali gravatar imageamirali ( 2015-08-07 10:17:44 -0500 )edit
0

answered 2014-08-22 14:34:56 -0500

dbaxps gravatar image

updated 2014-08-25 19:17:28 -0500

Check on your system :-

  [root@icehouse1 nova(keystone_admin)]# netstat -antp | grep 8775
tcp        0      0 0.0.0.0:8775            0.0.0.0:*               LISTEN      849/python          
[root@icehouse1 nova(keystone_admin)]# netstat -antp | grep 8774
tcp        0      0 0.0.0.0:8774            0.0.0.0:*               LISTEN      849/python          
[root@icehouse1 nova(keystone_admin)]# netstat -antp | grep 8773
tcp        0      0 0.0.0.0:8773            0.0.0.0:*               LISTEN      849/python          
[root@icehouse1 nova(keystone_admin)]# ps -ef | grep 849
nova       849     1  0 16:03 ?        00:00:52 /usr/bin/python /usr/bin/nova-api
nova      3027   849  0 16:04 ?        00:00:00 /usr/bin/python /usr/bin/nova-api
 nova      3028   849  0 16:04 ?        00:00:00 /usr/bin/python /usr/bin/nova-api
nova      3154   849  0 16:04 ?        00:00:04 /usr/bin/python /usr/bin/nova-api
nova      3155   849  0 16:04 ?        00:00:04 /usr/bin/python /usr/bin/nova-api
nova      3271   849  0 16:04 ?        00:00:00 /usr/bin/python /usr/bin/nova-api
nova      3272   849  0 16:04 ?        00:00:00 /usr/bin/python /usr/bin/nova-api

That is a normal automatic packstack comletition :

[root@icehouse1 ~(keystone_admin)]# systemctl list-units | grep nova
openstack-nova-api.service                                                                       loaded active running   OpenStack Nova API Server
openstack-nova-cert.service                                                                      loaded active running   OpenStack Nova Cert Server
openstack-nova-conductor.service                                                                 loaded active running   OpenStack Nova Conductor Server
openstack-nova-consoleauth.service                                                               loaded active running   OpenStack Nova VNC console auth Server
openstack-nova-novncproxy.service                                                                loaded active running   OpenStack Nova NoVNC Proxy Server
openstack-nova-scheduler.service                                                                 loaded active running   OpenStack Nova Scheduler Server
[root@icehouse1 ~(keystone_admin)]# service openstack-nova-metadata-api status
Redirecting to /bin/systemctl status  openstack-nova-metadata-api.service
openstack-nova-metadata-api.service - OpenStack Nova Metadata API Server
   Loaded: loaded (/usr/lib/systemd/system/openstack-nova-metadata-api.service; disabled)
   Active: inactive (dead)

[root@icehouse1 nova(keystone_admin)]# cat nova.conf | grep _apis | grep ec2
enabled_apis=ec2,osapi_compute,metadata
edit flag offensive delete link more

Comments

The services are not running .

[root@openstack /(keystone_admin)]# netstat -antp | grep 8775 [root@openstack /(keystone_admin)]#

     [root@openstack /(keystone_admin)]# ps -ef | grep 1580 
     root     20926 69527  0 17:27 pts/0    00:00:00 grep 1580
kolobok gravatar imagekolobok ( 2014-08-22 16:33:09 -0500 )edit

2014-08-22 17:44:24.911 58908 INFO nova.osapi_compute.wsgi.server [-] (58908) wsgi starting up on http://0.0.0.0:8774/ 2014-08-22 17:44:24.999 58741 CRITICAL nova [-] OSError: [Errno 13] Permission denied 2014-08-22 17:44:24.999 58741 TRACE nova Traceback (most recent call last): 2014-08-22 17:44:24.999 58741 TRACE nova File "/usr/bin/nova-api", line 10, in 2014-08-22 17:44:24.999 58741 TRACE nova sys.exit(main()) 2014-08-22 17:44:24.999 58741 TRACE nova File "/usr/lib/python2.6/site-packages/nova/cmd/api.py", line 53, in main 2014-08-22 17:44:24.999 58741 TRACE nova server = service.WSGIService(api, use_ssl=should_use_ssl) 2014-08-22 17:44:24.999 58741 TRACE nova File "/usr/lib/python2.6/site-packages/nova/service.py", line 329, in __init__ 2014-08-22 17:44:24.999 58741 TRACE nova self.manager = self._get_manager() 2014-08-22 17:44:24.999 58741 TRACE ...(more)

kolobok gravatar imagekolobok ( 2014-08-22 16:47:18 -0500 )edit

On what OS you did AIO RDO install , was it set up cleanly ? Which instructions you followed ? It looks for me as installation setup error. What is SELINUX status? Also , please , post openstack-status report.

dbaxps gravatar imagedbaxps ( 2014-08-23 01:36:06 -0500 )edit

Manual intervention is required to break described in answer openstack-nova-* services config

dbaxps gravatar imagedbaxps ( 2014-08-26 05:09:19 -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-08-22 14:26:59 -0500

Seen: 3,260 times

Last updated: Aug 25 '14