Bug 1011859

Summary: Should prompt username and password after creating Jenkins app with an existing app directory
Product: OpenShift Container Platform Reporter: Ma xiaoqiang <xiama>
Component: ocAssignee: Miciah Dashiel Butler Masters <mmasters>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 1.2.0CC: bleanhar, libra-onpremise-devel, xtian
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: 2013-12-16 09:11:02 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 Ma xiaoqiang 2013-09-25 09:12:07 UTC
Description of problem:
The output doesn't contain username and password when creating Jenkins app with an existing directory the app will clone into

Version-Release number of selected component (if applicable):
puddle: [1.2.3-RHN-Stage]
rhc --version
rhc 1.9.7

How reproducible:
always

Steps to Reproduce:
1.create an directory not empty
#mkdir jenkins
#touch jenkins/test
2.create an Jenkins app with the same name as directory
#rhc app create jenkins jenkins


Actual results:
The output doesn't contain username and password.

Using jenkins-1.4 (Jenkins Server 1.4) for 'jenkins'

Application Options
-------------------
  Namespace:  xiao
  Cartridges: jenkins-1.4
  Gear Size:  default
  Scaling:    no

Creating application 'jenkins' ... done

Waiting for your DNS name to be available ... done

Downloading the application Git repository ...
fatal: destination path 'jenkins' already exists and is not an empty directory.

The directory you are cloning into already exists.

jenkins @ http://jenkins-xiao.osetestv2.com/ (uuid: 52428b356e0f5db734000088)
-----------------------------------------------------------------------------
  Created: 3:05 PM
  Gears:   1 (defaults to small)
  Git URL: ssh://52428b356e0f5db734000088.com/~/git/jenkins.git/
  SSH:     52428b356e0f5db734000088.com

  jenkins-1.4 (Jenkins Server 1.4)
  --------------------------------
    Gears: 1 small

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING:  Your application was created successfully but had problems during
          configuration. Below is a list of the issues and steps you can
          take to complete the configuration of your application.

  Application URL: http://jenkins-xiao.osetestv2.com/

  Issues:
    1. We were unable to clone your application's git repo - The directory you are
cloning into already exists.

  Steps to complete your configuration:
    1. Clone your git repo
      $ rhc git-clone jenkins

  If you can't get your application 'jenkins' running in the browser,
  you can try destroying and recreating the application:

    $ rhc app delete jenkins --confirm

  If this doesn't work for you, let us know in the forums or in IRC and we'll
  make sure to get you up and running.

    Forums - https://www.openshift.com/forums/openshift
    IRC - #openshift (on Freenode)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



Expected results:
Username and password shoud be prompted.

Additional info:

Comment 2 Ma xiaoqiang 2013-09-25 09:54:31 UTC
this problem does not happen on rhc-1.12.4

Comment 4 Ma xiaoqiang 2013-11-25 01:28:20 UTC
check on puddle-2-0-2013-11-22
#rhc app create jenkins jenkins
#rhc app delete jenkins --confirm
#rhc app create jenkins jenkins
Output:
Using jenkins-1 (Jenkins Server) for 'jenkins'

Application Options
-------------------
  Domain:     xiaom
  Cartridges: jenkins-1
  Gear Size:  default
  Scaling:    no

Creating application 'jenkins' ... done

  Jenkins created successfully.  Please make note of these credentials:

   User: admin
   Password: Z8mshE7nJ_lW

Note:  You can change your password at: https://jenkins-xiaom.ose-1115.com.cn/me/configure

Waiting for your DNS name to be available ... done

fatal: destination path 'jenkins' already exists and is not an empty directory.
The directory you are cloning into already exists.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING:  Your application was created successfully but had problems during
          configuration. Below is a list of the issues and steps you can
          take to complete the configuration of your application.

  Application URL: http://jenkins-xiaom.ose-1115.com.cn
<--snip-->