Bug 1135939

Summary: balloon is sent for PPC VMs
Product: Red Hat Enterprise Virtualization Manager Reporter: rhev-integ
Component: ovirt-engineAssignee: Jiri Moskovcak <jmoskovc>
Status: CLOSED ERRATA QA Contact: Lukas Svaty <lsvaty>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 3.4.1-1CC: acanan, dfediuck, ecohen, fromani, gklein, iheim, jbelka, jmoskovc, lbopf, lpeer, mavital, michal.skrivanek, rbalakri, Rhev-m-bugs, scohen, sherold, yeylon
Target Milestone: ---Keywords: ZStream
Target Release: 3.4.3   
Hardware: ppc64   
OS: Unspecified   
Whiteboard: sla
Fixed In Version: org.ovirt.engine-root-3.4.3-2 Doc Type: Bug Fix
Doc Text:
Previously, when creating a virtual machine with 'ppc64' architecture, the 'Memory Balloon Device Enabled' check box was enabled, even though balloon is not supported on that architecture. This caused VM creation to fail. Now, the check box does not appear when 'ppc64' is selected, and no balloon request is sent.
Story Points: ---
Clone Of: 1127677 Environment:
Last Closed: 2014-10-23 12:30:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1127677    
Bug Blocks: 1122979    
Attachments:
Description Flags
engine.log none

Comment 2 Jiri Belka 2014-10-03 10:33:50 UTC
2014-10-03 12:32:56,568 WARN  [org.ovirt.engine.core.bll.AddVmFromScratchCommand] (ajp-/127.0.0.1:8702-5) [5a3d3aa] CanDoAction of action AddVmFromScratch failed. Reasons:VAR__ACTION__ADD,VAR__TYPE__VM,BALLOON_REQUESTED_ON_NOT_SUPPORTED_ARCH,$clusterArch ppc64

rhevm-3.4.3-1.1.el6ev.noarch

Comment 3 Jiri Belka 2014-10-03 10:43:55 UTC
Created attachment 943697 [details]
engine.log

Comment 4 Jiri Belka 2014-10-03 10:45:16 UTC
Exact reproducer on 3.4.3:

1. new vm
2. select ppc clstr
3. put vm name
4. click enter

~~~
Error while executing action:

gggg:

    Cannot add VM. Balloon is not supported on 'ppc64' architecture.
~~~

no vm is created!

Comment 5 Jiri Belka 2014-10-03 11:41:29 UTC
fyi in New VM -> Resource allocation there's no 'Memory Balloon Device Enabled' checkbox when ppc cluster is selected. So it's ok from UI perspective but balloon is still "loaded" in the background.

Comment 6 Michal Skrivanek 2014-10-03 12:24:35 UTC
we're running out of time. Jiri, please update with investigation

Comment 7 Jiri Belka 2014-10-03 13:04:18 UTC
workaround

curl -X POST -H "Accept: application/xml" -H "Content-Type: application/xml" \
    -u admin@internal -k \
    -d "<vm><name>ppc64</name> \
    <cluster><name>ppc64</name></cluster> \
    <template><name>Blank</name></template> \
    <os type='rhel_6_ppc64'><boot dev='hd'/></os><memory_policy><ballooning>false</ballooning></memory_policy></vm>" \
    https://[engine]/api/vm

Comment 8 Jiri Moskovcak 2014-10-06 08:25:30 UTC
(In reply to Michal Skrivanek from comment #6)
> we're running out of time. Jiri, please update with investigation

The problem was, that the first patch just hides the balloon checkbox, but it's value is still true. The second patch changes hides it & sets it to false.

Comment 9 Lukas Svaty 2014-10-14 11:27:50 UTC
From the webadmin side this is VERIFIED.
However admin still needs to disable balloon manually when creating VM via other APIs. So this shout be set defaultly by engine. This will be tracked in BZ#1151599. If anybody thinks it should be tracked here re-open it.

Comment 11 errata-xmlrpc 2014-10-23 12:30:20 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.

https://rhn.redhat.com/errata/RHBA-2014-1712.html