Bug 822935 - Wizard is not reentrant
Summary: Wizard is not reentrant
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: John (J5) Palmieri
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-18 14:59 UTC by Clayton Coleman
Modified: 2015-05-15 01:54 UTC (History)
4 users (show)

Fixed In Version: rhc-0.93.11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-08 17:58:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Clayton Coleman 2012-05-18 14:59:03 UTC
The wizard cannot be setup a second time, which means any error during the setup step requires the user to manually delete their conf file.

We should add a command like 'rhc setup' that invokes the wizard and allows the user to reexecute each step (with the current settings as defaults).  Right now there is no do over - if someone puts the wrong stuff in, that's it

"rhc setup" should be one of the new Commander commands and should be where the wizard code is invoked from (not sure if we would need wizard.rb in that case, unless you wanted to create some of that as helper steps that further break down the flow).

Comment 1 John (J5) Palmieri 2012-05-21 15:11:39 UTC
rhc setup was added on Friday, I need to add help documentation. Will put on QA when I have done that and pushed.

Comment 2 yquan 2012-05-28 06:26:15 UTC
It is fixed on devenv_1802, rhc-0.93.11




[root@localhost home]# rhc setup

Starting Interactive Setup for OpenShift's command line interface

It looks like you've not used OpenShift on this machine before.  We'll help get you setup with just a couple of questions. You can skip this in the future by copying your config's around:

/root/.openshift/express.conf
/root/.ssh/

To connect to openshift.redhat.com enter your OpenShift login (email or Red Hat login id): yquan
Password: *********

Created local config file: /root/.openshift/express.conf
express.conf contains user configuration and can be transferred across clients.

Your public ssh key needs to be uploaded to the server.  Would you like us to upload it for you? (yes/no) yes

We need to upload your public key to remote servers so it can be used.  First you need to name it.  For example "liliWork" or "laptop".  You can overwrite an existing key by naming it or pick a new name.

Current Keys:
    default - db:6c:7c:d9:72:79:81:ef:9a:95:83:40:b0:d7:49:c5

Provide a name for this key: |72ee3942|  

Sending new key 72ee3942 .. Success

We will now check to see if you have the necessary client tools installed.

Checking for git ... found

Checking for your namespace ... found namespace:
    yquan

Checking for applications ... found
    * jboss0 - http://jboss0-yquan.rhcloud.com/
    * py0 - http://py0-yquan.rhcloud.com/

Thank you for setting up your system.  You can rerun this at any time by calling 'rhc setup'. We will now execute your original command (rhc setup)


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