Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 291732 Details for
Bug 428868
[PATCH] able to set maxmem lower than current mem allocation
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
disallows setting the value of maxmem below current mem value
virt-manager-fix-maxmem-below-current.patch (text/plain), 1.80 KB, created by
Adam Stokes
on 2008-01-15 19:26:24 UTC
(
hide
)
Description:
disallows setting the value of maxmem below current mem value
Filename:
MIME Type:
Creator:
Adam Stokes
Created:
2008-01-15 19:26:24 UTC
Size:
1.80 KB
patch
obsolete
>diff -up virt-manager-0.4.0/src/virtManager/details.py.stokes virt-manager-0.4.0/src/virtManager/details.py >--- virt-manager-0.4.0/src/virtManager/details.py.stokes 2008-01-15 13:55:07.000000000 -0500 >+++ virt-manager-0.4.0/src/virtManager/details.py 2008-01-15 14:02:32.000000000 -0500 >@@ -443,12 +443,20 @@ class vmmDetails(gobject.GObject): > def config_memory_apply(self, src): > status = self.vm.status() > if status in [ libvirt.VIR_DOMAIN_SHUTOFF, libvirt.VIR_DOMAIN_CRASHED ]: >- memory = self.window.get_widget("config-maxmem").get_adjustment().value >- logging.info("Setting max memory for " + self.vm.get_uuid() + " to " + str(memory)) >- self.vm.set_max_memory(memory*1024) >- memory = self.window.get_widget("config-memory").get_adjustment().value >- logging.info("Setting memory for " + self.vm.get_uuid() + " to " + str(memory)) >- self.vm.set_memory(memory*1024) >+ maxmem = self.window.get_widget("config-maxmem").get_adjustment() >+ curmem = self.window.get_widget("config-memory").get_adjustment() >+ if maxmem.value < curmem.value: >+ logging.error("Failed to set max memory " + str(maxmem.value) + \ >+ " below current memory " + str(curmem.value)) >+ maxmem.value = curmem.value >+ # set max memory allocated for domain >+ self.vm.set_max_memory(maxmem.value*1024) >+ # set currently allocated memory >+ self.vm.set_memory(curmem.value*1024) >+ logging.info("Setting max-memory for " + self.vm.get_uuid() + \ >+ " to " + str(maxmem.value)) >+ logging.info("Setting memory for " + self.vm.get_uuid() + \ >+ " to " + str(curmem.value)) > > self.window.get_widget("config-memory-apply").set_sensitive(False) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 428868
: 291732