Bug 796570

Summary: virt-manager should stay on the hardware details screen after changing the memory of running lxc guest.
Product: Red Hat Enterprise Linux 6 Reporter: Daisy Wu <jwu>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.3CC: gkong, mzhan, rwu, yupzhang, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
No documentation needed
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 12:39:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Daisy Wu 2012-02-23 08:31:04 UTC
Description of problem:
After changing the memory of running lxc guest, virt-manager display the console screen, it should stay on the hardware details screen.

Version-Release number of selected component (if applicable):
virt-manager-0.9.0-10.el6
libvirt-0.9.10-1.el6.x86_64
python-virtinst-0.600.0-7.el6.noarch
qemu-kvm-0.12.1.2-2.230.el6.x86_64

# uname -a
Linux localhost.localdomain 2.6.32-220.el6.x86_64 #1 SMP Wed Nov 9 08:03:13 EST 2011 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:
always

Steps to Reproduce:
1. Prepare a normal LXC guest:
   # virsh -c lxc:/// dumpxml demo
  <domain type='lxc' id='7179'>
  <name>demo</name>
  <uuid>41645ca6-0053-8026-8c21-8524400189f5</uuid>
  <memory>1048576</memory>
  <currentMemory>1048576</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64'>exe</type>
    <init>/bin/sh</init>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/libexec/libvirt_lxc</emulator>
    <interface type='network'>
      <mac address='00:16:3e:5d:4d:f5'/>
      <source network='default'/>
      <target dev='veth1'/>
    </interface>
    <console type='pty' tty='/dev/pts/2'>
      <source path='/dev/pts/2'/>
      <target type='lxc' port='0'/>
      <alias name='console0'/>
    </console>
  </devices>
  <seclabel type='none'/>
</domain>

2. Run the guest.
3. Navigate to the "Show virtual hardware details" screen.
4. Click Memory item ->change the maximum allocation to 2048.
5. Click Apply button.
6. Check the screen show.

Actual results:
virt-manager jump to the "Show the graphical console" screen.

Expected results:
virt-manager should stay on the "Show virtual hardware details" screen.

Additional info:

Comment 2 Cole Robinson 2012-03-02 14:16:59 UTC
Thanks for the report, fixed upstream:

http://git.fedorahosted.org/git?p=virt-manager.git;a=commit;h=3e350aa69172c1bf6f9fade08ee036a941136b5c

Comment 3 Cole Robinson 2012-04-02 23:25:05 UTC
Fixed in virt-manager-0.9.0-11.el6

Comment 6 Daisy Wu 2012-04-05 06:30:50 UTC
This bug verified with:
virt-manager-0.9.0-11.el6
libvirt-0.9.10-9.el6.x86_64
python-virtinst-0.600.0-8.el6.noarch
qemu-kvm-0.12.1.2-2.269.el6.x86_64

Steps:
1. Prepare a normal LXC guest:
# virsh -c lxc:/// dumpxml LXC
<domain type='lxc'>
  <name>LXC</name>
  <uuid>0a46da9a-1811-9633-8f9d-d8d9a7ba7955</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>1049600</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64'>exe</type>
    <init>/bin/sh</init>
  </os>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/libexec/libvirt_lxc</emulator>
    <interface type='bridge'>
      <mac address='00:16:3e:a2:40:58'/>
      <source bridge='br0'/>
    </interface>
    <console type='pty'>
      <target type='lxc' port='0'/>
    </console>
  </devices>
</domain>

2. Run the guest.
3. Navigate to the "Show virtual hardware details" screen.
4. Click Memory item ->change the maximum allocation to 2048.
5. Click Apply button.
6. virt-manager stay on the "Show virtual hardware details" screen.

Changed the status to VERIFIED.

Comment 7 Cole Robinson 2012-06-12 15:27:36 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No documentation needed

Comment 9 errata-xmlrpc 2012-06-20 12:39:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0785.html