Red Hat Bugzilla – Bug 1295677
Couldn't run oadm/oc commands with space character in options on a containerized environment
Last modified: 2016-07-03 20:47:08 EDT
Description of problem:
After setting up a containerized environment, run oadm/oc command on the master host, if there's spaces in the option, the command couldn't get executed properly.
Version-Release number of selected component (if applicable):
https://github.com/openshift/openshift-ansible -b master
Steps to Reproduce:
1.Setting up a containerized environment using latest openshift-ansible
2.Create a new project on the master host
[root@openshift-145 ~]# oadm new-project test --display-name="Web Team Development" --description="Development project for the web team."
error: you must specify one argument: project name
See 'oadm new-project -h' for help and examples.
Create project failed.
Should run successfully
This issue is also blocking the normal containerized installation, ansible would create "management-infra" project with "--description=Management Infrastructure" during the master setup, but failed on this step.
Proposed fix in this PR
You may try it by :
git checkout -b bz1295677
git pull https://github.com/sdodson/openshift-ansible bz1295677
Install a containerized env with https://github.com/sdodson/openshift-ansible -b bz1295677
[root@openshift-v3 ~]# oadm new-project test --display-name="test prject"
Created project test
[root@openshift-v3 ~]# oc get project
NAME DISPLAY NAME STATUS
test test prject Active
The issue is fixed, thanks!
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.