<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'>Ruben,<br><div id="1">I agree that oneimage enable should move the image to Rdy state. But not when the actual status is erroneous like the one below. <br>I normally use the enable command, to bring it back to Rdy state when I change the already published image. Such a Rdy state does not show any error information with a "onemage show" command.<br><br>Regards,<br>Anil.<br>---- On Mon, 30 Apr 2012 12:22:03 -0700 <b>Ruben S. Montero<<a href='mailto:rsmontero@opennebula.org' target='_blank'>rsmontero@opennebula.org</a>></b> wrote ---- <br></div><br><blockquote style="border-left: 1px solid #0000FF; padding-left: 6px;">Hi <br> <br>That's in fact the intended behavior of the enable command. Move to <br>ready state an image in error after manual supervision or fix. Maybe <br>the documentation should state this more clear. <br> <br>Cheers <br> <br>Ruben <br> <br>On Mon, Apr 30, 2012 at 8:57 PM, cloud.b.lab <<a subj="" mailid="cloud.b.lab%40zoho.com" href="mailto:cloud.b.lab@zoho.com" target="_blank">cloud.b.lab@zoho.com</a>> wrote: <br>> Hi, <br>> I have got the image status as "Rdy" in oneimage list, while the image was <br>> actually not copied properly and was in error state. <br>> Steps to reproduce: <br>> 1. Have two VMDK files [ Ubuntu1010-i386-flat.vmdk and <br>> Ubuntu1010-i386.vmdk] and store them in /var/images/ubuntu1010 folder. <br>> [Please note that I forgot to rename the Ubuntu1010-i386.vmdk to disk.vmdk. <br>> So don't rename now] <br>> 2. create a image template with following contents and save it as <br>> ubuntu1010.img <br>> NAME = Ubuntu_1010 <br>> PATH = /var/images/ubuntu1010 <br>> TYPE = OS <br>> 3. upload the image to datastore using following command <br>> oneimage create ~/templates/ubuntu1010.img --datastore 100 <br>> 4. You will get the following errors in oned.log and image moves to "Err" <br>> state <br>> Apr 30 23:59:17 2012 [ImG][D]: Message received: LOG I 5 cp: Copying <br>> local disk folder /var/images/ubuntu1010 to the image repository <br>> Mon Apr 30 23:59:17 2012 [ImM][I]: cp: Copying local disk folder <br>> /var/images/ubuntu1010 to the image repository <br>> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: LOG E 5 cp: <br>> Command "mv -f <br>> /var/lib/one/var/datastores/100/033af89b33c36b478aaf9ff7d2624aae/Ubuntu1010- <br>> i386-flat.vmdk <br>> <br>> Mon Apr 30 23:59:17 2012 [ImM][E]: cp: Command "mv -f <br>> /var/lib/one/var/datastores/100/033af89b33c36b478aaf9ff7d2624aae/Ubuntu1010-i386-flat.vmdk <br>> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: LOG I 5 <br>> Ubuntu1010-i386.vmdk <br>> /var/lib/one/var/datastores/100/033af89b33c36b478aaf9ff7d2624aae/disk.vmdk" <br>> failed: mv: target <br>> `/var/lib/one/var/datastores/100/033af89b33c36b478aaf9ff7d2624aae/disk.vmdk' <br>> is not a directory <br>> <br>> Mon Apr 30 23:59:17 2012 [ImM][I]: Ubuntu1010-i386.vmdk <br>> /var/lib/one/var/datastores/100/033af89b33c36b478aaf9ff7d2624aae/disk.vmdk" <br>> failed: mv: target <br>> `/var/lib/one/var/datastores/100/033af89b33c36b478aaf9ff7d2624aae/disk.vmdk' <br>> is not a directory <br>> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: LOG E 5 Error <br>> renaming disk file Ubuntu1010-i386-flat.vmdk <br>> <br>> Mon Apr 30 23:59:17 2012 [ImM][E]: Error renaming disk file <br>> Ubuntu1010-i386-flat.vmdk <br>> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: LOG E 5 <br>> Ubuntu1010-i386.vmdk to disk.vmdk <br>> <br>> Mon Apr 30 23:59:17 2012 [ImM][E]: Ubuntu1010-i386.vmdk to disk.vmdk <br>> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: LOG I 5 ExitCode: <br>> 1 <br>> <br>> Mon Apr 30 23:59:17 2012 [ImM][I]: ExitCode: 1 <br>> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: CP FAILURE 5 <br>> Error renaming disk file Ubuntu1010-i386-flat.vmdk <br>> <br>> Mon Apr 30 23:59:17 2012 [ImM][E]: Error copying image in the <br>> repository: Error renaming disk file Ubuntu1010-i386-flat.vmdk <br>> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: <br>> Ubuntu1010-i386.vmdk to disk.vmdk <br>> 5. Now oneimage list shows Err state. <br>> <br>> oneadmin@OneHost:/var/images/ubuntu1010$ oneimage list <br>> ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS <br>> 5 oneadmin oneadmin Ubuntu_1010 production 0M OS No Err <br>> 0 <br>> 6. Rename Ubuntu1010-i386.vmdk to disk.vmdk in the folder <br>> /var/images/ubuntu1010 <br>> 7. Provide the following command [I know this is not the correct command at <br>> this time] <br>> oneimage enable 5 <br>> 8. Image now moved to ready state without doing anything....... I think, <br>> this is a misleading state for an image which is actually in "Err" state. <br>> <br>> 9. oneimage list shows <br>> oneadmin@OneHost:/var/images/ubuntu1010$ oneimage list <br>> ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS <br>> 5 oneadmin oneadmin Ubuntu_1010 production 0M OS No rdy 0 <br>> 10. However oneimage show 5 - shows the correct error message, howerver with <br>> a misleading "State" value. <br>> <br>> oneadmin@OneHost:/var/images/ubuntu1010$ oneimage show 5 <br>> IMAGE 5 INFORMATION <br>> ID : 5 <br>> NAME : Ubuntu_1010 <br>> USER : oneadmin <br>> GROUP : oneadmin <br>> DATASTORE : production <br>> TYPE : OS <br>> REGISTER TIME : 04/30 23:58:17 <br>> PERSISTENT : No <br>> SOURCE : <br>> PATH : /var/images/ubuntu1010 <br>> SIZE : 0 <br>> STATE : rdy <br>> RUNNING_VMS : 0 <br>> <br>> PERMISSIONS <br>> OWNER : um- <br>> GROUP : --- <br>> OTHER : --- <br>> <br>> IMAGE TEMPLATE <br>> DEV_PREFIX="hd" <br>> ERROR=[ <br>> MESSAGE="Error copying image in the repository: Error renaming disk file <br>> Ubuntu1010-i386-flat.vmdk", <br>> TIMESTAMP="Mon Apr 30 23:59:17 2012" ] <br>> oneadmin@OneHost:/var/images/ubuntu1010$ <br>> <br>> <br>> <br>> <br>> Regards, <br>> <br>> Anil Kumar A.N. <br>> [cloud-b-lab] <br>> <br>> <br>> <br>> <br>> _______________________________________________ <br>> Users mailing list <br>> <a subj="" mailid="Users%40lists.opennebula.org" href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a> <br>> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a> <br>> <br> <br> <br> <br>-- <br>Ruben S. Montero, PhD <br>Project co-Lead and Chief Architect <br>OpenNebula - The Open Source Solution for Data Center Virtualization <br>www.OpenNebula.org | <a subj="" mailid="rsmontero%40opennebula.org" href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula <br></blockquote><br></div></body></html>