tripleo-common/image-yaml/overcloud-images.yaml
Ben Nemec 4ec2e0d33b Set imageext for IPA ramdisk
Without this, the existing image logic looks for a file named
ironic-python-agent.qcow2, which will never exist since IPA is a
ramdisk.  Note that there is no initrd type in dib, so we have to
leave that as qcow2 even though it's wrong.  I left a comment in
the yaml explaining why.

Additionally, this required some modification of the logic around
the image name.  For the purposes of checking existence, we need
the extension.  For the diskimage-builder call, we do not.  DIB
strips off any extension that matches the image type anyway, but
this does not work properly if we pass a type of qcow2 with an
extension of initramfs, so we end up with a file named
ironic-python-agent.initramfs.initramfs.

Change-Id: Ic5757c1f363979a6c52830bfa6c42c2b57740fd5
Closes-Bug: 1654002
2017-01-17 00:18:18 +00:00

54 lines
1.2 KiB
YAML

disk_images:
-
imagename: overcloud-full
arch: amd64
type: qcow2
elements:
- baremetal
- dhcp-all-interfaces
- overcloud-agent
- overcloud-full
- overcloud-controller
- overcloud-compute
- overcloud-ceph-storage
- puppet-modules
- hiera
- os-net-config
- stable-interface-names
- grub2
- element-manifest
- dynamic-login
- enable-packages-install
- pip-and-virtualenv-override
packages:
- python-psutil
- python-debtcollector
- plotnetcfg
- sos
- device-mapper-multipath
- python-heat-agent-puppet
- python-heat-agent-hiera
- python-heat-agent-apply-config
- python-heat-agent-ansible
options:
- "--min-tmpfs 5"
-
imagename: ironic-python-agent
arch: amd64
# This is bogus, but there's no initrd type in diskimage-builder
type: qcow2
# So we just override the extension instead
imageext: initramfs
elements:
- ironic-agent
- dynamic-login
- element-manifest
- network-gateway
- enable-packages-install
- pip-and-virtualenv-override
packages:
- python-hardware-detect
options:
- "--min-tmpfs=5"