Skip to content

cherry-pick the fix for lp bug 2112374 to caracal branch#935

Open
zhhuabj wants to merge 1 commit intojuju:stable/caracalfrom
zhhuabj:caracal_dns_lp2112374
Open

cherry-pick the fix for lp bug 2112374 to caracal branch#935
zhhuabj wants to merge 1 commit intojuju:stable/caracalfrom
zhhuabj:caracal_dns_lp2112374

Conversation

@zhhuabj
Copy link
Contributor

@zhhuabj zhhuabj commented Jun 30, 2025

A customer got an intermittent alert in the juju status output related to cinder-volume units with the update-status hook failure. The following unit-cinder-volume-1.log shows that the issue was caused by a dns timeout.

2024-09-25 17:16:32 WARNING unit.cinder-volume/1.update-status logger.go:60 ERROR no relation id specified
2024-09-25 17:16:37 WARNING unit.cinder-volume/1.update-status logger.go:60 Traceback (most recent call last):
......
2024-09-25 17:16:37 WARNING unit.cinder-volume/1.update-status logger.go:60 dns.exception.Timeout: The dns operation timed out after 5.4017493724823 seconds

My guess is that the dns.exception.Timeout exception was previously unhandled , which may have led to performance degradation in the cinder-volume units. This could have resulted in timeout problems when using the default value resolv.lifetime=5.

…ing (juju#925)

To prevent intermittent update-status hook failures caused by unhandled
dns.exception.Timeout exceptions, we now log a warning and return None.
Additionally, the dns-query-timeout option is made configurable.

Closes: juju#924
(cherry picked from commit 33c08fc)
Signed-off-by: Zhang Hua <joshua.zhang@canonical.com>
@zhhuabj zhhuabj changed the base branch from master to stable/caracal June 30, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments