On 10/22/2014 07:31 AM, Shanil S wrote: > Hi, > > Currently i have updated the ovirt version to 3.5 and after that the > reset password using api is not working but there isn't any errors > returned. The following xml is i used for the reset password and it was > working with the previous version > > <action> > <vm> > <os> > <boot dev='cdrom'/> > </os> > <initialization> > <cloud_init> > <users> > <user> > <user_name>root</user_name> > <password>$newpass</password> > </user> > </users> > </cloud_init> > </initialization> > </vm> > </action> > > Could you please have a look at the above xml ? Is there anything > modified in the new version ? > > The reset password is working fine from the ovirt admin panel and the > issue is only when we use the ovirt api to reset the password. >
That didn't change, your XML should work. I tested it in my environment and it works as expected. The only thing that I can imagine failing is the password containing values that break the XML syntax. Try to surround the value with a CDATA section: <password><![CDATA[yourpassword]]></password> This is good practice, even if it isn't the cause of your problem. As usual the first step to debug this is to check if the cloud-init floppy has been generated correctly. Start the VM, go the host where it is running, locate the qemu process and the location of the floppy img: # ps -ef | grep -- '-drive file=/var/run/vdsm/payload/.*\.img' Make a copy of that file, mount and inspect it: # cp /var/run/vdsm/payload/...img /tmp/f.img # mount -o loop,ro /tmp/f.img /mnt # find /mnt # cat /mnt/openstack/latest/user_data # umount /mnt -- 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. _______________________________________________ Users mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/users

