Skip to content

Commit b5ff56a

Browse files
authored
Fix caas zenith/hpctests/basic_users (#662)
* bump zenith client to 0.14 * try removing zenith_proxy_client_auth_params * try host networking for zenith * Revert "try host networking for zenith" This reverts commit aa11f43. * bind grafana to all interfaces for caas * revert zenith pods to slirp4netns to allow rootless pods to reach host * Revert "bind grafana to all interfaces for caas" This reverts commit 8d26427. * remove commented-out zenith config * get caas hpctests working with root-squashed nfs * combine caas groups files (now not symlinked from everything anyway) * caas: mount homedirs on control node too for manila for consistency and fix homedir creation
1 parent 0f3d070 commit b5ff56a

File tree

7 files changed

+17
-23
lines changed

7 files changed

+17
-23
lines changed

ansible/roles/zenith_proxy/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ zenith_proxy_pod_name: "{{ zenith_proxy_service_name }}"
1515
zenith_proxy_client_container_name: "{{ zenith_proxy_client_service_name }}"
1616
zenith_proxy_mitm_container_name: "{{ zenith_proxy_mitm_service_name }}"
1717

18-
zenith_proxy_image_tag: '0.12.0'
18+
zenith_proxy_image_tag: '0.14.0'
1919

2020
zenith_proxy_client_image_repository: ghcr.io/azimuth-cloud/zenith-client
2121
zenith_proxy_client_image: "{{ zenith_proxy_client_image_repository }}:{{ zenith_proxy_image_tag }}"

ansible/roles/zenith_proxy/templates/pod.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Type=simple
99
Restart=always
1010
User={{ zenith_proxy_podman_user }}
1111
Group={{ zenith_proxy_podman_user }}
12-
ExecStartPre=/usr/bin/podman pod create --replace --name {{ zenith_proxy_pod_name }}
12+
ExecStartPre=/usr/bin/podman pod create --replace --name {{ zenith_proxy_pod_name }} --network=slirp4netns
1313
ExecStartPre=/usr/bin/podman pod start {{ zenith_proxy_pod_name }}
1414
ExecStart=/usr/bin/podman-pod-infra-attach.sh {{ zenith_proxy_pod_name }}
1515
ExecStop=/usr/bin/podman pod stop --ignore -t 10 {{ zenith_proxy_pod_name }}

environments/.caas/hooks/post.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
zenith_proxy_upstream_host: "{{ ansible_host }}" # IP
1212
zenith_proxy_upstream_port: "{{ grafana_port }}"
1313
zenith_proxy_client_token: "{{ zenith_token_monitoring }}"
14-
zenith_proxy_client_auth_params:
15-
tenancy-id: "{{ openstack_project_id }}"
1614
zenith_proxy_mitm_enabled: yes
1715
zenith_proxy_mitm_auth_inject: basic
1816
zenith_proxy_mitm_auth_basic_username: "{{ grafana_security.admin_user }}"
@@ -31,8 +29,6 @@
3129
zenith_proxy_upstream_host: "{{ ansible_host }}" # IP
3230
zenith_proxy_upstream_port: 443
3331
zenith_proxy_client_token: "{{ zenith_token_ood }}"
34-
zenith_proxy_client_auth_params:
35-
tenancy-id: "{{ openstack_project_id }}"
3632
zenith_proxy_mitm_enabled: yes
3733
zenith_proxy_mitm_auth_inject: basic
3834
zenith_proxy_mitm_auth_basic_username: azimuth

environments/.caas/inventory/extra_groups

Lines changed: 0 additions & 16 deletions
This file was deleted.

environments/.caas/inventory/group_vars/all/basic_users.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ basic_users_users:
1010
- adm
1111
- systemd-journal
1212
sudo: azimuth ALL=(ALL) NOPASSWD:ALL
13+
14+
# the path *on the control node* for the home directories depends on the filesystem:
15+
basic_users_homedir_server_path: "{{ '/home' if cluster_home_manila_share | bool else '/exports/home' }}"

environments/.caas/inventory/group_vars/all/hpctests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ hpctests_outdir: "{{ playbook_dir }}/.tmp/hpctests"
88
# hpctests run by default in Azimuth but not trying to stress-test the nodes
99
# just check compiler, mpi etc works
1010
hpctests_hpl_mem_frac: 0.05 # 5% node memory
11+
12+
# use basic_user-defined user:
13+
hpctests_user: azimuth

environments/.caas/inventory/groups

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ openhpc
6969
[proxy]
7070
# Hosts to configure http/s proxies - see ansible/roles/proxy/README.md
7171

72-
[manila]
72+
[manila:children]
7373
# Hosts to configure for manila fileshares
74+
cluster
7475

7576
[persist_hostkeys:children]
7677
# Hosts to use common set of hostkeys which persist across reimaging.
@@ -125,3 +126,10 @@ builder
125126
[gateway:children]
126127
# Add builder to this group to install gateway ansible-init playbook into image
127128
builder
129+
130+
[zenith:children]
131+
grafana
132+
openondemand
133+
134+
[podman:children]
135+
zenith

0 commit comments

Comments
 (0)