[openstack-dev] [nova][osc] Use of openstack client for admin commands
jaypipes at gmail.com
Wed May 4 20:53:26 UTC 2016
On 05/04/2016 01:08 PM, Chris Dent wrote:
> The plans for generic resource pools include a suite of new
> commands for creating and updating resource pools. In today's Nova
> API meeting and afterwards in #openstack-nova we discussed two
> * Since the placement API associated with resource pools is eventually
> going to be hoisted out of nova it will be developed in a decoupled
> fashion within the nova tree. It makes sense to also hoist the client
> libraries in the same fashion. The canonical plan for CLIs is to
> plug in to OSC.
> * There's some confusion on whether commands that are destined for
> admins and services but not end users are "supposed" to be in OSC.
> Since then the spec has been updated to reflect using OSC but the
> question of whether this is in fact the right place for this style
> of commands remains open. Not just for this situation, but
> Is there an official word on this? If not, should we make one?
My position is that if it's an HTTP API (as opposed to something like a
sqlalchemy-migrate sync command) then it belongs in a client that speaks
the OpenStack HTTP APIs. That is OSC as far as I can tell. I don't see a
difference between "admin" commands and "standard" commands.
More information about the OpenStack-dev