• Bare Metal Server

bms
  1. Help Center
  2. Bare Metal Server
  3. Private Image Creation Guide (BMS)
  4. FAQ
  5. How Can I Handle the Failure of Data Injection into the BMS Due to the Occasional Start Failure of cloud-init-local?

How Can I Handle the Failure of Data Injection into the BMS Due to the Occasional Start Failure of cloud-init-local?

Symptom

For Red Hat 7 and CentOS 7, cloud-init-local may fail to start. After you run systemctl status cloud-init-local.service, the message "OSError: [Errno 2] No such file or directory" is displayed. As a result, data cannot be injected into the BMS.

Solution

If Red Hat 7 or CentOS 7 has a libselinux module earlier than version 2.5.7, a known kernel bug will occasionally cause cloud-init-local start failure (for details of the bug, see https://bugzilla.redhat.com/show_bug.cgi?id=1406520). When creating a Red Hat 7 or CentOS 7 image, you are advised to upgrade libselinux to version 2.5.7 or later by following the instructions in section Red Hat, CentOS, Oracle Linux, and XenServer.