openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #15335
Re: [glance] legacy client removal and python-glanceclient
-
To:
openstack@xxxxxxxxxxxxxxxxxxx
-
From:
Jay Pipes <jaypipes@xxxxxxxxx>
-
Date:
Wed, 01 Aug 2012 16:07:16 -0400
-
In-reply-to:
<1343848729.3218.62.camel@einstein>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0
On 08/01/2012 03:18 PM, Kevin L. Mitchell wrote:
> On Wed, 2012-08-01 at 18:37 +0000, Gabriel Hurley wrote:
>> As a rule of thumb, we need to start doing proper deprecation on all
>> public interfaces, whether that's a CLI, client method signatures,
>> APIs, etc. It's a little late for this on the old vs. new glance
>> client/CLI (unless Brian feels the work can be reasonably done to make
>> them compatible) but it's something we need to be really mindful of
>> going forward.
>
> As an example of how it can be done properly, check out
> https://review.openstack.org/#/c/10577/ (at least, I believe I did it
> correctly ;)
The library interface is one thing -- and frankly IMHO easier to
properly deprecate and progress to newer API bindings. It's a little
different for the CLI interfaces, as people are typically just using the
CLI tool in shell scripts (as opposed to binding to the client library's
API).
For the case of shell scripts using the old glance client, the
installation path for the old and new glance CLI tools is different, so
in theory, if you wrote a shell script that used the old glance client,
then installed the new python-glanceclient, you could simply edit your
shell script to point a glance variable to the absolute path of the old
glance CLI executable.
Frankly, we do this is multiple places in devstack where, for example, a
tool or utility has a different name or interface on RedHat vs. Debian
systems.
-jay
Follow ups
References
-
[glance] legacy client removal and python-glanceclient
From: Brian Waldon, 2012-07-31
-
Re: [glance] legacy client removal and python-glanceclient
From: Christoph Hellwig, 2012-07-31
-
Re: [glance] legacy client removal and python-glanceclient
From: Brian Waldon, 2012-07-31
-
Re: [glance] legacy client removal and python-glanceclient
From: Christoph Hellwig, 2012-07-31
-
Re: [glance] legacy client removal and python-glanceclient
From: Brian Waldon, 2012-08-01
-
Re: [glance] legacy client removal and python-glanceclient
From: Matt Joyce, 2012-08-01
-
Re: [glance] legacy client removal and python-glanceclient
From: Brian Waldon, 2012-08-01
-
Re: [glance] legacy client removal and python-glanceclient
From: Vishvananda Ishaya, 2012-08-01
-
Re: [glance] legacy client removal and python-glanceclient
From: Gabriel Hurley, 2012-08-01
-
Re: [glance] legacy client removal and python-glanceclient
From: Kevin L. Mitchell, 2012-08-01