Bug 991398 - namespace creation using oo-admin-ctl-domain requires ssh key input
Summary: namespace creation using oo-admin-ctl-domain requires ssh key input
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-02 10:51 UTC by Nan Wei
Modified: 2015-05-15 00:19 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-29 12:49:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nan Wei 2013-08-02 10:51:36 UTC
Description of problem:
When creating a namespace by using "oo-admin-ctl-domain" in the broker, it returns “Please provide login, ssh key and namespace to create the user“. Seem like oo-admin-ctl-domain still require user input ssh key. For now, ssh keys and domain are managed separately by rhc client, ssh key is not a must for creating namespace, so oo-admin-ctl-domain should also be updated to do that.
Even when this user already has an existing ssh key, just want to create a namespace, still report the same prompt.

Version-Release number of selected component (if applicable):
devenv-stage_435
devenv_3605

How reproducible:
always

Steps to Reproduce:
1. Ensure a user does not have a namespace.
2.Create a domain in the broker using oo-admin-ctl-domain.
#oo-admin-ctl-domain -c create -l nwei -n domainname

Actual results:
The output of oo-admin-ctl-domain is the following:
Please provide login, ssh key and namespace to create the user

Expected results:
When creating a namespace using oo-admin-ctl-domain, it should not require input ssh key.

Additional info:

Comment 1 Abhishek Gupta 2013-08-19 17:16:41 UTC
We need to make the ssh key optional. Add it to the user, if it is provided but not treat as a validation failure if it isn't provided.

Comment 2 Abhishek Gupta 2013-08-19 22:43:57 UTC
Fixed with --> https://github.com/openshift/origin-server/pull/3417

Comment 5 Jianwei Hou 2013-08-20 05:29:32 UTC
Verified on devenv_3576, the sshkey is not mandatory now.

[root@ip-10-178-7-176 ~]# oo-admin-ctl-domain -c create -l test -n test
Successfully created user.
Successfully created domain.

[root@ip-10-178-7-176 ~]# oo-admin-ctl-domain -l test

RHLogin: test
Namespace: test
SSH keys:
Applications:


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