Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-95017

chrony sourcedir reload multiplies sources [rhel-10]

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-10.1
    • rhel-10.0
    • chrony
    • chrony-4.6.1-2.el10
    • Yes
    • Important
    • 1
    • rhel-stacks-services-scripting
    • ssg_core_services
    • 17
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • N&P-25_1
    • Bug Fix
    • Hide
      .The `chronyc reload sources` command now correctly handles hostname-specified sources

      Previously, the `chronyc reload sources` command in `chronyd` incorrectly reloaded sources from the `sourcedir` directory specified in the `chrony.conf` file. This behavior caused the `chronyd` to duplicate sources when a hostname resolved to multiple IP addresses, resulting in an unexpected increase in the number of sources.

      With this update, the `chronyc reload sources` command correctly handles sources specified with a hostname. As a result, reloading of sources does not change the number of used sources.
      Show
      .The `chronyc reload sources` command now correctly handles hostname-specified sources Previously, the `chronyc reload sources` command in `chronyd` incorrectly reloaded sources from the `sourcedir` directory specified in the `chrony.conf` file. This behavior caused the `chronyd` to duplicate sources when a hostname resolved to multiple IP addresses, resulting in an unexpected increase in the number of sources. With this update, the `chronyc reload sources` command correctly handles sources specified with a hostname. As a result, reloading of sources does not change the number of used sources.
    • Done
    • Done
    • Done
    • Unspecified
    • None

      This is a clone of issue RHEL-95016 to use for version rhel-10.1

      Original description:

      What were you trying to do that didn't work?

      If the chrony configuration file uses the sourcedir directive and some of the sources are specified with a hostname instead of an IP address, the chronyc reload sources command doesn't work correctly. It adds the same sources again, even if there is no change in the source file.

      Upstream fix:

      https://gitlab.com/chrony/chrony/-/commit/cacd64bf4a1fb5248f16c1fa5008a4beed568844

      Please provide the package NVR for which the bug is seen:

      chrony-4.6.1-1.el9

      How reproducible is this bug?:

      always

      Steps to reproduce

      1. disable all sources in /etc/chrony.conf
      2. echo server pool.ntp.org > /run/chrony/test.sources
      3. echo sourcedir /run/chrony >> /etc/chrony.conf
      4. systemctl restart chronyd
      5. chronyc reload sources
      6. chronyc -N sources

      Expected results

      Only one source listed.

      Actual results

      Two sources listed.

              rhn-support-mlichvar Miroslav Lichvar
              watson-automation Watson Automation
              Miroslav Lichvar Miroslav Lichvar
              Ondrej Mejzlik Ondrej Mejzlik
              Mugdha Soni Mugdha Soni
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: