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

XenServer 7 support? #56

Closed bpbp-boop closed 7 years ago

bpbp-boop commented 8 years ago

Running on a test XS7 host:

HOSTUUID: 2689cea4-66f0-4e87-9ccd-c02406945143
Installed Patches: ['561b0a27-f37e-4a91-9823-56c8597f8161']
Trying to establish which 'null' is correct. If you see an 'X MATCHED' message, please notify me on Github via an Issue!

Failed to read Auto-Exclusion List from: https://raw.githubusercontent.com/dalgibbard/citrix_xenserver_patcher/master/exclusions/XS70_excludes.py
Check the URL is available, and connectivity is OK.

Error: HTTP Error 404: Not Found
dalgibbard commented 8 years ago

This just needs an empty exclusions file to be created really. Quick job, but I'm out and about all day today.

As a work around, try running patcher.py with the -E flag.

dalgibbard commented 8 years ago

-E flag bug fixed by @bpbp-boop - will hold this issue open though as need to create the excludes firs for 7 (and probably review the lists for 6 whilst I'm at it)

dalgibbard commented 8 years ago

Empty exclusions file committed with commit a3353fe - untested though, but should be OK- having a brief flick through, an empty list my trip a bug, but will have to see :)

Dids commented 8 years ago
[root@xena ~]# ./patcher.py
Detected XenServer Version: 7.0.0

Error: Failed to obtain HOSTUUID from XE CLI
Dids commented 8 years ago

Looks like the grep etc. are working just fine, but the xe host-list is returning an empty value.

Dids commented 8 years ago

Okay, so /etc/sysconfig/network was displaying my hostname as Xena, while it's actually just lowercase xena, meaning xe host-list couldn't find it.

I manually renamed it to be lowercase, and it looks like the patcher's working fine now. :)

EDIT: Spoke too soon:

Failed to apply patch: The patch precheck stage failed: the server is of an incorrect version.
patch: 81ae90d4-9258-47d4-9c66-2d22a162f15d (XS70E003)
found_version: 7.0
required_version: XS70E004 - Public Availability: Xapi fix for storage data corruption

Secondary validation check...
Patch apply failed for: XS70E003.xsupdate

EDIT 2: Looks like manually installing XS70E004 allowed me to install the rest using the patcher. Whew, crisis averted.

jneteuorg commented 7 years ago

New install of XenServer 7.

setting the hostname manually after install, via the CLI allowed me to run the patcher without issues.

xe host-set-hostname-live host-uuid=eee53390-a5a4-4c20-bcd1-93ded56de12b host-name=myhostname.foo.bar

dalgibbard commented 7 years ago

Interesting... It's still unclear to me how the host-list value ends up being different to the OS configuration? If anyone has any suggestions on how to improve this, I'm all ears :)

Otherwise it may just be a matter of improving the reported error with a link to a wiki page for troubleshooting or something?

Daniel-Furcht commented 7 years ago

Reconfiguring Management interface and host name post install fixes this issue. "Error: Failed to obtain HOSTUUID from XE CLI"

dalgibbard commented 7 years ago

Closed by a3353fe