[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] XCP installer cannot restore from backup


  • To: xen-api@xxxxxxxxxxxxx
  • From: Trix Farrar <trix@xxxxxxxxxxxx>
  • Date: Sun, 16 Dec 2012 00:48:35 -0600
  • Delivery-date: Sun, 16 Dec 2012 06:49:00 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

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
trix@xxxxxxxxxxxx                (` o-o ')   http://www.basement.net/
--------------------------------ooO-(_)-Ooo--------------------------
 GPG Key Fprint: 525F DBA7 1A62 E4C4 E642  DF95 384B B851 3CEF C10A

Attachment: pgpYzRV2o1JTA.pgp
Description: PGP signature

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.