--Apple-Mail=_D4B21A60-EA41-4432-B1D4-702E9C1C67F8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
On 05 Jan 2016, at 07:03, Qingyun Ao <aoqingyun(a)gmail.com>
wrote:
=20
Hello, all,
=20
=20
I want to update vm os type by ovirt rest api.
=20
The following is my request:
Method: put
Content-Type: application/xml
Body: <vm><os type=3D"windows_7"></os></vm>
=20
The response from ovirt engine is:
<?xml version=3D"1.0" encoding=3D"UTF-8"
standalone=3D"yes"?>
<fault>
<reason>Operation Failed</reason>
<detail>[Cannot edit VM. Invalid time zone for given OS =
type.]</detail>
</fault>
=20
Can anybody give a correct body for updating vm os type from "other" =
to
"windows_7=E2=80=9D?
Windows OSes have different set of timezones than Other and Linux
You need to supply a new one together in the same request
Thanks,
michal
=20
Thank you very much.
=20
=20
=20
--=20
Best regards,
Ao Qingyun
aoqingyun(a)gmail.com <mailto:aoqingyun@gmail.com>
=20
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
--Apple-Mail=_D4B21A60-EA41-4432-B1D4-702E9C1C67F8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv=3D"Content-Type"
content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote
type=3D"cite" class=3D""><div =
class=3D"">On 05 Jan 2016, at 07:03, Qingyun Ao <<a =
href=3D"mailto:aoqingyun@gmail.com"
class=3D"">aoqingyun(a)gmail.com</a>&gt;=
wrote:</div><br class=3D"Apple-interchange-newline"><div
class=3D""><div =
dir=3D"ltr" class=3D""><div class=3D""><div
class=3D""><div =
class=3D""><div class=3D""><div
class=3D""><div class=3D""><div =
class=3D""><div class=3D""><div
class=3D""><div class=3D""><div =
class=3D""><div class=3D""><div
class=3D"">Hello, all,<br class=3D""><br =
class=3D""><br class=3D""></div>I want to update vm os
type by ovirt =
rest api.<br class=3D""><br class=3D""></div>The
following is my =
request:<br class=3D""></div>Method: put<br
class=3D""></div>Content-Type:=
application/xml<br class=3D""></div>Body:
<vm><os =
type=3D"windows_7"></os></vm><br
class=3D""><br =
class=3D""></div>The response from ovirt engine is:<br =
class=3D""></div><?xml version=3D"1.0"
encoding=3D"UTF-8" =
standalone=3D"yes"?><br
class=3D""></div><fault><br =
class=3D""></div>
<reason>Operation =
Failed</reason><br
class=3D""></div> =
<detail>[Cannot edit VM. Invalid time zone for given OS =
type.]</detail><br
class=3D""></div></fault><br
class=3D""><br=
class=3D""></div>Can anybody give a correct body for updating vm os =
type from "other" to "windows_7=E2=80=9D?<br =
class=3D""></div></div></div></blockquote><div><br
=
class=3D""></div>Windows OSes have different set of timezones than
Other =
and Linux</div><div>You need to supply a new one together in the same =
request</div><div><br =
class=3D""></div><div>Thanks,</div><div>michal</div><div><br
=
class=3D""><blockquote type=3D"cite"
class=3D""><div class=3D""><div =
dir=3D"ltr" class=3D""><div class=3D""><br
class=3D""></div>Thank you =
very much.<br class=3D""><div class=3D""><div
class=3D""><div =
class=3D""><div class=3D""><div
class=3D""><div class=3D""><div =
class=3D""><div class=3D""><div
class=3D""><div class=3D""><div =
class=3D""><div class=3D""><div
class=3D""><div class=3D""><div =
class=3D""><br class=3D""><br clear=3D"all"
class=3D""><br class=3D"">-- =
<br class=3D""><div class=3D"gmail_signature"><div
dir=3D"ltr" =
class=3D""><font color=3D"#888888"
class=3D""><div dir=3D"ltr" =
class=3D""><div class=3D"">Best regards,</div>Ao
Qingyun<br =
class=3D""></div><div class=3D""><a
href=3D"mailto:aoqingyun@gmail.com" =
target=3D"_blank"
class=3D"">aoqingyun(a)gmail.com</a></div></font><div =
class=3D""><br
class=3D""></div></div></div>
=
</div></div></div></div></div></div></div></div></div></div></div></div></=
div></div></div></div>
_______________________________________________<br class=3D"">Users =
mailing list<br class=3D""><a href=3D"mailto:Users@ovirt.org"
=
class=3D"">Users(a)ovirt.org</a><br =
class=3D"">http://lists.ovirt.org/mailman/listinfo/users<br =
class=3D""></div></blockquote></div><br
class=3D""></body></html>=
--Apple-Mail=_D4B21A60-EA41-4432-B1D4-702E9C1C67F8--