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

NetworkManager --print-config does not list internal /var/lib file names

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

    • NetworkManager-1.51.4-1.el9
    • None
    • Low
    • 1
    • rhel-net-mgmt
    • ssg_networking
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • RHEL-9.5 Doc week/Last fixes
    • Hide

      Given a system administrator needs to verify the global nmstate configuration applied to NetworkManager via the dbus interface,

      When they execute the command NetworkManager --print-config after applying a configuration using nmstatectl apply resolv.yaml,

      Then the output should not only display the applied configuration settings but also the file names in /var/lib/NetworkManager where this configuration is stored.

      Definition of Done:

      • The implementation meets the acceptance criteria
      • Unit tests and integration tests are written and pass
      • The code is part of a build attached to an errata
      Show
      Given a system administrator needs to verify the global nmstate configuration applied to NetworkManager via the dbus interface, When they execute the command NetworkManager --print-config after applying a configuration using nmstatectl apply resolv.yaml , Then the output should not only display the applied configuration settings but also the file names in /var/lib/NetworkManager where this configuration is stored. Definition of Done: The implementation meets the acceptance criteria Unit tests and integration tests are written and pass The code is part of a build attached to an errata
    • Pass
    • None
    • None

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

      We cannot see file names of internal /var/lib/NetworkManager configuration which is used by global nmstate configuration given to NM via dbus interface

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

      1.40.16-12 (RHEL8.10)

      How reproducible:

      always

      Steps to reproduce

      cat > resolv.yaml << EOF

      dns-resolver:
        config:
          search:
            - example.com
            - example.org
          server:
            - 2001:4860:4860::8888
            - 8.8.8.8
            - 2606:4700:4700::1111
            - 8.8.4.4
      EOF

      nmstatectl apply resolv.yaml

       

      and run

      NetworkManager --print-config

      Expected results

      all config files shown

      Actual results

      I can see the /var/lib/NM config in

      [.intern.global-dns]
      searches=example.com,example.org
      options=

      [.intern.global-dns-domain-*]
      servers=2001:4860:4860::8888,8.8.8.8,2606:4700:4700::1111,8.8.4.4
      options=

      but file where this config is placed is missing

      1. NetworkManager configuration: /etc/NetworkManager/NetworkManager.conf (lib: 00-server.conf) (etc: 94-nmci-unmanage-orig.conf, 95-nmci-test.conf)

       

              rhn-engineering-vbenes Vladimir Benes
              rhn-engineering-vbenes Vladimir Benes
              Network Management Team Network Management Team
              Vladimir Benes Vladimir Benes
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: