Bug 788118

Summary: libvir: operation virDomainSetVcpus/virDomainSetMemory forbidden for read only access
Product: [Community] Spacewalk Reporter: Pavel Studeník <pstudeni>
Component: ClientsAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.6CC: ovirt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-02 08:16:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 677498, 871344    

Description Pavel Studeník 2012-02-07 14:38:47 UTC
Description of problem:
I can't change allocation of CPU and RAM of the guest on RHN/Virtualization (webui tab "virtualization"). I used KVM virtualization. Application rhn_check failed with error (6), 'Fatal error in Python code occured, that is VIR_FROM_DOM (Error when operating on a domain) from virErrorDomain. 

* libvir: Domain error : operation virDomainSetVcpus forbidden for read only access
* libvir: Domain error : operation virDomainSetMemory forbidden for read only access

Version-Release number of selected component (if applicable):
rhn-virtualization-host-5.4.32-1.el5

How reproducible:
Always

Steps to Reproduce:
1. Install kvm guest with RHEL5/RHEL6
2. Try to change size of memory or number of CPU. WebUI-> choose host -> tab "virtualization" -> choose guest -> 
  "Set virtual CPU/Memory allocation to equal.."
3. rhn_check -vv

Actual results:
When I tried change number of cpu:
>> rhn_check -vv 
...
libvir: Domain error : operation virDomainSetVcpus forbidden for read only access
D: Sending back response((6,), 'Fatal error in Python code occured', {})

When I tried change size of memory:
>> rhn_check -vv 
...
libvir: Domain error : operation virDomainSetMemory forbidden for read only access
D: Sending back response((6,), 'Fatal error in Python code occured', {})

Comment 1 Milan Zázrivec 2012-04-02 08:16:07 UTC
This problem has been resolved in bug #796658

rhn-virtualization-host-5.4.32-1.el5 comes from Spacewalk, so I'm changing
the bug product/component to Spacewalk/Client.

*** This bug has been marked as a duplicate of bug 796658 ***