<div dir="ltr"><div>Hi Juan,<br><br>The following details i got from the vm after executing the reset password<br><br>[root@compute4 ~]# cp /var/run/vdsm/payload/22f57477-5d43-4795-95ec-e39ce3ba5423.757249a787c151388f6f3fa3502cf299.img /tmp/my.img
<br>[root@compute4 ~]# mount -o loop,ro /tmp/my.img /mnt
<br>[root@compute4 ~]# find /mnt
<br>/mnt
<br>/mnt/openstack
<br>/mnt/openstack/latest
<br>/mnt/openstack/latest/meta_data.json
<br>/mnt/openstack/latest/user_data
<br>[root@compute4 ~]# cat /mnt/openstack/latest/user_data
<br>#cloud-config
<br>ssh_pwauth: true
<br>disable_root: 0
<br>output:
<br>  all: &#39;&gt;&gt; /var/log/cloud-init-output.log&#39;
<br>password: shanil
<br>chpasswd:
<br>  expire: false
<br>runcmd:
<br>- &#39;sed -i &#39;&#39;/^datasource_list: /d&#39;&#39; /etc/cloud/cloud.cfg; echo &#39;&#39;datasource_list:
<br>  [&quot;NoCloud&quot;, &quot;ConfigDrive&quot;]&#39;&#39; &gt;&gt; /etc/cloud/cloud.cfg&#39;
<br>[root@compute4 ~]#<br><br></div>The xml which i used for the reset password is<br><br>&lt;action&gt;<br>            &lt;vm&gt;<br>                &lt;os&gt;<br>                    &lt;boot dev=&#39;cdrom&#39;/&gt;<br>                &lt;/os&gt;<br>                &lt;initialization&gt;<br>         &lt;cloud_init&gt;<br>        &lt;users&gt;<br>         &lt;user&gt;<br>           &lt;user_name&gt;root&lt;/user_name&gt;<br>           &lt;password&gt;&lt;![CDATA[shanil]]&gt;&lt;/password&gt;<br>         &lt;/user&gt;<br>           &lt;/users&gt;<br>        &lt;/cloud_init&gt;<br>       &lt;/initialization&gt;<br>            &lt;/vm&gt;<br>        &lt;/action&gt;<br><br><div><div>it seems the password is showing in the configuration ( you can see the above log ) but i am unable to login with this new password. Could you please have a look at ?<br><br></div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span>-- <br></span>Regards
<br>Shanil
</div></div>
<br><div class="gmail_quote">On Wed, Oct 22, 2014 at 7:51 PM, Juan Hernandez <span dir="ltr">&lt;<a href="mailto:jhernand@redhat.com" target="_blank">jhernand@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 10/22/2014 07:31 AM, Shanil S wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; Currently i have updated the ovirt version to 3.5 and after that the<br>
&gt; reset password using api is not working but there isn&#39;t any errors<br>
&gt; returned. The following xml is i used for the reset password and it was<br>
&gt; working with the previous version<br>
&gt;<br>
&gt; &lt;action&gt;<br>
&gt;             &lt;vm&gt;<br>
&gt;                 &lt;os&gt;<br>
&gt;                     &lt;boot dev=&#39;cdrom&#39;/&gt;<br>
&gt;                 &lt;/os&gt;<br>
&gt;                 &lt;initialization&gt;<br>
&gt;          &lt;cloud_init&gt;<br>
&gt;         &lt;users&gt;<br>
&gt;          &lt;user&gt;<br>
&gt;            &lt;user_name&gt;root&lt;/user_name&gt;<br>
&gt;            &lt;password&gt;$newpass&lt;/password&gt;<br>
&gt;          &lt;/user&gt;<br>
&gt;            &lt;/users&gt;<br>
&gt;         &lt;/cloud_init&gt;<br>
&gt;        &lt;/initialization&gt;<br>
&gt;             &lt;/vm&gt;<br>
&gt;         &lt;/action&gt;<br>
&gt;<br>
&gt; Could you please have a look at the above xml ? Is there anything<br>
&gt; modified in the new version ?<br>
&gt;<br>
&gt; The reset password is working fine from the ovirt admin panel and the<br>
&gt; issue is only when we use the ovirt api to reset the password.<br>
&gt;<br>
<br>
</div></div>That didn&#39;t change, your XML should work. I tested it in my environment<br>
and it works as expected. The only thing that I can imagine failing is<br>
the password containing values that break the XML syntax. Try to<br>
surround the value with a CDATA section:<br>
<br>
  &lt;password&gt;&lt;![CDATA[yourpassword]]&gt;&lt;/password&gt;<br>
<br>
This is good practice, even if it isn&#39;t the cause of your problem.<br>
<br>
As usual the first step to debug this is to check if the cloud-init<br>
floppy has been generated correctly. Start the VM, go the host where it<br>
is running, locate the qemu process and the location of the floppy img:<br>
<br>
  # ps -ef | grep -- &#39;-drive file=/var/run/vdsm/payload/.*\.img&#39;<br>
<br>
Make a copy of that file, mount and inspect it:<br>
<br>
  # cp /var/run/vdsm/payload/...img /tmp/f.img<br>
  # mount -o loop,ro /tmp/f.img /mnt<br>
  # find /mnt<br>
  # cat /mnt/openstack/latest/user_data<br>
  # umount /mnt<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta<br>
3ºD, 28016 Madrid, Spain<br>
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.<br>
</font></span></blockquote></div><br></div>