Bug 1130381
Summary: | 'server list' show "don't have any servers configured" when has no express.conf file under .openshift | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | XiuJuan Wang <xiuwang> |
Component: | oc | Assignee: | Fabiano Franz <ffranz> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | jokerman, mmccomas |
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: | 2014-10-10 00:50:34 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
XiuJuan Wang
2014-08-15 05:11:15 UTC
Looks live this one is fixed by the same fix in bug 1126388: https://github.com/openshift/rhc/pull/642 'rhc servers' will still list the ones present in servers.yml and online (prod) will be displayed as the default (in use). Please test. Check with rhc-1.29.6 build from devenv_4096 1.When openshift.redhat.com not configured and no express.conf existing,still show warning. # rhc server list Server 'int' ------------ Hostname: int.openshift.redhat.com Login: XXXXXX Use Auth Tokens: true Insecure: false Server 'stg' (in use) --------------------- Hostname: stg.openshift.redhat.com Login: XXXXXXXXXXX Use Auth Tokens: true Insecure: false You have 2 servers configured. Use 'rhc server use <hostname|nickname>' to switch between them. # rm express.conf # rhc server list You don't have any servers configured. Use 'rhc setup' to configure your OpenShift server. Correct comment 2 Check this bug with rhc-1.29.6 build from devenv_5089. That's the expected behavior. When you have multiple servers on servers.yml the express.conf file is used to define which of them is the default one (in use). If you don't have the default one declared on express.conf (or no express.conf at all) then the online server is supposed to be the default one. Not having express.conf (makes online the default) *and* not having online configured in servers.yml means you don't have a proper servers configuration and should run rhc setup to fix it. (In reply to Fabiano Franz from comment #4) Move bug to verified. Fabiano, Thanks! |