Skip to content

Instantly share code, notes, and snippets.

@jeevanullas
Created April 8, 2013 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeevanullas/5338472 to your computer and use it in GitHub Desktop.
Save jeevanullas/5338472 to your computer and use it in GitHub Desktop.
rhc setup
$ rhc setup --debug
DEBUG: Running greeting_stage
OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you upload your SSH keys, set your application namespace, and check that other programs like Git are properly installed.
DEBUG: Running login_stage
DEBUG: Connecting to https://broker.example.com/broker/rest/api
DEBUG: Request GET https://broker.example.com/broker/rest/api
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: Certificate validation failed: self signed certificate
The server's certificate is self-signed, which means that a secure connection can't be established to 'broker.example.com'.
You may bypass this check, but any data you send to the server could be intercepted by others.
Connect without checking the certificate? (yes|no): yes
DEBUG: Connecting to https://broker.example.com/broker/rest/api
DEBUG: Request GET https://broker.example.com/broker/rest/api
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: code 200 34 ms
DEBUG: Getting user info
Login to broker.example.com: admin
Password: *****
DEBUG: Request GET https://broker.example.com/broker/rest/user
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: code 500 19 ms
undefined method `[]' for nil:NilClass
[root@g-12-04 ~]# rhc setup --debug
DEBUG: Running greeting_stage
OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you upload your SSH keys, set your application namespace, and check that other programs like Git are properly installed.
DEBUG: Running login_stage
DEBUG: Connecting to https://broker.example.com/broker/rest/api
DEBUG: Request GET https://broker.example.com/broker/rest/api
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: Certificate validation failed: self signed certificate
The server's certificate is self-signed, which means that a secure connection can't be established to 'broker.example.com'.
You may bypass this check, but any data you send to the server could be intercepted by others.
Connect without checking the certificate? (yes|no): yes
DEBUG: Connecting to https://broker.example.com/broker/rest/api
DEBUG: Request GET https://broker.example.com/broker/rest/api
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: code 200 3766 ms
DEBUG: Getting user info
Login to broker.example.com: admin
Password: *****
DEBUG: Request GET https://broker.example.com/broker/rest/user
DEBUG: code 200 105 ms
OpenShift can create and store a token on disk which allows to you to access the server without using your password. The key is stored in your home directory and should be
kept secret. You can delete the key at any time by running 'rhc logout'.
Generate a token now? (yes|no) yes
Generating an authorization token for this client ... DEBUG: Request POST https://broker.example.com/broker/rest/user/authorizations
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: code 201 42 ms
DEBUG: Connecting to https://broker.example.com/broker/rest/api
DEBUG: Getting user info
DEBUG: Request GET https://broker.example.com/broker/rest/api
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: code 200 31 ms
DEBUG: Request GET https://broker.example.com/broker/rest/user
DEBUG: code 200 38 ms
lasts about 1 day
DEBUG: Running create_config_stage
Saving configuration to /root/.openshift/express.conf ... done
DEBUG: Running config_ssh_key_stage
No SSH keys were found. We will generate a pair of keys for you.
Created: /root/.ssh/id_rsa.pub
DEBUG: Running upload_ssh_key_stage
DEBUG: Getting user info
DEBUG: Getting all keys for user admin
DEBUG: Request GET https://broker.example.com/broker/rest/user/keys
DEBUG: code 200 13 ms
Your public SSH key must be uploaded to the OpenShift server to access code. Upload now? (yes|no) yes
Since you do not have any keys associated with your OpenShift account, your new key will be uploaded as the 'default' key.
Type: ssh-rsa
Fingerprint: b7:09:96:e2:08:31:26:5c:1f:d2:2b:dc:2c:d8:f3:37
Uploading key 'default' from /root/.ssh/id_rsa.pub ... DEBUG: Getting user info
DEBUG: Add key default of type ssh-rsa for user admin
DEBUG: Request POST https://broker.example.com/broker/rest/user/keys
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: code 201 35 ms
done
DEBUG: Running install_client_tools_stage
Checking for git ... found git version 1.8.1.4
DEBUG: Running setup_test_stage
Checking common problems .DEBUG: Getting user info
DEBUG: Getting all keys for user admin
DEBUG: Request GET https://broker.example.com/broker/rest/user/keys
DEBUG: code 200 14 ms
DEBUG: Getting all domains
DEBUG: Request GET https://broker.example.com/broker/rest/domains
DEBUG: code 200 14 ms
. done
DEBUG: Running config_namespace_stage
Checking your namespace ... DEBUG: Getting all domains
none
Your namespace is unique to your account and is the suffix of the public URLs we assign to your applications. You may configure your namespace here or leave it blank and use
'rhc domain create' to create a namespace later. You will not be able to create applications without first creating a namespace.
Please enter a namespace (letters and numbers only) |<none>|: jeevanullas
DEBUG: Adding domain jeevanullas
DEBUG: Request POST https://broker.example.com/broker/rest/domains
DEBUG: SSL Verification failed -- Using self signed cert
DEBUG: code 201 35 ms
Your domain name 'jeevanullas' has been successfully created
DEBUG: Running show_app_info_stage
Checking for applications ... none
Run 'rhc app create' to create your first application.
DEBUG: Getting all cartridges
DEBUG: Request GET https://broker.example.com/broker/rest/cartridges
DEBUG: code 200 12 ms
Do-It-Yourself rhc app create <app name> diy-0.1
You are using 0 of 100 total gears
The following gear sizes are available to you: small
DEBUG: Running finalize_stage
Your client tools are now configured.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment