You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Michael Phillips <mp...@hotmail.com> on 2014/04/05 19:32:36 UTC

Remove Mgmt Server

Hey dev guys, what's the proper way to remove a management server from a management server cluster?
I am referring to the actual management servers and not the hypervisors.... 		 	   		  

Re: Remove Mgmt Server

Posted by Koushik Das <ko...@citrix.com>.
+1 to the feature.

On 11-Apr-2014, at 6:05 AM, Michael Phillips <mp...@hotmail.com> wrote:

> I can create a JIRA request for this, but how many +1's do we need before it gets added to the "To Do" list?
> 
>> From: Alex.Huang@citrix.com
>> To: dev@cloudstack.apache.org
>> Subject: RE: Remove Mgmt Server
>> Date: Thu, 10 Apr 2014 23:47:57 +0000
>> 
>> Sorry.  I meant it should be like maintenance state.  Somehow pulled a brain fart and mixed up the two sets of states.  
>> 
>> Put the mgmtserver into maintenance -> moves into prepare for maintenance.  This means the mgmtserver stops taking new jobs and prepares to hand off all agents and just wait for existing jobs to finish.
>> 
>> When all jobs are done, state goes to maintenance and mgmt server can be shutdown.
>> If there are any problems with the agent handoffs and/or jobs waiting to the done then it goes into error in maintenance.   Admin can inspect and decide to shutoff or put it into maintenance again after fixing the problems.
>> 
>> --Alex
>> 
>>> -----Original Message-----
>>> From: Alex Huang [mailto:Alex.Huang@citrix.com]
>>> Sent: Thursday, April 10, 2014 4:41 PM
>>> To: dev@cloudstack.apache.org
>>> Subject: RE: Remove Mgmt Server
>>> 
>>> +1
>>> 
>>> It should be similar to how our resources have states:
>>> enable/disable/inactive.  Enable means the mgmt server node is enabled.
>>> Inactive means it shouldn't be serving new requests (in this case handle new
>>> jobs).  Disable means the mgmt. server is ready to be taken down because all
>>> jobs it is executing are done and all agent connections are transferred to
>>> another mgmt. server.  At that point someone can just shut off the mgmt.
>>> server.  This would be an orderly way to shutdown the mgmt. server.
>>> 
>>> --Alex
>>> 
>>>> -----Original Message-----
>>>> From: Michael Phillips [mailto:mphilli7823@hotmail.com]
>>>> Sent: Thursday, April 10, 2014 8:12 AM
>>>> To: dev@cloudstack.apache.org
>>>> Subject: RE: Remove Mgmt Server
>>>> 
>>>> One be nice to see an option in the UI to cleanly remove a management
>>>> server.
>>>> Thoughts?
>>>> 
>>>>> Date: Tue, 8 Apr 2014 21:38:29 -0300
>>>>> Subject: Re: Remove Mgmt Server
>>>>> From: rafaelweingartner@gmail.com
>>>>> To: dev@cloudstack.apache.org
>>>>> 
>>>>> I prefer to set the removed field to some data that represents the
>>>>> time when the server was removed. This way when a new management
>>>>> server gets up it does not waste time checking if some other server is up.
>>>>> 
>>>>> 
>>>>> On Tue, Apr 8, 2014 at 1:58 PM, Kelven Yang <ke...@citrix.com>
>>>> wrote:
>>>>> 
>>>>>> Just by stopping the running management server would do it already.
>>>>>> no further action is mandatory, however, if you prefer a complete
>>>>>> clean, login into DB and remove the corresponding record in mshost
>>>>>> table
>>>>>> 
>>>>>> Kelven
>>>>>> 
>>>>>> On 4/5/14, 10:32 AM, "Michael Phillips" <mp...@hotmail.com>
>>>> wrote:
>>>>>> 
>>>>>>> Hey dev guys, what's the proper way to remove a management server
>>>>>>> from a management server cluster?
>>>>>>> I am referring to the actual management servers and not the
>>>>>>> hypervisors....
>>>>>> 
>>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> Rafael Weingärtner
>>>> 
> 		 	   		  


RE: Remove Mgmt Server

Posted by Michael Phillips <mp...@hotmail.com>.
I can create a JIRA request for this, but how many +1's do we need before it gets added to the "To Do" list?

