<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 8/22/2014 10:00 PM, Aline Manera
wrote:<br>
</div>
<blockquote cite="mid:53F74D14.3080003@linux.vnet.ibm.com"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<br>
<div class="moz-cite-prefix">On 08/22/2014 05:02 AM, Wen Wang
wrote:<br>
</div>
<blockquote cite="mid:53F6F92C.6050707@linux.vnet.ibm.com"
type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
Hi Aline,<br>
<br>
"Manage Media" under "Edit" -> "Storage" does not work well.
There are two issues that are related to the back-end:<br>
<br>
1) Edit cdrom media fail when VM is running, error are presented
below:<br>
<pre role="list"><code class="wrappedText focusRow" role="listitem">{
</code><code class="wrappedText focusRow" role="listitem"> "reason":"KCHVMSTOR0009E: Error while updating storage device: internal error unable to execute QEMU</code><code class="wrappedText focusRow" role="listitem"> command 'change':
Could not open '/home/wangwen/Downloads/CentOS-7.0-1406-x86_64-DVD.iso': Permission</code><code class="wrappedText focusRow" role="listitem"> denied",
</code><code class="wrappedText focusRow" role="listitem">
"code":"500 Internal Server Error"
</code><code class="wrappedText focusRow" role="listitem">} </code></pre>
<br>
2) Cannot change media to location except for /var/lib/libvirt/,
which means the iso file only work under that directory,
otherwise kimchi will popup error as below:<br>
<pre role="list"><code class="wrappedText focusRow" role="listitem">{
</code><code class="wrappedText focusRow" role="listitem"> "reason":"KCHVM0019E: Unable to start virtual machine 2c057a8e-f521-4076-9a49-5e8bca8ca113-vm-1. Details</code><code class="wrappedText focusRow" role="listitem">: internal error process exited while
connecting to monitor: qemu-kvm: -drive file=/home/wangwen/Downloads</code><code class="wrappedText focusRow" role="listitem">/CentOS-7.0-1406-x86_64-DVD.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,
format=raw: could not</code><code class="wrappedText focusRow" role="listitem"> open disk image /home/wangwen/Downloads/CentOS-7.0-1406-x86_64-DVD.iso: Permission denied\n",
</code><code class="wrappedText focusRow" role="listitem">
"code":"500 Internal Server Error"
</code><code class="wrappedText focusRow" role="listitem">}
Could you please take a look at this?</code></pre>
</blockquote>
<br>
Thanks for reporting it, Wen Wang!<br>
<br>
Those are known-issues and related to the backend code.<br>
I will check it and provide a patch soon.<br>
</blockquote>
Thanks Aline, really appreciated.<br>
<blockquote cite="mid:53F74D14.3080003@linux.vnet.ibm.com"
type="cite"> <br>
<blockquote cite="mid:53F6F92C.6050707@linux.vnet.ibm.com"
type="cite">
<pre role="list"><code class="wrappedText focusRow" role="listitem">
Best Regards
Wang Wen</code>
</pre>
<br>
<div class="moz-cite-prefix">On 8/22/2014 2:11 PM, Wen Wang
wrote:<br>
</div>
<blockquote
cite="mid:1408687872-22460-1-git-send-email-wenwang@linux.vnet.ibm.com"
type="cite">
<pre wrap="">Changes:
V1 -> V2:
1) Have the "ui/css/theme-default/guest-media.css" deleted
2) Have the "edit" button in interface tab deleted when VM is running
1) Have the "Manage Media" function deleted from "Action" list
2) Enable "Edit" whether VM is running or off
3) Disable edit function of "General", "Storage", "Interface" except
"replace" of the cdrom under "Storage".
Wen Wang (2):
UI: Delete Manage Media function from action list
Allow admin user change permission settings when VM is running
ui/css/theme-default/guest-media.css | 42 -------------------------
ui/js/src/kimchi.guest_edit_main.js | 56 ++++++++++++++++++++++-----------
ui/js/src/kimchi.guest_main.js | 14 --------
ui/pages/guest-edit.html.tmpl | 2 +-
ui/pages/guest-media.html.tmpl | 57 ----------------------------------
ui/pages/guest.html.tmpl | 1 -
6 files changed, 39 insertions(+), 133 deletions(-)
delete mode 100644 ui/css/theme-default/guest-media.css
delete mode 100644 ui/pages/guest-media.html.tmpl
</pre>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>