Ask Your Question
1

Failed to get the VM console-log after Live-Migration

asked 2013-10-28 21:57:55 -0500

Dongjh gravatar image

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@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@controller:~# nova live-migration 737c9b60-a701-4691-aaac-66faf6c2a637 compute2
root@controller:~# nova show 737c9b60-a701-4691-aaac-66faf6c2a637|grep hypervisor
| OS-EXT-SRV-ATTR:hypervisor_hostname  | compute2                        
                         |
root@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
edit retag flag offensive close merge delete

Comments

1

The console.log file will be empty after migration. root@compute1:/var/lib/nova/instances/6cffced6-0cdb-4d4b-b4fd-369c55ec4cfb# nova live-migration 6cffced6-0cdb-4d4b-b4fd-369c55ec4cfb compute2 root@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 root@compute1:/var/lib/nova/instances/6cffced6-0cdb-4d4b-b4fd-369c55ec4cfb# cat console.log

Dongjh gravatar imageDongjh ( 2013-10-29 01:15:57 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-01 22:00:15 -0500

Kupo gravatar image

I believe this is a libvirt bug: https://bugzilla.redhat.com/show_bug....

edit flag offensive delete link more

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: 2013-10-28 21:57:55 -0500

Seen: 578 times

Last updated: Oct 28 '13