Project

General

Profile

action #116689

Do not rely on statically configured IPv4 addresses for the salt master in /etc/hosts size:S

Added by okurz 3 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
Start date:
2022-09-14
Due date:
% Done:

0%

Estimated time:

Description

Motivation

In #116539 and #116563 we had the problem that we needed to add a static IPv4 address entry to /etc/hosts for hosts to be able to connect to the salt master when instead we should rely on the FQDN entry, e.g. openqa.suse.de in /etc/salt/minion which we already configure from salt but this step needs to happen initially before connecting to salt.

Acceptance criteria

  • AC1: IPv4 addresses have been replaced with FQDNs in all our salt controlled hosts

Suggestions


Related issues

Copied from QA - action #116539: jenkins.qa.suse.de not reachable and not triggering tests like krypton anymoreResolved2022-09-14

History

#1 Updated by okurz 3 months ago

  • Copied from action #116539: jenkins.qa.suse.de not reachable and not triggering tests like krypton anymore added

#2 Updated by okurz 3 months ago

  • Parent task set to #116623

#3 Updated by okurz 2 months ago

  • Subject changed from Do not rely on statically configured IPv4 addresses for the salt master in /etc/hosts to Do not rely on statically configured IPv4 addresses for the salt master in /etc/hosts size:S
  • Description updated (diff)
  • Status changed from New to Workable
  • Priority changed from Normal to High

#4 Updated by okurz 2 months ago

  • Status changed from Workable to In Progress
  • Assignee set to okurz

#5 Updated by okurz 2 months ago

  • Due date set to 2022-10-06
  • Status changed from In Progress to Feedback

On OSD I did

sudo salt \* cmd.run 'echo "master: openqa.suse.de" >> /etc/salt/minion'
sudo salt \* cmd.run "sed -i '/10.160.0.207.*salt/d' /etc/hosts"

and I tested on openqaworker13 as an example that after restarting salt-minion I can still reach the system over salt.

https://gitlab.suse.de/openqa/salt-states-openqa/-/merge_requests/740 for the instruction change in README.

#6 Updated by okurz 2 months ago

  • Due date deleted (2022-10-06)
  • Status changed from Feedback to Resolved

Also available in: Atom PDF