Bug 1591782

Summary: [osp12] os-collect-config service running on the undercloud causes overcloud deployment failures
Product: Red Hat OpenStack Reporter: Alex Schultz <aschultz>
Component: instack-undercloudAssignee: Alex Schultz <aschultz>
Status: CLOSED ERRATA QA Contact: Artem Hrechanychenko <ahrechan>
Severity: high Docs Contact:
Priority: high    
Version: 12.0 (Pike)CC: agurenko, ahrechan, aschultz, jamsmith, mburns, rhel-osp-director-maint
Target Milestone: z3Keywords: Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: instack-undercloud-7.4.12-1.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1553367 Environment:
Last Closed: 2018-08-20 13:01:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1553367, 1591783    
Bug Blocks:    

Comment 4 Artem Hrechanychenko 2018-07-04 16:01:56 UTC
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)

Comment 7 errata-xmlrpc 2018-08-20 13:01:35 UTC
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