[openstack-dev] [all][openstackclient] check/gate job to check for duplicate openstackclient commands
stevemar at ca.ibm.com
Sun Jan 10 07:36:41 UTC 2016
During the Liberty release the OpenStackClient (OSC) team ran into an issue
that is documented here:  and here: . In short, commands were
clobbering each other because they had the same command name.
A longer example is this, OSC has a command for listing compute flavors (os
flavor list). zaqarclient, an OSC plugin, also implemented an `os flavor
list` command. This caused OSC to break (it became unusable because it
couldn't load entry points), and the user had to upgrade their zaqarclient,
which included a renamed command (os messaging flavor list).
In an effort to make sure this doesn't happen against, we did two things:
1) fixed the exception handling upon load at the cliff level, now OSC won't
become unusable, it'll just take the last entrypoint it sees, and 2) we
created a new gate/check job that checks for duplicate commands .
(Thanks to ajaeger and dhellmann for their help in this work!)
I've added this job to the OpenStackClient gate (in a non-voting capacity
for now), and would like to get it added to the following projects, again
in a non-voting capacity (since they are all OSC plugins):
If the core team for any of those projects objects to me adding a new check
job then reply to this thread or this patch 
Regarding the eventual question about the value of a non-voting job:
AFAICT, the new check job is working fine, it's catching valid errors and
succeeded where it should. I'd like to make this voting eventually, but
it's only been running in the OSC gate for about a week, and I'd like a few
non-voting runs in the plugin projects to ensure we don't have any hiccups
before making this a voting job.
OpenStack Keystone Project Team Lead
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev