Skip to content

Commit 073bb37

Browse files
Merge pull request openshift#18542 from sosiouxme/20180208-systemd-units
Automatic merge from submit-queue (batch tested with PRs 18394, 18542). host diagnostics: update master unit names Finally bringing diagnostics systemd unit names into parity with the actual names being used. Tracking bug https://bugzilla.redhat.com/show_bug.cgi?id=1378883
2 parents cc41a7e + 57e4294 commit 073bb37

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pkg/oc/admin/diagnostics/diagnostics/systemd/locate_units.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func GetSystemdUnits(logger *log.Logger) map[string]types.SystemdUnit {
3030
}
3131

3232
logger.Notice("DS1001", "Performing systemd discovery")
33-
for _, name := range []string{"origin-master", "origin-node", "atomic-openshift-master", "atomic-openshift-node", "docker", "openvswitch", "iptables", "etcd", "kubernetes"} {
33+
for _, name := range []string{"origin-master-controllers", "origin-master-api", "origin-node", "atomic-openshift-master-controllers", "atomic-openshift-master-api", "atomic-openshift-node", "docker", "openvswitch", "iptables", "etcd", "kubernetes"} {
3434
systemdUnits[name] = discoverSystemdUnit(logger, name)
3535

3636
if systemdUnits[name].Exists {

pkg/oc/admin/diagnostics/diagnostics/systemd/systemd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ var tlsClientErrorSeen map[string]bool
6060
// Specify what units we can check and what to look for and say about it
6161
var unitLogSpecs = []*unitSpec{
6262
{
63-
Names: []string{"origin-master", "atomic-openshift-master"},
63+
Names: []string{"origin-master-api", "atomic-openshift-master-api"},
6464
StartMatch: regexp.MustCompile("Starting \\w+ Master"),
6565
LogMatchers: []logMatcher{
6666
badImageTemplate,

pkg/oc/admin/diagnostics/diagnostics/systemd/unit_status.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ func (d UnitStatus) Check() types.DiagnosticResult {
3939
unitRequiresUnit(r, d.SystemdUnits["atomic-openshift-node"], d.SystemdUnits["iptables"], nodeRequiresIPTables)
4040
unitRequiresUnit(r, d.SystemdUnits["atomic-openshift-node"], d.SystemdUnits["docker"], `Nodes use Docker to run containers.`)
4141
unitRequiresUnit(r, d.SystemdUnits["atomic-openshift-node"], d.SystemdUnits["openvswitch"], fmt.Sprintf(sdUnitSDNreqOVS, "atomic-openshift-node"))
42-
unitRequiresUnit(r, d.SystemdUnits["atomic-openshift-master"], d.SystemdUnits["atomic-openshift-node"], `Masters must currently also be nodes for access to cluster SDN networking`)
42+
unitRequiresUnit(r, d.SystemdUnits["atomic-openshift-master-api"], d.SystemdUnits["atomic-openshift-node"], `Masters must currently also be nodes for access to cluster SDN networking`)
4343

4444
unitRequiresUnit(r, d.SystemdUnits["origin-node"], d.SystemdUnits["iptables"], nodeRequiresIPTables)
4545
unitRequiresUnit(r, d.SystemdUnits["origin-node"], d.SystemdUnits["docker"], `Nodes use Docker to run containers.`)
4646
unitRequiresUnit(r, d.SystemdUnits["origin-node"], d.SystemdUnits["openvswitch"], fmt.Sprintf(sdUnitSDNreqOVS, "origin-node"))
47-
unitRequiresUnit(r, d.SystemdUnits["origin-master"], d.SystemdUnits["origin-node"], `Masters must currently also be nodes for access to cluster SDN networking`)
47+
unitRequiresUnit(r, d.SystemdUnits["origin-master-api"], d.SystemdUnits["origin-node"], `Masters must currently also be nodes for access to cluster SDN networking`)
4848

4949
// Anything that is enabled but not running deserves notice
5050
for name, unit := range d.SystemdUnits {

0 commit comments

Comments
 (0)