Skip to content

Commit 7eb855e

Browse files
authored
Merge pull request #313 from stackhpc/fix/websockify
Fix issues when using GenericCloud image
2 parents 1036e4f + 424299d commit 7eb855e

File tree

4 files changed

+23
-13
lines changed

4 files changed

+23
-13
lines changed

ansible/roles/openondemand/tasks/vnc_compute.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,46 @@
1212

1313
- name: Install VNC-related packages
1414
tags: install
15-
yum:
15+
dnf:
1616
name:
1717
- turbovnc-3.0.1
1818
- nmap-ncat
19-
- python3
19+
- python3.9
2020

2121
- name: Install Xfce desktop
2222
tags: install
2323
yum:
2424
name: '@Xfce'
2525

26+
# - name: Ensure python3.9 installed
27+
# dnf:
28+
# name: python39
29+
# tags: install
30+
2631
- name: Install websockify venv
2732
# Requires separate step so that the upgraded pip is used to install packages
2833
pip:
2934
name: pip
30-
virtualenv: /opt/websockify
31-
virtualenv_command: python3 -m venv
35+
state: latest
36+
virtualenv: /opt/websockify-py39
37+
virtualenv_command: python3.9 -m venv
3238
tags: install
3339

3440
- name: Install websockify package in venv
3541
pip:
3642
name: websockify
37-
virtualenv: /opt/websockify
43+
virtualenv: /opt/websockify-py39
3844
virtualenv_command: python3 -m venv
3945
tags: install
4046

4147
- name: Symlink websockify to where Open Ondemand expects
42-
file:
43-
src: /opt/websockify/bin/websockify
44-
dest: /opt/websockify/run
45-
state: link
46-
48+
file: "{{ item }}"
49+
loop:
50+
- path: /opt/websockify
51+
state: directory
52+
- src: /opt/websockify-py39/bin/websockify
53+
dest: /opt/websockify/run
54+
state: link
4755
- name: Disable screensaver # as users might not have passwords
4856
yum:
4957
name: xfce4-screensaver

environments/.stackhpc/ARCUS.pkrvars.hcl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
flavor = "vm.ska.cpu.general.small"
2-
networks = ["a262aabd-e6bf-4440-a155-13dbc1b5db0e"] # WCDC-iLab-60
2+
use_blockstorage_volume = true
3+
volume_size = 10 # GB
4+
image_disk_format = "qcow2"
5+
networks = ["4b6b2722-ee5b-40ec-8e52-a6610e14cc51"] # portal-internal (DNS broken on ilab-60)
36
source_image_name = "openhpc-230804-1754-80b8d714" # https://github.com/stackhpc/ansible-slurm-appliance/pull/298
47
fatimage_source_image_name = "Rocky-8-GenericCloud-8.6.20220702.0.x86_64.qcow2"
58
ssh_keypair_name = "slurm-app-ci"

environments/.stackhpc/terraform/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ variable "cluster_name" {
1313
variable "cluster_image" {
1414
description = "single image for all cluster nodes - a convenience for CI"
1515
type = string
16-
default = "openhpc-230811-1548-a49164d1" # https://github.com/stackhpc/ansible-slurm-appliance/pull/301
16+
default = "openhpc-230922-0940-434e190f" # https://github.com/stackhpc/ansible-slurm-appliance/pull/313
1717
# default = "Rocky-8-GenericCloud-Base-8.7-20221130.0.x86_64.qcow2"
1818
# default = "Rocky-8-GenericCloud-8.6.20220702.0.x86_64.qcow2"
1919
}

environments/common/inventory/group_vars/all/defaults.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ appliances_local_users_default:
4848
shell: /sbin/nologin
4949
uid: 202
5050
system: true
51-
enable: "{{ 'control' in group_names }}"
5251

5352
- group:
5453
name: prometheus

0 commit comments

Comments
 (0)