[Users] issues when renaming a VM

This is a multi-part message in MIME format. ------_=_NextPart_001_01CD11D9.E8FE89E2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Running into an oddity when changing the name attribute of a VM. When the name attribute is changed via the either the WebAdmin or PUP it does not update the <Name> element within the VM OVF. The database table entry: vm_static --> VM_name does however get updated. Upon trying to start the VM or restart it in the case of updating the name while it was in a running state the below will occur: =20 VM <vmname> is down. Exit message operation failed: domain '<vmname> ' already exists with uuid <UUID>. VM <vmname> was started by <username> (Host: <ovirtnodehostname>). =20 This can be worked around however by simply hand-editing the VM OVF and changing the <Name> element to the desired name. =20 This is observed with the current released version of the ovirt-engine (ovirt-engine-3.0.0_0001-1.6) =20 - Chris ------_=_NextPart_001_01CD11D9.E8FE89E2 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta = http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 = (filtered medium)"><style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:"Arial Unicode MS"; panose-1:2 11 6 4 2 2 2 2 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"\@Arial Unicode MS"; panose-1:2 11 6 4 2 2 2 2 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue = vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span = style=3D'font-size:12.0pt'>Running into an oddity when changing the name = attribute of a VM. When the name attribute is changed via the either the = WebAdmin or PUP it does not update the <Name> element within the = VM OVF. The database table entry: vm_static --> VM_name does however = get updated.<o:p></o:p></span></p><p class=3DMsoNormal><span = style=3D'font-size:12.0pt'>Upon trying to start the VM or restart it in = the case of updating the name while it was in a running state the below = will occur:</span><span = style=3D'font-size:12.0pt'><o:p></o:p></span></p><p = class=3DMsoNormal><span = style=3D'font-size:12.0pt'><o:p> </o:p></span></p><p = class=3DMsoNormal><span style=3D'font-size:12.0pt;color:black'>VM = <vmname> is down. Exit message operation failed: domain = '<vmname> ' already exists with uuid = <UUID>.<o:p></o:p></span></p><p class=3DMsoNormal><span = style=3D'font-size:12.0pt;color:black'>VM <vmname> was started by = <username> (Host: = <ovirtnodehostname>).<o:p></o:p></span></p><p = class=3DMsoNormal><span = style=3D'font-size:12.0pt;color:black'><o:p> </o:p></span></p><p = class=3DMsoNormal><span style=3D'font-size:12.0pt;color:black'>This can = be worked around however by simply hand-editing the VM OVF and changing = the <Name> element to the desired name.<o:p></o:p></span></p><p = class=3DMsoNormal><span = style=3D'font-size:12.0pt'><o:p> </o:p></span></p><p = class=3DMsoNormal><span style=3D'font-size:12.0pt'>This is observed with = the current released version of the ovirt-engine = (ovirt-engine-3.0.0_0001-1.6)<o:p></o:p></span></p><p = class=3DMsoNormal><span = style=3D'font-size:12.0pt'><o:p> </o:p></span></p><p = class=3DMsoNormal><span style=3D'font-size:12.0pt'>- = Chris<o:p></o:p></span></p></div></body></html> ------_=_NextPart_001_01CD11D9.E8FE89E2--

