Browse Source

Merge "Run update without yum update to apply hotfixes." into stable/queens

changes/59/696059/5
Zuul Gerrit Code Review 3 weeks ago
parent
commit
c49796a4a4
1 changed files with 26 additions and 5 deletions
  1. +26
    -5
      puppet/services/tripleo-packages.yaml

+ 26
- 5
puppet/services/tripleo-packages.yaml View File

@@ -65,6 +65,11 @@ parameters:
major-upgrade-composable-steps.yaml and major-upgrade-converge.yaml
environment files.
default: ''
SkipPackageUpdate:
default: 'false'
description: Set to true to skip the update all packages
type: boolean


outputs:
role_data:
@@ -278,9 +283,17 @@ outputs:
when:
- step|int == 3
- is_hosting_ceph_osd.rc != 0
- name: Update all but Ceph packages
when: step|int == 3
yum: name=* state=latest exclude=ceph*,librados*,librbd*,libcephfs*,librgw*,python-rados*,python-rbd*,python-cephfs*,python-rgw*,rbd-mirror
- name: Set boolean skip_package_update
set_fact:
skip_package_update: {get_param: SkipPackageUpdate}
- name: Update all packages
when:
- step|int == 3
- not skip_package_update|bool
yum:
name: '*'
state: latest
exclude: ceph*,librados*,librbd*,libcephfs*,librgw*,python-rados*,python-rbd*,python-cephfs*,python-rgw*,rbd-mirror
update_tasks:
# With the layered product packaging, the key package is rhosp-openvswitch. It depends on
# a openvswitch package that includes the version as part of the name (e.g openvswitch2.10).
@@ -389,9 +402,17 @@ outputs:
when:
- step|int == 3
- is_hosting_ceph_osd.rc != 0
- name: Set boolean skip_package_update
set_fact:
skip_package_update: {get_param: SkipPackageUpdate}
- name: Update all packages
yum: name=* state=latest update_cache=yes
when: step == "3"
when:
- step|int == 3
- not skip_package_update|bool
yum:
name: '*'
state: latest
update_cache: yes
# This is failsafe unless openvswitch package does something to the systemd service state.
- name: Ensure openvswitch is running after update
when: step|int == 3


Loading…
Cancel
Save