Quantum CLI not consistent with other CLIs

Bug #1011759 reported by Ian Wells
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
yong sheng gong

Bug Description

Everything seems to be settling on noun-verb:

Glance: image-list, image-create, ...
Nova: volume-attach, dns-create, ... (but with exceptions: add-fixed-ip)
Keystone: endpoint-create, role-get, ...

But quantum uses verb_noun
Quantum: list_nets, create_nets, update_port, plug_iface

Note also that verb_noun means that the noun is also occasionally in the plural, making the commands slightly more annoying.

Fine, it's fairly pedantic, but I thought if I got in early this could be fixed before the commands become standardised and less likely to change.

Revision history for this message
dan wendlandt (danwent) wrote :

Hi Ian,

I definitely agree that we want to be consistent and this is already in the work, please see comment on new CLI review here: https://review.openstack.org/#/c/7596/5/quantumclient/quantum/v2_0/network.py

Unfortunately, I've even found examples where nova itself is inconsistent (for example: add-floating-ip, add-fixed-ip).

I believe there are some folks working on user experience consistency guidelines for openstack CLIs (and even a single CLI to rule them all...). If this is something you're interested in exploring, I can put you in touch (or you can just send an email to openstack list yourself).

Adding Yong, who is working on improved CLI.

Changed in quantum:
status: New → Invalid
assignee: nobody → yong sheng gong (gongysh)
status: Invalid → Confirmed
Revision history for this message
yong sheng gong (gongysh) wrote :

Hi Dan,
Looking at python_openstackclient, all the commands are in the verb-noun format, do you think we need to change to noun-verb format?

Revision history for this message
dan wendlandt (danwent) wrote :

At this point, its not clear whether the main use pattern for openstack will be a single CLI, or per-service CLIs. I prefer the former, but status quo is always a powerful force.

My preference would be for the stand-alone quantum CLI to match the stand-alone CLIs for other projects (nova, glance, keystone) which at a glance seem to be noun-verb. But if you feel strongly in the other direction, that's OK.

I also would like to see underscores switched to dashes for similar consistency reasons.

Ideally the --help output of our client would look very similar to the other clients, with the exception of what nouns can be operated on.

Revision history for this message
yong sheng gong (gongysh) wrote :

OK, commands use dash, options use underscore

Revision history for this message
yong sheng gong (gongysh) wrote :

fixed in https://review.openstack.org/#/c/9347/, but I don't know why it is not updated auto here.

Changed in quantum:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in quantum:
milestone: none → folsom-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: folsom-3 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.