Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1740375

Summary: DNS operator reports unavailable reason as DNSUnavailable
Product: OpenShift Container Platform Reporter: Ben Parees <bparees>
Component: NetworkingAssignee: Dan Mace <dmace>
Networking sub component: DNS QA Contact: Hongan Li <hongli>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: low CC: aos-bugs, nagrawal
Version: 4.2.0   
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-23 11:05:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ben Parees 2019-08-12 18:57:06 UTC
The reason should shed light on why DNS is unavailable.

Comment 2 Dan Mace 2019-08-14 14:02:00 UTC
The message should also shed light, and in this case the message is "No DNS DaemonSets available". The dashboard isn't showing the most useful detail for this and many other cases.

What reason string would you consider to be a fix?

Comment 3 Ben Parees 2019-08-14 14:07:23 UTC
Messages don't go back to telemeter unfortunately.  

NoDaemonSetsAvailable would be an improvement.  Or NoDNSPodsAvailable?  Those things would at least make it a bit clearer where the problem is.

If there's something even more specific (why are no daemonsets available?  were they created and didn't get scheduled?  did they not get created?  are they invalid for some reason?  Was the operator unable to create the daemonset?  If pods were created and not scheduled, can we tell why?) that can be reported, even better.

Comment 4 Dan Mace 2019-08-14 14:29:21 UTC
I like NoDaemonSetsAvailable — it's probably the most accurate thing we can say right now. I like the idea of doing a deeper "why" analysis to surface. There are lots of opportunities for improvement here and in the ingress operator (which has received the most of these improvements lately).

For now, I'd like to resolve this bug with the improved reason, as I don't anticipate having time to do anything more sophisticated for the release.

Comment 5 Ben Parees 2019-08-14 14:30:48 UTC
> For now, I'd like to resolve this bug with the improved reason

i think that's a fine start.  It gives us a good starting point for questions to start asking about the cluster.

Comment 6 Dan Mace 2019-11-01 19:59:40 UTC
I think https://github.com/openshift/cluster-dns-operator/pull/134 was a decent fix for this issue. In addition to fixing the status flapping, we improved the status messaging in the ways discussed here.

Comment 7 Hongan Li 2019-11-05 09:49:27 UTC
verified as https://bugzilla.redhat.com/show_bug.cgi?id=1761506#c2

Comment 9 errata-xmlrpc 2020-01-23 11:05:05 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.

https://access.redhat.com/errata/RHBA-2020:0062