Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 910858

Summary: quantum --help outputs error strings about lack of installed editors.
Product: Red Hat OpenStack Reporter: Stephen Gordon <sgordon>
Component: python-quantumclientAssignee: RHOS Maint <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: Ofer Blaut <oblaut>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1CC: chrisw, jrd, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-15 14:22:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Gordon 2013-02-13 17:31:41 UTC
Description of problem:

When running quantum --help on a RHEL box with only @core + RHOS packages the output is prefixed with:

which: no gedit in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
which: no kate in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
which: no vim in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
which: no emacs in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
which: no nano in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
which: no pico in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

There are really a few issues here:

- In my opinion this output appears superfluous as the script proceeds to work anyway (at least for --help, not sure about other actions), in particular if there is really no editor then just one line would be enough to state that if it's absolutely required to tell the user.

- RHEL @core does actually include an editor, vi, but that is never checked for.

- Setting the EDITOR environment variable to point at vi doesn't appear to help, because the EDITOR environment variable is never checked.

Version-Release number of selected component (if applicable):

python-quantumclient-2.1.10-1.el6ost.noarch

Comment 1 Perry Myers 2013-02-15 14:22:30 UTC
I think this is a duplicate of bug # 889774

*** This bug has been marked as a duplicate of bug 889774 ***