Skip to content
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
3 changes: 2 additions & 1 deletion bibigrid/core/actions/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def update(creator, log):
creator.configurations[0], log)
log.info(f"Trying to update {master_ip}@{ssh_user} with key {used_private_key}")

# TODO: Verify that update does not impede running jobs, but waiting for all workers to be down should not be necessary if they are not changed
# TODO: Verify that update does not impede running jobs
# waiting for all workers to be down should not be necessary if they are not changed
# cluster_dict = dict_clusters(creator.providers, log)
# if False and cluster_dict[creator.cluster_id]["workers"]:
# workers = [worker['name'] for worker in cluster_dict[creator.cluster_id]["workers"]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
- name: Create /vol bind mount from /mnt ephemeral
mount:
path: /vol
src: /mnt
fstype: none
opts: bind,auto
state: mounted
when: flavor.ephemeral > 0
- when: flavor.ephemeral | int > 0
block:
- name: Ensure /vol/ exists
file:
path: /vol
state: directory
mode: "0777"

- name: Mount ephemeral to /mnt cleanly
mount:
path: /mnt
src: LABEL=ephemeral0
fstype: ext4
opts: defaults,nofail # ,_netdev
state: mounted

- name: Bind /mnt to /vol/
mount:
path: /vol
src: /mnt
fstype: none
opts: bind,nosuid,nodev
state: mounted
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
- when: flavor.ephemeral > 0
- when: flavor.ephemeral | int > 0
block:
- name: Mount ephemeral
- name: Ensure /vol/scratch exists
file:
path: /vol/scratch
state: directory
mode: "0777"

- name: Mount ephemeral to /mnt cleanly
mount:
path: /mnt
src: LABEL=ephemeral0
fstype: ext4
opts: defaults,nofail,_netdev
state: mounted

- name: Bind /vol/scratch to /mnt
mount:
path: /vol/scratch
src: /mnt
fstype: none
opts: bind,auto
opts: bind,nosuid,nodev,_netdev
state: mounted
- name: Set 0777 rights for ephemeral mount
file:
path: /vol/scratch
state: directory
mode: "0o777"
Loading