> From: Alex.Huang@citrix.com
> To: dev@cloudstack.apache.org
> Subject: RE: Remove Mgmt Server
> Date: Thu, 10 Apr 2014 23:47:57 +0000
> 
> Sorry.  I meant it should be like maintenance state.  Somehow pulled a brain fart and mixed up the two sets of states.  
> 
> Put the mgmtserver into maintenance -> moves into prepare for maintenance.  This means the mgmtserver stops taking new jobs and prepares to hand off all agents and just wait for existing jobs to finish.
> 
> When all jobs are done, state goes to maintenance and mgmt server can be shutdown.
> If there are any problems with the agent handoffs and/or jobs waiting to the done then it goes into error in maintenance.   Admin can inspect and decide to shutoff or put it into maintenance again after fixing the problems.
> 
> --Alex
> 
> > -----Original Message-----
> > From: Alex Huang [mailto:Alex.Huang@citrix.com]
> > Sent: Thursday, April 10, 2014 4:41 PM
> > To: dev@cloudstack.apache.org
> > Subject: RE: Remove Mgmt Server
> > 
> > +1
> > 
> > It should be similar to how our resources have states:
> > enable/disable/inactive.  Enable means the mgmt server node is enabled.
> > Inactive means it shouldn't be serving new requests (in this case handle new
> > jobs).  Disable means the mgmt. server is ready to be taken down because all
> > jobs it is executing are done and all agent connections are transferred to
> > another mgmt. server.  At that point someone can just shut off the mgmt.
> > server.  This would be an orderly way to shutdown the mgmt. server.
> > 
> > --Alex
> > 
> > > -----Original Message-----
> > > From: Michael Phillips [mailto:mphilli7823@hotmail.com]
> > > Sent: Thursday, April 10, 2014 8:12 AM
> > > To: dev@cloudstack.apache.org
> > > Subject: RE: Remove Mgmt Server
> > >
> > > One be nice to see an option in the UI to cleanly remove a management
> > > server.
> > > Thoughts?
> > >
> > > > Date: Tue, 8 Apr 2014 21:38:29 -0300
> > > > Subject: Re: Remove Mgmt Server
> > > > From: rafaelweingartner@gmail.com
> > > > To: dev@cloudstack.apache.org
> > > >
> > > > I prefer to set the removed field to some data that represents the
> > > > time when the server was removed. This way when a new management
> > > > server gets up it does not waste time checking if some other server is up.
> > > >
> > > >
> > > > On Tue, Apr 8, 2014 at 1:58 PM, Kelven Yang <ke...@citrix.com>
> > > wrote:
> > > >
> > > > > Just by stopping the running management server would do it already.
> > > > > no further action is mandatory, however, if you prefer a complete
> > > > > clean, login into DB and remove the corresponding record in mshost
> > > > > table
> > > > >
> > > > > Kelven
> > > > >
> > > > > On 4/5/14, 10:32 AM, "Michael Phillips" <mp...@hotmail.com>
> > > wrote:
> > > > >
> > > > > >Hey dev guys, what's the proper way to remove a management server
> > > > > >from a management server cluster?
> > > > > >I am referring to the actual management servers and not the
> > > > > >hypervisors....
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Rafael Weingärtner
> > >
 		 	   		  

RE: Remove Mgmt Server

Posted by Michael Phillips <mp...@hotmail.com>.
+1 on those steps.

> From: Alex.Huang@citrix.com
> To: dev@cloudstack.apache.org
> Subject: RE: Remove Mgmt Server
> Date: Thu, 10 Apr 2014 23:47:57 +0000
> 
> Sorry.  I meant it should be like maintenance state.  Somehow pulled a brain fart and mixed up the two sets of states.  
> 
> Put the mgmtserver into maintenance -> moves into prepare for maintenance.  This means the mgmtserver stops taking new jobs and prepares to hand off all agents and just wait for existing jobs to finish.
> 
> When all jobs are done, state goes to maintenance and mgmt server can be shutdown.
> If there are any problems with the agent handoffs and/or jobs waiting to the done then it goes into error in maintenance.   Admin can inspect and decide to shutoff or put it into maintenance again after fixing the problems.
> 
> --Alex
> 
> > -----Original Message-----
> > From: Alex Huang [mailto:Alex.Huang@citrix.com]
> > Sent: Thursday, April 10, 2014 4:41 PM
> > To: dev@cloudstack.apache.org
> > Subject: RE: Remove Mgmt Server
> > 
> > +1
> > 
> > It should be similar to how our resources have states:
> > enable/disable/inactive.  Enable means the mgmt server node is enabled.
> > Inactive means it shouldn't be serving new requests (in this case handle new
> > jobs).  Disable means the mgmt. server is ready to be taken down because all
> > jobs it is executing are done and all agent connections are transferred to
> > another mgmt. server.  At that point someone can just shut off the mgmt.
> > server.  This would be an orderly way to shutdown the mgmt. server.
> > 
> > --Alex
> > 
> > > -----Original Message-----
> > > From: Michael Phillips [mailto:mphilli7823@hotmail.com]
> > > Sent: Thursday, April 10, 2014 8:12 AM
> > > To: dev@cloudstack.apache.org
> > > Subject: RE: Remove Mgmt Server
> > >
> > > One be nice to see an option in the UI to cleanly remove a management
> > > server.
> > > Thoughts?
> > >
> > > > Date: Tue, 8 Apr 2014 21:38:29 -0300
> > > > Subject: Re: Remove Mgmt Server
> > > > From: rafaelweingartner@gmail.com
> > > > To: dev@cloudstack.apache.org
> > > >
> > > > I prefer to set the removed field to some data that represents the
> > > > time when the server was removed. This way when a new management
> > > > server gets up it does not waste time checking if some other server is up.
> > > >
> > > >
> > > > On Tue, Apr 8, 2014 at 1:58 PM, Kelven Yang <ke...@citrix.com>
> > > wrote:
> > > >
> > > > > Just by stopping the running management server would do it already.
> > > > > no further action is mandatory, however, if you prefer a complete
> > > > > clean, login into DB and remove the corresponding record in mshost
> > > > > table
> > > > >
> > > > > Kelven
> > > > >
> > > > > On 4/5/14, 10:32 AM, "Michael Phillips" <mp...@hotmail.com>
> > > wrote:
> > > > >
> > > > > >Hey dev guys, what's the proper way to remove a management server
> > > > > >from a management server cluster?
> > > > > >I am referring to the actual management servers and not the
> > > > > >hypervisors....
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Rafael Weingärtner
> > >
 		 	   		  

RE: Remove Mgmt Server

Posted by Alex Huang <Al...@citrix.com>.
Sorry.  I meant it should be like maintenance state.  Somehow pulled a brain fart and mixed up the two sets of states.  

Put the mgmtserver into maintenance -> moves into prepare for maintenance.  This means the mgmtserver stops taking new jobs and prepares to hand off all agents and just wait for existing jobs to finish.

When all jobs are done, state goes to maintenance and mgmt server can be shutdown.
If there are any problems with the agent handoffs and/or jobs waiting to the done then it goes into error in maintenance.   Admin can inspect and decide to shutoff or put it into maintenance again after fixing the problems.

--Alex

> -----Original Message-----
> From: Alex Huang [mailto:Alex.Huang@citrix.com]
> Sent: Thursday, April 10, 2014 4:41 PM
> To: dev@cloudstack.apache.org
> Subject: RE: Remove Mgmt Server
> 
> +1
> 
> It should be similar to how our resources have states:
> enable/disable/inactive.  Enable means the mgmt server node is enabled.
> Inactive means it shouldn't be serving new requests (in this case handle new
> jobs).  Disable means the mgmt. server is ready to be taken down because all
> jobs it is executing are done and all agent connections are transferred to
> another mgmt. server.  At that point someone can just shut off the mgmt.
> server.  This would be an orderly way to shutdown the mgmt. server.
> 
> --Alex
> 
> > -----Original Message-----
> > From: Michael Phillips [mailto:mphilli7823@hotmail.com]
> > Sent: Thursday, April 10, 2014 8:12 AM
> > To: dev@cloudstack.apache.org
> > Subject: RE: Remove Mgmt Server
> >
> > One be nice to see an option in the UI to cleanly remove a management
> > server.
> > Thoughts?
> >
> > > Date: Tue, 8 Apr 2014 21:38:29 -0300
> > > Subject: Re: Remove Mgmt Server
> > > From: rafaelweingartner@gmail.com
> > > To: dev@cloudstack.apache.org
> > >
> > > I prefer to set the removed field to some data that represents the
> > > time when the server was removed. This way when a new management
> > > server gets up it does not waste time checking if some other server is up.
> > >
> > >
> > > On Tue, Apr 8, 2014 at 1:58 PM, Kelven Yang <ke...@citrix.com>
> > wrote:
> > >
> > > > Just by stopping the running management server would do it already.
> > > > no further action is mandatory, however, if you prefer a complete
> > > > clean, login into DB and remove the corresponding record in mshost
> > > > table
> > > >
> > > > Kelven
> > > >
> > > > On 4/5/14, 10:32 AM, "Michael Phillips" <mp...@hotmail.com>
> > wrote:
> > > >
> > > > >Hey dev guys, what's the proper way to remove a management server
> > > > >from a management server cluster?
> > > > >I am referring to the actual management servers and not the
> > > > >hypervisors....
> > > >
> > > >
> > >
> > >
> > > --
> > > Rafael Weingärtner
> >

