Dc load-import: load-import --inactive does not feed controller-1

Bug #2045321 reported by Lindley Werner Soares Vieira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Lindley Werner Soares Vieira

Bug Description

Dc load-import: load-import --inactive does not feed controller-1

[sysadmin@controller-1 ~(keystone_admin)]$ sw-patch query
      Patch ID RR Release Patch State
===================== == ======= ===========
WRCP_21.12_PATCH_0001 Y 21.12 Committed
WRCP_21.12_PATCH_0002 Y 21.12 Committed
WRCP_21.12_PATCH_0003 Y 21.12 Committed
WRCP_21.12_PATCH_0004 Y 21.12 Committed
WRCP_21.12_PATCH_0005 Y 21.12 Committed
WRCP_21.12_PATCH_0006 Y 21.12 Committed
WRCP_21.12_PATCH_0007 Y 21.12 Committed
WRCP_21.12_PATCH_0008 Y 21.12 Committed
WRCP_21.12_PATCH_0009 Y 21.12 Committed
WRCP_21.12_PATCH_0010 N 21.12 Committed
WRCP_22.12_PATCH_0001 Y 22.12 Committed
WRCP_22.12_PATCH_0002 Y 22.12 Committed
WRCP_22.12_PATCH_0003 Y 22.12 Committed
WRCP_22.12_PATCH_0004 Y 22.12 Applied

[sysadmin@controller-1 ~(keystone_admin)]$ system load-list
+----+----------+------------------+
| id | state | software_version |
+----+----------+------------------+
| 1 | active | 22.12 |
| 16 | inactive | 21.12 |
+----+----------+------------------+

[sysadmin@controller-1 feed(keystone_admin)]$ ls
rel-22.12

Note:

In the command lines above we can see that controller-1 has 21.12 playbooks, 21.12 deploy files BUT it does not have the FEED dir.
This impacts subcloud prestage to previous release using controller-1 as the active controller
Severity

<Minor: System/Feature is usable with minor issue>

Note: The workaround is to use controller-0 to run subcloud prestage

Steps to Reproduce

deploy systemcontroller with 22.12P4

import inactive load (We must use controller-0 for this step)

swact to controller-1

check feed directory

Expected Behavior

The feed directory should also be available on controller-1 side

Actual Behavior

The feed directory is not available on controller-1 side

Reproducibility

100% reproducible

System Configuration

DC

Load info (eg: 2022-03-10_20-00-07)

 cat /etc/build.info
SW_VERSION="22.12"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID="2022-12-19_02-22-00"
SRC_BUILD_ID="38"JOB="wrcp-22.12-debian"
BUILD_BY="jenkins"
BUILD_NUMBER="50"
BUILD_HOST="yow-wrcp-lx.wrs.com"
BUILD_DATE="2022-12-19 07:22:00 +0000"

 sw-patch query
      Patch ID RR Release Patch State
===================== == ======= ===========
WRCP_21.12_PATCH_0001 Y 21.12 Committed
WRCP_21.12_PATCH_0002 Y 21.12 Committed
WRCP_21.12_PATCH_0003 Y 21.12 Committed
WRCP_21.12_PATCH_0004 Y 21.12 Committed
WRCP_21.12_PATCH_0005 Y 21.12 Committed
WRCP_21.12_PATCH_0006 Y 21.12 Committed
WRCP_21.12_PATCH_0007 Y 21.12 Committed
WRCP_21.12_PATCH_0008 Y 21.12 Committed
WRCP_21.12_PATCH_0009 Y 21.12 Committed
WRCP_21.12_PATCH_0010 N 21.12 Committed
WRCP_22.12_PATCH_0001 Y 22.12 Committed
WRCP_22.12_PATCH_0002 Y 22.12 Committed
WRCP_22.12_PATCH_0003 Y 22.12 Committed
WRCP_22.12_PATCH_0004 Y 22.12 Applied

patch4 from Nov 14th

Last Pass

new test scenario.

Timestamp/Logs

no logs collected. Let me know if collecting logs is usufull

Alarms

no alarms

Test Activity

Regression Testing

Workaround

Use controller-0 for prestage to previous release operation

Changed in starlingx:
assignee: nobody → Lindley Werner Soares Vieira (lindley-vieira)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to update (master)

Reviewed: https://review.opendev.org/c/starlingx/update/+/902336
Committed: https://opendev.org/starlingx/update/commit/c8a7941a21688e5441163636ca77ead194bec1d4
Submitter: "Zuul (22348)"
Branch: master

commit c8a7941a21688e5441163636ca77ead194bec1d4
Author: Lindley Werner <email address hidden>
Date: Thu Nov 30 19:22:45 2023 -0300

    Fix: load-import not feed controller-1

    When doing load-import operation, the /var/www/pages/feed/ files must
    be replicated in both controllers. The files were being created in
    controller-0, but they were not copied to controller-1.

    This fix added a way to get all the folders from one controller to
    another and sync them with ostree the explanation is in the following
    commit: I42c274079631a3c197015e636e03de1bc96de28b

    Test-plan:
    PASS: After a load-import, the inactive controller should have the
    feed repo created.

    Closes-bug: 2045321

    Change-Id: I260951461d2c19550e9f57ad7ab9ec66a25de5bb
    Signed-off-by: Lindley Werner <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
tags: added: stx.10.0 stx.distcloud
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.