VERIFIED instack-undercloud-7.4.12-1.el7ost.noarch (.venv) [ahre@KH329 infrared_3]$ cat plugins/virsh/tasks/download_images.yml # save current node to "{{ node_dict }}" - include_vars: file: "{{ node.key }}" name: node_dict - name: merge overriden settings to the separate var set_fact: topology_node: "{{ node_dict|default({}) | combine((override|default({})).get(node.key|basename|splitext|first, {}), recursive=True) }}" - name: download base image for node vars: source: "{{ item.value.import_url|default('') or node_dict.import_url|default('') or url }}" get_url: # Use default url if unless disk has a different source url: "{{ source }}" # use original basename explicitly, otherwise, "force" doesn't work dest: "{{ base_image_path }}/{{ source | basename }}" # Download new images only. force: "{{ item.value.force_image_download|default(false)|bool or provision.force.image.download }}" validate_certs: "{{ url.startswith('https://url.corp.redhat.com/') | ternary(false, omit)}}" owner: qemu group: qemu timeout: 30 register: download_image_result until: download_image_result.msg.find("Request failed") == -1 retries: 5 delay: 5 with_dict: "{{ topology_node.disks }}" when: topology_node.disks|count > 0 - name: result of download base image for node debug: var: download_image_result - name: adjust base image for this run shell: | set -ex export LIBGUESTFS_BACKEND=direct virt-sysprep -a {{ item.dest }} \ --operations dhcp-client-state,dhcp-server-state,net-hostname,net-hwaddr,udev-persistent-net virt-customize -a {{ item.dest }} \ {% if not item.item.value.image_url|default('') %} {% endif %} --root-password password:redhat \ --run-command 'echo "UseDNS no" >> /etc/ssh/sshd_config' \ --mkdir /root/.ssh \ --chmod 0700:/root/.ssh \ --upload /root/.ssh/id_rsa.pub:/root/.ssh/authorized_keys \ --delete /etc/dhcp/dhclient.conf \ --selinux-relabel with_items: "{{ download_image_result.results }}" when: item is changed [stack@undercloud-0 ~]$ systemctl status os-collect-config ● os-collect-config.service - Collect metadata and run hook commands. Loaded: loaded (/usr/lib/systemd/system/os-collect-config.service; disabled; vendor preset: disabled) Active: inactive (dead)
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:2331