Re: Remove Mgmt Server

Posted by Rafael Weingartner <ra...@gmail.com>.
+1 I would love that


On Thu, Apr 10, 2014 at 8:40 PM, Alex Huang <Al...@citrix.com> wrote:

> +1
>
> It should be similar to how our resources have states:
> enable/disable/inactive.  Enable means the mgmt server node is enabled.
>  Inactive means it shouldn't be serving new requests (in this case handle
> new jobs).  Disable means the mgmt. server is ready to be taken down
> because all jobs it is executing are done and all agent connections are
> transferred to another mgmt. server.  At that point someone can just shut
> off the mgmt. server.  This would be an orderly way to shutdown the mgmt.
> server.
>
> --Alex
>
> > -----Original Message-----
> > From: Michael Phillips [mailto:mphilli7823@hotmail.com]
> > Sent: Thursday, April 10, 2014 8:12 AM
> > To: dev@cloudstack.apache.org
> > Subject: RE: Remove Mgmt Server
> >
> > One be nice to see an option in the UI to cleanly remove a management
> > server.
> > Thoughts?
> >
> > > Date: Tue, 8 Apr 2014 21:38:29 -0300
> > > Subject: Re: Remove Mgmt Server
> > > From: rafaelweingartner@gmail.com
> > > To: dev@cloudstack.apache.org
> > >
> > > I prefer to set the removed field to some data that represents the
> > > time when the server was removed. This way when a new management
> > > server gets up it does not waste time checking if some other server is
> up.
> > >
> > >
> > > On Tue, Apr 8, 2014 at 1:58 PM, Kelven Yang <ke...@citrix.com>
> > wrote:
> > >
> > > > Just by stopping the running management server would do it already.
> > > > no further action is mandatory, however, if you prefer a complete
> > > > clean, login into DB and remove the corresponding record in mshost
> > > > table
> > > >
> > > > Kelven
> > > >
> > > > On 4/5/14, 10:32 AM, "Michael Phillips" <mp...@hotmail.com>
> > wrote:
> > > >
> > > > >Hey dev guys, what's the proper way to remove a management server
> > > > >from a management server cluster?
> > > > >I am referring to the actual management servers and not the
> > > > >hypervisors....
> > > >
> > > >
> > >
> > >
> > > --
> > > Rafael Weingärtner
> >
>



-- 
Rafael Weingärtner

RE: Remove Mgmt Server

Posted by Alex Huang <Al...@citrix.com>.
+1

It should be similar to how our resources have states: enable/disable/inactive.  Enable means the mgmt server node is enabled.  Inactive means it shouldn't be serving new requests (in this case handle new jobs).  Disable means the mgmt. server is ready to be taken down because all jobs it is executing are done and all agent connections are transferred to another mgmt. server.  At that point someone can just shut off the mgmt. server.  This would be an orderly way to shutdown the mgmt. server.

--Alex

> -----Original Message-----
> From: Michael Phillips [mailto:mphilli7823@hotmail.com]
> Sent: Thursday, April 10, 2014 8:12 AM
> To: dev@cloudstack.apache.org
> Subject: RE: Remove Mgmt Server
> 
> One be nice to see an option in the UI to cleanly remove a management
> server.
> Thoughts?
> 
> > Date: Tue, 8 Apr 2014 21:38:29 -0300
> > Subject: Re: Remove Mgmt Server
> > From: rafaelweingartner@gmail.com
> > To: dev@cloudstack.apache.org
> >
> > I prefer to set the removed field to some data that represents the
> > time when the server was removed. This way when a new management
> > server gets up it does not waste time checking if some other server is up.
> >
> >
> > On Tue, Apr 8, 2014 at 1:58 PM, Kelven Yang <ke...@citrix.com>
> wrote:
> >
> > > Just by stopping the running management server would do it already.
> > > no further action is mandatory, however, if you prefer a complete
> > > clean, login into DB and remove the corresponding record in mshost
> > > table
> > >
> > > Kelven
> > >
> > > On 4/5/14, 10:32 AM, "Michael Phillips" <mp...@hotmail.com>
> wrote:
> > >
> > > >Hey dev guys, what's the proper way to remove a management server
> > > >from a management server cluster?
> > > >I am referring to the actual management servers and not the
> > > >hypervisors....
> > >
> > >
> >
> >
> > --
> > Rafael Weingärtner
> 

