[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Installing Openshift Origins on CentOS 6] rhc question



Ah,

Here we go, different REST endpint. Please run:
curl -k -u <username>:<password> https://broker.gorilla.dev.opal.synacor.com/broker/rest/user.json

--Krishna

On Jan 28, 2013, at 1:43 PM, Dennis Kirkpatrick wrote:

Sure. Here it is again--

dennis prometheus:~$ rhc -d setup
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
Login to broker.gorilla.dev.opal.synacor.com: demo
Password: *******

DEBUG: Connecting to https://broker.gorilla.dev.opal.synacor.com/broker/rest/api
DEBUG: Client supports API versions 1.1, 1.2, 1.3
DEBUG: Request: #<RestClient::Request:0x7fa2245c16d8 @ssl_client_cert=nil, @block_response=nil, @timeout=nil, @args={:open_timeout=>4, :method=>:get, :timeout=>nil, :url="" href="https://broker.gorilla.dev.opal.synacor.com/broker/rest/api">https://broker.gorilla.dev.opal.synacor.com/broker/rest/api", :headers=>{"User-Agent"=>"rhc/1.2.7 (ruby 1.8.7; x86_64-linux)", :accept=>:json, "Authorization"=>"Basic ZGVtbzpnMHIxbGw0"}}, @tf=nil, @verify_ssl=false, @headers={"User-Agent"=>"rhc/1.2.7 (ruby 1.8.7; x86_64-linux)", :accept=>:json, "Authorization"=>"Basic ZGVtbzpnMHIxbGw0"}, @ssl_ca_file=nil, @open_timeout=4, @url=""https://broker.gorilla.dev.opal.synacor.com/broker/rest/api">https://broker.gorilla.dev.opal.synacor.com/broker/rest/api", @raw_response=false, @processed_headers={"User-Agent"=>"rhc/1.2.7 (ruby 1.8.7; x86_64-linux)", "Accept-Encoding"=>"gzip, deflate", "Accept"=>"application/json", "Authorization"=>"Basic ZGVtbzpnMHIxbGw0"}, @password=nil, @payload=nil, @ssl_client_key=nil, @method=:get, @max_redirects=10, @user=nil, @cookies={}>
DEBUG: Response: "{\"data\":{\"GET_ENVIRONMENT\":{\"optional_params\":[],\"method\":\"GET\",\"rel\":\"Get environment information\",\"required_params\":[],\"href\":\"https://broker.gorilla.dev.opal.synacor.com/broker/rest/environment\"},\"API\":{\"optional_params\":[],\"method\":\"GET\",\"rel\":\"API entry point\",\"required_params\":[],\"href\":\"https://broker.gorilla.dev.opal.synacor.com/broker/rest/api\"},\"LIST_CARTRIDGES\":{\"optional_params\":[],\"method\":\"GET\",\"rel\":\"List cartridges\",\"required_params\":[],\"href\":\"https://broker.gorilla.dev.opal.synacor.com/broker/rest/cartridges\"},\"LIST_ESTIMATES\":{\"optional_params\":[],\"method\":\"GET\",\"rel\":\"List available estimates\",\"required_params\":[],\"href\":\"https://broker.gorilla.dev.opal.synacor.com/broker/rest/estimates\"},\"LIST_TEMPLATES\":{\"optional_params\":[],\"method\":\"GET\",\"rel\":\"List application templates\",\"required_params\":[],\"href\":\"https://broker.gorilla.dev.opal.synacor.com/broker/rest/application_templates\"},\"LIST_DOMAINS\":{\"optional_params\":[],\"method\":\"GET\",\"rel\":\"List domains\",\"required_params\":[],\"href\":\"https://broker.gorilla.dev.opal.synacor.com/broker/rest/domains\"},\"ADD_DOMAIN\":{\"optional_params\":[],\"method\":\"POST\",\"rel\":\"Create new domain\",\"required_params\":[{\"invalid_options\":[],\"description\":\"Name of the domain\",\"name\":\"id\",\"type\":\"string\",\"valid_options\":[]}],\"href\":\"https://broker.gorilla.dev.opal.synacor.com/broker/rest/domains\"},\"GET_USER\":{\"optional_params\":[],\"method\":\"GET\",\"rel\":\"Get user information\",\"required_params\":[],\"href\":\"https://broker.gorilla.dev.opal.synacor.com/broker/rest/user\"}},\"messages\":[],\"version\":\"1.2\",\"type\":\"links\",\"supported_api_versions\":[1.0,1.1,1.2],\"status\":\"ok\"}"
DEBUG: Server supports API versions 1.0, 1.1, 1.2
DEBUG: Getting user info
DEBUG: Request: #<RestClient::Request:0x7fa224598710 @ssl_client_cert=nil, @block_response=nil, @timeout=nil, @args={:open_timeout=>4, :method=>"GET", :timeout=>nil, :url="" href="https://broker.gorilla.dev.opal.synacor.com/broker/rest/user">https://broker.gorilla.dev.opal.synacor.com/broker/rest/user", :payload=>{}, :headers=>{"User-Agent"=>"rhc/1.2.7 (ruby 1.8.7; x86_64-linux)", :accept=>:json, "Authorization"=>"Basic ZGVtbzpnMHIxbGw0"}}, @tf=nil, @verify_ssl=false, @headers={"User-Agent"=>"rhc/1.2.7 (ruby 1.8.7; x86_64-linux)", :accept=>:json, "Authorization"=>"Basic ZGVtbzpnMHIxbGw0"}, @ssl_ca_file=nil, @open_timeout=4, @url=""https://broker.gorilla.dev.opal.synacor.com/broker/rest/user">https://broker.gorilla.dev.opal.synacor.com/broker/rest/user", @raw_response=false, @processed_headers={"Content-Length"=>"0", "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7; x86_64-linux)", "Accept-Encoding"=>"gzip, deflate", "Accept"=>"application/json", "Authorization"=>"Basic ZGVtbzpnMHIxbGw0", "Content-Type"=>"application/x-www-form-urlencoded"}, @password=nil, @payload="", @ssl_client_key=nil, @method="GET", @max_redirects=10, @user=nil, @cookies={}>
DEBUG: Response: nil
D, [2013-01-28T14:12:52.067803 #12480] DEBUG -- : Response did not include a message from server: invalid character at "<html xmln"
The server did not respond correctly. This may be an issue with the server
configuration or with your connection to the server (such as a Web proxy or
firewall).Please verify that you can access the OpenShift server
https://broker.gorilla.dev.opal.synacor.com/broker/rest/user


I am running on Ubuntu--
dennis prometheus:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.04.1 LTS
Release:    12.04
Codename:    precise

Here is history on my installing rhc on my workstation--

dennis prometheus:~$ sudo apt-get install ruby-full rubygems git-core
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  git-core ruby-full rubygems
0 upgraded, 3 newly installed, 0 to remove and 22 not upgraded.
Need to get 0 B/455 kB of archives.
After this operation, 3,639 kB of additional disk space will be used.
Selecting previously unselected package git-core.
(Reading database ... 287957 files and directories currently installed.)
Unpacking git-core (from .../git-core_1%3a1.7.9.5-1_all.deb) ...
Selecting previously unselected package ruby-full.
Unpacking ruby-full (from .../archives/ruby-full_4.8_all.deb) ...
Selecting previously unselected package rubygems.
Unpacking rubygems (from .../rubygems_1.8.15-1ubuntu0.1_all.deb) ...
Processing triggers for man-db ...
Setting up git-core (1:1.7.9.5-1) ...
Setting up ruby-full (4.8) ...
Setting up rubygems (1.8.15-1ubuntu0.1) ...
dennis prometheus:~$ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'libxslt1-dev' instead of 'libxslt-dev'
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'
curl is already the newest version.
git-core is already the newest version.
libreadline6 is already the newest version.
zlib1g is already the newest version.
zlib1g-dev is already the newest version.
zlib1g-dev set to manually installed.
build-essential is already the newest version.
build-essential set to manually installed.
libc6-dev is already the newest version.
libssl-dev is already the newest version.
libssl-dev set to manually installed.
openssl is already the newest version.
The following extra packages will be installed:
  autotools-dev libapr1 libaprutil1 libbison-dev libdb4.8 libltdl-dev libsvn1
  libtinfo-dev libyaml-0-2 m4
Suggested packages:
  autoconf2.13 autoconf-archive gnu-standards autoconf-doc gettext bison-doc
  libtool-doc ncurses-doc sqlite3-doc automaken gfortran fortran95-compiler
  gcj subversion-tools db4.8-util
The following NEW packages will be installed:
  autoconf automake autotools-dev bison libapr1 libaprutil1 libbison-dev
  libdb4.8 libltdl-dev libncurses5-dev libreadline6-dev libsqlite3-dev libsvn1
  libtinfo-dev libtool libxml2-dev libxslt1-dev libyaml-0-2 libyaml-dev m4
  sqlite3 subversion
0 upgraded, 22 newly installed, 0 to remove and 22 not upgraded.
Need to get 6,737 kB of archives.
After this operation, 23.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main libdb4.8 amd64 4.8.30-11ubuntu1 [679 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main libapr1 amd64 1.4.6-1 [89.6 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main libaprutil1 amd64 1.3.12+dfsg-3 [74.6 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main libsvn1 amd64 1.6.17dfsg-3ubuntu3 [820 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise/main libyaml-0-2 amd64 0.1.4-2 [56.9 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise/main m4 amd64 1.4.16-2ubuntu1 [200 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise/main autoconf all 2.68-1ubuntu2 [560 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise/main autotools-dev all 20120210.1ubuntu1 [42.4 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ precise/main automake all 1:1.11.3-1ubuntu2 [571 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ precise/main libbison-dev amd64 1:2.5.dfsg-2.1 [33.3 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ precise/main bison amd64 1:2.5.dfsg-2.1 [295 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu/ precise/main libltdl-dev amd64 2.4.2-1ubuntu1 [202 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu/ precise/main libtinfo-dev amd64 5.9-4 [103 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu/ precise/main libncurses5-dev amd64 5.9-4 [222 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu/ precise/main libreadline6-dev amd64 6.2-8 [264 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libsqlite3-dev amd64 3.7.9-2ubuntu1.1 [459 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu/ precise/main libtool amd64 2.4.2-1ubuntu1 [302 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libxml2-dev amd64 2.7.8.dfsg-5.1ubuntu4.3 [804 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libxslt1-dev amd64 1.1.26-8ubuntu1.2 [565 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main sqlite3 amd64 3.7.9-2ubuntu1.1 [26.8 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu/ precise/main subversion amd64 1.6.17dfsg-3ubuntu3 [295 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu/ precise/main libyaml-dev amd64 0.1.4-2 [69.9 kB]
Fetched 6,737 kB in 8s (806 kB/s)                                             
Selecting previously unselected package libdb4.8.
(Reading database ... 288322 files and directories currently installed.)
Unpacking libdb4.8 (from .../libdb4.8_4.8.30-11ubuntu1_amd64.deb) ...
Selecting previously unselected package libapr1.
Unpacking libapr1 (from .../libapr1_1.4.6-1_amd64.deb) ...
Selecting previously unselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.3.12+dfsg-3_amd64.deb) ...
Selecting previously unselected package libsvn1.
Unpacking libsvn1 (from .../libsvn1_1.6.17dfsg-3ubuntu3_amd64.deb) ...
Selecting previously unselected package libyaml-0-2.
Unpacking libyaml-0-2 (from .../libyaml-0-2_0.1.4-2_amd64.deb) ...
Selecting previously unselected package m4.
Unpacking m4 (from .../m4_1.4.16-2ubuntu1_amd64.deb) ...
Selecting previously unselected package autoconf.
Unpacking autoconf (from .../autoconf_2.68-1ubuntu2_all.deb) ...
Selecting previously unselected package autotools-dev.
Unpacking autotools-dev (from .../autotools-dev_20120210.1ubuntu1_all.deb) ...
Selecting previously unselected package automake.
Unpacking automake (from .../automake_1%3a1.11.3-1ubuntu2_all.deb) ...
Selecting previously unselected package libbison-dev.
Unpacking libbison-dev (from .../libbison-dev_1%3a2.5.dfsg-2.1_amd64.deb) ...
Selecting previously unselected package bison.
Unpacking bison (from .../bison_1%3a2.5.dfsg-2.1_amd64.deb) ...
Selecting previously unselected package libltdl-dev.
Unpacking libltdl-dev (from .../libltdl-dev_2.4.2-1ubuntu1_amd64.deb) ...
Selecting previously unselected package libtinfo-dev.
Unpacking libtinfo-dev (from .../libtinfo-dev_5.9-4_amd64.deb) ...
Selecting previously unselected package libncurses5-dev.
Unpacking libncurses5-dev (from .../libncurses5-dev_5.9-4_amd64.deb) ...
Selecting previously unselected package libreadline6-dev.
Unpacking libreadline6-dev (from .../libreadline6-dev_6.2-8_amd64.deb) ...
Selecting previously unselected package libsqlite3-dev.
Unpacking libsqlite3-dev (from .../libsqlite3-dev_3.7.9-2ubuntu1.1_amd64.deb) ...
Selecting previously unselected package libtool.
Unpacking libtool (from .../libtool_2.4.2-1ubuntu1_amd64.deb) ...
Selecting previously unselected package libxml2-dev.
Unpacking libxml2-dev (from .../libxml2-dev_2.7.8.dfsg-5.1ubuntu4.3_amd64.deb) ...
Selecting previously unselected package libxslt1-dev.
Unpacking libxslt1-dev (from .../libxslt1-dev_1.1.26-8ubuntu1.2_amd64.deb) ...
Selecting previously unselected package sqlite3.
Unpacking sqlite3 (from .../sqlite3_3.7.9-2ubuntu1.1_amd64.deb) ...
Selecting previously unselected package subversion.
Unpacking subversion (from .../subversion_1.6.17dfsg-3ubuntu3_amd64.deb) ...
Selecting previously unselected package libyaml-dev.
Unpacking libyaml-dev (from .../libyaml-dev_0.1.4-2_amd64.deb) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 2 added doc-base files...
Setting up libdb4.8 (4.8.30-11ubuntu1) ...
Setting up libapr1 (1.4.6-1) ...
Setting up libaprutil1 (1.3.12+dfsg-3) ...
Setting up libsvn1 (1.6.17dfsg-3ubuntu3) ...
Setting up libyaml-0-2 (0.1.4-2) ...
Setting up m4 (1.4.16-2ubuntu1) ...
Setting up autoconf (2.68-1ubuntu2) ...
Setting up autotools-dev (20120210.1ubuntu1) ...
Setting up automake (1:1.11.3-1ubuntu2) ...
update-alternatives: using /usr/bin/automake-1.11 to provide /usr/bin/automake (automake) in auto mode.
Setting up libbison-dev (1:2.5.dfsg-2.1) ...
Setting up bison (1:2.5.dfsg-2.1) ...
update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode.
Setting up libltdl-dev (2.4.2-1ubuntu1) ...
Setting up libtinfo-dev (5.9-4) ...
Setting up libncurses5-dev (5.9-4) ...
Setting up libreadline6-dev (6.2-8) ...
Setting up libsqlite3-dev (3.7.9-2ubuntu1.1) ...
Setting up libtool (2.4.2-1ubuntu1) ...
Setting up libxml2-dev (2.7.8.dfsg-5.1ubuntu4.3) ...
Setting up libxslt1-dev (1.1.26-8ubuntu1.2) ...
Setting up sqlite3 (3.7.9-2ubuntu1.1) ...
Setting up subversion (1.6.17dfsg-3ubuntu3) ...
Setting up libyaml-dev (0.1.4-2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
dennis prometheus:~$ sudo gem uninstall rhc
Remove executables:
    rhc-tail-files, rhc-sshkey, rhc-snapshot, rhc-chk, rhc-create-domain, rhc-ctl-app, rhc-domain-info, rhc-user-info, rhc-create-app, rhc, rhc-domain, rhc-ctl-domain, rhc-app, rhc-port-forward

in addition to the gem? [Yn]  Y
Removing rhc-tail-files
Removing rhc-sshkey
Removing rhc-snapshot
Removing rhc-chk
Removing rhc-create-domain
Removing rhc-ctl-app
Removing rhc-domain-info
Removing rhc-user-info
Removing rhc-create-app
Removing rhc
Removing rhc-domain
Removing rhc-ctl-domain
Removing rhc-app
Removing rhc-port-forward
Successfully uninstalled rhc-1.2.7
dennis prometheus:~$ sudo gem install rhc
Fetching: rhc-1.2.7.gem (100%)
===========================================================================

If this is your first time installing the RHC tools, please run 'rhc setup'

===========================================================================
Successfully installed rhc-1.2.7
1 gem installed
Installing ri documentation for rhc-1.2.7...
Installing RDoc documentation for rhc-1.2.7...

Except for some version difference from the instructions, which I used the Ubuntu 12.04 additions from "Angle", here-- https://openshift.redhat.com/community/developers/install-the-client-tools

Thanks. Cheers.


On Mon, Jan 28, 2013 at 2:09 PM, Krishna Raman <kraman gmail com> wrote:
Yep, looks like the broker is functional. Can you run the rhc command with the -d option and see if it prints any error messages?

--Krishna

On Jan 28, 2013, at 1:03 PM, Dennis Kirkpatrick wrote:

Krishna,

Thanks. It looks like the API is running according to your instructions, with what appear to be INFO that the development config is using certain production configuraitons. Here is the tail on the development logfile--

[root openshift02 ~]# tail -f /var/www/openshift/broker/log/development.log
Development configuration for openshift-origin-dns-bind not found. Using production configuration.
Development configuration for openshift-origin-msg-broker-mcollective not found. Using production configuration.
Development configuration for openshift-origin-auth-remote-user not found. Using production configuration.


Started GET "/broker/rest/api" for 172.16.6.98 at Mon Jan 28 15:05:59 -0500 2013
  Processing by BaseController#show as
Completed 200 OK in 43ms (Views: 7.7ms)

The JSON output from the Curl is--

{"data":{"GET_ENVIRONMENT":{"optional_params":[],"method":"GET","rel":"Get environment information","required_params":[],"href":"https://broker.gorilla.dev.opal.synacor.com/broker/rest/environment"},"API":{"optional_params":[],"method":"GET","rel":"API entry point","required_params":[],"href":"https://broker.gorilla.dev.opal.synacor.com/broker/rest/api"},"LIST_CARTRIDGES":{"optional_params":[],"method":"GET","rel":"List cartridges","required_params":[],"href":"https://broker.gorilla.dev.opal.synacor.com/broker/rest/cartridges"},"LIST_ESTIMATES":{"optional_params":[],"method":"GET","rel":"List available estimates","required_params":[],"href":"https://broker.gorilla.dev.opal.synacor.com/broker/rest/estimates"},"LIST_TEMPLATES":{"optional_params":[],"method":"GET","rel":"List application templates","required_params":[],"href":"https://broker.gorilla.dev.opal.synacor.com/broker/rest/application_templates"},"LIST_DOMAINS":{"optional_params":[],"method":"GET","rel":"List domains","required_params":[],"href":"https://broker.gorilla.dev.opal.synacor.com/broker/rest/domains"},"ADD_DOMAIN":{"optional_params":[],"method":"POST","rel":"Create new domain","required_params":[{"invalid_options":[],"description":"Name of the domain","name":"id","type":"string","valid_options":[]}],"href":"https://broker.gorilla.dev.opal.synacor.com/broker/rest/domains"},"GET_USER":{"optional_params":[],"method":"GET","rel":"Get user information","required_params":[],"href":"https://broker.gorilla.dev.opal.synacor.com/broker/rest/user"}},"messages":[],"version":"1.2","type":"links","supported_api_versions":[1.0,1.1,1.2],"status":"ok"}

Which to me, reads that it is OK. I reviewed the JSON structure here-- http://jsoneditor.net/.

I'm willing to be wrong, but I think the issue may lie with the rhc client on my Ubuntu box. i'll continue to troubleshoot, but welcome feedback and further debate on my analysis as I'm still learning this.

Cheers.


On Mon, Jan 28, 2013 at 12:33 PM, Krishna Raman <kraman gmail com> wrote:
Hi Dennis,

Please run the following:
touch /etc/openshift/development
service openshift-broker restart

If this gives you JSON output, then the broker is running properly. If not, then please send me
the /var/www/openshift/broker/logs/development.log file along with any output from the CURL 
command.

Thanks
Krishna

On Jan 28, 2013, at 10:24 AM, Dennis Kirkpatrick wrote:

Here is the output of the curl command--

HTTPS

curl https://broker.gorilla.dev.opal.synacor.com/broker/rest/api -u demo:XXXXX
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

HTTP

dennis prometheus:~$ curl http://broker.gorilla.dev.opal.synacor.com/broker/rest/api -u demo:g0r1ll4
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href=""https://broker.gorilla.dev.opal.synacor.com/broker/rest/api" target="_blank">https://broker.gorilla.dev.opal.synacor.com/broker/rest/api">here</a>.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at broker.gorilla.dev.opal.synacor.com Port 80</address>
</body></html>

As for logs, there is only /var/logs/openshift/user_action.log, which is currently empty.

Thanks.

On Mon, Jan 28, 2013 at 9:56 AM, Krishna Raman <kraman gmail com> wrote:
Hi Dennis,

Can you also attach the Broker production and development logs. /var/www/openshift/broker/logs/*.log
That would help with debugging the issue.

--Krishna

On Jan 28, 2013, at 8:10 AM, Clayton Coleman <ccoleman redhat com> wrote:

> The broker is returning HTML in your debug trace - that means an error on the broker side, or a bad HTTP proxy between you and the server.  Can you provide the output of the curl command?
>
> ----- Original Message -----
>>
>> Thanks for all your responses. It does appear that the API is
>> functioning properly. This appears to be a client issue. I'm running
>> the client tools on Ubunu 12.04 LTS.
>>
>> Thanks.
>>
>>
>> On Sat, Jan 26, 2013 at 9:42 AM, Clayton Coleman <
>> ccoleman redhat com > wrote:
>>
>>
>>
>>
>> This means the broker is not configured properly (it's throwing an
>> error). Curl https://yourserver/broker/rest/user.json -u
>> <user>:<pass> and see whether it returns an HTML error page. If it
>> doesn't, curl domains.json.
>>
>>
>> Also, run oo-accept-broker
>>
>>
>>
>> On Jan 26, 2013, at 9:06 AM, William DeCoste < wdecoste redhat com >
>> wrote:
>>
>>
>>
>>
>>
>>
>> Hi Dennis,
>>
>> What version of RHC do you have installed? Strange that you can hit
>> the rest api via curl but not rhc. Perhaps the rhc and broker
>> versions are out-of-sync.
>>
>> Thanks -Bill
>>
>>
>>
>>
>> On 1/25/13 3:07 PM, Dennis Kirkpatrick wrote:
>>
>>
>> I realize that I forgot to put the debug output for rhc. Here it is--
>>
>> dennis prometheus:~$ rhc -d setup
>> 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
>> Login to broker.gorilla.dev.opal.synacor.com : username
>> Password: *******
>>
>> DEBUG: Connecting to
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api
>> DEBUG: Client supports API versions 1.1, 1.2, 1.3
>> DEBUG: Request: #<RestClient::Request:0x7f8e764e78a0
>> @ssl_client_cert=nil, @block_response=nil, @timeout=nil,
>> @args={:open_timeout=>4, :method=>:get, :timeout=>nil, :url=""> >> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api ",
>> :headers=>{:accept=>:json, "Authorization"=>"Basic
>> dXNlcm5hbWU6dGVzdGluZw==", "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7;
>> x86_64-linux)"}}, @tf=nil, @verify_ssl=false,
>> @headers={:accept=>:json, "Authorization"=>"Basic
>> dXNlcm5hbWU6dGVzdGluZw==", "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7;
>> x86_64-linux)"}, @ssl_ca_file=nil, @open_timeout=4, @url=""https://broker.gorilla.dev.opal.synacor.com/broker/rest/api" target="_blank">https://broker.gorilla.dev.opal.synacor.com/broker/rest/api ",
>> @raw_response=false, @processed_headers={"Accept-Encoding"=>"gzip,
>> deflate", "Authorization"=>"Basic dXNlcm5hbWU6dGVzdGluZw==",
>> "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7; x86_64-linux)",
>> "Accept"=>"application/json"}, @password=nil, @payload=nil,
>> @ssl_client_key=nil, @method=:get, @max_redirects=10, @user=nil,
>> @cookies={}>
>> DEBUG: Response:
>> "{\"supported_api_versions\":[1.0,1.1,1.2],\"messages\":[],\"version\":\"1.2\",\"status\":\"ok\",\"data\":{\"LIST_DOMAINS\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/domains\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"List
>> domains\"},\"GET_ENVIRONMENT\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/environment\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"Get
>> environment information\"},\"ADD_DOMAIN\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/domains\
>> ",\"method\":\"POST\",\"optional_params\":[],\"required_params\":[{\"description\":\"Name
>> of the
>> domain\",\"valid_options\":[],\"invalid_options\":[],\"type\":\"string\",\"name\":\"id\"}],\"rel\":\"Create
>> new domain\"},\"LIST_TEMPLATES\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/application_templates\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"List
>> application templates\"},\"API\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"API
>> entry point\"},\"LIST_CARTRIDGES\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/cartridges\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"List
>> cartridges\"},\"GET_USER\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/user\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"Get
>> user information\"},\"LIST_ESTIMATES\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/estimates\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"List
>> available estimates\"}},\"type\":\"links\"}"
>> DEBUG: Server supports API versions 1.0, 1.1, 1.2
>> DEBUG: Getting user info
>> DEBUG: Request: #<RestClient::Request:0x7f8e764be8d8
>> @ssl_client_cert=nil, @block_response=nil, @timeout=nil,
>> @args={:open_timeout=>4, :method=>"GET", :timeout=>nil, :url=""> >> https://broker.gorilla.dev.opal.synacor.com/broker/rest/user ",
>> :payload=>{}, :headers=>{:accept=>:json, "Authorization"=>"Basic
>> dXNlcm5hbWU6dGVzdGluZw==", "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7;
>> x86_64-linux)"}}, @tf=nil, @verify_ssl=false,
>> @headers={:accept=>:json, "Authorization"=>"Basic
>> dXNlcm5hbWU6dGVzdGluZw==", "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7;
>> x86_64-linux)"}, @ssl_ca_file=nil, @open_timeout=4, @url=""https://broker.gorilla.dev.opal.synacor.com/broker/rest/user" target="_blank">https://broker.gorilla.dev.opal.synacor.com/broker/rest/user ",
>> @raw_response=false, @processed_headers={"Content-Length"=>"0",
>> "Content-Type"=>"application/x-www-form-urlencoded",
>> "Accept-Encoding"=>"gzip, deflate", "Authorization"=>"Basic
>> dXNlcm5hbWU6dGVzdGluZw==", "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7;
>> x86_64-linux)", "Accept"=>"application/json"}, @password=nil,
>> @payload="", @ssl_client_key=nil, @method="GET", @max_redirects=10,
>> @user=nil, @cookies={}>
>> DEBUG: Response: nil
>> D, [2013-01-25T16:05:56.596358 #12248] DEBUG -- : Response did not
>> include a message from server: invalid character at "<!DOCTYPE "
>> The server did not respond correctly. This may be an issue with the
>> server
>> configuration or with your connection to the server (such as a Web
>> proxy or
>> firewall).Please verify that you can access the OpenShift server
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/user
>> dennis prometheus:~$
>>
>>
>> On Fri, Jan 25, 2013 at 3:52 PM, Dennis Kirkpatrick <
>> dennis kirkpatrick gorillalogic com > wrote:
>>
>>
>> First, thanks to everyone answering my questions on the Openshift
>> Origin install for CentOS 6.3. I was able to work through all my
>> issues and get it installed and configured without seeing any issues
>> through the broker and node setup. However, then I ran into a
>> problem setting up rhc Client Tools. Here is the console output--
>>
>> dennis prometheus:~$ curl -Ik
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api
>> HTTP/1.1 200 OK
>> Date: Fri, 25 Jan 2013 22:45:23 GMT
>> Server: Apache/2.2.15 (CentOS)
>> X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.17
>> X-UA-Compatible: IE=Edge,chrome=1
>> X-Runtime: 0.054270
>> ETag: "538b502c5994f0f51f925229e4684f3e"
>> Cache-Control: max-age=0, private, must-revalidate
>> Status: 200
>> Content-Type: application/json; charset=utf-8
>> Connection: close
>>
>> dennis prometheus:~$ curl -k
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api
>> {"supported_api_versions":[1.0,1.1,1.2],"messages":[],"version":"1.2","status":"ok","data":{"LIST_DOMAINS":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/domains
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"List
>> domains"},"GET_ENVIRONMENT":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/environment
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"Get
>> environment information"},"ADD_DOMAIN":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/domains
>> ","method":"POST","optional_params":[],"required_params":[{"description":"Name
>> of the
>> domain","valid_options":[],"invalid_options":[],"type":"string","name":"id"}],"rel":"Create
>> new domain"},"LIST_TEMPLATES":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/application_templates
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"List
>> application templates"},"API":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"API
>> entry point"},"LIST_CARTRIDGES":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/cartridges
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"List
>> cartridges"},"GET_USER":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/user
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"Get
>> user information"},"LIST_ESTIMATES":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/estimates
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"List
>> available dennis prometheus:~$ rhc setup
>> 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.
>>
>> Login to broker.gorilla.dev.opal.synacor.com : username
>> Password: *******
>>
>> The server did not respond correctly. This may be an issue with the
>> server
>> configuration or with your connection to the server (such as a Web
>> proxy or
>> firewall).Please verify that you can access the OpenShift server
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/user
>> dennis prometheus:~$
>>
>> I decided to check the broker logs for any info, but the
>> /var/log/openshift came up with nada. Anyone faced this issue
>> before?
>>
>> Thanks.
>>
>>
>>
>> --
>> Dennis D. Kirkpatrick | DevOps Consultant | GorillaLogic
>> 1500 Pearl Street, Suite 300 | Boulder, CO 80302
>> t. (720) 446-6512 s. ddkirkpat
>> e. dennis kirkpatrick gorillalogic com
>>
>> _______________________________________________
>> dev mailing list dev lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>> --
>> Bill DeCoste
>> Principal Software Engineer, Red Hat 978-204-0920 wdecoste redhat com
>>
>>
>> _______________________________________________
>> dev mailing list
>> dev lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>>
>> _______________________________________________
>> dev mailing list
>> dev lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>>
>>
>>
>> _______________________________________________
>> dev mailing list
>> dev lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>>
>
> _______________________________________________
> dev mailing list
> dev lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev




_______________________________________________
dev mailing list
dev lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev




--
Dennis D. Kirkpatrick | DevOps Consultant | GorillaLogic
1500 Pearl Street, Suite 300 | Boulder, CO 80302
t. (720) 446-6512  s. ddkirkpat
e. dennis kirkpatrick gorillalogic com
_______________________________________________




--
Dennis D. Kirkpatrick | DevOps Consultant | GorillaLogic
1500 Pearl Street, Suite 300 | Boulder, CO 80302
t. (720) 446-6512  s. ddkirkpat
e. dennis kirkpatrick gorillalogic com


_______________________________________________
dev mailing list
dev lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]