Two enhancements of the type "zone" would be great: - a zone transition from ''running'' to ''installed'' should do a complete shutdown of the zone before ''zoneadm -z <zonename> halt'' is called, respectively instead of it. zlogin <zonename> "init 0" does the job, but it comes back immediately without checking the completion. Maybe a configurable timeout could solve this: check the state of the zone, if it''s still running after the timeout, do the ''zoneadm -z <zonename> halt'' Another thing that would be useful: a kind of "maintenance state" for a defined object like a zone. This should mean for puppet: don''t do anything with this object as long it is in maint. state. I''ve had shutdown a zone on a machine for maintenance, but after few minutes pupped kicked in and restarted it. What surprise! cheers, frank
On May 8, 2007, at 1:51 AM, Frank Munsche wrote:> Two enhancements of the type "zone" would be great: > > - a zone transition from ''running'' to ''installed'' should do a complete > shutdown of the zone before ''zoneadm -z <zonename> halt'' is called, > respectively instead of it. > > zlogin <zonename> "init 0" does the job, but it comes back > immediately > without checking the completion. Maybe a configurable timeout could > solve > this: check the state of the zone, if it''s still running after the > timeout, > do the ''zoneadm -z <zonename> halt''Would you be able to provide patches for this? I developed zone support for a company I no longer work with, so I don''t actually work with zones any more. I''m certainly willing to apply any patches you send, since you''re clearly using the support and I''m not sure anyone else is.> Another thing that would be useful: a kind of "maintenance state" > for a > defined object like a zone. This should mean for puppet: don''t do > anything > with this object as long it is in maint. state. > I''ve had shutdown a zone on a machine for maintenance, but after > few minutes > pupped kicked in and restarted it. What surprise!Hmm. This should probably be some "leave me alone" value for ''ensure''. I wouldn''t think that would be hard. Can you file that as an enhancement request? If I get it done, I expect I''ll need you to test it. -- What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? --Larry Wall in <1992Aug26.184221.29627@netlabs.com> --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On Tuesday 08 May 2007 17:32, Luke Kanies wrote:> On May 8, 2007, at 1:51 AM, Frank Munsche wrote: > > Two enhancements of the type "zone" would be great: > > > > - a zone transition from ''running'' to ''installed'' should do a complete > > shutdown of the zone before ''zoneadm -z <zonename> halt'' is called, > > respectively instead of it. > > > > zlogin <zonename> "init 0" does the job, but it comes back > > immediately > > without checking the completion. Maybe a configurable timeout could > > solve > > this: check the state of the zone, if it''s still running after the > > timeout, > > do the ''zoneadm -z <zonename> halt'' > > Would you be able to provide patches for this? I developed zone > support for a company I no longer work with, so I don''t actually work > with zones any more. > > I''m certainly willing to apply any patches you send, since you''re > clearly using the support and I''m not sure anyone else is.Unfortunately I''m not familiar with ruby yet. It could take some time-(> > > Another thing that would be useful: a kind of "maintenance state" > > for a > > defined object like a zone. This should mean for puppet: don''t do > > anything > > with this object as long it is in maint. state. > > I''ve had shutdown a zone on a machine for maintenance, but after > > few minutes > > pupped kicked in and restarted it. What surprise! > > Hmm. This should probably be some "leave me alone" value for > ''ensure''. I wouldn''t think that would be hard. > > Can you file that as an enhancement request? If I get it done, I > expect I''ll need you to test it.Ok, I''ve created the new request.> > -- > What is the sound of Perl? Is it not the sound of a wall that > people have stopped banging their heads against? > --Larry Wall in <1992Aug26.184221.29627@netlabs.com> > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users