During deploy start, it queries all deployments inside software.json
to update the state, but this file is being wrongly populated.
This review fixes the software.json file population.
Also removes a duplicated call to create a deploy host in this file.
Test plan:
PASS: "software deploy start <patch>"
PASS: Should not fail with: "Error to update deploy state."
PASS: Should not fail with: \
"Error to create. Deploy host already exist."
PASS: Deploy start must complete with the patch in the repo.
Reviewed: https:/ /review. opendev. org/c/starlingx /update/ +/922327 /opendev. org/starlingx/ update/ commit/ 93323430073aea2 89a8e43e577c7ac 92e012853e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 93323430073aea2 89a8e43e577c7ac 92e012853e
Author: Lindley Vieira <email address hidden>
Date: Wed Jun 19 10:58:15 2024 -0300
Fail: No deploy in progress in "deploy start"
During deploy start, it queries all deployments inside software.json
to update the state, but this file is being wrongly populated.
This review fixes the software.json file population.
Also removes a duplicated call to create a deploy host in this file.
Test plan:
PASS: "software deploy start <patch>"
PASS: Should not fail with: "Error to update deploy state."
PASS: Should not fail with: \
"Error to create. Deploy host already exist."
PASS: Deploy start must complete with the patch in the repo.
Closes-bug: 2069829
Story: 2010676
Task: 50494
Change-Id: I560a905240ec04 084e4659b251cce 644a4593f33
Signed-off-by: Lindley Vieira <email address hidden>