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

Bug 1105328

Summary: Pressing Enter on the subscription manager credentials causing Ambiguous choice garbles the menu
Product: Red Hat OpenStack Reporter: James Slagle <jslagle>
Component: rubygem-staypuftAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Ami Jeain <ajeain>
Severity: medium Docs Contact:
Priority: low    
Version: 5.0 (RHEL 7)CC: ajeain, ddomingo, mburns, mhulan, mlopes, sclewis, yeylon
Target Milestone: ga   
Target Release: Installer   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-installer-staypuft-0.0.18-1.el6ost Doc Type: Bug Fix
Doc Text:
internal only, no doc text needed
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-21 18:04:24 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 James Slagle 2014-06-05 21:54:05 UTC
Description of problem:
At this menu:
Enter your subscription manager credentials?:
1. Subscription manager username:       
2. Subscription manager password:       
3. Comma separated repositories:        rhel-6-server-openstack-4.0-rpms
4. RHEL repo path (http(s) or nfs URL): http://
5. Subscription manager pool (optional): 
6. Proceed with configuration
7. Skip this step (provisioning won't subscribe your machines)

I just pressed enter accidentally. Got a garbled menu instead:
Ambiguous choice.  Please choose one of [1, 2, 3, 4, 5, 6, 7, Subscription manager username:       , Subscription manager password:       , Comma separated repositories:        rhel-6-server-openstack-4.0-rpms, RHEL repo path (http(s) or nfs URL): http://, Subscription manager pool (optional): , Proceed with configuration, Skip this step (provisioning won't subscribe your machines)].

The whole menu appeared on one line.

Version-Release number of selected component (if applicable):
[root@staypuft ~]# rpm -q foreman-installer-staypuft
foreman-installer-staypuft-0.0.14-1.el6ost.noarch



How reproducible:
always, keep pressing enter, keep getting a garbled menu


Actual results:
garbled menu

Expected results:
ungarbled menu

Additional info:

Comment 2 Mike Burns 2014-06-06 11:22:55 UTC
Yes, the feature of printing all valid entries in a single line list becomes rather like a bug when there are a lot of (long) entries.  We should probably just say something like "invalid choice" and print the menu again.

Comment 3 Marek Hulan 2014-06-16 15:31:43 UTC
From now on, we just accept and print valid indexes only (except NIC menu). This is fixed in upstream since 0.0.18

Comment 10 Ami Jeain 2014-08-05 11:19:45 UTC
verified in the latest Staypuft version

Comment 13 errata-xmlrpc 2014-08-21 18:04:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1090.html