Bug 1229815 - [RFE] rhc app create <app name> <cartridge> -s -enable-ha # should throw error
Summary: [RFE] rhc app create <app name> <cartridge> -s -enable-ha # should throw ...
Keywords:
Status: CLOSED DUPLICATE of bug 1232921
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RFE
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Mike Barrett
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-09 17:09 UTC by Ryan Howe
Modified: 2019-08-15 04:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-17 15:19:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ryan Howe 2015-06-09 17:09:51 UTC
[RFE] rhc app create <app name> <cartridge> -s -enable-ha     # should throw error

The proper work flow is 
  $ rhc app-create example ruby-1.9 -s
  $ rhc enable-ha example

This works in creating and app but not enabling ha:
  $rhc app create <app name> <cartridge> -s -enable-ha

It can throw a user off when they are trying to enable-ha, this is a request to get the following  to throw and error. 

rhc app create <app name> <cartridge> -s -enable-ha

Comment 3 Timothy Williams 2015-06-17 20:00:24 UTC
It looks like this fails not because rhc explicitly allows the enable-ha option with app-create, but because the '-e' option is valid. For example, If you pass in the option '-lololol', rhc will try to use the login 'ololol' as it treats this option the same as '--login ololol' or '-l ololol'.

You can pass in anything as an option, as long as it starts with a valid option letter, and it won't complain:

# rhc app-create breaktest ruby-1.9 -e12345
Application Options
-------------------
Domain:     admin
Cartridges: ruby-1.9
Gear Size:  default
Scaling:    no

Creating application 'breaktest' ... done

The real problem appears to be that there is no failure when the '-e' option is not able to parse the provided environment variable(s).

Comment 5 Timothy Williams 2015-07-17 15:19:13 UTC
Closing duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1232921

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


Note You need to log in before you can comment on or make changes to this bug.