← Back to team overview

openstack team mailing list archive

Re: Command to find out list of compute nodes

 

Hi Krishnaprasad,

Yes, there are log files present in /var/log/nova/ folder, and but no
entries created in either nova-comptue.log or nova-manage.log file on that
node.

By status of the daemons, do you mean the following info:

root@bodega:~# nova-manage  service list
Binary           Host                                 Zone
Status     State Updated_At
nova-network     bodega                               nova
enabled    :-)   2012-11-16 17:19:56
nova-scheduler   bodega                               nova
enabled    :-)   2012-11-16 17:19:56
nova-compute     sonoma                               nova
enabled    XXX   2012-11-15 23:46:46   <====


root@bodega:~# ps aux | grep nova
nova     15952  0.0  0.0  37952  1308 ?        Ss   Nov14   0:00 su -s
/bin/sh -c exec nova-api --config-file=/etc/nova/nova.conf nova
nova     15953  0.0  0.7 135512 57380 ?        S    Nov14   0:00
/usr/bin/python /usr/bin/nova-api --config-file=/etc/nova/nova.conf
nova     15958  0.0  0.2  95820 22804 ?        S    Nov14   0:00
/usr/bin/python /usr/bin/nova-api --config-file=/etc/nova/nova.conf
nova     15959  0.0  0.9 247752 76880 ?        S    Nov14   0:03
/usr/bin/python /usr/bin/nova-api --config-file=/etc/nova/nova.conf
nova     15960  0.0  0.6 135512 54352 ?        S    Nov14   0:00
/usr/bin/python /usr/bin/nova-api --config-file=/etc/nova/nova.conf
nova     15979  0.0  0.0  37952  1308 ?        Ss   Nov14   0:00 su -s
/bin/sh -c exec nova-network --config-file=/etc/nova/nova.conf nova
nova     15980  0.2  0.6 206536 56664 ?        S    Nov14   8:07
/usr/bin/python /usr/bin/nova-network --config-file=/etc/nova/nova.conf
nova     16031  0.0  0.0  37952  1312 ?        Ss   Nov14   0:00 su -s
/bin/sh -c exec nova-novncproxy --config-file=/etc/nova/nova.conf nova
nova     16032  0.0  0.2 122976 24108 ?        S    Nov14   0:08
/usr/bin/python /usr/bin/nova-novncproxy --config-file=/etc/nova/nova.conf
nova     16043  0.0  0.0  37952  1308 ?        Ss   Nov14   0:00 su -s
/bin/sh -c exec nova-scheduler --config-file=/etc/nova/nova.conf nova
nova     16044  0.2  0.7 231820 61112 ?        S    Nov14   8:12
/usr/bin/python /usr/bin/nova-scheduler --config-file=/etc/nova/nova.conf
root     22062  0.0  0.0   9388   924 pts/2    S+   09:23   0:00 grep
--color=auto nova
root@bodega:~# service nova-api status
nova-api start/running, process 15952
root@bodega:~# service nova-network status
nova-network start/running, process 15979
root@bodega:~# service nova-vncproxy status
nova-vncproxy: unrecognized service
root@bodega:~# service nova-scheduler  status
nova-scheduler start/running, process 16043
root@bodega:~# 

If you need additional info on the daemons, can you please met know the
command to issue.


Regards,
Ahmed.





On 11/16/12 2:21 AM, "Narayanan, Krishnaprasad" <narayana@xxxxxxxxxxxx>
wrote:

>Hi Ahmed,
>
>Could you check whether the log files are present in the folder
>/var/log/nova/nova-compute.log on the compute node? Can you also confirm
>regarding the status of all the necessary daemons related to nova and
>other components deployed on the cloud controller node?
>
>Thanks
>Krishnaprasad Narayanan
>
>-----Original Message-----
>From: Ahmed Al-Mehdi [mailto:ahmed@xxxxxxxxxx]
>Sent: Freitag, 16. November 2012 05:29
>To: Narayanan, Krishnaprasad
>Cc: openstack@xxxxxxxxxxxxxxxxxxx
>Subject: Re: Command to find out list of compute nodes
>
>Hi Narayanan,
>
>Awesome, thank you.  There reason I was not seeing the "nova-compute"
>listed is because it did not launch on the compute node.  I did a manual
>start of "nova-compute" on the compute node, and I do see it listed on
>the control-node but with "XXX" State.
>
>root@bodega:~/ahmed/new_guide# nova-manage  service list
>
>Binary 		Host 	Zone             Status 	State	Updated_At
>nova-network 	bodega 	nova             enabled 	:-) 	2012-11-15 23:49:28
>nova-scheduler 	bodega 	nova             enabled 	:-) 	2012-11-15 23:49:28
>nova-compute 	sonoma 	nova             enabled	XXX 	2012-11-15 23:46:46
><= compute-node
>
>What I don't understand is even though nova-compute is listed on the
>control-node, the service is not running on the compute node.  That does
>not seem right.
>
>root@sonoma:~# service nova-compute status nova-compute stop/waiting
>root@sonoma:~# date;  service nova-compute start Thu Nov 15 15:48:08 PST
>2012 nova-compute start/running, process 2785 root@sonoma:~# service
>nova-compute status nova-compute stop/waiting root@sonoma:~# ps aux |
>grep nova
>root      2810  0.0  0.0   9384   924 pts/0    S+   15:49   0:00 grep
>--color=auto nova
>root@sonoma:~# service  nova-compute status nova-compute stop/waiting
>root@sonoma:~# 
>
>There are no log entries in the log files on compute-node or control-node.
> Any ideas please?
>
>
>Thank you,
>Ahmed.
>
>
>
>
>
>On 11/15/12 3:29 PM, "Narayanan, Krishnaprasad" <narayana@xxxxxxxxxxxx>
>wrote:
>
>>Hi Ahmed,
>>
>>You can use the command "nova-manage service list" from the command
>>line of control node to get the list of compute nodes along with the
>>nova-compute service status.
>>
>>Thanks
>>Krishnaprasad Narayanan
>>________________________________
>>From: openstack-bounces+narayana=uni-mainz.de@xxxxxxxxxxxxxxxxxxx
>>[openstack-bounces+narayana=uni-mainz.de@xxxxxxxxxxxxxxxxxxx] on behalf
>>of Ahmed Al-Mehdi [ahmed@xxxxxxxxxx]
>>Sent: Friday, November 16, 2012 12:19 AM
>>To: openstack@xxxxxxxxxxxxxxxxxxx
>>Subject: [Openstack] Command to find out list of compute nodes
>>
>>Hello,
>>
>>Is there a command I can issue on the control node to find out the list
>>of compute node(s) (nodes running nova-compute), and potentially any
>>additional info about the compute node(s)?
>>
>>Thank you,
>>Ahmed.
>>
>



References