Closed bpbp-boop closed 7 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.
-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)
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 :)
[root@xena ~]# ./patcher.py
Detected XenServer Version: 7.0.0
Error: Failed to obtain HOSTUUID from XE CLI
Looks like the grep etc. are working just fine, but the xe host-list is returning an empty value.
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.
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
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?
Reconfiguring Management interface and host name post install fixes this issue. "Error: Failed to obtain HOSTUUID from XE CLI"
Closed by a3353fe
Running on a test XS7 host: