Commit 501f9b1c authored by Beniamino Galvani's avatar Beniamino Galvani
Browse files

core: update hostname once at startup

NMPolicy stores the last hostname set in priv->cur_hostname and checks
if it changed before notifying the DNS manager.

_set_hostname() should be called one time early during startup so that
the priv->cur_hostname gets initialized without triggering a DNS
update.
parent bdf6f4d1
Pipeline #488497 failed with stages
in 54 minutes
......@@ -2822,6 +2822,7 @@ constructed(GObject *object)
G_OBJECT_CLASS(nm_policy_parent_class)->constructed(object);
_LOGD(LOGD_DNS, "hostname-mode: %s", _hostname_mode_to_string(priv->hostname_mode));
update_system_hostname(self, "initial hostname");
}
NMPolicy *
......
  • https://jenkins-networkmanager.apps.ocp.ci.centos.org/job/NetworkManager-code-mr/601/

    Result: UNSTABLE: Some tests failed

    M0 PASS: Passed: 560, Failed: 0, Skipped: 47

    M1 FAIL: Passed: 553, Failed: 2, Skipped: 53

    Passed: 1113, Failed 2, Skipped 2.

    Executed on: CentOS 8-stream

    Failed tests: ipv6_routes_with_src strongswan_dns

  • https://desktopqe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/beaker-NetworkManager-gitlab-trigger-code-upstream/2993/

    Result: UNSTABLE: Some tests failing

    Passed: 1134, Failed: 4, Skipped: 78

    nmstate_upstream nmcli_general_activate_static_connection_carrier_not_ignored strongswan_dns connection_metered_guess_yes

  • https://jenkins-networkmanager.apps.ocp.ci.centos.org/job/NetworkManager-code-mr/606/

    Result: UNSTABLE: Some tests failed

    M0 FAIL: Passed: 559, Failed: 1, Skipped: 47

    M1 FAIL: Passed: 553, Failed: 2, Skipped: 53

    Passed: 1112, Failed 3, Skipped 3.

    Executed on: CentOS 8-stream

    Failed tests: gsm_sim_create_default_connection ipv6_routes_with_src strongswan_dns

Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment