Xesxupdate.pl – problems with ESX-1001729
October 4th, 2007
There is a problem running Xesxupdate.pl version 1.3 when your updates.list includes the ESX 3.0.2 patch ESX-1001729. This is a problem with the VMware’s patch itself and has nothing to do with my script. You can see the exact problem by running:
<code> [root@mnhqesx02 scripts]# /usr/sbin/esxupdate -r http://10.10.24.250/kickstart/ks-oses/esx-302/patches/ESX-1001729 info Traceback (most recent call last): File "/usr/sbin/esxupdate", line 481, in ? Main() File "/usr/sbin/esxupdate", line 330, in Main PatchInfo(db, patchlevel, repourls, listrpms) File "/usr/sbin/esxupdate", line 185, in PatchInfo print insthelper.FormatHashVerbose(h, listRpms) UnicodeError: ASCII encoding error: ordinal not in range(128) </code>
There is something wrong with the file descriptor.xml inside ESX-1001729. You may fix this by editing the file and removing all text between <description> and </description>.
So your descriptor.xml should look like:
<descriptor version="1.0">
<vendor>VMware, Inc.</vendor>
<product>VMware ESX Server</product>
<release>ESX-1001729</release>
<releasedate>Fri Aug 31 18:13:57 PDT 2007</releasedate>
<summary>Security update for gcc packages.</summary>
<description></description>
<contact>support@vmware.com</contact>
<type>Partial</type>
<info>Obsolete rpm: VMware-esx-debug-tools</info>
<upgradepaths>
<path release="3.0.2-52542">
<pre>MModeOptional</pre>
<post>RebootOptional</post>
</path>
</upgradepaths>
<rpmlist>
<rpm arch="i386" rel="59" ver="3.2.3">cpp</rpm>
<rpm arch="i386" rel="59" ver="3.2.3">gcc</rpm>
<rpm arch="i386" rel="59" ver="3.2.3">libgcc</rpm>
<rpm arch="i386" rel="59" ver="3.2.3">libstdc++</rpm>
</rpmlist>
</descriptor>