Re: Remove Mgmt Server

Posted by Rafael Weingartner <ra...@gmail.com>.
I would love a function like this ;)


On Thu, Apr 10, 2014 at 12:11 PM, Michael Phillips
<mp...@hotmail.com>wrote:

> One be nice to see an option in the UI to cleanly remove a management
> server.
> Thoughts?
>
> > Date: Tue, 8 Apr 2014 21:38:29 -0300
> > Subject: Re: Remove Mgmt Server
> > From: rafaelweingartner@gmail.com
> > To: dev@cloudstack.apache.org
> >
> > I prefer to set the removed field to some data that represents the time
> > when the server was removed. This way when a new management server gets
> up
> > it does not waste time checking if some other server is up.
> >
> >
> > On Tue, Apr 8, 2014 at 1:58 PM, Kelven Yang <ke...@citrix.com>
> wrote:
> >
> > > Just by stopping the running management server would do it already. no
> > > further action is mandatory, however, if you prefer a complete clean,
> > > login into DB and remove the corresponding record in mshost table
> > >
> > > Kelven
> > >
> > > On 4/5/14, 10:32 AM, "Michael Phillips" <mp...@hotmail.com>
> wrote:
> > >
> > > >Hey dev guys, what's the proper way to remove a management server
> from a
> > > >management server cluster?
> > > >I am referring to the actual management servers and not the
> > > >hypervisors....
> > >
> > >
> >
> >
> > --
> > Rafael Weingärtner
>
>



-- 
Rafael Weingärtner

RE: Remove Mgmt Server

Posted by Michael Phillips <mp...@hotmail.com>.
One be nice to see an option in the UI to cleanly remove a management server.
Thoughts?

> Date: Tue, 8 Apr 2014 21:38:29 -0300
> Subject: Re: Remove Mgmt Server
> From: rafaelweingartner@gmail.com
> To: dev@cloudstack.apache.org
> 
> I prefer to set the removed field to some data that represents the time
> when the server was removed. This way when a new management server gets up
> it does not waste time checking if some other server is up.
> 
> 
> On Tue, Apr 8, 2014 at 1:58 PM, Kelven Yang <ke...@citrix.com> wrote:
> 
> > Just by stopping the running management server would do it already. no
> > further action is mandatory, however, if you prefer a complete clean,
> > login into DB and remove the corresponding record in mshost table
> >
> > Kelven
> >
> > On 4/5/14, 10:32 AM, "Michael Phillips" <mp...@hotmail.com> wrote:
> >
> > >Hey dev guys, what's the proper way to remove a management server from a
> > >management server cluster?
> > >I am referring to the actual management servers and not the
> > >hypervisors....
> >
> >
> 
> 
> -- 
> Rafael Weingärtner
 		 	   		  

Re: Remove Mgmt Server

Posted by Rafael Weingartner <ra...@gmail.com>.
I prefer to set the removed field to some data that represents the time
when the server was removed. This way when a new management server gets up
it does not waste time checking if some other server is up.


On Tue, Apr 8, 2014 at 1:58 PM, Kelven Yang <ke...@citrix.com> wrote:

> Just by stopping the running management server would do it already. no
> further action is mandatory, however, if you prefer a complete clean,
> login into DB and remove the corresponding record in mshost table
>
> Kelven
>
> On 4/5/14, 10:32 AM, "Michael Phillips" <mp...@hotmail.com> wrote:
>
> >Hey dev guys, what's the proper way to remove a management server from a
> >management server cluster?
> >I am referring to the actual management servers and not the
> >hypervisors....
>
>


-- 
Rafael Weingärtner

Re: Remove Mgmt Server

Posted by Kelven Yang <ke...@citrix.com>.
Just by stopping the running management server would do it already. no
further action is mandatory, however, if you prefer a complete clean,
login into DB and remove the corresponding record in mshost table

Kelven

On 4/5/14, 10:32 AM, "Michael Phillips" <mp...@hotmail.com> wrote:

>Hey dev guys, what's the proper way to remove a management server from a
>management server cluster?
>I am referring to the actual management servers and not the
>hypervisors....