[one-users] OpenNebula 3.4- A possible misleading "Rdy" state in "oneimage list"
cloud.b.lab
cloud.b.lab at zoho.com
Mon Apr 30 12:56:01 PDT 2012
Ruben,
I agree that oneimage enable should move the image to Rdy state. But not when the actual status is erroneous like the one below.
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.
Regards,
Anil.
---- On Mon, 30 Apr 2012 12:22:03 -0700 Ruben S. Montero<rsmontero at opennebula.org> wrote ----
Hi
That's in fact the intended behavior of the enable command. Move to
ready state an image in error after manual supervision or fix. Maybe
the documentation should state this more clear.
Cheers
Ruben
On Mon, Apr 30, 2012 at 8:57 PM, cloud.b.lab <cloud.b.lab at zoho.com> wrote:
> Hi,
> I have got the image status as "Rdy" in oneimage list, while the image was
> actually not copied properly and was in error state.
> Steps to reproduce:
> 1. Have two VMDK files [ Ubuntu1010-i386-flat.vmdk and
> Ubuntu1010-i386.vmdk] and store them in /var/images/ubuntu1010 folder.
> [Please note that I forgot to rename the Ubuntu1010-i386.vmdk to disk.vmdk.
> So don't rename now]
> 2. create a image template with following contents and save it as
> ubuntu1010.img
> NAME = Ubuntu_1010
> PATH = /var/images/ubuntu1010
> TYPE = OS
> 3. upload the image to datastore using following command
> oneimage create ~/templates/ubuntu1010.img --datastore 100
> 4. You will get the following errors in oned.log and image moves to "Err"
> state
> Apr 30 23:59:17 2012 [ImG][D]: Message received: LOG I 5 cp: Copying
> local disk folder /var/images/ubuntu1010 to the image repository
> Mon Apr 30 23:59:17 2012 [ImM][I]: cp: Copying local disk folder
> /var/images/ubuntu1010 to the image repository
> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: LOG E 5 cp:
> Command "mv -f
> /var/lib/one/var/datastores/100/033af89b33c36b478aaf9ff7d2624aae/Ubuntu1010-
> i386-flat.vmdk
>
> Mon Apr 30 23:59:17 2012 [ImM][E]: cp: Command "mv -f
> /var/lib/one/var/datastores/100/033af89b33c36b478aaf9ff7d2624aae/Ubuntu1010-i386-flat.vmdk
> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: LOG I 5
> Ubuntu1010-i386.vmdk
> /var/lib/one/var/datastores/100/033af89b33c36b478aaf9ff7d2624aae/disk.vmdk"
> failed: mv: target
> `/var/lib/one/var/datastores/100/033af89b33c36b478aaf9ff7d2624aae/disk.vmdk'
> is not a directory
>
> Mon Apr 30 23:59:17 2012 [ImM][I]: Ubuntu1010-i386.vmdk
> /var/lib/one/var/datastores/100/033af89b33c36b478aaf9ff7d2624aae/disk.vmdk"
> failed: mv: target
> `/var/lib/one/var/datastores/100/033af89b33c36b478aaf9ff7d2624aae/disk.vmdk'
> is not a directory
> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: LOG E 5 Error
> renaming disk file Ubuntu1010-i386-flat.vmdk
>
> Mon Apr 30 23:59:17 2012 [ImM][E]: Error renaming disk file
> Ubuntu1010-i386-flat.vmdk
> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: LOG E 5
> Ubuntu1010-i386.vmdk to disk.vmdk
>
> Mon Apr 30 23:59:17 2012 [ImM][E]: Ubuntu1010-i386.vmdk to disk.vmdk
> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: LOG I 5 ExitCode:
> 1
>
> Mon Apr 30 23:59:17 2012 [ImM][I]: ExitCode: 1
> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received: CP FAILURE 5
> Error renaming disk file Ubuntu1010-i386-flat.vmdk
>
> Mon Apr 30 23:59:17 2012 [ImM][E]: Error copying image in the
> repository: Error renaming disk file Ubuntu1010-i386-flat.vmdk
> Mon Apr 30 23:59:17 2012 [ImG][D]: Message received:
> Ubuntu1010-i386.vmdk to disk.vmdk
> 5. Now oneimage list shows Err state.
>
> oneadmin at OneHost:/var/images/ubuntu1010$ oneimage list
> ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS
> 5 oneadmin oneadmin Ubuntu_1010 production 0M OS No Err
> 0
> 6. Rename Ubuntu1010-i386.vmdk to disk.vmdk in the folder
> /var/images/ubuntu1010
> 7. Provide the following command [I know this is not the correct command at
> this time]
> oneimage enable 5
> 8. Image now moved to ready state without doing anything....... I think,
> this is a misleading state for an image which is actually in "Err" state.
>
> 9. oneimage list shows
> oneadmin at OneHost:/var/images/ubuntu1010$ oneimage list
> ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS
> 5 oneadmin oneadmin Ubuntu_1010 production 0M OS No rdy 0
> 10. However oneimage show 5 - shows the correct error message, howerver with
> a misleading "State" value.
>
> oneadmin at OneHost:/var/images/ubuntu1010$ oneimage show 5
> IMAGE 5 INFORMATION
> ID : 5
> NAME : Ubuntu_1010
> USER : oneadmin
> GROUP : oneadmin
> DATASTORE : production
> TYPE : OS
> REGISTER TIME : 04/30 23:58:17
> PERSISTENT : No
> SOURCE :
> PATH : /var/images/ubuntu1010
> SIZE : 0
> STATE : rdy
> RUNNING_VMS : 0
>
> PERMISSIONS
> OWNER : um-
> GROUP : ---
> OTHER : ---
>
> IMAGE TEMPLATE
> DEV_PREFIX="hd"
> ERROR=[
> MESSAGE="Error copying image in the repository: Error renaming disk file
> Ubuntu1010-i386-flat.vmdk",
> TIMESTAMP="Mon Apr 30 23:59:17 2012" ]
> oneadmin at OneHost:/var/images/ubuntu1010$
>
>
>
>
> Regards,
>
> Anil Kumar A.N.
> [cloud-b-lab]
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
--
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120430/d219faa4/attachment-0003.htm>
More information about the Users
mailing list