← Back to team overview

openstack team mailing list archive

Re: Command to find out list of compute nodes

 

I have time sync'ed the control and compute node.  Still see the "XXX".  I
copied the ntp.conf file from the control-node and compute-node onto paste
bin - http://pastebin.com/HsnzcRHr.

There are a few things that I find really confusing:

1. Why does "nova-manage service-list" display the service "nova-compute"
(be with status XXX) on compute-node when it is not even running on
compute-node.  Is it because the data being displayed is stale, possibly
fetched from the db?

root@bodega:~# nova-manage  service list    <===  control-node
Binary		Host 	Zone             Status     State Updated_At
nova-network 	bodega 	nova             enabled    :-)   2012-11-16 18:23:00
nova-scheduler 	bodega 	nova             enabled    :-)   2012-11-16
18:23:00
nova-compute 	sonoma 	nova             enabled    XXX   2012-11-15
23:46:46  <===
nova-cert 	bodega 	nova enabled    :-)   2012-11-16 18:22:59
nova-consoleauth bodega                               nova
enabled    :-)   2012-11-16 18:22:59

root@sonoma:/var/log/nova# ps aux | grep nova      <=== compute-node

root      5013  0.0  0.0   9384   924 pts/0    S+   10:54   0:00 grep
--color=auto nova
root@sonoma:/var/log/nova# service  nova-compute status
nova-compute stop/waiting
root@sonoma:/var/log/nova#



2. The other thing that is totally confusing me is why I cannot start
nova-compute on the compute-node, and I am not getting any log messages in
any of the log files on the control-node or compute node.  Can you please
help.

root@sonoma:/var/log/nova# ls -l /var/log/nova/*log
-rw-r--r-- 1 nova nova 0 Nov 16 06:40 /var/log/nova/nova-compute.log
-rw-r--r-- 1 nova nova 0 Nov 16 06:40 /var/log/nova/nova-manage.log
root@sonoma:/var/log/nova#
root@sonoma:/var/log/nova#
root@sonoma:/var/log/nova# service nova-compute statu
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service nova-compute statu

The script you are attempting to invoke has been converted to an Upstart
job, but statu is not supported for Upstart jobs.
root@sonoma:/var/log/nova# service nova-compute status
nova-compute stop/waiting
root@sonoma:/var/log/nova#
root@sonoma:/var/log/nova# service nova-compute start
nova-compute start/running, process 5064
root@sonoma:/var/log/nova#
root@sonoma:/var/log/nova# service nova-compute status
nova-compute stop/waiting
root@sonoma:/var/log/nova# ls -l /var/log/nova/*log
-rw-r--r-- 1 nova nova 0 Nov 16 06:40 /var/log/nova/nova-compute.log
-rw-r--r-- 1 nova nova 0 Nov 16 06:40 /var/log/nova/nova-manage.log
root@sonoma:/var/log/nova#


(Don't worry about the log file being 0 bytes, as they just rolled over
this am.)

Can you please help me understand what is going on.  Would appreciate any
help / pointers.  I copied the nova.conf file from the control and compute
node onto the pastebin site.

Thank you,
Ahmed.


On 11/16/12 9:28 AM, "Ahmed Al-Mehdi" <ahmed@xxxxxxxxxx> wrote:

>Hello,
>
>The two servers time clock is off by 2 seconds, so obvious not time
>synced.  I will work on getting that fixed.  The compute node is ahead by
>about 2 seconds.  Would that cause such a problem?
>
>Regards,
>Ahmed.
>
>
>On 11/16/12 8:56 AM, "Narayanan, Krishnaprasad" <narayana@xxxxxxxxxxxx>
>wrote:
>
>>Hi Ahmed,
>>
>>If I understand the email correctly from Gong Yong Sheng, he is asking
>>you to check the status of ntp server on control and compute nodes.
>>
>>Thanks
>>Krishnaprasad Narayanan
>>
>>-----Original Message-----
>>From: gong yong sheng [mailto:gongysh@xxxxxxxxxxxxxxxxxx]
>>Sent: Freitag, 16. November 2012 13:56
>>To: Ahmed Al-Mehdi
>>Cc: Narayanan, Krishnaprasad; openstack@xxxxxxxxxxxxxxxxxxx
>>Subject: Re: [Openstack] Command to find out list of compute nodes
>>
>>Can u check if the time is synchronized? Times on compute node and
>>control node should be synchronized.
>>On 11/16/2012 12:28 PM, Ahmed Al-Mehdi wrote:
>>> 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.
>>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
>
>
>_______________________________________________
>Mailing list: https://launchpad.net/~openstack
>Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>Unsubscribe : https://launchpad.net/~openstack
>More help   : https://help.launchpad.net/ListHelp



References