Re: [ovirt-users] cloud-init root password?

--_=__=_XaM3_.1428409568.2A.773706.42.6460.52.42.007.885104679 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0A your mileage may vary!=0A For example we use python api with clou= d-init and template to reset root password (you can use for example comma= nd like this: "openssl rand -hex 10") and to configure network / configur= ation files and freeipa...=0A > Michal, are you working with plain pass= word or with salted hashed ones?=0A > I had some experiment on hosted-e= ngine with strange results on that.=0A try to use python api by passin= g:=0A users=3Dparams.Users(user=3D[params.User(user_name=3D"root", pass= word=3DSPASSWORD)])=0A have a look at python example on http://www.ovir= t.org/Features/Cloud-Init_Integration=0A Best regards=0A Amedeo=0A=0A=
Date: Tue, 7 Apr 2015 13:34:24 +0200=0A=0A > From: Michal Skrivane= k <michal.skrivanek@redhat.com>=0A=0A > To: Sven Kieske <S.Kieske@mittw= ald.de>=0A=0A > Cc: users@ovirt.org=0A=0A > Subject: Re: [ovirt-users= ] cloud-init root password?=0A=0A > Message-ID: <02D7FE6F-5638-459C-865= E-064652CF6162@redhat.com>=0A=0A > Content-Type: text/plain; charset=3D= iso-8859-1=0A=0A >=0A=0A >=0A=0A > On Apr 7, 2015, at 12:21 , Sven = Kieske <S.Kieske@mittwald.de> wrote:=0A=0A >=0A=0A > > On 07/04/15 11= :31, Michal Skrivanek wrote:=0A=0A > >> Hi Jorick,=0A=0A > >> This wa= s 3.5 enhancement to support also non-root users=0A=0A > >> you use use= rname "root" and set a password:-)=0A=0A > >=0A=0A > > well the enhan= cement should not break existing workflows.=0A=0A > >=0A=0A > > if no= user is supplied you should set "root" as a default.=0A=0A >=0A=0A >= well, yeah, it could be pre-filled with root=0A=0A >=0A=0A > >=0A=0A=
I'd consider this as a regression, if I understand the change corr= ect?=0A=0A >=0A=0A > it works like that only with REST API:)=0A=0A = changes in UI dialogs are common.=0A=0A >=0A=0A > Thanks,=0A=0A >= michal=0A=0A >=0A --_=__=_XaM3_.1428409568.2A.773706.42.6460.52.42.007.885104679 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
=0A<div class=3D"xam_msg_class">=0Ayour mileage may vary! <br /><br />For= example we use python api with cloud-init and template to reset root pas= sword (you can use for example command like this: "openssl rand -hex= 10") and to configure network / configuration files and freeipa...<= br /><br />> Michal, are you working with plain password or with salte= d hashed ones?<br />> I had some experiment on hosted-engine with stra= nge results on that.<br /><br />try to use python api=C2=A0 by passing: <= br /><br />users=3Dparams.Users(user=3D[params.User(user_name=3D"roo= t", password=3DSPASSWORD)])<br /><br />have a look at python example= on http://www.ovirt.org/Features/Cloud-Init_Integration<br /><br />Best = regards<br />Amedeo<br />=C2=A0<br /><div>> Date: Tue, 7 Apr 2015 13:3= 4:24 +0200</div><div>> From: Michal Skrivanek <michal.skrivanek@red= hat.com></div><div>> To: Sven Kieske <S.Kieske@mittwald.de></= div><div>> Cc: users@ovirt.org</div><div>> Subject: Re: [ovirt-user= s] cloud-init root password?</div><div>> Message-ID: <02D7FE6F-5638= -459C-865E-064652CF6162@redhat.com></div><div>> Content-Type: text/= plain; charset=3Diso-8859-1</div><div>> </div><div>> </div><div>>= ; On Apr 7, 2015, at 12:21 , Sven Kieske <S.Kieske@mittwald.de> wro= te:</div><div>> </div><div>> > On 07/04/15 11:31, Michal Skrivan= ek wrote:</div><div>> >> Hi Jorick,</div><div>> >> This= was 3.5 enhancement to support also non-root users</div><div>> >&g= t; you use username "root" and set a password:-)</div><div>>= > </div><div>> > well the enhancement should not break existing= workflows.</div><div>> > </div><div>> > if no user is suppli= ed you should set "root" as a default.</div><div>> </div><di= v>> well, yeah, it could be pre-filled with root</div><div>> </div>= <div>> > </div><div>> > I'd consider this as a regression, if= I understand the change correct?</div><div>> </div><div>> it works= like that only with REST API:)</div><div>> changes in UI dialogs are = common.</div><div>> </div><div>> Thanks,</div><div>> michal</div=
<div>> </div><br />=0A</div>=0A --_=__=_XaM3_.1428409568.2A.773706.42.6460.52.42.007.885104679--

This is a multi-part message in MIME format. --------------020002030507050102080601 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable On 04/07/2015 02=3A26 PM=2C Amedeo Salvati wrote=3A =3E your mileage may vary! =3E =3E For example we use python api with cloud-init and template to reset =3E root password =28you can use for example command like this=3A =22openss= l =3E rand -hex 10=22=29 and to configure network / configuration files and= =3E freeipa=2E=2E=2E =3E =3E =3E Michal=2C are you working with plain password or with salted hashed= ones=3F =3E =3E I had some experiment on hosted-engine with strange results on that= =2E =3E =3E try to use python api by passing=3A =3E =3E users=3Dparams=2EUsers=28user=3D=5Bparams=2EUser=28user=5Fname=3D=22roo= t=22=2C =3E password=3DSPASSWORD=29=5D=29 =3E =3E have a look at python example on =3E http=3A//www=2Eovirt=2Eorg/Features/Cloud-Init=5FIntegration =3E =3E Best regards =3E Amedeo Can this also be done with the REST-api=3F I see a =3Cusers=3E section in t= he example on http=3A//www=2Eovirt=2Eorg/Features/Cloud-Init=5FIntegration =3Cusers=3E =3Cuser=3E =3Cuser=5Fname=3Eroot=3C/user=5Fname=3E =3Cpassword=3EmyPass=3C/password=3E =3C/user=3E =3C/users=3E Met vriendelijke groet=2C With kind regards=2C Jorick Astrego Netbulae Virtualization Experts=20 ---------------- =09Tel=3A 053 20 30 270 =09info=40netbulae=2Eeu =09Staalsteden 4-3A =09KvK= 08198180 =09Fax=3A 053 20 30 271 =09www=2Enetbulae=2Eeu =097547 TA Enschede =09BTW= NL821234584B01 ---------------- --------------020002030507050102080601 Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: quoted-printable =3Chtml=3E =3Chead=3E =3Cmeta content=3D=22text/html=3B charset=3Dwindows-1252=22 http-equiv=3D=22Content-Type=22=3E =3C/head=3E =3Cbody bgcolor=3D=22=23FFFFFF=22 text=3D=22=23000000=22=3E =3Cbr=3E =3Cbr=3E =3Cdiv class=3D=22moz-cite-prefix=22=3EOn 04/07/2015 02=3A26 PM=2C Amed= eo Salvati wrote=3A=3Cbr=3E =3C/div=3E =3Cblockquote cite=3D=22mid=3ANMFRVK=24D9C5521B6C742DE0EA79BC17D9E739A1=40oscert=2E= net=22 type=3D=22cite=22=3E =3Cdiv class=3D=22xam=5Fmsg=5Fclass=22=3E your mileage may vary! =3Cbr=3E =3Cbr=3E For example we use python api with cloud-init and template to reset root password =28you can use for example command like this=3A= =22openssl rand -hex 10=22=29 and to configure network / configurat= ion files and freeipa=2E=2E=2E=3Cbr=3E =3Cbr=3E =26gt=3B Michal=2C are you working with plain password or with salt= ed hashed ones=3F=3Cbr=3E =26gt=3B I had some experiment on hosted-engine with strange result= s on that=2E=3Cbr=3E =3Cbr=3E try to use python api=A0 by passing=3A =3Cbr=3E =3Cbr=3E users=3Dparams=2EUsers=28user=3D=5Bparams=2EUser=28user=5Fname=3D= =22root=22=2C password=3DSPASSWORD=29=5D=29=3Cbr=3E =3Cbr=3E have a look at python example on =3Ca class=3D=22moz-txt-link-freetext=22 href=3D=22http=3A//www=2Eo= virt=2Eorg/Features/Cloud-Init=5FIntegration=22=3Ehttp=3A//www=2Eovirt=2Eor= g/Features/Cloud-Init=5FIntegration=3C/a=3E=3Cbr=3E =3Cbr=3E Best regards=3Cbr=3E Amedeo =3Cbr=3E =3C/div=3E =3C/blockquote=3E =3Cbr=3E Can this also be done with the REST-api=3F I see a =26lt=3Busers=26gt= =3B section in the example on =3Ca class=3D=22moz-txt-link-freetext=22 href=3D=22http=3A//www=2Eovirt= =2Eorg/Features/Cloud-Init=5FIntegration=22=3Ehttp=3A//www=2Eovirt=2Eorg/Fe= atures/Cloud-Init=5FIntegration=3C/a=3E=3Cbr=3E =3Cblockquote=3E =3Cpre=3E =26lt=3Busers=26gt=3B =26lt=3Buser=26gt=3B =26lt=3Buser=5Fname=26gt=3Broot=26lt=3B/user=5Fname=26gt=3B =26lt=3Bpassword=26gt=3BmyPass=26lt=3B/password=26gt=3B =26lt=3B/user=26gt=3B =26lt=3B/users=26gt=3B =3C/pre=3E =3C/blockquote=3E =3Cbr=3E =3Cpre=3E =3C/pre=3E =20= =3CBR /=3E =3CBR /=3E =3Cb style=3D=22color=3A=23604c78=22=3E=3C/b=3E=3Cbr=3E=3Cspan style=3D=22c= olor=3A=23604c78=3B=22=3E=3Cfont color=3D=22000000=22=3E=3Cspan style=3D=22= mso-fareast-language=3Aen-gb=3B=22 lang=3D=22NL=22=3EMet vriendelijke groet= =2C With kind regards=2C=3Cbr=3E=3Cbr=3E=3C/span=3EJorick Astrego=3C/font= =3E=3C/span=3E=3Cb style=3D=22color=3A=23604c78=22=3E=3Cbr=3E=3Cbr=3ENetbul= ae Virtualization Experts =3C/b=3E=3Cbr=3E=3Chr style=3D=22border=3Anone=3B= border-top=3A1px solid =23ccc=3B=22=3E=3Ctable style=3D=22width=3A 522px=22= =3E=3Ctbody=3E=3Ctr=3E=3Ctd style=3D=22width=3A 130px=3Bfont-size=3A 10px= =22=3ETel=3A 053 20 30 270=3C/td=3E =3Ctd style=3D=22width=3A 130px=3Bf= ont-size=3A 10px=22=3Einfo=40netbulae=2Eeu=3C/td=3E =3Ctd style=3D=22wid= th=3A 130px=3Bfont-size=3A 10px=22=3EStaalsteden 4-3A=3C/td=3E =3Ctd sty= le=3D=22width=3A 130px=3Bfont-size=3A 10px=22=3EKvK 08198180=3C/td=3E=3C/tr= =3E=3Ctr=3E =3Ctd style=3D=22width=3A 130px=3Bfont-size=3A 10px=22=3EFax= =3A 053 20 30 271=3C/td=3E =3Ctd style=3D=22width=3A 130px=3Bfont-size= =3A 10px=22=3Ewww=2Enetbulae=2Eeu=3C/td=3E =3Ctd style=3D=22width=3A 130= px=3Bfont-size=3A 10px=22=3E7547 TA Enschede=3C/td=3E =3Ctd style=3D=22w= idth=3A 130px=3Bfont-size=3A 10px=22=3EBTW NL821234584B01=3C/td=3E=3C/tr=3E= =3C/tbody=3E=3C/table=3E=3Cbr=3E=3Chr style=3D=22border=3Anone=3Bborder-top= =3A1px solid =23ccc=3B=22=3E=3CBR /=3E =3C/body=3E =3C/html=3E --------------020002030507050102080601--

