[one-users] DISK 0: User 0 does not own an image with name

Damon (Albino Geek) albinogeek at gmail.com
Fri May 29 06:46:38 PDT 2015


That's why if you're hard-coding your templates like that,
you should be using the "UID + Name" if you want compatability;
OR you use only "Image ID" directly, as it will never fail.

Also remember guys, OpenNebula Mailing List is now a Forum.

--

On Fri, 29 May 2015 05:52:31 -0700, Robert Foote <rfoote at bpsnode.com>  
wrote:
> Ok, see how the disk image is called 'imgCentOS7' in oneadmin show 1,  
> however your template is trying to use the name ' diskCentOS7' for the  
> image name.
>
> Modify your template to use 'imgCentOS7' and you should be able to  
> instantiate.
>
> Robert Foote
> Chief Technical Officer
> 1111 Light Street, 4th Floor
> Baltimore, MD 21230
> Phone | 1-800-611-8763 Ext. 201
> www.bpsnode.com
>
>
> -----Original Message-----
> From: Juan José Fuentes [mailto:Juanjose.Fuentes at sigmaaie.org]
> Sent: Friday, May 29, 2015 7:49 AM
> To: 'Robert Foote'; users at lists.opennebula.org
> Subject: RE: [one-users] DISK 0: User 0 does not own an image with name
>
>
> $ oneimage show 1
> IMAGE 1 INFORMATION
> ID             : 1
> NAME           : imgCentOS7
> USER           : oneadmin
> GROUP          : oneadmin
> DATASTORE      : default
> TYPE           : OS
> REGISTER TIME  : 05/29 12:15:45
> PERSISTENT     : No
> SOURCE         :  
> /var/lib/one//datastores/1/2b3e4040220f46e13aa3e987cc3e20a8
> PATH           :  
> http://marketplace.c12g.com/appliance/53e7bf928fb81d6a69000002/download
> SIZE           : 10G
> STATE          : rdy
> RUNNING_VMS    : 0
>
> PERMISSIONS
> OWNER          : um-
> GROUP          : ---
> OTHER          : ---
>
> IMAGE TEMPLATE
> DEV_PREFIX="hd"
> DRIVER="qcow2"
>
> VIRTUAL MACHINES
>
> Thank you for your answer.
>
> Jjf.
>
>
>
> De: Robert Foote [mailto:rfoote at bpsnode.com] Enviado el: viernes, 29 de  
> mayo de 2015 14:04
> Para: Juan José Fuentes; users at lists.opennebula.org
> Asunto: RE: [one-users] DISK 0: User 0 does not own an image with name
>
> What I'd the output of : oneimage show 1
>
>
>
> Sent from my Verizon Wireless 4G LTE smartphone
>
>
> -------- Original message --------
> From: Juan José Fuentes <Juanjose.Fuentes at sigmaaie.org>
> Date: 05/29/2015 6:54 AM (GMT-06:00)
> To: users at lists.opennebula.org
> Subject: [one-users] DISK 0: User 0 does not own an image with name
>
> Hi,
>
> We’re getting an error when instantiating a template:
>
> $ onetemplate instantiate "tplCentOS7"
> [TemplateInstantiate] Error allocating a new virtual machine. DISK 0:  
> User 0 does not own an image with name: diskCentOS7 . Set IMAGE_UNAME or  
> IMAGE_UID of owner in DISK.
>
>
> $ onetemplate show 1
> TEMPLATE 1 INFORMATION
> ID             : 1
> NAME           : tplCentOS7
> USER           : oneadmin
> GROUP          : oneadmin
> REGISTER TIME  : 05/29 12:17:28
>
> PERMISSIONS
> OWNER          : um-
> GROUP          : ---
> OTHER          : ---
>
> TEMPLATE CONTENTS
> CONTEXT=[
>   NETWORK="YES",
>   SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]" ] CPU="1.0"
> DISK=[
>   IMAGE="diskCentOS7",
>   IMAGE_ID="1",
>   IMAGE_UID="0",
>   IMAGE_UNAME="oneadmin" ]
> GRAPHICS=[
>   LISTEN="0.0.0.0",
>   TYPE="vnc" ]
> MEMORY="512"
> NIC=[
>   NETWORK="private" ]
> OS=[
>   ARCH="x86_64" ]
> SUNSTONE_CAPACITY_SELECT="YES"
> SUNSTONE_NETWORK_SELECT="YES"
> VCPU="1"
>
> Tail -f oned.log
> Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7920 UID:0 TemplatePoolInfo  
> invoked , -2, -1, -1 Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7920  
> UID:0 TemplatePoolInfo result SUCCESS, "<VMTEMPLATE_POOL><VM..."
> Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7376 UID:0 TemplateInfo  
> invoked , 1 Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:7376 UID:0  
> TemplateInfo result SUCCESS, "<VMTEMPLATE><ID>1</I..."
> Fri May 29 13:50:49 2015 [Z0][ReM][D]: Req:2784 UID:0  
> TemplateInstantiate invoked , 1, "", false, "..."
> Fri May 29 13:50:50 2015 [Z0][ONE][E]: DISK 0: User 0 does not own an  
> image with name: diskCentOS7 . Set IMAGE_UNAME or IMAGE_UID of owner in  
> DISK.
> Fri May 29 13:50:50 2015 [Z0][ReM][E]: Req:2784 UID:0  
> TemplateInstantiate result FAILURE [TemplateInstantiate] Error  
> allocating a new virtual machine. DISK 0: User 0 does not own an image  
> with name: diskCentOS7 . Set IMAGE_UNAME or IMAGE_UID of owner in DISK.
>
> Kind regards,
>
> Jjf.


More information about the Users mailing list