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

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



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
curl -k https://broker.gorilla.dev.opal.synacor.com/broker/rest/api.json -u demo:XXXXX

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="" 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 ",
>> @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 ",
>> @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

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