Bug 2295411 - Switch running image to new image in wrapper script
Summary: Switch running image to new image in wrapper script
Keywords:
Status: CLOSED DUPLICATE of bug 2283506
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: OSP Team
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-03 12:57 UTC by Kenny Tordeurs
Modified: 2024-07-17 13:40 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-07-17 13:40:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-32443 0 None None None 2024-07-03 12:57:58 UTC

Description Kenny Tordeurs 2024-07-03 12:57:32 UTC
Description of problem:
Switch running image to new image in wrapper script results in an error

Version-Release number of selected component (if applicable):
16.2 > 17.1

How reproducible:
100%

Steps to Reproduce:
1. # openstack overcloud upgrade run --yes --tags system_upgrade --stack openstack05 --limit openstack086
2.
3.

Actual results:
FATAL | Switch running image to new image in wrapper script | openstack086 | error={"changed": true, "cmd": "sed -i -e 's||satellite.example.com/content_view_le

ainers-nova-libvirt:17.1|' /var/lib/container-config-scripts/virtlogd_wrapper\n", "delta": "0:00:00.008230", "end": "2024-06-16 16:58:47.879673", "msg": "non-zero return code", "rc": 1, "start": "2024-06-16 16:58:47.871443", "stderr": "sed: -e expression #1, char 0: no previous regular expression", "stderr_lines": [

"sed: -e expression #1, char 0: no previous regular expression"], "stdout": "", "stdout_lines": []}

Expected results:
no errors

Additional info:
Restart all nova containers fixed this:
# podman restart nova_compute

Comment 1 Lukas Bezdicka 2024-07-17 13:26:27 UTC
                  - name: Get running image version
                    shell: |
                      podman ps --filter name=^nova_virtlogd$ --format "{% raw %}{{ .Image }}{% endraw %}"
                    register: old_virtlogd_image
                  - name: Switch running image to new image in wrapper script
                    shell: |
                      set -o pipefail
                      sed -i -e 's|{{ old_virtlogd_image.stdout }}|{{ virtlogd_image }}|' /var/lib/container-config-scripts/virtlogd_wrapper
                    when:
                      - old_virtlogd_image.stdout != virtlogd_image
                      - old_virtlogd_image.stdout != ''


Code checks for old_virtlogd_image.stdout being empty so I don't understand why you got this error as it called - sed -i -e 's||satellite.example.com/content_view_leainers-nova-libvirt:17.1|'

Comment 2 Lukas Bezdicka 2024-07-17 13:26:58 UTC
Tempted to close as user error as the virtlogd was down before system upgrade.

Comment 3 Lukas Bezdicka 2024-07-17 13:40:36 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=2283506

*** This bug has been marked as a duplicate of bug 2283506 ***


Note You need to log in before you can comment on or make changes to this bug.