Skip to content

Merging pub/q2_dev #4266

Merged
abhishek-sa1 merged 41 commits into
dell:pub/build_streamfrom
Venu-p1:pub/build_stream
Apr 9, 2026
Merged

Merging pub/q2_dev #4266
abhishek-sa1 merged 41 commits into
dell:pub/build_streamfrom
Venu-p1:pub/build_stream

Conversation

@Venu-p1
Copy link
Copy Markdown
Collaborator

@Venu-p1 Venu-p1 commented Apr 9, 2026

No description provided.

abhishek-sa1 and others added 30 commits March 24, 2026 10:53
Feature branch sync - staging to pub/q2_dev
Feature branch sync - staging to pub/q2_dev
Update storage_config.j2 to migrate powervault input values
Feature branch sync - pub/build stream to staging
Feature branch sync - staging to pub/q2_dev
Signed-off-by: pullan1 <sudha.pullalaravu@dell.com>
Signed-off-by: pullan1 <sudha.pullalaravu@dell.com>
Signed-off-by: pullan1 <sudha.pullalaravu@dell.com>
Signed-off-by: pullan1 <sudha.pullalaravu@dell.com>
Signed-off-by: pullan1 <sudha.pullalaravu@dell.com>
Fix for pulp remote RemoteArtifacts is 0 after repo migration
priti-parate and others added 11 commits April 6, 2026 19:44
* feat(discovery): OME static group extraction, PXE mapping IP/SU/parent tag enhancements

ome_server_inventory.py:
- Fix static group extraction: find 'Static Groups' container by name and
  select only direct children via ParentId; avoids picking system/nested groups
- Emit module.warn() for static groups that exist but have no devices assigned
- Fix idrac_hostname: read InstrumentationName/DnsName from DeviceManagement
  ManagementType==2 entry instead of DeviceName which returns the IP address

generate_pxe_mapping.py:
- ADMIN_IP: derive from first 2 octets of admin_network.subnet + last 2 of BMC IP
- IB_IP: derive from first 2 octets of ib_network.subnet + last 2 of BMC IP
- Skip IB_IP/IB_MAC when server has no IB NIC (ib_nic_mac is empty)
- Add extract_su_from_hostname() with regex (SU[A-Z]?\d+)(?=R\d+) to parse
  Scalable Unit from BMC hostname; rejects service-tag-only hostnames (idrac-JCGT033)
  and falls back to grp0 when no SU pattern is found
- Set GROUP_NAME to extracted SU identifier (fallback: grp0)
- Post-process rows to assign PARENT_SERVICE_TAG from the
  service_kube_control_plane_x86_64 node within the same SU group
- Remove BMC_HOSTNAME from CSV headers and output rows
- Lint: remove dead try/except in calculate_admin_ip/calculate_ib_ip,
  reuse ib_mac variable, suppress broad-except pylint warning

generate_pxe_mapping.yml:
- Load network_spec.yml via include_vars
- Set admin_subnet and ib_subnet using selectattr on Networks list
- Pass both subnets as parameters to the generate_pxe_mapping module

defaults/main.yml:
- Add admin_subnet and ib_subnet default variables (empty string)

provision_validation.py:
- Comment out validate_admin_ips_against_network_spec function and its
  call site; ADMIN_IPs are now derived from subnet octets + BMC IP and
  will not necessarily fall within primary_oim_admin_ip/netmask_bits range

* refactor: rename discovery directory to provision, update network_spec.yml

- Renamed discovery/ to provision/ (git detected as rename, no content loss)
- Updated input/network_spec.yml with latest network configuration changes

* Update discovery.yml

* refactor: unify OME credentials into get_config_credentials flow

- Added ome_ip, ome_username, ome_password to omnia_credential.j2 template
- Added 'discovery' service entry to omnia_credentials in update_config/vars/main.yml
- Added 'discovery' to the hardcoded service key trigger list in fetch_credentials.yml
- Replaced custom vault logic in get_ome_credentials.yml with unified
  decrypt_include_encrypt.yml call against omnia_config_credentials.yml
- Updated ome_discovery/vars/main.yml to reference omnia_config_credentials_file
  and omnia_config_credentials_vault_key instead of the separate .vault/ paths
- Deleted .vault/ome_credentials.yml and .vault/.vault_password (no longer needed)

* chore: update copyright year from 2025 to 2026 in modified files

Updated copyright header in all ome_discovery files modified during
this feature branch:
- library/generate_pxe_mapping.py
- library/ome_server_inventory.py
- tasks/generate_pxe_mapping.yml
- tasks/get_ome_credentials.yml
- defaults/main.yml
- vars/main.yml

* fix: restore discovery_validations role missed during discovery-to-provision rename

discovery/roles/discovery_validations/ was accidentally dropped when
renaming the discovery/ directory to provision/. Add it back under
provision/roles/discovery_validations/ to resolve the PR merge conflict.

* chore: update copyright year to 2026 in provision/roles/discovery_validations files

* fix: remove duplicate discovery_validations role (provision_validations already exists)

provision/roles/provision_validations/ is the correct renamed equivalent
of discovery/roles/discovery_validations/. The discovery_validations copy
added to provision/ was redundant.

* feat: apply upstream telemetry upgrade changes from dell/omnia pub/q2_dev

- Replace kubectl command with kubernetes.core.k8s module for iDRAC StatefulSet
- Preserve existing replica count during iDRAC StatefulSet upgrade
- Add LDMS store daemon check, restart, and readiness wait tasks

* fix: quote build_stream_job_id_absent message in provision_validations vars

