3164053f08
Increases the amount of ram for CoreOS IPA to 2GB as the base CoreOS image is now 310MB. Bumped CPU count for CoreOS runs to 2 CPUs as the concurrency helps boot times for the CoreOS ramdisk. Adds netbase, udev, and open-iscsi to debian jessie container as they are no longer present in the default container. Explicitly set path variable for execution in the debian container as udevadm is in /sbin, and we may not have /sbin on the path that is passed through to the chroot. Also fixed new pep8 test failures. Story: #1600228 Task: #16287 Change-Id: I488445dfd261b7bca322a0be7b4d8ca6105750a3
266 lines
7.9 KiB
YAML
266 lines
7.9 KiB
YAML
#cloud-config
|
|
|
|
coreos:
|
|
units:
|
|
- name: user-configdrive.service
|
|
mask: true
|
|
|
|
- name: user-configvirtfs.service
|
|
mask: true
|
|
|
|
- name: user-configdrive.path
|
|
mask: true
|
|
|
|
- name: media-configdrive.mount
|
|
mask: true
|
|
|
|
- name: media-configvirtfs.mount
|
|
mask: true
|
|
|
|
- name: update-engine.service
|
|
mask: true
|
|
|
|
- name: update-engine-stub.service
|
|
mask: true
|
|
|
|
- name: resize-btrfs.service
|
|
mask: true
|
|
|
|
- name: locksmithd.service
|
|
mask: true
|
|
|
|
- name: fleet.service
|
|
mask: true
|
|
|
|
- name: etcd.service
|
|
mask: true
|
|
|
|
- name: usr-share-oem.mount
|
|
mask: true
|
|
|
|
- name: ironic-python-agent-embed-ssh-keys.service
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
Description=Migrate embedded SSH keys into core user
|
|
ConditionFileNotEmpty=/usr/share/oem/authorized_keys
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/bin/update-ssh-keys -a oem /usr/share/oem/authorized_keys
|
|
|
|
- name: ironic-python-agent-container-creation.service
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
Description=Untar Provided IPA Container
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/bin/mkdir -p /opt/ironic-python-agent
|
|
ExecStart=/usr/bin/tar -x --no-xattrs \
|
|
-C /opt/ironic-python-agent \
|
|
-f /usr/share/oem/container.tar.gz
|
|
|
|
- name: opt-ironic\x2dpython\x2dagent-proc.mount
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
DefaultDependencies=no
|
|
Conflicts=umount.target
|
|
Before=umount.target
|
|
After=ironic-python-agent-container-creation.service
|
|
Requires=ironic-python-agent-container-creation.service
|
|
|
|
[Mount]
|
|
What=/proc
|
|
Where=/opt/ironic-python-agent/proc
|
|
Type=none
|
|
Options=bind
|
|
|
|
- name: opt-ironic\x2dpython\x2dagent-dev.mount
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
DefaultDependencies=no
|
|
Conflicts=umount.target
|
|
Before=umount.target
|
|
After=ironic-python-agent-container-creation.service
|
|
Requires=ironic-python-agent-container-creation.service
|
|
|
|
[Mount]
|
|
What=/dev
|
|
Where=/opt/ironic-python-agent/dev
|
|
Type=none
|
|
Options=bind
|
|
|
|
- name: opt-ironic\x2dpython\x2dagent-dev-pts.mount
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
DefaultDependencies=no
|
|
Conflicts=umount.target
|
|
Before=umount.target
|
|
After=ironic-python-agent-container-creation.service
|
|
Requires=ironic-python-agent-container-creation.service
|
|
|
|
[Mount]
|
|
What=/dev/pts
|
|
Where=/opt/ironic-python-agent/dev/pts
|
|
Type=none
|
|
Options=bind
|
|
|
|
- name: opt-ironic\x2dpython\x2dagent-sys.mount
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
DefaultDependencies=no
|
|
Conflicts=umount.target
|
|
Before=umount.target
|
|
After=ironic-python-agent-container-creation.service
|
|
Requires=ironic-python-agent-container-creation.service
|
|
|
|
[Mount]
|
|
What=/sys
|
|
Where=/opt/ironic-python-agent/sys
|
|
Type=none
|
|
Options=bind
|
|
|
|
- name: opt-ironic\x2dpython\x2dagent-run.mount
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
DefaultDependencies=no
|
|
Conflicts=umount.target
|
|
Before=umount.target
|
|
After=ironic-python-agent-container-creation.service
|
|
Requires=ironic-python-agent-container-creation.service
|
|
|
|
[Mount]
|
|
What=/run
|
|
Where=/opt/ironic-python-agent/run
|
|
Type=none
|
|
Options=bind
|
|
|
|
- name: opt-ironic\x2dpython\x2dagent-mnt.mount
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
DefaultDependencies=no
|
|
Conflicts=umount.target
|
|
Before=umount.target
|
|
After=ironic-python-agent-container-creation.service
|
|
Requires=ironic-python-agent-container-creation.service
|
|
|
|
[Mount]
|
|
What=/usr/share/oem
|
|
Where=/opt/ironic-python-agent/mnt
|
|
Type=none
|
|
Options=bind
|
|
|
|
- name: opt-ironic\x2dpython\x2dagent-etc-resolvconf.service
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
Description="Provide host resolv.conf to chroot"
|
|
After=ironic-python-agent-container-creation.service
|
|
Requires=ironic-python-agent-container-creation.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/bin/ln -f /etc/resolv.conf /opt/ironic-python-agent/etc/resolv.conf
|
|
|
|
- name: opt-ironic\x2dpython\x2dagent-run-log.mount
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
DefaultDependencies=no
|
|
Conflicts=umount.target
|
|
Before=umount.target
|
|
After=ironic-python-agent-container-creation.service
|
|
Requires=ironic-python-agent-container-creation.service
|
|
|
|
[Mount]
|
|
What=/run/log
|
|
Where=/opt/ironic-python-agent/run/log
|
|
Type=none
|
|
Options=bind
|
|
|
|
- name: setup-rescue-directories.service
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
Description=Create directories for rescue mode configuration
|
|
After=ironic-python-agent-container-creation.service
|
|
Requires=ironic-python-agent-container-creation.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/bin/mkdir /etc/ipa-rescue-config
|
|
ExecStart=/usr/bin/mkdir /opt/ironic-python-agent/etc/ipa-rescue-config
|
|
|
|
- name: opt-ironic\x2dpython\x2dagent-etc-ipa\x2drescue\x2dconfig.mount
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
DefaultDependencies=no
|
|
|
|
Conflicts=umount.target
|
|
Before=umount.target
|
|
|
|
After=ironic-python-agent-container-creation.service
|
|
After=setup-rescue-directories.service
|
|
|
|
Requires=ironic-python-agent-container-creation.service
|
|
Requires=setup-rescue-directories.service
|
|
|
|
[Mount]
|
|
What=/etc/ipa-rescue-config
|
|
Where=/opt/ironic-python-agent/etc/ipa-rescue-config
|
|
Type=none
|
|
Options=bind
|
|
|
|
- name: ironic-python-agent.service
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
Description=Ironic Python Agent
|
|
After=ironic-python-agent-container-creation.service
|
|
After=opt-ironic\x2dpython\x2dagent-proc.mount
|
|
After=opt-ironic\x2dpython\x2dagent-dev.mount
|
|
After=opt-ironic\x2dpython\x2dagent-dev-pts.mount
|
|
After=opt-ironic\x2dpython\x2dagent-sys.mount
|
|
After=opt-ironic\x2dpython\x2dagent-run.mount
|
|
After=opt-ironic\x2dpython\x2dagent-mnt.mount
|
|
After=opt-ironic\x2dpython\x2dagent-etc-resolvconf.service
|
|
After=opt-ironic\x2dpython\x2dagent-run-log.mount
|
|
After=setup-rescue-directories.service
|
|
After=opt-ironic\x2dpython\x2dagent-etc-ipa\x2drescue\x2dconfig.mount
|
|
|
|
Requires=ironic-python-agent-container-creation.service
|
|
Requires=opt-ironic\x2dpython\x2dagent-proc.mount
|
|
Requires=opt-ironic\x2dpython\x2dagent-dev.mount
|
|
Requires=opt-ironic\x2dpython\x2dagent-dev-pts.mount
|
|
Requires=opt-ironic\x2dpython\x2dagent-sys.mount
|
|
Requires=opt-ironic\x2dpython\x2dagent-run.mount
|
|
Requires=opt-ironic\x2dpython\x2dagent-mnt.mount
|
|
Requires=opt-ironic\x2dpython\x2dagent-etc-resolvconf.service
|
|
Requires=opt-ironic\x2dpython\x2dagent-run-log.mount
|
|
Requires=setup-rescue-directories.service
|
|
Requires=opt-ironic\x2dpython\x2dagent-etc-ipa\x2drescue\x2dconfig.mount
|
|
|
|
[Service]
|
|
ExecStartPre=-/usr/sbin/modprobe ipmi_msghandler
|
|
ExecStartPre=-/usr/sbin/modprobe ipmi_devintf
|
|
ExecStartPre=-/usr/sbin/modprobe ipmi_si
|
|
ExecStart=/usr/bin/chroot /opt/ironic-python-agent \
|
|
env PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH \
|
|
/usr/local/bin/ironic-python-agent
|
|
ExecStopPost=/usr/share/oem/finalize_rescue.sh
|
|
Restart=on-failure
|
|
RestartSec=30s
|