dalgibbard / citrix_xenserver_patcher

Auto / Manual Patching tool for Citrix XenServer Boxes
Do What The F*ck You Want To Public License
142 stars 45 forks source link

unable to update #9

Closed thctlo closed 10 years ago

thctlo commented 10 years ago

Hai, im trying to update my server and patcher wont work.

this is the console output:

./patcher.py -e ./XS62_exclusions.py The following Patches are pending installation:

uuid: 78251ea4-e4e7-4d72-85bd-b22bc137e20b url: http://support.citrix.com/article/CTX140052 timestamp: 2014-01-22T00:00:00Z name_label: XS62E014 patch_url: http://downloadns.citrix.com.edgesuite.net/8736/XS62E014.zip after_apply_guidance: restartHost name_description: Public Availability: security fixes to Xen

uuid: 297f2f77-5603-4aaf-9e56-db49512d4592 url: http://support.citrix.com/article/CTX140051 timestamp: 2014-01-22T00:00:00Z name_label: XS62ESP1002 patch_url: http://downloadns.citrix.com.edgesuite.net/8737/XS62ESP1002.zip after_apply_guidance: restartHost name_description: Public Availability: security fixes to Xen

NOTE: Installation of these items will require a reboot! You will be prompted to reboot at the end.

Would you like to install these items? [y/n]: y Starting patching... Downloading: XS62E014.zip Download Size: 9042981 Bytes Applying: XS62E0140%] Uncompressing... Internal Upload... The uploaded patch file already exists uuid: 78251ea4-e4e7-4d72-85bd-b22bc137e20b Applying Patch... The uploaded patch file is invalid. See attached log for more details. log: error parsing patch precheck xml: expected one of these character sequence: "required", found "error" line 4 Patch apply failed for: XS62E014.xsupdate

thctlo commented 10 years ago

i added the patch XS62E014 to the 6.2 exclusion and this is the output, looks ok.

patcher.py -e ./XS62_exclusions.py The following Patches are pending installation:

uuid: 297f2f77-5603-4aaf-9e56-db49512d4592 url: http://support.citrix.com/article/CTX140051 timestamp: 2014-01-22T00:00:00Z name_label: XS62ESP1002 patch_url: http://downloadns.citrix.com.edgesuite.net/8737/XS62ESP1002.zip after_apply_guidance: restartHost name_description: Public Availability: security fixes to Xen

NOTE: Installation of these items will require a reboot! You will be prompted to reboot at the end.

Would you like to install these items? [y/n]: y Starting patching... Downloading: XS62ESP1002.zip Download Size: 9041707 Bytes Applying: XS62ESP1002 Uncompressing... Internal Upload... Applying Patch...

A reboot is now required. Would you like to reboot now? [y/n]:

dalgibbard commented 10 years ago

Your problem is technically valid, but is a duplicate of https://github.com/dalgibbard/citrix_xenserver_patcher/issues/6

When dealing with hosts which are part of a pool, the script appears to only validate the very first node in the comma seperated list - if that happens to NOT be the host you actually want to patch, then it will incorrectly match the patches to apply.

Its on my to do list, but have been busy on other projects lately :(