This is a multi-part message in MIME format. ------_=_NextPart_001_01CD11DB.F511B978 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Correction below: upon creating a new VM with the same name as the as what the VM name was before the change to the name attribute results in: VM <vmname> is down. Exit message operation failed: domain '<vmname> ' already exists with uuid <UUID>. VM <vmname> was started by <username> (Host: <ovirtnodehostname>). =20 =20 From: users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] On Behalf Of Brown, Chris (GE Healthcare) Sent: Tuesday, April 03, 2012 3:40 PM To: users@oVirt.org Subject: [Users] issues when renaming a VM =20 Running into an oddity when changing the name attribute of a VM. When the name attribute is changed via the either the WebAdmin or PUP it does not update the <Name> element within the VM OVF. The database table entry: vm_static --> VM_name does however get updated. Upon trying to start the VM or restart it in the case of updating the name while it was in a running state the below will occur: =20 VM <vmname> is down. Exit message operation failed: domain '<vmname> ' already exists with uuid <UUID>. VM <vmname> was started by <username> (Host: <ovirtnodehostname>). =20 This can be worked around however by simply hand-editing the VM OVF and changing the <Name> element to the desired name. =20 This is observed with the current released version of the ovirt-engine (ovirt-engine-3.0.0_0001-1.6) =20 - Chris ------_=_NextPart_001_01CD11DB.F511B978 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"><head><META = HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 = (filtered medium)"><style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal; font-family:"Calibri","sans-serif"; color:windowtext;} span.EmailStyle18 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue = vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span = style=3D'color:#1F497D'>Correction below: upon creating a new VM with = the same name as the as what the VM name was before the change to the = name attribute results in:<o:p></o:p></span></p><p = class=3DMsoNormal><span style=3D'font-size:12.0pt;color:black'>VM = <vmname> is down. Exit message operation failed: domain = '<vmname> ' already exists with uuid = <UUID>.<o:p></o:p></span></p><p class=3DMsoNormal><span = style=3D'font-size:12.0pt;color:black'>VM <vmname> was started by = <username> (Host: = <ovirtnodehostname>).<o:p></o:p></span></p><p = class=3DMsoNormal><span = style=3D'color:#1F497D'><o:p> </o:p></span></p><p = class=3DMsoNormal><span = style=3D'color:#1F497D'><o:p> </o:p></span></p><div><div = style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in = 0in 0in'><p class=3DMsoNormal><b><span = style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>= </b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> = users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] <b>On Behalf Of = </b>Brown, Chris (GE Healthcare)<br><b>Sent:</b> Tuesday, April 03, 2012 = 3:40 PM<br><b>To:</b> users@oVirt.org<br><b>Subject:</b> [Users] issues = when renaming a VM<o:p></o:p></span></p></div></div><p = class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal><span = style=3D'font-size:12.0pt'>Running into an oddity when changing the name = attribute of a VM. When the name attribute is changed via the either the = WebAdmin or PUP it does not update the <Name> element within the = VM OVF. The database table entry: vm_static --> VM_name does however = get updated.<o:p></o:p></span></p><p class=3DMsoNormal><span = style=3D'font-size:12.0pt'>Upon trying to start the VM or restart it in = the case of updating the name while it was in a running state the below = will occur:<o:p></o:p></span></p><p class=3DMsoNormal><span = style=3D'font-size:12.0pt'><o:p> </o:p></span></p><p = class=3DMsoNormal><span style=3D'font-size:12.0pt;color:black'>VM = <vmname> is down. Exit message operation failed: domain = '<vmname> ' already exists with uuid = <UUID>.<o:p></o:p></span></p><p class=3DMsoNormal><span = style=3D'font-size:12.0pt;color:black'>VM <vmname> was started by = <username> (Host: = <ovirtnodehostname>).<o:p></o:p></span></p><p = class=3DMsoNormal><span = style=3D'font-size:12.0pt;color:black'><o:p> </o:p></span></p><p = class=3DMsoNormal><span style=3D'font-size:12.0pt;color:black'>This can = be worked around however by simply hand-editing the VM OVF and changing = the <Name> element to the desired name.<o:p></o:p></span></p><p = class=3DMsoNormal><span = style=3D'font-size:12.0pt'><o:p> </o:p></span></p><p = class=3DMsoNormal><span style=3D'font-size:12.0pt'>This is observed with = the current released version of the ovirt-engine = (ovirt-engine-3.0.0_0001-1.6)<o:p></o:p></span></p><p = class=3DMsoNormal><span = style=3D'font-size:12.0pt'><o:p> </o:p></span></p><p = class=3DMsoNormal><span style=3D'font-size:12.0pt'>- = Chris<o:p></o:p></span></p></div></body></html> ------_=_NextPart_001_01CD11DB.F511B978--

