Description of problem: On a newly launched devenv, the /dnv_resolvable call returns an 500 error Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Create application 2. Attempt to use /dns_resolvable 3. Actual results: 500 error. The relevant information is: "dnsruby can't connect to 172.16.0.23:53 from 0.0.0.0:52686, use_tcp=false, exception = Errno::EACCES, Permission denied - bind(2)" Expected results: Should work Additional info:
selinux is blocking broker process to connect to ephemeral udp port. Dan Walsh is working on the fix.
https://github.com/openshift/li/pull/555
(In reply to comment #2) > https://github.com/openshift/li/pull/555 Move it to ON_QA since it's merged in devenv_2417.
Verified on devenv_2418 [qgong@localhost dev]$ curl -k -H "Accept: application/xml" --user "qgong+1:123456" https://ec2-50-16-130-119.compute-1.amazonaws.com/broker/rest/domains/qgong15/applications/qjbosseap/dns_resolvable -X GET <?xml version="1.0" encoding="UTF-8"?> <response> <version>1.2</version> <status>ok</status> <messages/> <type>boolean</type> <supported-api-versions> <supported-api-version>1.0</supported-api-version> <supported-api-version>1.1</supported-api-version> <supported-api-version>1.2</supported-api-version> </supported-api-versions> <data> <datum>true</datum> </data> </response>
This bug is reproduced on stage(devenv-stage_242),so assign back. 1.on stage [sunwei@dhcp-8-229 dev]$ curl -k -H "Accept: application/xml" --user "wsun+1:redhat" https://stg.openshift.redhat.com/broker/rest/domains/wsunstg02/applications/ewstest/dns_resolvable -X GET <!DOCTYPE html> <html> <head> <title>We're sorry, but something went wrong (500)</title> <style type="text/css"> body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; } div.dialog { width: 25em; padding: 0 4em; margin: 4em auto 0 auto; border: 1px solid #ccc; border-right-color: #999; border-bottom-color: #999; } h1 { font-size: 100%; color: #f00; line-height: 1.5em; } </style> </head> <body> <!-- This file lives in public/500.html --> <div class="dialog"> <h1>We're sorry, but something went wrong.</h1> <p>We've been notified about this issue and we'll take a look at it shortly.</p> </div> </body> </html> 2.test on devenv-stage_242,will get error ,please refer to attachment
Created attachment 636970 [details] devenvstg.log
The following change in this pull request may be not in stage: https://github.com/openshift/li/pull/555 in misc/devenv/devenv.spec +# Allow httpd to verify dns records +getsebool httpd_verify_dns | grep -q -e 'on$' || /usr/sbin/setsebool -P httpd_verify_dns=on ||
https://github.com/openshift/origin-server/pull/821
verified on Stage server(243) [qgong@localhost myrawapp]$ curl -k -H "Accept: application/xml" --user "qgong:111111" https://stg.openshift.redhat.com/broker/rest/domains/qgong/applications/q2sphp/dns_resolvable -X GET <?xml version="1.0" encoding="UTF-8"?> <response> <messages/> <status>ok</status> <type>boolean</type> <supported-api-versions> <supported-api-version>1.0</supported-api-version> <supported-api-version>1.1</supported-api-version> <supported-api-version>1.2</supported-api-version> </supported-api-versions> <version>1.2</version> <data> <datum>true</datum> </data> </response>