[Openstack] Failed to get the VM console-log after Live-Migration

董建华 dongjh at nci.com.cn
Tue Oct 29 06:09:11 UTC 2013


Yes, the file is there. But after migration, this file was zeroed.

root at compute1:/var/lib/nova/instances# nova list
+--------------------------------------+---------+--------+------------+-------------+----------------------+
| ID                                   | Name    | Status | Task State | Power State | Networks             |
+--------------------------------------+---------+--------+------------+-------------+----------------------+
| 6cffced6-0cdb-4d4b-b4fd-369c55ec4cfb | CirrOS1 | ACTIVE | None       | Running     | vmnet=192.168.11.191 |
| e9fcc408-01e6-4eec-8cb7-55c49702e99d | CirrOS2 | ACTIVE | None       | Running     | vmnet=192.168.11.192 |
| dac5ee62-0f4d-4972-af4f-cbbb592fa6ef | CirrOS3 | ACTIVE | None       | Running     | vmnet=192.168.11.193 |
| e6a14027-a301-42c0-928d-133a23c166cb | CirrOS4 | ACTIVE | None       | Running     | vmnet=192.168.11.194 |
+--------------------------------------+---------+--------+------------+-------------+----------------------+
root at compute1:/var/lib/nova/instances# cd 6cffced6-0cdb-4d4b-b4fd-369c55ec4cfb

root at compute1:/var/lib/nova/instances/6cffced6-0cdb-4d4b-b4fd-369c55ec4cfb# ls -l console.log
-rw-rw---- 1 libvirt-qemu kvm 19016 Oct 29 12:33 console.log

root at compute1:/var/lib/nova/instances/6cffced6-0cdb-4d4b-b4fd-369c55ec4cfb# nova live-migration 6cffced6-0cdb-4d4b-b4fd-369c55ec4cfb compute2

root at compute1:/var/lib/nova/instances/6cffced6-0cdb-4d4b-b4fd-369c55ec4cfb# ls -l console.log
-rw-rw---- 1 root root 0 Oct 29 14:07 console.log

From: Razique Mahroua
Date: 2013-10-29 13:56
To: 董建华
CC: openstack
Subject: Re: [Openstack] Failed to get the VM console-log after Live-Migration
Ok
on the compute node, can you see the file being populated? (console.log within the instance’ directory)


On Oct 28, 2013, at 22:53, 董建华 <dongjh at nci.com.cn> wrote:


root at compute1:/etc/nova# cat nova.conf|grep vnc

vncserver_listen=0.0.0.0
vncserver_proxyclient_address=10.10.10.182
novncproxy_base_url=http://192.168.11.180:6080/vnc_auto.html


10.10.10.182 is the internal IP of the compute node. 192.168.11.180 is the public IP of the controller node.

From: Razique Mahroua
Date: 2013-10-29 13:50
To: 董建华
CC: openstack
Subject: Re: [Openstack] Failed to get the VM console-log after Live-Migration
Hi,  
isn’t related to the option « vncserver_proxyclient_address »? in your nova.conf
Not sure about that one…


On Oct 28, 2013, at 19:53, 董建华 <dongjh at nci.com.cn> wrote:


Hi,

After VM Live-Migration, i failed to get console-log for the VM, is it normal ?

nova show 737c9b60-a701-4691-aaac-66faf6c2a637|grep hypervisor
| OS-EXT-SRV-ATTR:hypervisor_hostname  | compute1          
                                       |
root at controller:~# nova console-log 737c9b60-a701-4691-aaac-66faf6c2a637|tail -20
failed to read iid from metadata. tried 20
no results found for mode=net. up 41.29. searched: nocloud configdrive ec2
failed to get instance-id of datasource
Starting dropbear sshd: generating rsa key... generating dsa key... OK
=== network info ===
if-info: lo,up,127.0.0.1,8,::1
if-info: eth0,up,192.168.11.191,24,fe80::f816:3eff:fe71:cdeb
ip-route:default via 192.168.11.253 dev eth0
ip-route:192.168.11.0/24 dev eth0  src 192.168.11.191
=== datasource: None None ===
=== cirros: current=0.3.1 uptime=41.62 ===
  ____               ____  ____
/ __/ __ ____ ____ / __ \/ __/
/ /__ / // __// __// /_/ /\ \
\___//_//_/  /_/   \____/___/
   http://cirros-cloud.net


login as 'cirros' user. default password: 'cubswin:)'. use 'sudo' for root.
cirros login:

root at controller:~# nova live-migration 737c9b60-a701-4691-aaac-66faf6c2a637 compute2
root at controller:~# nova show 737c9b60-a701-4691-aaac-66faf6c2a637|grep hypervisor
| OS-EXT-SRV-ATTR:hypervisor_hostname  | compute2                        
                         |
root at controller:~# nova console-log 737c9b60-a701-4691-aaac-66faf6c2a637

I just found the following message in nova-compute.log on the node compute2.
2013-10-29 10:39:59.389 2976 AUDIT nova.compute.manager [req-2b9bd6b1-f001-4de5-a972-92d1bdd38682 eecb2b5f2b4f481980a5546af680481c 382ce85ef00948a3a1442e44f9d033ed] [instance: 737c9b60-a701-4691-aaac-66faf6c2a637] Get console output 
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131029/4b989c70/attachment.html>


More information about the Openstack mailing list