All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joel Stanley <joel@jms.id.au>
To: Andrew Geissler <geissonator@gmail.com>
Cc: OpenBMC Maillist <openbmc@lists.ozlabs.org>
Subject: Re: Target name refactoring
Date: Wed, 22 Feb 2017 13:30:38 +1030	[thread overview]
Message-ID: <CACPK8XfDvDi_fUEzFo2vBHU2O=djucY1t27gqY-=RgoJQo3LWQ@mail.gmail.com> (raw)
In-Reply-To: <CALLMt=r62pSsVx+5DRsyxRThX0WahOO8wk5ENcc+t7ZfyoPoVw@mail.gmail.com>

On Tue, Feb 21, 2017 at 8:50 AM, Andrew Geissler <geissonator@gmail.com> wrote:
> Some design decisions came out of my last set of changes in the
> OpenBMC state area.  There was a proposal to rename our targets
> responsible for booting and powering on/off the system.
>
> Currently we have this:
> - PowerOn: obmc-power-chassis-on.target    obmc-chassis-start.target
> - PowerOff: obmc-power-chassis-off.target    obmc-chassis-stop.target
>   obmc-stop-host.target
>
> The obmc-power-chassis-*.targets are responsible for doing whatever is
> required to apply pgood to the chassis.
> The obmc-chassis-*.targets are responsible for starting and stopping
> all host related services
> The obmc-stop-host.target is where we have the soft power off service
> (notify host of shutdown, wait for host to shutdown gracefully)
>
> Refactoring Proposal:
> - First the chassis-start and chassis-stop target names don’t make
> sense anymore with the new bmc, chassis, and host state break down’s
> so:
>   - Rename obmc-chassis-start.target to obmc-start-host.target
>   - Rename obmc-chassis-stop.target to obmc-stop-host.target
>   - Rename the current obmc-stop-host.target to obmc-shutdown-host.target

Can I suggest putting the host before the action?

obmc-host-stop
obmc-host-start
obmc-host-shutdown

>
> The target relationships are then the following:
>
> obmc-host-start.target requires obmc-power-chassis-on.target
> obmc-shutdown-host.target requires obmc-stop-host.target requires
> obmc-power-chassis-off.target

obmc-host-start requires obmc-chassis-poweron

obmc-host-shutdown requires obmc-host-stop requires obmc-chassis-poweroff

I think the rest of your proposal sounds good, from what I understand.

Cheers,

Joel

>
> When a system goes to the quiesce target, the host state manager will
> call the obmc-stop-host.target.  Otherwise, the host state service
> will call the obmc-shutdown-host.target when power off is requested.
>
> Thoughts/Comments?
> Andrew

  reply	other threads:[~2017-02-22  3:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-20 22:20 Target name refactoring Andrew Geissler
2017-02-22  3:00 ` Joel Stanley [this message]
2017-02-24  4:05   ` Andrew Geissler
2017-02-24  5:20     ` Andrew Jeffery
2017-02-24 13:59   ` Brad Bishop
2017-02-24 16:41     ` Rick Altherr
2017-02-24 18:24       ` Brad Bishop
2017-02-24 21:31         ` Rick Altherr
2017-02-24 22:41           ` Andrew Geissler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACPK8XfDvDi_fUEzFo2vBHU2O=djucY1t27gqY-=RgoJQo3LWQ@mail.gmail.com' \
    --to=joel@jms.id.au \
    --cc=geissonator@gmail.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.