Error: Failed to restart atomic-openshift-master.service: Unit atomic-openshift-master.service is masked

Solution In Progress - Updated -

Environment

OpenShift Container Platform - OCP

Issue

Attempting to restart the openshift master services like so:
$ systemctl restart atomic-openshift-master
Results in:
Failed to restart atomic-openshift-master.service: Unit atomic-openshift-master.service is masked.

Resolution

Instead of issuing a systemctl restart atomic-openshift-master for an HA install, you should instead:
$ systemctl restart atomic-openshift-master-api atomic-openshift-master-controllers

Root Cause

For HA installations the atomic-openshift-master service is masked on purpose. Instead the atomic-openshift-api and atomic-openshift-controllers units are used instead.

Both the atomic-openshift-api and atomic-openshift-controllers service use the /etc/origin/master/master-config.yaml config file, however the environment file for the controllers service /etc/sysconfig/atomic-openshift-controllers overrides some values via command line parameters.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.