xcp storage repository problems.

Valerio De Rosa
Tue, 14 Feb 2012 16:09:21 -0000

This time i
will try to be more specific on my problem. I am always trying to install and
run a VM with xcp on my machine with ubuntu 11.10.
First step
for doing this is the creation of a sr. And I can do that with this command:

xe
sr-create content-type=user type=nfs name-label=condivisa shared=true
device-config:server=n11 device-config:serverpath=/var/condivisa

After that
a pbd is automatically created, but it is not attached to my this sr. I update
my pool list also, setting as default, the sr I just dreated with:

Xe pool-param-set
uuid=<uuid of the pool> default-SR=<uuid of my SR>

 I try then a pbd-plug command and I get this
error.

[22914]
2012-02-14 11:53:58.063375      *****
sr_attach: EXCEPTION <type ''exceptions.AttributeError''>,
UDSTransport
instance has no attribute ''_connection''
  File
"/usr/lib/xcp/sm/SRCommand.py", line 94, in run
    return self._run_locked(sr)
  File
"/usr/lib/xcp/sm/SRCommand.py", line 131, in _run_locked
    return self._run(sr, target)
  File
"/usr/lib/xcp/sm/SRCommand.py", line 234, in _run
    self.params[''sr_uuid''], is_master)
  File "/usr/lib/xcp/sm/resetvdis.py",
line 27, in reset
    sr_ref session.xenapi.SR.get_by_uuid(sr_uuid)
  File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 229, in
__call__
    return self.__send(self.__name, args)
  File
"/usr/local/lib/python2.7/dist-packages/XenAPI.py", line 133, in
xenapi_request
    result = _parse_result(getattr(self,
methodname)(*full_params))
  File
"/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File
"/usr/lib/python2.7/xmlrpclib.py", line 1575, in __request
    verbose=self.__verbose
  File
"/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler,
request_body, verbose)
  File
"/usr/lib/python2.7/xmlrpclib.py", line 1303, in single_request
    self.close()
  File
"/usr/lib/python2.7/xmlrpclib.py", line 1378, in close
    if self._connection[1]:

I can’t
find a solution at this. I took the error from the /var/log/SMlog folder.
I created
sr of iso and nfs type, but nothing changed (but I think the nfs type is the
right one thou).
Any tips?
Valerio.

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com