predeployed server deployment fails because rsync is missing on nodes

Bug #1863216 reported by Cédric Jeanneret
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Undecided
Cédric Jeanneret

Bug Description

(Initially reported here: https://bugzilla.redhat.com/show_bug.cgi?id=1802827)

Description of problem:
Predeployed server deployment fails because rsync is missing on nodes.

2020-02-13 21:17:33,158 p=3031 u=mistral | TASK [Sync cached facts] *******************************************************
2020-02-13 21:17:33,158 p=3031 u=mistral | Thursday 13 February 2020 21:17:33 -0300 (0:00:00.235) 0:14:20.995 *****
2020-02-13 21:17:33,805 p=3031 u=mistral | fatal: [compute01-predeployed -> 192.0.2.51]: FAILED! => {"changed": false, "msg": "Failed to find required executable rsync in paths: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin"}
2020-02-13 21:17:33,816 p=3031 u=mistral | fatal: [ctrl01-predeployed -> 192.0.2.41]: FAILED! => {"changed": false, "msg": "Failed to find required executable rsync in paths: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin"}

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-11.3.2-0.20200131125640.cc909b6.el8ost.noarch

How reproducible:
Always

Steps to Reproduce:
1. Perform RHEL 8.1 minimal installation on overcloud nodes
2. deploy overcloud using predeploye server templates

Actual results:
Deployment fails because rsync is missing.

Expected results:
rsync should be automatically installed by director, if this is a requirement.

Additional info:

Adding "rsync" to the list of required packages at /usr/share/openstack-tripleo-heat-templates/deployment/tripleo-packages/tripleo-packages-baremetal-puppet.yaml should fix the issue.

            - name: Ensure TripleO prerequisite packages are installed
              package:
                name:
                  - jq
                  - lvm2
                  - net-snmp
                  - openstack-selinux
                  - os-net-config
                  - pacemaker
                  - pcs
                  - puppet-tripleo
                  - python3-heat-agent*
                  - rsync # <-- HERE
                state: present
              when: ansible_distribution_major_version == '8'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.opendev.org/707785

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/707785
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=1121a6c8ee302c247e7be55b71656617fdc8c3cd
Submitter: Zuul
Branch: master

commit 1121a6c8ee302c247e7be55b71656617fdc8c3cd
Author: Cédric Jeanneret <email address hidden>
Date: Fri Feb 14 09:47:22 2020 +0100

    Ensures rsync is present on the overcloud nodes

    When using pre-deployed nodes installed with minimal OS, it may happen
    rsync is missing - this package is needed for the "Sync cached facts"
    task for instance.

    Change-Id: Ie8a1ad5e2c9e32cce1f1b8c264a8b44207d99b59
    Closes-Bug: #1863216
    Related: https://bugzilla.redhat.com/show_bug.cgi?id=1802827

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/708270

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/train)

Reviewed: https://review.opendev.org/708270
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=ed4ed7762eeea55a9e20e724a52fbe010cfb8702
Submitter: Zuul
Branch: stable/train

commit ed4ed7762eeea55a9e20e724a52fbe010cfb8702
Author: Cédric Jeanneret <email address hidden>
Date: Fri Feb 14 09:47:22 2020 +0100

    Ensures rsync is present on the overcloud nodes

    When using pre-deployed nodes installed with minimal OS, it may happen
    rsync is missing - this package is needed for the "Sync cached facts"
    task for instance.

    Change-Id: Ie8a1ad5e2c9e32cce1f1b8c264a8b44207d99b59
    Closes-Bug: #1863216
    Related: https://bugzilla.redhat.com/show_bug.cgi?id=1802827
    (cherry picked from commit 1121a6c8ee302c247e7be55b71656617fdc8c3cd)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.opendev.org/709421

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/709526

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/709528

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by Cédric Jeanneret (Tengu) (<email address hidden>) on branch: master
Review: https://review.opendev.org/709421
Reason: Abandon in favor of https://review.opendev.org/709526

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (master)

Reviewed: https://review.opendev.org/709526
Committed: https://git.openstack.org/cgit/openstack/tripleo-ansible/commit/?id=612854d63bff41e5b05bd4b3e7397de9cab8ab03
Submitter: Zuul
Branch: master

commit 612854d63bff41e5b05bd4b3e7397de9cab8ab03
Author: Emilien Macchi <email address hidden>
Date: Mon Feb 24 08:22:03 2020 -0500

    Ensure rsync is installed during bootstrap

    When using pre-deployed nodes installed with minimal OS, it may happen
    rsync is missing, and it's needed by the Ansible tasks using synchronize
    module. Let's make sure the package is installed.

    It was initially done in Ie8a1ad5e2c9e32cce1f1b8c264a8b44207d99b59 but
    this wasn't enough for the regular deployment.

    Change-Id: I15c06296c0e20e1db086cb4c7cf669251be3eccb
    Closes-Bug: #1863216
    Related: https://bugzilla.redhat.com/show_bug.cgi?id=1802827

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (stable/train)

Reviewed: https://review.opendev.org/709528
Committed: https://git.openstack.org/cgit/openstack/tripleo-ansible/commit/?id=c0f497cff5503d37ceac4101623d63d19bb40ac5
Submitter: Zuul
Branch: stable/train

commit c0f497cff5503d37ceac4101623d63d19bb40ac5
Author: Emilien Macchi <email address hidden>
Date: Mon Feb 24 08:22:03 2020 -0500

    Ensure rsync is installed during bootstrap

    When using pre-deployed nodes installed with minimal OS, it may happen
    rsync is missing, and it's needed by the Ansible tasks using synchronize
    module. Let's make sure the package is installed.

    It was initially done in Ie8a1ad5e2c9e32cce1f1b8c264a8b44207d99b59 but
    this wasn't enough for the regular deployment.

    Change-Id: I15c06296c0e20e1db086cb4c7cf669251be3eccb
    Closes-Bug: #1863216
    Related: https://bugzilla.redhat.com/show_bug.cgi?id=1802827
    (cherry picked from commit 612854d63bff41e5b05bd4b3e7397de9cab8ab03)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ansible 0.5.0

This issue was fixed in the openstack/tripleo-ansible 0.5.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ansible 1.3.0

This issue was fixed in the openstack/tripleo-ansible 1.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 12.2.0

This issue was fixed in the openstack/tripleo-heat-templates 12.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 11.4.0

This issue was fixed in the openstack/tripleo-heat-templates 11.4.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.