----- Original Message -----
From: "Amedeo Salvati" <amedeo@oscert.net> To: users@ovirt.org Sent: Tuesday, April 7, 2015 2:26:08 PM Subject: Re: [ovirt-users] cloud-init root password?
your mileage may vary!
For example we use python api with cloud-init and template to reset root password (you can use for example command like this: "openssl rand -hex 10") and to configure network / configuration files and freeipa...
Michal, are you working with plain password or with salted hashed ones? I had some experiment on hosted-engine with strange results on that.
try to use python api by passing:
users=params.Users(user=[params.User(user_name="root", password=SPASSWORD)])
have a look at python example on http://www.ovirt.org/Features/Cloud-Init_Integration
Sorry, I was talking about a new feature for hosted-engine on 3.6 where you will be able to lunch a pre-built appliance for the engine VM configuring it via cloud-init. In that case we still have not API cause the engine is still not running.
Best regards Amedeo
Date: Tue, 7 Apr 2015 13:34:24 +0200 From: Michal Skrivanek <michal.skrivanek@redhat.com> To: Sven Kieske <S.Kieske@mittwald.de> Cc: users@ovirt.org Subject: Re: [ovirt-users] cloud-init root password? Message-ID: <02D7FE6F-5638-459C-865E-064652CF6162@redhat.com> Content-Type: text/plain; charset=iso-8859-1
On Apr 7, 2015, at 12:21 , Sven Kieske <S.Kieske@mittwald.de> wrote:
On 07/04/15 11:31, Michal Skrivanek wrote:
Hi Jorick, This was 3.5 enhancement to support also non-root users you use username "root" and set a password:-)
well the enhancement should not break existing workflows.
if no user is supplied you should set "root" as a default.
well, yeah, it could be pre-filled with root
I'd consider this as a regression, if I understand the change correct?
it works like that only with REST API:) changes in UI dialogs are common.
Thanks, michal
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

