Bug 1034517 - oo-diagnostics OSE 2.0 cherry-pick
Summary: oo-diagnostics OSE 2.0 cherry-pick
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Node
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Luke Meyer
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-26 02:56 UTC by Luke Meyer
Modified: 2017-03-08 17:35 UTC (History)
4 users (show)

Fixed In Version: rubygem-openshift-origin-common-1.17.2.3
Doc Type: Enhancement
Doc Text:
Feature: oo-diagnostics should exit cleanly when Ctrl-C interrupts. Also, it should report when the cloud domain doesn't resolve. Reason: oo-diagnostics was printing an ugly stack trace when interrupted. While it detected primary DNS server being down, we would also like it to detect when the cloud domain isn't being handled by a DNS server, as that's a common config issue. Result (if any):
Clone Of:
Environment:
Last Closed: 2014-01-13 14:54:47 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0020 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.0.1 bug fix and enhancement update 2014-01-21 21:52:52 UTC

Description Luke Meyer 2013-11-26 02:56:59 UTC
Would like to have these cherry-picked to OSE. Nothing urgent.

commit db7780f5c6bc329c9ffdea22f7293e93e6ec5ffc
Author: Luke Meyer <lmeyer>
Date:   Mon Nov 25 21:22:20 2013 -0500

    <oo-diagnostics> detect common DNS problem early

commit 77cc39c917d72ac4797844451dee42795e4b7684
Author: Luke Meyer <lmeyer>
Date:   Mon Nov 25 21:39:21 2013 -0500

    <oo-diagnostics> handle ^C more cleanly

Comment 2 Luke Meyer 2013-12-10 15:06:49 UTC
https://github.com/openshift/enterprise-server/pull/162

Should be in the next build of rubygem-openshift-origin-common

Comment 3 Luke Meyer 2013-12-12 21:00:00 UTC
rubygem-openshift-origin-common-1.17.2.3 is actually built now; should be in the next puddle.

Comment 4 Ma xiaoqiang 2013-12-17 06:25:39 UTC
check it on puddle:[2.0.z/2013-12-16.2]

# oo-diagnostics  -v
INFO: loading list of installed packages
INFO: OpenShift broker installed.
INFO: Loading the broker rails environment.
INFO: running: prereq_dns_server_available
<--snip-->
INFO: checking node profiles via MCollective
INFO: profile for node1.ose20-1216-com.cn: small
INFO: profile for node2.ose20-1216-com.cn: xxxx
WARN: test_node_profiles_districts_from_broker
        No districts are defined. Districts should be used in any production installation.
        Please consult the Administration Guide.
INFO: skipping test_node_profiles_districts_from_broker
INFO: running: test_broker_accept_scripts
INFO: running oo-accept-broker
^C
Exiting due to user interrupt (^C).

#oo-diagnostics 
^C
Exiting due to user interrupt (^C).

when I stop the dns service, then run ' oo-diagnostics '
#oo-diagnostics
FAIL: prereq_dns_server_available
        192.168.59.152 doesn't appear to respond to DNS requests.
        This command:
          host -W 1 example.com. 192.168.59.152
        should have connected to your primary nameserver.
        Instead, it returned:
          ;; connection timed out; trying next origin
;; connection timed out; no servers could be reached
<--snip-->

Comment 6 errata-xmlrpc 2014-01-13 14:54:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-0020.html


Note You need to log in before you can comment on or make changes to this bug.