
Previously, software sync relied solely on the subcloud's SW_VERSION, causing issues when the system controller and subcloud ran different software versions (e.g., stx 11.0 and stx10.0). This led to incorrect software metadata sync, as the ostree_feed_repo_dir path was constructed using the subcloud's version, resulting in mismatched paths and unnecessary synchronization. This change: 1.Ignores the software sync if system controller is stx11 and greater and subcloud with stx10 2.Ensures software sync only occurs when both the system controller and the subcloud run the same software version. This prevents unintended sync when versions differ, ensuring metadata is only transferred when appropriate. Disabling sync-patch-metadata as it no longer used from stx-11 Test Plan: PASS N-1 subcloud deployment should not show incorrect patch as installed after system controller upgrade PASS Verify subcloud add and install from SystemController with stx 10 patch level applied PASS Verify N subcloud add, in upgraded system controller PASS No alarm found Closes-Bug: 2103692 Change-Id: I3213ad335a43ac3b746c79d3b9545eb4742dae8e Signed-off-by: rummadis <ramu.ummadishetty@windriver.com>
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
---
|
|
#
|
|
# Copyright (c) 2020-2025 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
- name: Install Playbook
|
|
hosts: all
|
|
gather_facts: false
|
|
become: no
|
|
|
|
tasks:
|
|
- set_fact:
|
|
ansible_port: "{{ ansible_port | default(22) }}"
|
|
boot_wait_time: "{{ boot_wait_time | default(600) }}"
|
|
wait_for_timeout: "{{ wait_for_timeout | default(3600) }}"
|
|
job_retry_delay: "{{ 120 | random }}"
|
|
host_to_check: "{{ ansible_host }}"
|
|
sync_patch_metadata: "{{ sync_patch_metadata | default(false) }}"
|
|
sync_software_metadata: "{{ sync_software_metadata | default(true) }}"
|
|
|
|
- name: Run RVMC script to insert boot image and power on host
|
|
include_role:
|
|
name: common/rvmc
|
|
|
|
- debug:
|
|
msg: "Waiting for the system to install..."
|
|
|
|
- name: Waiting {{ wait_for_timeout }} seconds for port {{ ansible_port }} become open on {{ host_to_check }}
|
|
local_action:
|
|
module: wait_for
|
|
port={{ ansible_port }}
|
|
host={{ host_to_check }}
|
|
delay={{ boot_wait_time }}
|
|
timeout={{ wait_for_timeout }}
|
|
state=started
|
|
msg="Timeout waiting for {{ host_to_check }}:{{ ansible_port }}. Err_code=wait_install"
|
|
|
|
- name: Run validate host playbook post install
|
|
import_playbook: validate_host.yml
|
|
vars:
|
|
check_system: true
|
|
check_load: false
|
|
check_bootstrap_address: false
|
|
check_patches: false
|
|
enforce_password_change: true
|