tripleo-quickstart-extras/roles/overcloud-prep-images
Emilien Macchi a72604a441 Fix overcloud image upload for containerized UC
Use overcloud image upload --http-boot only for containerized
undercloud.

Until we figure out a better way of managing http-boot argument when
preparing the image, let's add a conditional so we only use it for a
containerized undercloud and not for the OVB jobs which seems to not
work as of today.

Change-Id: I52cdcabc420276d05827e361d4189522fed57176
Related-Bug: #1748921
Closes-Bug: #1669186
Co-authored-by: Emilien Macchi <emilien@redhat.com>
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2018-03-01 12:02:45 +01:00
..
defaults Add optional tcpdump to introspection 2017-11-20 13:12:44 -05:00
meta Ensure that each role in extras has a dependency on extras-common 2017-01-18 09:32:16 -05:00
tasks Remove cloud-init update bits 2017-09-21 07:45:38 +03:00
templates Fix overcloud image upload for containerized UC 2018-03-01 12:02:45 +01:00
README.md Merge "Add disk root device hints" 2017-02-28 15:10:52 +00:00

README.md

Role Name

An Ansible role to copy configuration files to the undercloud prior to deployment.

Requirements

This playbook expects that the undercloud has been installed and setup using one of the roles relevant to baremetal overcloud deployments.

Role Variables

Note: Make sure to include all environment file and options from your initial Overcloud creation.

  • working_dir: <'/home/stack'> -- working directory for the role. Assumes stackrc file is present at this location

  • baremetal_instackenv: <"{{ working_dir }}/instackenv.json"> -- location of instackenv.json to copy over

  • baremetal_network_environment: <"{{ working_dir }}/network-isolation.yml"> -- location of network-environment file to copy over

  • undercloud_type: -- can be overwritten with values like 'baremetal' or 'ovb'

  • step_root_device_size: -- add disk size hints if needed for the environment under test

  • disk_root_device_size: <1843> -- size hint for selecting the correct disk during introspection

  • step_root_device_hints: false -- add root device hints if needed for the environment under test

  • root_device_hints: [] -- list of the root device hints to be associated with nodes. Needs to have this format::

    • root_device_hints:
      • ip: <<pm_addr>> key: <> value: <>

    Where key needs to be one of the valid Ironic root device hints, and value is the exact value that needs to be filtered. For reference on all the possible root device hints see http://docs.openstack.org/project-install-guide/baremetal/draft/advanced.html#specifying-the-disk-for-deployment-root-device-hints. Please note that in order to match root device hints with the associated nodes on instackenv.json, the node pm_address will be used as a key. At the moment only equal operator is supported, is not possible to use other operators or logical combinations.

  • whole_disk_images: false -- shows if we want to use partition or whole disk images (this will be available starting on Ocata)

  • step_introspect_with_retry: -- a more robust version of the step_introspect option

Dependencies

This playbook does not deploy the overcloud. After this playbook runs, call https://github.com/redhat-openstack/ansible-role-tripleo-overcloud.

Example Playbook

  1. Sample playbook to call the role
- name: Copy configuration files
  hosts: virthost
  gather_facts: no
  roles:
    - ansible-role-tripleo-overcloud-prep-config

License

Apache 2.0

Author Information

RDO-CI Team