[Users] How to update VdcBootStrapUrl (not using DB) ?

I've recently updated my http://www.ovirt.org/User:Adrian15/oVirt_engine_migration oVirt engine migration howto with the http://www.ovirt.org/User:Adrian15/oVirt_engine_migration#Update_VdcBootStra... Update VdcBootStrapUrl section. My next move is to move this section into the http://www.ovirt.org/How_to_change_engine_host_name How to change engine host name because I think it's a needed step. But I don't like that currently you have to issue a database update like this: psql -c "update vdc_options set option_value = 'http://new.manager.com:80/Components/vds/' where option_name = 'VdcBootStrapUrl'" -U postgres engine So I was wondering if there was a proper way like using a command like vdsClient or something similar. I mean so that in the future the vdc_options table gets renamed that the command is still the same. I CC jhernand because I think he wrote the original "How to change engine host name" at the mailing list and also answered with the VdcBootStrapUrl update sentence to someone how couldn't add a new host after I think restoring an ovirt-engine. Thank you. -- -- Adrián Gibanel I.T. Manager +34 675 683 301 www.btactic.com Ens podeu seguir a/Nos podeis seguir en: i Abans d´imprimir aquest missatge, pensa en el medi ambient. El medi ambient és cosa de tothom. / Antes de imprimir el mensaje piensa en el medio ambiente. El medio ambiente es cosa de todos. AVIS: El contingut d'aquest missatge i els seus annexos és confidencial. Si no en sou el destinatari, us fem saber que està prohibit utilitzar-lo, divulgar-lo i/o copiar-lo sense tenir l'autorització corresponent. Si heu rebut aquest missatge per error, us agrairem que ho feu saber immediatament al remitent i que procediu a destruir el missatge . AVISO: El contenido de este mensaje y de sus anexos es confidencial. Si no es el destinatario, les hacemos saber que está prohibido utilizarlo, divulgarlo y/o copiarlo sin tener la autorización correspondiente. Si han recibido este mensaje por error, les agradeceríamos que lo hagan saber inmediatamente al remitente y que procedan a destruir el mensaje .

On 01/25/2013 12:49 PM, Adrian Gibanel wrote:
I've recently updated my http://www.ovirt.org/User:Adrian15/oVirt_engine_migration oVirt engine migration howto with the http://www.ovirt.org/User:Adrian15/oVirt_engine_migration#Update_VdcBootStra... Update VdcBootStrapUrl section.
My next move is to move this section into the http://www.ovirt.org/How_to_change_engine_host_name How to change engine host name because I think it's a needed step.
But I don't like that currently you have to issue a database update like this:
psql -c "update vdc_options set option_value = 'http://new.manager.com:80/Components/vds/' where option_name = 'VdcBootStrapUrl'" -U postgres engine
So I was wondering if there was a proper way like using a command like vdsClient or something similar. I mean so that in the future the vdc_options table gets renamed that the command is still the same.
I CC jhernand because I think he wrote the original "How to change engine host name" at the mailing list and also answered with the VdcBootStrapUrl update sentence to someone how couldn't add a new host after I think restoring an ovirt-engine.
The alternative to the SQL statement is the engine-config tool: engine-config -s VdcBootStrapUrl=http://... In version 3.2 this parameter has been removed. -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.