From: "Amedeo Salvati" <amedeo@oscert.net>=0A=0A > > To: users@ov= irt.org=0A=0A > > Sent: Tuesday, April 7, 2015 2:26:08 PM=0A=0A > > S= ubject: Re: [ovirt-users] cloud-init root password?=0A=0A > >=0A=0A >= your mileage may vary!=0A=0A > >=0A=0A > > For example we use pyth= on api with cloud-init and template to reset root=0A=0A > > password (y= ou can use for example command like this: "openssl rand -hex 10")=0A=0A = and to configure network / configuration files and freeipa...=0A=0A = =0A=0A > > > Michal, are you working with plain password or with s= alted hashed ones?=0A=0A > > > I had some experiment on hosted-engine w= ith strange results on that.=0A=0A > >=0A=0A > > try to use python ap= i by passing:=0A=0A > >=0A=0A > > users=3Dparams.Users(user=3D[params= .User(user_name=3D"root", password=3DSPASSWORD)])=0A=0A > >=0A=0A > >= have a look at python example on=0A=0A > > http://www.ovirt.org/Featur= es/Cloud-Init_Integration=0A=0A >=0A=0A > Sorry, I was talking about = a new feature for hosted-engine on 3.6 where you will be able to lunch a =
--_=__=_XaM3_.1428412588.2A.288165.42.31028.52.42.007.925159685 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0A Interesting feature! :D=0A @Jorick=0A > Can this also be done w= ith the REST-api? I see a <users> section in the=0A > example on http:/= /www.ovirt.org/Features/Cloud-Init_Integration=0A yes, you can use rest= -api too, but I prefer python-sdk...=0A best regards=0A Amedeo=0A=0A = Da "Simone Tiraboschi" stirabos@redhat.com=0A=0A A "Amedeo Salvati" a= medeo@oscert.net=0A=0A Cc users@ovirt.org=0A=0A Data Tue, 7 Apr 2015 = 09:09:08 -0400 (EDT)=0A=0A Oggetto Re: [ovirt-users] cloud-init root pa= ssword?=0A=0A >=0A=0A >=0A=0A > ----- Original Message -----=0A=0A = pre-built appliance for the engine VM configuring it via cloud-init.=0A=0A=
In that case we still have not API cause the engine is still not run= ning.=0A=0A >=0A=0A >=0A=0A > > Best regards=0A=0A > > Amedeo=0A=0A=
=0A=0A > > > Date: Tue, 7 Apr 2015 13:34:24 +0200=0A=0A > > > F= rom: Michal Skrivanek <michal.skrivanek@redhat.com>=0A=0A > > > To: Sve= n Kieske <S.Kieske@mittwald.de>=0A=0A > > > Cc: users@ovirt.org=0A=0A =
Subject: Re: [ovirt-users] cloud-init root password?=0A=0A > > >= Message-ID: <02D7FE6F-5638-459C-865E-064652CF6162@redhat.com>=0A=0A > = Content-Type: text/plain; charset=3Diso-8859-1=0A=0A > > >=0A=0A = =0A=0A > > > On Apr 7, 2015, at 12:21 , Sven Kieske <S.Kieske@mitt= wald.de> wrote:=0A=0A > > >=0A=0A > > > > On 07/04/15 11:31, Michal S= krivanek wrote:=0A=0A > > > >> Hi Jorick,=0A=0A > > > >> This was 3.5= enhancement to support also non-root users=0A=0A > > > >> you use user= name "root" and set a password:-)=0A=0A > > > >=0A=0A > > > > well th= e enhancement should not break existing workflows.=0A=0A > > > >=0A=0A =
if no user is supplied you should set "root" as a default.=0A=0A= =0A=0A > > > well, yeah, it could be pre-filled with root=0A=0A= =0A=0A > > > >=0A=0A > > > > I'd consider this as a regressio= n, if I understand the change correct?=0A=0A > > >=0A=0A > > > it wor= ks like that only with REST API:)=0A=0A > > > changes in UI dialogs are= common.=0A=0A > > >=0A=0A > > > Thanks,=0A=0A > > > michal=0A=0A = =0A=0A > >=0A=0A > >=0A=0A > > ______________________________= _________________=0A=0A > > Users mailing list=0A=0A > > Users@ovirt.= org=0A=0A > > http://lists.ovirt.org/mailman/listinfo/users=0A=0A > >= =0A --_=__=_XaM3_.1428412588.2A.288165.42.31028.52.42.007.925159685 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
<div>> > Subject: Re: [ovirt-users] cloud-init root password?</div= <div>> > </div><div>> > your mileage may vary!</div><div>>= ; > </div><div>> > For example we use python api with cloud-init= and template to reset root</div><div>> > password (you can use for= example command like this: "openssl rand -hex 10")</div><div>&= gt; > and to configure network / configuration files and freeipa...</d= iv><div>> > </div><div>> > > Michal, are you working with =
> > </div><div>> > try to use python api by passing:</div><d= iv>> > </div><div>> > users=3Dparams.Users(user=3D[params.Use= r(user_name=3D"root", password=3DSPASSWORD)])</div><div>> &g= t; </div><div>> > have a look at python example on</div><div>> &= gt; http://www.ovirt.org/Features/Cloud-Init_Integration</div><div>> <= /div><div>> Sorry, I was talking about a new feature for hosted-engine= on 3.6 where you will be able to lunch a pre-built appliance for the eng= ine VM configuring it via cloud-init.</div><div>> In that case we stil= l have not API cause the engine is still not running.</div><div>> </di= v><div>> </div><div>> > Best regards</div><div>> > Amedeo<= /div><div>> > </div><div>> > > Date: Tue, 7 Apr 2015 13:34= :24 +0200</div><div>> > > From: Michal Skrivanek <michal.skri= vanek@redhat.com></div><div>> > > To: Sven Kieske <S.Kiesk= e@mittwald.de></div><div>> > > Cc: users@ovirt.org</div><div>= > > > Subject: Re: [ovirt-users] cloud-init root password?</div>= <div>> > > Message-ID: <02D7FE6F-5638-459C-865E-064652CF6162@= redhat.com></div><div>> > > Content-Type: text/plain; charset= =3Diso-8859-1</div><div>> > > </div><div>> > > </div><d= iv>> > > On Apr 7, 2015, at 12:21 , Sven Kieske <S.Kieske@mit= twald.de> wrote:</div><div>> > > </div><div>> > > &g= t; On 07/04/15 11:31, Michal Skrivanek wrote:</div><div>> > > &g= t;> Hi Jorick,</div><div>> > > >> This was 3.5 enhancem= ent to support also non-root users</div><div>> > > >> you = use username "root" and set a password:-)</div><div>> > &= gt; > </div><div>> > > > well the enhancement should not b= reak existing workflows.</div><div>> > > > </div><div>> &g= t; > > if no user is supplied you should set "root" as a = default.</div><div>> > > </div><div>> > > well, yeah, i= t could be pre-filled with root</div><div>> > > </div><div>> = > > > </div><div>> > > > I'd consider this as a regr= ession, if I understand the change correct?</div><div>> > > </di= v><div>> > > it works like that only with REST API:)</div><div>&= gt; > > changes in UI dialogs are common.</div><div>> > > = </div><div>> > > Thanks,</div><div>> > > michal</div><d= iv>> > > </div><div>> > </div><div>> > </div><div>&g= t; > _______________________________________________</div><div>> &g= t; Users mailing list</div><div>> > Users@ovirt.org</div><div>> = > http://lists.ovirt.org/mailman/listinfo/users</div><div>> > </=
=0A<div class=3D"xam_msg_class">=0A=0A Interesting feature! :D <br /><b= r />@Jorick<br />> Can this also be done with the REST-api? I see a &l= t;users> section in the<br />> example on http://www.ovirt.org/Feat= ures/Cloud-Init_Integration<br /><br />yes, you can use rest-api too, but= I prefer python-sdk...<br /><br />best regards<br />Amedeo=C2=A0 <br /><= br /><br />=C2=A0<br />=0A<div><span style=3D"font-family:Arial; font-siz= e:11px; color:#5F5F5F;">Da</span><span style=3D"font-family:Arial; font-s= ize:12px; color:#5F5F5F; padding-left:5px;"> "Simone Tiraboschi"= ; stirabos@redhat.com</span></div>=0A<div><span style=3D"font-family:Aria= l; font-size:11px; color:#5F5F5F;">A</span><span style=3D"font-family:Ari= al; font-size:12px; color:#5F5F5F; padding-left:5px;"> "Amedeo Salva= ti" amedeo@oscert.net</span></div>=0A<div><span style=3D"font-family= :Arial; font-size:11px; color:#5F5F5F;">Cc</span><span style=3D"font-fami= ly:Arial; font-size:12px; color:#5F5F5F; padding-left:5px;"> users@ovirt.= org</span></div>=0A<div><span style=3D"font-family:Arial; font-size:11px;= color:#5F5F5F;">Data</span><span style=3D"font-family:Arial; font-size:1= 2px; color:#5F5F5F; padding-left:5px;"> Tue, 7 Apr 2015 09:09:08 -0400 (E= DT)</span></div>=0A<div><span style=3D"font-family:Arial; font-size:11px;= color:#5F5F5F;">Oggetto</span><span style=3D"font-family:Arial; font-siz= e:12px; color:#5F5F5F; padding-left:5px;"> Re: [ovirt-users] cloud-init r= oot password?</span></div>=0A<br />=0A<div>> </div><div>> </div><di= v>> ----- Original Message -----</div><div>> > From: "Amede= o Salvati" <amedeo@oscert.net></div><div>> > To: users@o= virt.org</div><div>> > Sent: Tuesday, April 7, 2015 2:26:08 PM</div= plain password or with salted hashed ones?</div><div>> > > I had= some experiment on hosted-engine with strange results on that.</div><div= div>=0A =0A</div>=0A --_=__=_XaM3_.1428412588.2A.288165.42.31028.52.42.007.925159685--
participants (3)
-
Amedeo Salvati
-
Jorick Astrego
-
Simone Tiraboschi