cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhinandan Prateek <>
Subject Re: Removing a host from a cluster and adding it to another
Date Wed, 28 Jan 2015 05:55:41 GMT
The tag needs to be removed from the Xen Hypervisor so that it cleanly goes to another cluster.
Use the following to clear host tags after detaching it from the pool:

xe host-param-clear uuid=$host param-name=tags;  (Run it in moving Xen host)

You also need to clear the SR on this host so that there is no conflict when it is added to
another cluster. Following are the steps to clear the SR:

[root@xenserver1-cloudstack ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
                      19856384   2560128  16300160  14% /var/run/sr-mount/66f0805b-da95-872c-2a6e-d5c46c219c2a

[root@xenserver1-cloudstack ~]# xe pbd-list sr-uuid=66f0805b-da95-872c-2a6e-d5c46c219c2a
uuid ( RO)                  : 2e2aced7-f27f-917f-a017-68f3504967f0

[root@xenserver1-cloudstack ~]# xe pbd-unplug uuid=2e2aced7-f27f-917f-a017-68f3504967f0
[root@xenserver1-cloudstack ~]# xe sr-forget uuid=66f0805b-da95-872c-2a6e-d5c46c219c2a

# for pbd in `xe pbd-list currently-attached=false| grep ^uuid | awk '{print $NF}'`; do xe
pbd-plug uuid=$pbd ; done

Abhinandan Prateek

M +919701199011

> On 28-Jan-2015, at 9:49 am, Kyle Flavin <> wrote:
> Ah, yes I can confirm that there is a host tag with the following query on the CS database.
 Here is the sanitized output from the host_tags table:
> select * from host_tags where host_id=<host_id>;
> +-----+---------+----------------+
> | id  | host_id | tag            |
> +-----+---------+----------------+
> | <id> |      <hosted> | <host_name> |
> +-----+---------+----------------+
> Is it safe to delete this entry, or should I add the host back into its old cluster and
then delete the tag through the UI?
> -----Original Message-----
> From: Somesh Naidu []
> Sent: Tuesday, January 27, 2015 5:20 PM
> To:
> Subject: RE: Removing a host from a cluster and adding it to another
> Yes, check what's in the "tags" parameter of that host. Cleaning it should resolve the
> Regards,
> Somesh
> -----Original Message-----
> From: Kyle Flavin []
> Sent: Tuesday, January 27, 2015 7:50 PM
> To:
> Subject: Removing a host from a cluster and adding it to another
> I've removed a host from one Cloudstack cluster, and I'm attempting to add it to a new
cluster.  It will be the only host in the cluster, and used for testing purposes.  I put the
host into maintenance mode, removed it from its original cluster within the Cloudstack UI,
then deleted it from the Xen pool using xe pool-eject.
> Now when I create a new cluster, and try to add the host, I get an error message that
just says "Unable to add host" from within the Cloudstack web UI.  I see messages in management-server.log
that say "Trying to add a new host at http://<myhost<http://%3cmyhost>>", but
no indication of an error:
> 2015-01-27 16:28:31,142 INFO  [c.c.r.ResourceManagerImpl] (catalina-exec-13:ctx-4ab1a388
ctx-fa2957ea) Trying to add a new host at http://<myhost> in data center 1
> On the Xen host itself, I see the following in the xensource.log:
> Jan 28 00:28:31 <host> t1 /opt/xensource/bin/xapi: [debug|<host>|748 INET|pool_patch.get_by_uuid D:5fb0d4d944bb|dispatcher] Server_helpers.exec exception_handler:
Got exception UUID_INVALID: [ pool_patch; 996dd2e7-ad95-49cc-a0be-2c9adc4dfb0b ]
> It references an invalid ID, but I'm not sure what that UUID belongs to; it isn't the
UUID of the pool.
> Is there something that needs to be done to "clear" the configuration of a Xenserver
host prior to adding it to a new cluster?  Or is Cloudstack "remembering" the old host name
and not allowing me to put it into the new cluster?
> Thanks,
> Kyle

Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<>
CSForge – rapid IaaS deployment framework<>
CloudStack Consulting<>
CloudStack Software Engineering<>
CloudStack Infrastructure Support<>
CloudStack Bootcamp Training Courses<>

This email and any attachments to it may be confidential and are intended solely for the use
of the individual to whom it is addressed. Any views or opinions expressed are solely those
of the author and do not necessarily represent those of Shape Blue Ltd or related companies.
If you are not the intended recipient of this email, you must neither take any action based
upon its contents, nor copy or show it to anyone. Please contact the sender if you believe
you have received this email in error. Shape Blue Ltd is a company incorporated in England
& Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated
under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated
in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company
registered by The Republic of South Africa and is traded under license from Shape Blue Ltd.
ShapeBlue is a registered trademark.
View raw message