------=_Part_475_17843027.1359116137566 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ----- Mensaje original -----
De: "Juan Hernandez" <jhernand@redhat.com>
Update VdcBootStrapUrl section.
But I don't like that currently you have to issue a database update like this:
psql -c "update vdc_options set option_value =3D 'http://new.manager.com:80/Components/vds/' where option_name =3D 'VdcBootStrapUrl'" -U postgres engine
The alternative to the SQL statement is the engine-config tool:
engine-config -s VdcBootStrapUrl=3Dhttp://...
In version 3.2 this parameter has been removed.
<br>And what does that mean exactly?<br>The parameter is not longer needed= because the url resolution is done in another way?<br>Maybe other parametr= e in ovirt 3.2 needs to be updated? With which command then?<br><br>So far = I'm going to update the wiki with 'only needed in 3.1 version' reference an= d I will update it as needed.<br><br>Thank you.<br><br>-- <br><div><span na= me=3D"x"></span><font style=3D"font-weight: bold;" size=3D"3"><a style=3D"c=
And what does that mean exactly?=20 The parameter is not longer needed because the url resolution is done in an= other way?=20 Maybe other parametre in ovirt 3.2 needs to be updated? With which command = then?=20 So far I'm going to update the wiki with 'only needed in 3.1 version' refer= ence and I will update it as needed.=20 Thank you.=20 --=20 Adri=C3=A1n Gibanel=20 I.T. Manager=20 +34 675 683 301=20 www.btactic.com=20 Ens podeu seguir a/Nos podeis seguir en:=20 i=20 Abans d=C2=B4imprimir aquest missatge, pensa en el medi ambient. El medi am= bient =C3=A9s cosa de tothom. / Antes de imprimir el mensaje piensa en el m= edio ambiente. El medio ambiente es cosa de todos.=20 AVIS:=20 El contingut d'aquest missatge i els seus annexos =C3=A9s confidencial. Si = no en sou el destinatari, us fem saber que est=C3=A0 prohibit utilitzar-lo,= divulgar-lo i/o copiar-lo sense tenir l'autoritzaci=C3=B3 corresponent. Si= heu rebut aquest missatge per error, us agrairem que ho feu saber immediat= ament al remitent i que procediu a destruir el missatge .=20 AVISO:=20 El contenido de este mensaje y de sus anexos es confidencial. Si no es el d= estinatario, les hacemos saber que est=C3=A1 prohibido utilizarlo, divulgar= lo y/o copiarlo sin tener la autorizaci=C3=B3n correspondiente. Si han reci= bido este mensaje por error, les agradecer=C3=ADamos que lo hagan saber inm= ediatamente al remitente y que procedan a destruir el mensaje .=20 ------=_Part_475_17843027.1359116137566 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><style type=3D'text/css'>p { margin: 0; }</style></head><body><= div style=3D'font-family: arial,helvetica,sans-serif; font-size: 10pt; colo= r: #000000'><hr id=3D"zwchr"><blockquote style=3D"border-left:2px solid rgb= (16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:norma= l;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-s= erif;font-size:12pt;"><b>De: </b>"Juan Hernandez" <jhernand@redhat.com&g= t;<br><b></b><br><br>> Update VdcBootStrapUrl section.<br><br>> But I= don't like that currently you have to issue a database update like this:<b= r>><br>> psql -c "update vdc_options set option_value =3D 'http://new= .manager.com:80/Components/vds/' where option_name =3D 'VdcBootStrapUrl'" -= U postgres engine<br><br>The alternative to the SQL statement is the engine= -config tool:<br><br> engine-config -s VdcBootStrapUrl=3Dhttp:/= /...<br><br>In version 3.2 this parameter has been removed.<br></blockquote= olor: rgb(0, 0, 0);" href=3D"http://www.btactic.com/"><span id=3D"DWT100"><= font class=3D"Apple-style-span" face=3D"verdana, helvetica, sans-serif"><sp= an class=3D"Apple-style-span" style=3D"background-color: rgb(255, 255, 255)= ;"></span></font></span></a></font><font style=3D"font-family: 'Times New R= oman';" color=3D"#5f5f5f" face=3D"Arial" size=3D"1"><font size=3D"3"><span = style=3D"font-family: verdana,helvetica,sans-serif; color: rgb(0, 0, 0);"><= font style=3D"font-family: helvetica;" size=3D"2"><strong>Adri=C3=A1n Giban= el</strong><br>I.T. Manager<br><br>+34 675 683 301<br><a href=3D"http://bta= ctic.com/">www.btactic.com</a></font><br><br></span></font></font><font col= or=3D"#008000" face=3D"Arial" size=3D"1"><img src=3D"http://www.btactic.com= /signaturabtacticmail/btacticsignature.png" style=3D"border-width: 0px;"><b= r></font><font class=3D"Apple-style-span" face=3D"Arial"><b><span class=3D"= Apple-style-span" style=3D"font-family: Verdana; font-weight: normal;"><spa= n id=3D"bc4bed34-88ab-466b-a731-c40f5c09ab6c"><font color=3D"#5f5f5f" face= =3D"Arial" size=3D"1"><br>Ens podeu seguir a/Nos podeis seguir en:<br> <br> </font></span><a href=3D"http://www.facebook.com/pages/btactic/118651634826= 400?v=3Dapp_9953271133"><img style=3D"border: 0pt none;" src=3D"http://www.= btactic.com/wp-content/themes/btactic/img/facebookfoot.jpg"></a> i <a href= =3D"http://twitter.com/btactic"><img style=3D"border: 0pt none;" src=3D"htt= p://www.btactic.com/wp-content/themes/btactic/img/twitterfoot.jpg"></a></sp= an></b></font><br><font color=3D"#008000" face=3D"Arial" size=3D"1"><br></f= ont><div><font color=3D"#008000" face=3D"Arial" size=3D"1">Abans d=C2=B4imp= rimir aquest missatge, pensa en el medi ambient. El medi ambient =C3=A9s cosa de= =20 tothom. / Antes de imprimir el mensaje piensa en el medio ambiente. El medio=20 ambiente es cosa de todos. </font><font color=3D"#5f5f5f" face=3D"Arial" size=3D"1">= <br> <br> AVIS: <br> El contingut d'aquest missatge i els seus annexos =C3=A9s confidencial. Si = no en sou el destinatari, us fem saber que est=C3=A0 prohibit utilitzar-lo,=20 divulgar-lo i/o copiar-lo sense tenir l'autoritzaci=C3=B3 corresponent. Si heu rebut=20 aquest missatge per error, us agrairem que ho feu saber immediatament <span class= =3D"Object" id=3D"OBJ_PREFIX_DWT103">al remitent i que procediu a destruir el missatge</span>.<br> <br> AVISO:<br> El contenido de este mensaje y de sus anexos es confidencial. Si no es el destinatario, les hacemos saber que est=C3=A1 prohibido utilizarlo,=20 divulgarlo y/o copiarlo sin tener la autorizaci=C3=B3n correspondiente. Si han recibid= o este mensaje por error, les agradecer=C3=ADamos que lo hagan saber=20 inmediatamente <span class=3D"Object" id=3D"OBJ_PREFIX_DWT104">al remitente y que procedan= a destruir el mensaje</span>.</font> </div><span name=3D"x"></span><br></div></div></body></html> ------=_Part_475_17843027.1359116137566--

