Merge lp:~zulcss/nova/nova-lp-749973 into lp:~hudson-openstack/nova/trunk

Proposed by Chuck Short
Status: Merged
Approved by: Jay Pipes
Approved revision: 943
Merged at revision: 944
Proposed branch: lp:~zulcss/nova/nova-lp-749973
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 13 lines (+2/-1)
1 file modified
nova/virt/libvirt_conn.py (+2/-1)
To merge this branch: bzr merge lp:~zulcss/nova/nova-lp-749973
Reviewer Review Type Date Requested Status
Jay Pipes (community) Approve
Vish Ishaya (community) Approve
Review via email: mp+56374@code.launchpad.net

Description of the change

This branch contains the fix for lp:749973. VNC is assumed that is default for all in libvirt which LXC does not support yet.

Regards
chuck

To post a comment you must log in.
Revision history for this message
Vish Ishaya (vishvananda) wrote :

personally I would have done this with an and in the if, but it is more just a style preference so I won't block the merge on that.

review: Approve
Revision history for this message
Jay Pipes (jaypipes) wrote :

lgtm.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'nova/virt/libvirt_conn.py'
2--- nova/virt/libvirt_conn.py 2011-04-04 18:39:39 +0000
3+++ nova/virt/libvirt_conn.py 2011-04-05 14:27:34 +0000
4@@ -970,7 +970,8 @@
5 'nics': nics}
6
7 if FLAGS.vnc_enabled:
8- xml_info['vncserver_host'] = FLAGS.vncserver_host
9+ if FLAGS.libvirt_type != 'lxc':
10+ xml_info['vncserver_host'] = FLAGS.vncserver_host
11 if not rescue:
12 if instance['kernel_id']:
13 xml_info['kernel'] = xml_info['basepath'] + "/kernel"