Jump to content
Welcome to our new Citrix community!
  • 0

No guest template since 6.5


Pierre Gauthier

Question

Hi, We have lost all templates in one of our pools since 6.5 was installed. We have fresh installed 7.1 CU1 and then replaced all the Xen hosts for new computers and installed CU2. And we still can't get our templates in that pool. Here is the error when I try to create the template with /usr/bin/create-guest-templates:

 

Load /usr/share/xapi/vm-templates/windows-server-2012-64bit.json

...

Load /usr/share/xapi/vm-templates/base-windows-8.json
Insert 3a332616-7410-4dc7-8d57-c12f5291c34b
Traceback (most recent call last):
  File "./create-guest-templates", line 17, in <module>
    loader.insert_templates()
  File "/usr/lib/python2.7/site-packages/guesttemplates/loader.py", line 167, in insert_templates
    self._insert_template(i)
  File "/usr/lib/python2.7/site-packages/guesttemplates/loader.py", line 158, in _insert_template
    template_ref = self._session.xenapi.VM.get_by_uuid(template.uuid)
  File "/usr/lib/python2.7/site-packages/XenAPI.py", line 254, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/site-packages/XenAPI.py", line 150, in xenapi_request
    result = _parse_result(getattr(self, methodname)(*full_params))
  File "/usr/lib/python2.7/site-packages/XenAPI.py", line 228, in _parse_result
    raise Failure(result['ErrorDescription'])
XenAPI.Failure: ['UUID_INVALID', 'VM', '3a332616-7410-4dc7-8d57-c12f5291c34b']
 

Any suggestion?

 

Link to comment

9 answers to this question

Recommended Posts

  • 0

Very interesting thaught Alan. Tried it, but it keeps looking for that template:

 

[root@weg-xen-ops1 vm-templates]# /usr/bin/create-guest-templates
Load /usr/share/xapi/vm-templates/windows-server-2012-64bit.json
Traceback (most recent call last):
  File "/usr/bin/create-guest-templates", line 15, in <module>
    loader.load_templates()
  File "/usr/lib/python2.7/site-packages/guesttemplates/loader.py", line 62, in load_templates
    template = self._load_template(fname)
  File "/usr/lib/python2.7/site-packages/guesttemplates/loader.py", line 50, in _load_template
    ret = self._load_template(self._confs[template['derived_from']])
KeyError: u'base-windows-8.json'

 

This problem follows the pool metadata cause everything else is fresh installed. 

Link to comment
  • 0

We spent some time comparing the database to the one in other clusters, and removing some off the templates to see what happens. It turns out that none of the template's UUID are in the xapi database for the faulty cluster. Our actual thinking is that the script just can't add them to the system and that the database may not be at fault. We have an open ticket with Citrix and will wait for their answer. Worst case scenario would be to build a new pool and transfer VMs to the new pool. Which is not something that easy in a 24/7 service level.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...