On 01/25/2013 01:15 PM, Adrian Gibanel wrote:
------------------------------------------------------------------------
*De: *"Juan Hernandez" <jhernand@redhat.com> **
> Update VdcBootStrapUrl section.
> But I don't like that currently you have to issue a database update like this: > > psql -c "update vdc_options set option_value = 'http://new.manager.com:80/Components/vds/' where option_name = 'VdcBootStrapUrl'" -U postgres engine
The alternative to the SQL statement is the engine-config tool:
engine-config -s VdcBootStrapUrl=http://...
In version 3.2 this parameter has been removed.
And what does that mean exactly? The parameter is not longer needed because the url resolution is done in another way? Maybe other parametre in ovirt 3.2 needs to be updated? With which command then?
So far I'm going to update the wiki with 'only needed in 3.1 version' reference and I will update it as needed.
Up to version 3.1 that parameter was needed because during host registration the host initiated connections to the engine web server to download several files (certificates, scripts, etc). This parameter was the base of some of those files (mostly scripts). Starting with version 3.2 the engine sends all the required files to the hosts using SSH, so there is no need for this parameter. See the following URL for more details: http://www.ovirt.org/Featrues/Bootstrap_Improvements -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
participants (2)
-
Adrian Gibanel
-
Juan Hernandez