I tried upgrading from XCP 1.5BETA to 1.6. I did not go well; the host came up fine, but I couldn't start any domains. (Error 12) I'll look into that later. First priority was to roll back to the backup.
It turns out that on XCP hosts created by 1.5BETA or 1.6, the
/etc/xensource-inventory file lacks a line stating:
PRODUCT_BRAND='XCP'
This chokes up "self.brand = self.inventory['PRODUCT_BRAND']"
assignment on line 410 of /opt/xensource/installer/product.py on the
installer CD. This is the __init__ function for class
XenServerBackup. The affected function reads:
class XenServerBackup:
def __init__(self, part, mnt):
self.partition = part
self.inventory = util.readKeyValueFile(os.path.join(mnt,
constants.INVENTORY_FILE), strip_quotes = True)
self.name = self.inventory['PRODUCT_NAME']
self.brand = self.inventory['PRODUCT_BRAND']
self.version = Version.from_string("%s-%s" %
(self.inventory['PLATFORM_VERSION'], self.inventory['BUILD_NUMBER']))
self.build = self.inventory['BUILD_NUMBER']
self.root_disk =
diskutil.partitionFromId(self.inventory['PRIMARY_DISK'])
Since I was in a hurry, I just hardcoded the assignment. The rollback
to backup worked perfectly, but somebody may want to look into this.
--
John D. "Trix" Farrar __\\|//__ Basement.NET
[email protected] (` o-o ') http://www.basement.net/
--------------------------------ooO-(_)-Ooo--------------------------
GPG Key Fprint: 525F DBA7 1A62 E4C4 E642 DF95 384B B851 3CEF C10A
pgpVXgNx1rlLb.pgp
Description: PGP signature
_______________________________________________ Xen-api mailing list [email protected] http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
