Red Hat Bugzilla – Bug 842494
Config custom file wizard should not pop up if user has config file specified when default config file doesn't exist.
Last modified: 2015-05-14 22:00:57 EDT
Description of problem:
Config file wizard is shown even if user has config file specified when the default config file doesn't exist.
Please refer to followning message:
# rhc app status -a php5 --config /root/openshift.conf
Starting Interactive Setup for OpenShift's command line interface
It looks like you have not configured or used OpenShift client tools on this computer. We'll help you configure the client tools with a few quick questions. You can skip this in the future by copying your configuration files to other machines you use to manage your OpenShift account:
To connect to stg.openshift.redhat.com enter your OpenShift login (email or Red Hat login id): email@example.com
Created local config file: /root/.openshift/express.conf
The express.conf file contains user configuration, and can be transferred to different computers.
We will now check to see if you have the necessary client tools installed.
Checking for git ... found
Checking for your namespace ... found namespace:
Checking for applications ... found
* php5 - http://php5-jin5.stg.rhcloud.com/
The OpenShift client tools have been configured on your computer. You can run this setup wizard at any time by using the command 'rhc setup' We will now execute your original command (rhc app status -a php5 --config /root/openshift.conf)
Total Accesses: 3
Total kBytes: 0
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Remove config file from ~/.openshift/express.conf
2. Run command: rhc app status -a php5 --config /root/openshift.conf
Config file wizard is shown to create config file and the specifed config file is not be used.
The specified config file should be used and no config file wizard pops up.
1. If run rhc setup --config /root/openshift.conf, it works fine.
2. The specified config will be used if the default config file exists.
Can you retry using the latest commands (the new ones?)
Recheck with latest rhc-0.99.7.gem client, it works fine with latest command. Please check as below:
# rhc app show php1 --state --config ./openshift.conf
Geargroup php-5.3 is started
So move it to ON_QA
Mark it as Verified as it works well with latest command on new client rhc-0.99.7.gem. Thanks.