Skip to content

Fix caas zenith/hpctests/basic_users #662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/roles/zenith_proxy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ zenith_proxy_pod_name: "{{ zenith_proxy_service_name }}"
zenith_proxy_client_container_name: "{{ zenith_proxy_client_service_name }}"
zenith_proxy_mitm_container_name: "{{ zenith_proxy_mitm_service_name }}"

zenith_proxy_image_tag: '0.12.0'
zenith_proxy_image_tag: '0.14.0'

zenith_proxy_client_image_repository: ghcr.io/azimuth-cloud/zenith-client
zenith_proxy_client_image: "{{ zenith_proxy_client_image_repository }}:{{ zenith_proxy_image_tag }}"
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/zenith_proxy/templates/pod.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Type=simple
Restart=always
User={{ zenith_proxy_podman_user }}
Group={{ zenith_proxy_podman_user }}
ExecStartPre=/usr/bin/podman pod create --replace --name {{ zenith_proxy_pod_name }}
ExecStartPre=/usr/bin/podman pod create --replace --name {{ zenith_proxy_pod_name }} --network=slirp4netns
ExecStartPre=/usr/bin/podman pod start {{ zenith_proxy_pod_name }}
ExecStart=/usr/bin/podman-pod-infra-attach.sh {{ zenith_proxy_pod_name }}
ExecStop=/usr/bin/podman pod stop --ignore -t 10 {{ zenith_proxy_pod_name }}
Expand Down
4 changes: 0 additions & 4 deletions environments/.caas/hooks/post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
zenith_proxy_upstream_host: "{{ ansible_host }}" # IP
zenith_proxy_upstream_port: "{{ grafana_port }}"
zenith_proxy_client_token: "{{ zenith_token_monitoring }}"
zenith_proxy_client_auth_params:
tenancy-id: "{{ openstack_project_id }}"
zenith_proxy_mitm_enabled: yes
zenith_proxy_mitm_auth_inject: basic
zenith_proxy_mitm_auth_basic_username: "{{ grafana_security.admin_user }}"
Expand All @@ -31,8 +29,6 @@
zenith_proxy_upstream_host: "{{ ansible_host }}" # IP
zenith_proxy_upstream_port: 443
zenith_proxy_client_token: "{{ zenith_token_ood }}"
zenith_proxy_client_auth_params:
tenancy-id: "{{ openstack_project_id }}"
zenith_proxy_mitm_enabled: yes
zenith_proxy_mitm_auth_inject: basic
zenith_proxy_mitm_auth_basic_username: azimuth
Expand Down
16 changes: 0 additions & 16 deletions environments/.caas/inventory/extra_groups

This file was deleted.

3 changes: 3 additions & 0 deletions environments/.caas/inventory/group_vars/all/basic_users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ basic_users_users:
- adm
- systemd-journal
sudo: azimuth ALL=(ALL) NOPASSWD:ALL

# the path *on the control node* for the home directories depends on the filesystem:
basic_users_homedir_server_path: "{{ '/home' if cluster_home_manila_share | bool else '/exports/home' }}"
3 changes: 3 additions & 0 deletions environments/.caas/inventory/group_vars/all/hpctests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ hpctests_outdir: "{{ playbook_dir }}/.tmp/hpctests"
# hpctests run by default in Azimuth but not trying to stress-test the nodes
# just check compiler, mpi etc works
hpctests_hpl_mem_frac: 0.05 # 5% node memory

# use basic_user-defined user:
hpctests_user: azimuth
10 changes: 9 additions & 1 deletion environments/.caas/inventory/groups
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ openhpc
[proxy]
# Hosts to configure http/s proxies - see ansible/roles/proxy/README.md

[manila]
[manila:children]
# Hosts to configure for manila fileshares
cluster

[persist_hostkeys:children]
# Hosts to use common set of hostkeys which persist across reimaging.
Expand Down Expand Up @@ -125,3 +126,10 @@ builder
[gateway:children]
# Add builder to this group to install gateway ansible-init playbook into image
builder

[zenith:children]
grafana
openondemand

[podman:children]
zenith