* feat: add discovery/roles/discovery_validations and telemetry files

- Add discovery/roles/discovery_validations/vars/main.yml with task
  definitions for validation flow
- Add discovery/roles/telemetry/tasks/apply_telemetry_on_upgrade.yml
  with upstream telemetry upgrade logic (replica preservation + LDMS store)

* fix: wrap long line in fetch_credentials.yml to satisfy yaml[line-length] lint

* refactor: move ome_ip from credentials to discovery_config.yml

- Create input/discovery_config.yml for non-credential discovery settings
  (ome_ip, future Magellan config)
- Remove ome_ip from omnia_credential.j2 and credential update vars
- Load ome_ip via include_vars from discovery_config.yml in get_ome_credentials.yml
- Add discovery_config.yml to provision_validations discovery_inputs
- Remove redundant ib_subnet/admin_subnet defaults from ome_discovery

* fix: add newline at end of ome_discovery/defaults/main.yml

* fix: override role_path to absolute path for decrypt_include_encrypt.yml

role_path resolves to ome_discovery role path, causing encrypt_files_vars.yml
to be looked up incorrectly. Override to playbook_dir dirname (/opt/omnia/omnia).

* fix: inline credential loading to avoid role_path resolution issue

role_path cannot be overridden in include_tasks vars. Replace the call to
decrypt_include_encrypt.yml with direct include_vars using stat checks for
encrypted vs unencrypted credential file handling.

* fix: skip load-failure rule in ansible-lint to avoid CI false positives

ansible-lint fails to resolve role_path relative paths during static analysis
in GitHub Actions, causing false load-failure errors for files that exist
and work at runtime.

* Update ansible.cfg

* Update ansible.cfg

* refactor: rename discovery references to provision and add discovery_config variable

- Rename discover_mapping_nodes.yml to provision_mapping_nodes.yml
- Replace "discovery" terminology with "provision" across playbooks,
  vars, READMEs, and task names in provision roles
- Add subnet as required field with IP pattern validation in network_spec schema
- Define discovery_config variable in ome_discovery vars and use it
  in get_ome_credentials.yml (consistent with provision_config pattern)
- Rename discovery_inputs to provision_inputs in validation vars
- Rename discovery_mech_mapping to provision_mech_mapping
- Update user-facing messages to reference provision.yml

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix: credential rules, vault handling, GROUP_NAME validation, and discovery playbook improvements

- Add ome_username and ome_password validation rules to credential_rules.json
- Add 'discovery' tag to prepare_oim omnia_run_tags so OME credentials are prompted
- Fix vault-encrypted credential loading in get_ome_credentials.yml
  (use decrypt-include-reencrypt pattern instead of unsupported vault_password_file)
- Add include_input_dir.yml import to discovery.yml so input_project_dir is set
- Accept SU1-SU100 (case-insensitive) in addition to grp0-grp100 for GROUP_NAME
- Fix Magellan message to use list format (avoids \n in debug output)
- Remove escaped quotes from discovery usage examples

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix: extend SU group name support to build_image validation and schemas

- Add build_aarch_image tag to input_file_inventory so
  build_image_aarch64.yml runs provision_config validation
  (was missing, causing no validation to run for aarch64 builds)
- Update GROUP_NAME patterns in functional_groups_config.json and
  omnia_config.json schemas to accept SU1-SU100 format alongside
  grp0-grp100
- Update INVALID_GROUP_NAME_MSG to reflect both accepted formats

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Signed-off-by: Sujit Jadhav <sujit_jadhav@dell.com>
Co-authored-by: Super User <root@testbed.omnia.test>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ell#4261)

* Cleanup discovery roles: move library modules, remove unused roles

- Move ome_server_inventory.py and generate_pxe_mapping.py from
  discovery/roles/ome_discovery/library/ to common/library/modules/
  so they are shared via the common module search path already
  configured in discovery/ansible.cfg
- Remove unused discovery/roles/telemetry/ directory
- Remove unused discovery/roles/discovery_validations/ directory
- Load discovery_config.yml at playbook level in discovery.yml
  (consistent with how build_stream_config.yml is loaded in provision.yml)
- Fix discovery_complete_msg formatting for readable Ansible output

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* Remove unused discovery_validations role

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Super User <root@testbed.omnia.test>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* Update generate_bmc_inventory.yml

Signed-off-by: SOWJANYAJAGADISH123 <Sowjanya.Jagadish@dell.com>

* Update pre_checks.yml

Signed-off-by: SOWJANYAJAGADISH123 <Sowjanya.Jagadish@dell.com>

* lint issue 

Signed-off-by: SOWJANYAJAGADISH123 <Sowjanya.Jagadish@dell.com>

---------

Signed-off-by: SOWJANYAJAGADISH123 <Sowjanya.Jagadish@dell.com>
Signed-off-by: Venu-p1 <236371043+Venu-p1@users.noreply.github.com>
Signed-off-by: Venu-p1 <236371043+Venu-p1@users.noreply.github.com>
Signed-off-by: Venu-p1 <236371043+Venu-p1@users.noreply.github.com>
Signed-off-by: Venu-p1 <236371043+Venu-p1@users.noreply.github.com>
Signed-off-by: Venu-p1 <236371043+Venu-p1@users.noreply.github.com>
Signed-off-by: Venu-p1 <236371043+Venu-p1@users.noreply.github.com>
@abhishek-sa1 abhishek-sa1 merged commit 5b30837 into dell:pub/build_stream Apr 9, 2026
2 checks passed
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.

10 participants