--_000_62CD604BB12CB045864DDF2DA6C3C9CAD70F206FF2EXSFMMB02inte_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi everyone, One of the requirements behind the system that I am attempting to build is = that there should be no local storage. I've noticed that I cannot add local= storage hosts to the same datacenter and cluster. It seems awkward to have= a 1:1:1 ratio of datacenter to cluster to host. Is there anything that I a= m missing or is there a reason for why this is the design in ovirt? I plan to use the system to provide a service where end-users will make API= calls to create and delete VMs. It will be critical that oVirt-engine not = be a single-point of failure. I can't seem to find much information about w= hether oVirt-engine is designed with redundancy in mind. Is oVirt capable o= f a failover or an active-active configuration? Finally, I am attempting to automate registration of hosts to oVirt and am = hitting this when I try to add a local storage domain: [oVirt shell (connected)]# create storagedomain --host test1 --type "Data (= Master)" --storage-type "Local on host" unknown error: 'str' object has no attribute 'export' Is this a bug with ovirt-shell that I should file or am I doing something w= rong? The host is in maintenance mode, I do not see anything in the engine = logs after I run the command. Thanks, Andrey --_000_62CD604BB12CB045864DDF2DA6C3C9CAD70F206FF2EXSFMMB02inte_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type content= =3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros= oft Word 12 (filtered medium)"><style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p.MsoAcetate, li.MsoAcetate, div.MsoAcetate {mso-style-priority:99; mso-style-link:"Balloon Text Char"; margin:0in; margin-bottom:.0001pt; font-size:8.0pt; font-family:"Tahoma","sans-serif";} span.EmailStyle17 {mso-style-type:personal; font-family:"Calibri","sans-serif"; color:windowtext;} span.EmailStyle18 {mso-style-type:personal; font-family:"Calibri","sans-serif"; color:#1F497D;} span.EmailStyle19 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} span.BalloonTextChar {mso-style-name:"Balloon Text Char"; mso-style-priority:99; mso-style-link:"Balloon Text"; font-family:"Tahoma","sans-serif";} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli= nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span style=3D'c= olor:#1F497D'>Hi everyone,<o:p></o:p></span></p><p class=3DMsoNormal><span = style=3D'color:#1F497D'><o:p> </o:p></span></p><p class=3DMsoNormal><s= pan style=3D'color:#1F497D'>One of the requirements behind the system that = I am attempting to build is that there should be no local storage. I’= ve noticed that I cannot add local storage hosts to the same datacenter and= cluster. It seems awkward to have a 1:1:1 ratio of datacenter to cluster t= o host. Is there anything that I am missing or is there a reason for why th= is is the design in ovirt? <o:p></o:p></span></p><p class=3DMsoNormal><span= style=3D'color:#1F497D'><o:p> </o:p></span></p><p class=3DMsoNormal><= span style=3D'color:#1F497D'>I plan to use the system to provide a service = where end-users will make API calls to create and delete VMs. It will be cr= itical that oVirt-engine not be a single-point of failure. I can’t se= em to find much information about whether oVirt-engine is designed with red= undancy in mind. Is oVirt capable of a failover or an active-active configu= ration?<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'color:#1F4= 97D'><o:p> </o:p></span></p><p class=3DMsoNormal><span style=3D'color:= #1F497D'>Finally, I am attempting to automate registration of hosts to oVir= t and am hitting this when I try to add a local storage domain: <o:p></o:p>= </span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p> </= o:p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>[oVirt sh= ell (connected)]# create storagedomain --host test1 --type "Data (Mast= er)" --storage-type "Local on host"<o:p></o:p></span></p><p = class=3DMsoNormal><span style=3D'color:#1F497D'>unknown error: 'str' object= has no attribute 'export'<o:p></o:p></span></p><p class=3DMsoNormal><span = style=3D'color:#1F497D'><o:p> </o:p></span></p><p class=3DMsoNormal><s= pan style=3D'color:#1F497D'>Is this a bug with ovirt-shell that I should fi= le or am I doing something wrong? The host is in maintenance mode, I do not= see anything in the engine logs after I run the command.<o:p></o:p></span>= </p><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p> </o:p></s= pan></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>Thanks,<o:p></o:= p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>Andrey<o:p>= </o:p></span></p></div></body></html>= --_000_62CD604BB12CB045864DDF2DA6C3C9CAD70F206FF2EXSFMMB02inte_--

On 04/04/2012 05:15 AM, Andrey Falko wrote:
Hi everyone,
One of the requirements behind the system that I am attempting to build is that there should be no local storage.
i didn't understand if you don't want to use local storage but trying to use it?
I’ve noticed that I cannot add local storage hosts to the same datacenter and cluster. It seems awkward to have a 1:1:1 ratio of datacenter to cluster to host. Is there anything that I am missing or is there a reason for why this is the design in ovirt?
yes, you need a 1:1:1 for now. plan is to remove this need in the future by allowing to associate a storage domain with a cluster or host directly rather than only at DC level.
I plan to use the system to provide a service where end-users will make API calls to create and delete VMs. It will be critical that oVirt-engine not be a single-point of failure. I can’t seem to find much information about whether oVirt-engine is designed with redundancy in mind. Is oVirt capable of a failover or an active-active configuration?
if engine is down, VMs can still continue to run. for making engine HA, best approach right now is to use clustering technologies.
Finally, I am attempting to automate registration of hosts to oVirt and am hitting this when I try to add a local storage domain:
I saw you solved this - but worth mentioning for ovirt-node, it has auto registration to engine flow.
[oVirt shell (connected)]# create storagedomain --host test1 --type "Data (Master)" --storage-type "Local on host"
unknown error: 'str' object has no attribute 'export'
Is this a bug with ovirt-shell that I should file or am I doing something wrong? The host is in maintenance mode, I do not see anything in the engine logs after I run the command.
Thanks,
Andrey
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

One of the requirements behind the system that I am attempting to build is that there should be no local storage.
i didn't understand if you don't want to use local storage but trying to use it?
Sorry, that was a typo on my part. There should be no shared storage.
I.ve noticed that I cannot add local storage hosts to the same datacenter and cluster. It seems awkward to have a 1:1:1 ratio of datacenter to cluster to host. Is there anything that I am missing or is there a reason for why this is the design in ovirt?
yes, you need a 1:1:1 for now. plan is to remove this need in the future by allowing to associate a storage domain with a cluster or host directly rather than only at DC level.
Thanks for the explanation.
Finally, I am attempting to automate registration of hosts to oVirt and am hitting this when I try to add a local storage domain:
I saw you solved this - but worth mentioning for ovirt-node, it has auto registration to engine flow.
I looked at auto-registration a little bit, but I realized that I would need to setup dcs and clusters so I decided to do everything through the API via ovirt-shell. Thanks, Andrey

On 04/04/2012 09:42 PM, Andrey Falko wrote:
One of the requirements behind the system that I am attempting to build is that there should be no local storage.
i didn't understand if you don't want to use local storage but trying to use it?
Sorry, that was a typo on my part. There should be no shared storage.
just wondering - is the requirement for isolation or resources? (if resources, have you looked at gluster?)

-----Original Message----- From: Itamar Heim [mailto:iheim@redhat.com] Sent: Wednesday, April 04, 2012 12:33 PM To: Andrey Falko Cc: users@oVirt.org Subject: Re: [Users] Questions about oVirt and possible API bug
On 04/04/2012 09:42 PM, Andrey Falko wrote:
One of the requirements behind the system that I am attempting to build is that there should be no local storage.
i didn't understand if you don't want to use local storage but trying to use it?
Sorry, that was a typo on my part. There should be no shared storage.
just wondering - is the requirement for isolation or resources? (if resources, have you looked at gluster?)
It is all about resources. We need VMs to have fast I/O without expensive SAN or NAS solutions. I have looked a little bit at gluster and this certainly looks promising: http://gluster.org/community/documentation/index.php?title=Red_Hat_Enterprise_Virtualization&redirect=no . I'd have to test it out and see if it can provide the I/O performance we are looking for.

Hi everyone, I have one more question: I want to use local storage, but I want to register the same template on each node. I am working on a mechanism right now where I detach and remove the Export domain, add it for a target dc/cluster/host, import the template, deactivate+detach+remove the export domain and repeat for the next host. Is this mechanism the only choice I have? Is there a better way? Thanks, Andrey

On 04/05/2012 01:30 AM, Andrey Falko wrote:
Hi everyone,
I have one more question:
I want to use local storage, but I want to register the same template on each node. I am working on a mechanism right now where I detach and remove the Export domain, add it for a target dc/cluster/host, import the template, deactivate+detach+remove the export domain and repeat for the next host. Is this mechanism the only choice I have? Is there a better way?
you need the template on each DC (until you would be able to mix types of storage domains and use a shared NFS for the template for example). this feature should allow you to import it more than once, but not implemented yet: http://www.ovirt.org/wiki/Features/ImportMoreThanOnce that hints your current solution will not work, since you cannot import the same object today more than once (even to another DC). since this is local storage, you can hack it a bit and just create a template with the disk on all DCs, then dd/rsync the real one to override the created disk in all local storage.

-----Original Message----- From: Itamar Heim [mailto:iheim@redhat.com] Sent: Wednesday, April 04, 2012 11:13 PM To: Andrey Falko Cc: users@oVirt.org Subject: Re: [Users] Questions about oVirt and possible API bug
On 04/05/2012 01:30 AM, Andrey Falko wrote:
Hi everyone,
I have one more question:
I want to use local storage, but I want to register the same template on each node. I am working on a mechanism right now where I detach and remove the Export domain, add it for a target dc/cluster/host, import the template, deactivate+detach+remove the export domain and repeat for the next host. Is this mechanism the only choice I have? Is there a better way?
you need the template on each DC (until you would be able to mix types of storage domains and use a shared NFS for the template for example). this feature should allow you to import it more than once, but not implemented yet: http://www.ovirt.org/wiki/Features/ImportMoreThanOnce
that hints your current solution will not work, since you cannot import the same object today more than once (even to another DC).
since this is local storage, you can hack it a bit and just create a template with the disk on all DCs, then dd/rsync the real one to override the created disk in all local storage.
Good to know the feature is in the pipeline :). I was able to work around it by writing a script that does the following: a) copy origin OVF with dir structure in /master in the export domain b) copy dir structure for associated image in /images c) hard link origin image to the new image uuid dir d) replace uuid in .meta file and uuids in new OVF e) additionally, replace instanceId for VM network as well as storagePoolId (not sure if storagePoolId replacement was necessary Thanks, Andrey
participants (3)
-
Andrey Falko
-
Brown, Chris (GE Healthcare)
-
Itamar Heim