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.hu...@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:mphilli7...@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: rafaelweingart...@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 <kelven.y...@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" <mphilli7...@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 > >