Other image requirements

Review the additional requirements that an operating system image for cluster nodes must meet, including Python, SSH, cloud-init, chrony, and node identity.

The image must meet the following requirements:

  • /usr/bin/python3 exists, because Ansible runs through it.
  • sshd_config keeps its Include /etc/ssh/sshd_config.d/*.conf line, because bootstrap adds its SSH settings there.
  • cloud-init finishes with exit code 0. Bootstrap treats any other result as a failure, including exit code 2, which means that cloud-init finished with recoverable errors.
  • Nothing in the image depends on reaching a public repository, including a repository that is left enabled, because a failed repository can fail the package cache refresh.
  • chrony points at time sources that the node can reach. If the access profile sets no NTP servers, bootstrap keeps the image configuration. With the public pools left in place, the node has no working time source and bootstrap does not report it.
  • Each node gets its own identity: the image contains no machine ID, no SSH host keys, and no SSH keys of the build user. The clean-up step of the build removes them.