Skip to content

Commit 11c470b

Browse files
authored
Merge pull request #3914 from priti-parate/pub/q1_dev
Merge pub/q1_dev to pub/build_stream
2 parents 280d6c4 + 8641895 commit 11c470b

File tree

112 files changed

+5902
-773
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+5902
-773
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Omnia 1.x Documentation is hosted on [Read The Docs 1.x](https://omnia-doc.readt
2323

2424
Omnia 2.x Documentation is hosted on [Read The Docs 2.x](https://omnia.readthedocs.io/en/latest/index.html).
2525

26-
Current Status: ![GitHub](https://readthedocs.org/projects/omnia-doc/badge/?version=latest)
26+
Current Status: ![GitHub](https://readthedocs.org/projects/omnia/badge/?version=latest)
2727

2828
## Licensing
2929

build_image_aarch64/roles/fetch_packages/tasks/fetch_packages.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Dell Inc. or its subsidiaries. All Rights Reserved.
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,21 +13,20 @@
1313
# limitations under the License.
1414
---
1515

16-
- name: Fetch aarch64 default_packages.json software packages
16+
- name: Fetch aarch64 default_packages.json and additional_packages.json software packages
1717
when: fg_aarch64
1818
block:
19-
- name: Load default_packages.json
20-
ansible.builtin.include_vars:
21-
file: "{{ default_json_path }}"
22-
name: default_packages_json
19+
- name: Collect base image RPM packages (default + additional + admin_debug)
20+
base_image_package_collector:
21+
default_json_path: "{{ default_json_path }}"
22+
additional_json_path: "{{ additional_json_path | default('') }}"
23+
admin_debug_json_path: "{{ admin_debug_json_path | default('') }}"
24+
software_config_path: "{{ software_config_file_path }}"
25+
register: base_image_output
2326

24-
- name: Extract rpm packages
27+
- name: Set x86_64_base_image_packages
2528
ansible.builtin.set_fact:
26-
aarch64_base_image_packages: >-
27-
{{ default_packages_json.default_packages.cluster
28-
| selectattr('type', 'equalto', 'rpm')
29-
| map(attribute='package')
30-
| list }}
29+
x86_64_base_image_packages: "{{ base_image_output.base_image_packages }}"
3130

3231
- name: Debug package aarch64_base_image_packages
3332
ansible.builtin.debug:

build_image_aarch64/roles/fetch_packages/tasks/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Dell Inc. or its subsidiaries. All Rights Reserved.
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -33,9 +33,12 @@
3333
file: "{{ software_config_file_path }}"
3434
name: software_config
3535

36-
- name: Set cluster_os_version as rhel_tag variable
36+
- name: Set cluster OS facts
3737
ansible.builtin.set_fact:
3838
rhel_tag: "{{ software_config.cluster_os_version }}"
39+
default_json_path: "{{ input_project_dir }}/config/aarch64/{{ software_config.cluster_os_type }}/{{ software_config.cluster_os_version }}/default_packages.json" # noqa: yaml[line-length]
40+
additional_json_path: "{{ input_project_dir }}/config/aarch64/{{ software_config.cluster_os_type }}/{{ software_config.cluster_os_version }}/additional_packages.json" # noqa: yaml[line-length]
41+
admin_debug_json_path: "{{ input_project_dir }}/config/aarch64/{{ software_config.cluster_os_type }}/{{ software_config.cluster_os_version }}/admin_debug_packages.json" # noqa: yaml[line-length]
3942

4043
- name: Fetch pulp endpoint repos
4144
ansible.builtin.include_tasks: fetch_pulp_repos.yml

build_image_aarch64/roles/fetch_packages/vars/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Dell Inc. or its subsidiaries. All Rights Reserved.
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -21,7 +21,6 @@ local_repo_check_msg: |
2121
input_project_dir: "{{ hostvars['localhost']['input_project_dir'] }}"
2222
functional_groups_file_path: "{{ hostvars['localhost']['functional_groups_config_path'] }}"
2323
software_config_file_path: "{{ input_project_dir }}/software_config.json"
24-
default_json_path: "{{ input_project_dir }}/config/aarch64/rhel/10.0/default_packages.json"
2524
aarch64_build_image_completion_msg: |
2625
The playbook build_image_aarch64.yml has been completed successfully.
2726
To boot x86_64 and aarch64 nodes execute discovery/discovery.yml playbook.

build_image_aarch64/roles/prepare_arm_node/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167

168168
- name: Build full Podman image path
169169
ansible.builtin.set_fact:
170-
pulp_aarch_image: "{{ hostvars['localhost']['oim_pxe_ip'] }}:2225/dellhpcomniaaisolution/image-build-aarch64:latest"
170+
pulp_aarch_image: "{{ hostvars['localhost']['oim_pxe_ip'] }}:2225/dellhpcomniaaisolution/image-build-aarch64:1.1"
171171

172172
- name: Pull aarch64 image using Podman
173173
ansible.builtin.command:

build_image_aarch64/roles/prepare_arm_node/vars/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ aarch64_regctl_url: "https://github.com/regclient/regclient/releases/latest/down
2222
pulp_repo_file_path: "/etc/yum.repos.d/pulp.repo"
2323
pulp_webserver_cert_path: "/opt/omnia/pulp/settings/certs/pulp_webserver.crt"
2424
anchors_path: "/etc/pki/ca-trust/source/anchors/pulp_webserver.crt"
25-
regctl_tar_path: "omnia/offline_repo/cluster/aarch64/rhel/10.0/tarball/regctl-linux-arm64/regctl-linux-arm64.tar.gz"
2625
regctl_bin_path: "/usr/local/bin/regctl"
2726

2827
# Error messages

build_image_x86_64/roles/fetch_packages/tasks/fetch_packages.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Dell Inc. or its subsidiaries. All Rights Reserved.
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,21 +13,20 @@
1313
# limitations under the License.
1414
---
1515

16-
- name: Fetch x86_64 default_packages.json software packages
16+
- name: Fetch x86_64 default_packages.json and additional_packages.json software packages
1717
when: fg_x86_64
1818
block:
19-
- name: Load default_packages.json
20-
ansible.builtin.include_vars:
21-
file: "{{ default_json_path }}"
22-
name: default_package_json
19+
- name: Collect base image RPM packages (default + additional + admin_debug)
20+
base_image_package_collector:
21+
default_json_path: "{{ default_json_path }}"
22+
additional_json_path: "{{ additional_json_path | default('') }}"
23+
admin_debug_json_path: "{{ admin_debug_json_path | default('') }}"
24+
software_config_path: "{{ software_config_file_path }}"
25+
register: base_image_output
2326

24-
- name: Extract rpm packages
27+
- name: Set x86_64_base_image_packages
2528
ansible.builtin.set_fact:
26-
x86_64_base_image_packages: >-
27-
{{ default_package_json.default_packages.cluster
28-
| selectattr('type', 'equalto', 'rpm')
29-
| map(attribute='package')
30-
| list }}
29+
x86_64_base_image_packages: "{{ base_image_output.base_image_packages }}"
3130

3231
- name: Debug package x86_64_base_image_packages
3332
ansible.builtin.debug:
@@ -39,6 +38,7 @@
3938
functional_groups_file: "{{ functional_groups_file_path }}"
4039
software_config_file: "{{ software_config_file_path }}"
4140
input_project_dir: "{{ input_project_dir }}"
41+
additional_json_path: "{{ additional_json_path }}"
4242
register: compute_images_output
4343

4444
- name: Save packages for x86_64 keys in compute_images_dict

build_image_x86_64/roles/fetch_packages/tasks/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Dell Inc. or its subsidiaries. All Rights Reserved.
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -34,9 +34,12 @@
3434
file: "{{ software_config_file_path }}"
3535
name: software_config
3636

37-
- name: Set cluster_os_version as rhel_tag variable
37+
- name: Set cluster OS facts
3838
ansible.builtin.set_fact:
3939
rhel_tag: "{{ software_config.cluster_os_version }}"
40+
default_json_path: "{{ input_project_dir }}/config/x86_64/{{ software_config.cluster_os_type }}/{{ software_config.cluster_os_version }}/default_packages.json" # noqa: yaml[line-length]
41+
additional_json_path: "{{ input_project_dir }}/config/x86_64/{{ software_config.cluster_os_type }}/{{ software_config.cluster_os_version }}/additional_packages.json" # noqa: yaml[line-length]
42+
admin_debug_json_path: "{{ input_project_dir }}/config/x86_64/{{ software_config.cluster_os_type }}/{{ software_config.cluster_os_version }}/admin_debug_packages.json" # noqa: yaml[line-length]
4043

4144
- name: Fetch pulp endpoint repos
4245
ansible.builtin.include_tasks: fetch_pulp_repos.yml

build_image_x86_64/roles/fetch_packages/vars/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Dell Inc. or its subsidiaries. All Rights Reserved.
1+
# Copyright 2026 Dell Inc. or its subsidiaries. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -21,7 +21,6 @@ local_repo_check_msg: |
2121
input_project_dir: "{{ hostvars['localhost']['input_project_dir'] }}"
2222
functional_groups_file_path: "{{ hostvars['localhost']['functional_groups_config_path'] }}"
2323
software_config_file_path: "{{ input_project_dir }}/software_config.json"
24-
default_json_path: "{{ input_project_dir }}/config/x86_64/rhel/10.0/default_packages.json"
2524
x86_64_build_image_completion_msg: |
2625
The playbook build_image_x86_64.yml has been completed successfully.
2726
To boot x86_64 nodes execute discovery/discovery.yml playbook.

build_image_x86_64/roles/image_creation/tasks/build_image_tag.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,16 @@
1313
# limitations under the License.
1414
---
1515

16-
- name: Pull specific OpenCHAMI image by version tag
16+
- name: Pull image-build image
1717
ansible.builtin.command:
18-
cmd: "podman pull {{ openchami_image_sha }}"
18+
cmd: "podman pull {{ image_build_el10 }}"
1919
register: pull_result
20+
retries: "{{ pull_image_retries }}"
21+
delay: "{{ pull_image_delay }}"
22+
until: pull_result.rc == 0
2023
changed_when: "'Image is up to date' not in pull_result.stdout"
2124

2225
- name: Fail if image not pulled successfully
2326
ansible.builtin.fail:
2427
msg: "{{ pull_result.stdout }}"
2528
when: pull_result.rc != 0
26-
27-
- name: Tagging OpenCHAMI image with stable name
28-
ansible.builtin.command:
29-
cmd: "{{ ochami_stable_image_tag }}"
30-
args:
31-
creates: "{{ ochami_stable_image_path }}"
32-
register: tag_result
33-
changed_when: "'Tagged' in tag_result.stdout"

0 commit comments

Comments
 (0)