Skip to content

fix: Use NFS_SHARE_PATH for artifact_dir validation and rename discovery scenario to provision#4614

Merged
abhishek-sa1 merged 15 commits into
dell:pub/q2_devfrom
balajikumaran-c-s:pub/q2_dev
Jun 1, 2026
Merged

fix: Use NFS_SHARE_PATH for artifact_dir validation and rename discovery scenario to provision#4614
abhishek-sa1 merged 15 commits into
dell:pub/q2_devfrom
balajikumaran-c-s:pub/q2_dev

Conversation

@balajikumaran-c-s
Copy link
Copy Markdown
Contributor

@balajikumaran-c-s balajikumaran-c-s commented May 31, 2026

Problem

  1. Wrong molecule scenario: The CI deploy-child template triggers the validate
    stage with scenario_names: ["discovery"], but the correct molecule scenario
    is provision.

Root Cause

  • .gitlab-ci-deploy-child-template.yml line 693: scenario name was discovery
    instead of provision.

Fix

  • Rename scenario from discovery to provision.

Files Changed

  • gitlab/roles/hosted_gitlab/files/.gitlab-ci-deploy-child-template.yml

balajikumaran.cs and others added 9 commits May 11, 2026 17:56
Signed-off-by: balajikumaran.cs <balajikumaran.c.s@gmail.com>
Signed-off-by: balajikumaran.cs <balajikumaran.c.s@gmail.com>
Signed-off-by: balajikumaran.cs <balajikumaran.cs@dellteam.com>
Signed-off-by: balajikumaran.cs <balajikumaran.cs@dellteam.com>
…ery to provision

- playbook_watcher_service.py: Replace hard-coded /opt/omnia/ prefix check
  for artifact_dir with dynamic NFS_SHARE_PATH. Fixes validate stage timeout
  caused by watcher rejecting valid NFS-based artifact paths.
- .gitlab-ci-deploy-child-template.yml: Change scenario_names from
  'discovery' to 'provision' to match the correct molecule scenario name.
@balajikumaran-c-s balajikumaran-c-s marked this pull request as ready for review May 31, 2026 20:33
# The artifact base is derived from the NFS share (NFS_SHARE_PATH),
# so it must not be hard-coded to /opt/omnia.
nfs_base = str(NFS_SHARE_PATH).rstrip("/")
if ".." in artifact_dir or not artifact_dir.startswith(f"{nfs_base}/"):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Rajeshkumar-s2 please check and update this change required or not?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't be required. Only the scenarios names can be modified. ARtifacts directory is updated to use NFS directory as part of latest checkmarx fixes. https://github.com/dell/omnia/pull/4611/changes. i believe the conflicts are owing to that. Will sync with Balaji and take the relevant changes only.

Copy link
Copy Markdown
Collaborator

@Rajeshkumar-s2 Rajeshkumar-s2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Balaji. Let us discuss this. Artifact directory path is fixed in my recent PR.

Signed-off-by: balajikumaran.cs <balajikumaran.cs@dellteam.com>
Signed-off-by: balajikumaran.cs <balajikumaran.cs@dellteam.com>
Signed-off-by: balajikumaran.cs <balajikumaran.cs@dellteam.com>
Signed-off-by: balajikumaran.cs <balajikumaran.cs@dellteam.com>
Signed-off-by: balajikumaran.cs <balajikumaran.cs@dellteam.com>
@abhishek-sa1 abhishek-sa1 merged commit 3178ef7 into dell:pub/q2_dev Jun 1, 2026
4 checks passed
abhishek-sa1 added a commit that referenced this pull request Jun 1, 2026
* Add input config diff test & tool for comp aring expected vs actual build stream (adapter) outputs (#4586)

* Add input config diff test & tool for comparing expected vs actual build stream (adapter) outputs

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>

* Updated example path

Signed-off-by: Venu-p1 <236371043+Venu-p1@users.noreply.github.com>

---------

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>
Signed-off-by: Venu-p1 <236371043+Venu-p1@users.noreply.github.com>

* Merge pull request #4614 from balajikumaran-c-s/pub/q2_dev

fix: Use NFS_SHARE_PATH for artifact_dir validation and rename discovery scenario to provision

---------

Signed-off-by: venu <236371043+Venu-p1@users.noreply.github.com>
Signed-off-by: Venu-p1 <236371043+Venu-p1@users.noreply.github.com>
Co-authored-by: Venu-p1 <236371043+Venu-p1@users.noreply.github.com>
Co-authored-by: balajikumaran.cs <balajikumaran.cs@dellteam.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants