Skip to content
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

Dev quick fixes #536

Merged
merged 174 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
43eaba3
fixed rule setting for security groups
XaverStiensmeier Sep 29, 2023
b705e91
fixed multiple network is now list causing error bugs.
XaverStiensmeier Oct 4, 2023
a5bd6d0
Merge branch 'dev' into hotfix-hybrid-cloud
XaverStiensmeier Oct 6, 2023
6eb6e6a
trying to figure out why route applying only works once.
XaverStiensmeier Oct 14, 2023
8e499b4
Added more echo's for better debugging.
XaverStiensmeier Oct 16, 2023
d79d804
updated most tests
XaverStiensmeier Oct 17, 2023
1ce4f2e
fixed validate_configuration.py tests.
XaverStiensmeier Oct 19, 2023
6618462
Updated tests for startup.py
XaverStiensmeier Oct 19, 2023
2ff9b98
fixed bug in terminate that caused assume_yes to work as assume_no
XaverStiensmeier Oct 19, 2023
e487ce0
updated terminate_cluster tests.
XaverStiensmeier Oct 19, 2023
c3f79f1
fixed formatting improved pylint
XaverStiensmeier Oct 20, 2023
dfbac4f
adapted tests
XaverStiensmeier Oct 20, 2023
c9b580f
updated return threading test
XaverStiensmeier Oct 20, 2023
ad3c1dd
updated provider_handler
XaverStiensmeier Oct 20, 2023
0b441bb
tests not finished yet
XaverStiensmeier Oct 20, 2023
961bf04
Fixed server regex issue
XaverStiensmeier Oct 20, 2023
83d4a2a
test list clusters updated
XaverStiensmeier Oct 20, 2023
d54ab93
fixed too open cluster_id regex
XaverStiensmeier Oct 20, 2023
b78f63d
added missing "to"
XaverStiensmeier Oct 20, 2023
6ed924b
fixed id_generation tests
XaverStiensmeier Oct 20, 2023
f844f68
renamed configuration handler to please linter
XaverStiensmeier Oct 20, 2023
0c4a97f
removed unnecessary tests and updated remaining
XaverStiensmeier Oct 20, 2023
ac71d4b
fixed remaining "subnet list gets handled as a single subnet" bug and…
XaverStiensmeier Oct 24, 2023
fbabea2
updated tests not finished yet
XaverStiensmeier Oct 26, 2023
7745202
improved code style
XaverStiensmeier Oct 27, 2023
e7b6ccd
fixed tests further. One to fix left.
XaverStiensmeier Oct 27, 2023
f2015f9
fixed additional tests
XaverStiensmeier Oct 27, 2023
d563ef9
Merge pull request #446 from BiBiServ/hotfix-hybrid-cloud
XaverStiensmeier Oct 27, 2023
5d17b14
Merge remote-tracking branch 'origin/dev' into test-update
XaverStiensmeier Oct 27, 2023
7141a78
fixed all tests for ansible configurator
XaverStiensmeier Oct 27, 2023
dcf2836
fixed comment
XaverStiensmeier Oct 27, 2023
400b350
fixed multiple tests
XaverStiensmeier Oct 31, 2023
65d5da7
fixed a few tests
XaverStiensmeier Nov 10, 2023
c989ad3
Fixed create
XaverStiensmeier Nov 14, 2023
4442c1b
fixed some issues regarding
XaverStiensmeier Nov 14, 2023
f5532e7
fixing test_provider.py
XaverStiensmeier Nov 14, 2023
6bbc349
removed infrastructure_cloud.yml
XaverStiensmeier Nov 14, 2023
9b0629a
minor fixes
XaverStiensmeier Nov 14, 2023
0f83cee
fixed all tests
XaverStiensmeier Nov 16, 2023
422eda5
removed print
XaverStiensmeier Nov 16, 2023
975f2e5
changed prints to log
XaverStiensmeier Nov 23, 2023
4b47b51
removed log
XaverStiensmeier Nov 23, 2023
5adfd66
fixed None bug where [] is expected when no sshPublicKeyFile is given.
XaverStiensmeier Nov 26, 2023
23961c0
Merge pull request #451 from BiBiServ/hotfix-ide-failing-when-no-sshP…
XaverStiensmeier Nov 26, 2023
68b98b0
removed master from compute if use master as compute is false
XaverStiensmeier Nov 28, 2023
6c044a7
Merge pull request #459 from BiBiServ/hotfix-master-as-compute-not-wo…
XaverStiensmeier Nov 28, 2023
f29d7a2
reconstructured role additional in order to make it easier to include…
XaverStiensmeier Nov 28, 2023
f83e662
Merge remote-tracking branch 'origin/master' into dev
XaverStiensmeier Nov 28, 2023
0c048b7
Updated all tests (#448)
XaverStiensmeier Nov 28, 2023
26c6738
Introduced yaml lock (#464)
XaverStiensmeier Feb 6, 2024
8182901
added existing worker deletion on worker startup if worker already ex…
XaverStiensmeier Feb 6, 2024
a7b1661
made waitForServices a cloud specific key (#465)
XaverStiensmeier Feb 6, 2024
cec4102
Improved log messages in validate_configuration.py to make fixing you…
XaverStiensmeier Feb 6, 2024
a8f8e44
Merge remote-tracking branch 'origin/test-update' into dev
XaverStiensmeier Feb 7, 2024
a9eea47
added keyword for ssh_timeout and improved argument passing for ssh.
XaverStiensmeier Feb 26, 2024
8ebfe55
Update issue templates
XaverStiensmeier Feb 29, 2024
3c4c25d
Merge branch 'dev' into suggestion-issue-templates
XaverStiensmeier Mar 4, 2024
d552493
merged and fixed a missing LOG
XaverStiensmeier Mar 4, 2024
cb11854
fixed a missing LOG
XaverStiensmeier Mar 4, 2024
65a3d21
removed overwritten variable instantiation
XaverStiensmeier Mar 4, 2024
d2a6532
Merge branch 'dev' into suggestion-issue-templates
XaverStiensmeier Mar 4, 2024
a7913c2
Merge pull request #477 from BiBiServ/suggestion-issue-templates
XaverStiensmeier Mar 4, 2024
3b1e3fd
Update bug_report.md
XaverStiensmeier Mar 4, 2024
05e8484
removed trailing whitespaces
XaverStiensmeier Mar 4, 2024
94645c9
Merge pull request #478 from BiBiServ/added-configuration-to-ISSUE_TE…
XaverStiensmeier Mar 4, 2024
b571279
added comment about sshTimeout key
XaverStiensmeier Mar 22, 2024
3526587
Create dependabot.yml (#479)
XaverStiensmeier Mar 25, 2024
9b0f632
Code cleanup and minor improvement (#482)
XaverStiensmeier Mar 25, 2024
3c3e35b
added timeout to common_configuration
XaverStiensmeier Mar 26, 2024
ae30617
removed debug verbosity and improved log message wording
XaverStiensmeier Mar 27, 2024
4f2ca97
fixed is_active structure
XaverStiensmeier Mar 27, 2024
acaa2b9
Merge branch 'dev' into feature-increase-ssh-timeout
XaverStiensmeier Mar 28, 2024
6c7a8cc
Merge branch 'dev' into feature-increase-ssh-timeout
XaverStiensmeier Mar 28, 2024
ba79542
fixed pip dependabot.yml
XaverStiensmeier Mar 28, 2024
9ccd5a5
added documentation. Changed timeout to 2**(2+attempts) to decrease n…
XaverStiensmeier Apr 3, 2024
d4d3fc4
474 allow non on demandpermanent workers (#487)
XaverStiensmeier Apr 9, 2024
6ef3acb
Merge branch 'dev' into feature-increase-ssh-timeout
XaverStiensmeier Apr 10, 2024
55a06f3
Merge pull request #483 from BiBiServ/feature-increase-ssh-timeout
XaverStiensmeier Apr 10, 2024
3984063
added ansible.cfg replacement
XaverStiensmeier Apr 10, 2024
d0beaec
Merge branch 'dev' into feature-custom-ansible-cfg
XaverStiensmeier Apr 10, 2024
a250d6e
fixed path. Added ansible.cfg to the gitignore
XaverStiensmeier Apr 10, 2024
ba0d033
updated default creation and gitignore. Fixed non-vital bug that didn…
XaverStiensmeier Apr 10, 2024
93f8013
Merge pull request #488 from BiBiServ/feature-custom-ansible-cfg
XaverStiensmeier Apr 15, 2024
7185ca1
Code cleanup (#490)
XaverStiensmeier Apr 16, 2024
ca6cab5
Slurm upgrade fixes (#473)
XaverStiensmeier Apr 19, 2024
7eaae20
Update tests (#493)
XaverStiensmeier Apr 24, 2024
32a3d13
added cloudScheduling and userRoles in bibigrid.yml
XaverStiensmeier Apr 24, 2024
927cbd7
added userRoles in documentation
XaverStiensmeier Apr 24, 2024
fb17204
added varsFiles and comments
XaverStiensmeier Apr 24, 2024
0812164
added folder path in documentation
XaverStiensmeier Apr 24, 2024
323698d
fixed naming
XaverStiensmeier Apr 24, 2024
8b7d185
added that vars are optional
XaverStiensmeier Apr 24, 2024
53a574d
polished userRoles documentation
XaverStiensmeier Apr 24, 2024
3533540
439 additional ansible roles (#495)
XaverStiensmeier Apr 25, 2024
c77ef62
added documentation for other configurations
XaverStiensmeier Apr 25, 2024
2a64d33
added new feature keys
XaverStiensmeier Apr 25, 2024
0e5a350
fixed template files not being j2
XaverStiensmeier Apr 25, 2024
66b4996
added helpful comments and removed no longer used roles/additional/
XaverStiensmeier Apr 26, 2024
fa2bb2e
Merge pull request #496 from BiBiServ/documentation-update
XaverStiensmeier Apr 30, 2024
3367d55
userRoles crashes if no role set
XaverStiensmeier Apr 30, 2024
7c3bb78
Merge pull request #497 from BiBiServ/fixes
XaverStiensmeier Apr 30, 2024
678ad83
fixed ansible.cfg path '"'
XaverStiensmeier Apr 30, 2024
66ed330
implemented partition system
XaverStiensmeier May 3, 2024
edf4639
added keys customAnsibleCfg and customSlurmConf as keys that stop the…
XaverStiensmeier May 6, 2024
8a265da
improved spacing
XaverStiensmeier May 6, 2024
913241d
added logging
XaverStiensmeier May 6, 2024
8e1c0a6
updated documentation
XaverStiensmeier May 6, 2024
1e26cc7
updated tests. Improved formatting
XaverStiensmeier May 6, 2024
17e89d5
fix for service being too fast for startup
XaverStiensmeier May 16, 2024
3fd1011
fixed remote src
XaverStiensmeier May 24, 2024
3943d27
Merge pull request #502 from BiBiServ/fix-update-for-fast-services
XaverStiensmeier May 24, 2024
70ceb65
changed RESUME to POWER_DOWN and removed delete call which is now han…
XaverStiensmeier Jun 3, 2024
9ad7cab
Update check (#499)
XaverStiensmeier Jun 3, 2024
b6184e8
Merge branch 'dev' into additional-partitions
XaverStiensmeier Jun 4, 2024
308722b
Merge pull request #498 from BiBiServ/additional-partitions
XaverStiensmeier Jun 4, 2024
23fe109
fixed ftype. Errors with multiple volumes.
XaverStiensmeier Jun 4, 2024
2366b01
made automount bound to defined mountPoints and therefore customizable
XaverStiensmeier Jun 4, 2024
8b3f565
added empty line and updated bibigrid.yml
XaverStiensmeier Jun 4, 2024
2b0b5b9
fixed nfsshare regex error and updated check to fit to the new name m…
XaverStiensmeier Jun 6, 2024
4480f01
hotfix: folder creation now before accessing hosts.yml
XaverStiensmeier Jun 6, 2024
6eafed2
Merge pull request #506 from BiBiServ/improving-master-mount
XaverStiensmeier Jun 6, 2024
434b42e
fixed tests
XaverStiensmeier Jun 7, 2024
868462f
moved dnsmasq installation infront of /etc/resolv removal
XaverStiensmeier Jun 7, 2024
b479e29
Merge pull request #510 from BiBiServ/509-dns-breaks-down-hotfix
XaverStiensmeier Jun 20, 2024
49ce93f
fixed tests
XaverStiensmeier Jun 20, 2024
de145dc
fixed nfs exports by removing unnecessary "/" at the beginning
XaverStiensmeier Jun 24, 2024
02aab94
fixed master running slurmd but not being listed in slurm.conf. Now s…
XaverStiensmeier Jun 27, 2024
622fcd2
improved logging
XaverStiensmeier Jun 27, 2024
305dfab
increased timeout. Corrected comment in slurm.j2
XaverStiensmeier Jun 27, 2024
45387c1
updated info regarding timeouts (changed from 4 to 5).
XaverStiensmeier Jun 28, 2024
adaeae7
added SuspendTimeout as optional to elastic_scheduling
XaverStiensmeier Jul 1, 2024
dfaff09
updated documentation
XaverStiensmeier Jul 1, 2024
5dae805
permission fix
XaverStiensmeier Jul 2, 2024
874ad82
fixes #394
jkrue Jul 3, 2024
5b3bdd2
fixes #394 (also for hybrid cluster)
jkrue Jul 3, 2024
79b4bb8
increased ResumeTimeout by 5 minutes. yml to yaml
XaverStiensmeier Jul 4, 2024
beb584b
changed all yml to yaml (as preferred by yaml)
XaverStiensmeier Jul 4, 2024
e113170
Merge pull request #512 from BiBiServ/fix-tests-validate
XaverStiensmeier Jul 4, 2024
ed45bd0
Merge pull request #513 from BiBiServ/fix-validation-configuration-tests
XaverStiensmeier Jul 4, 2024
c186223
updated timeouts. updated tests
XaverStiensmeier Jul 4, 2024
1861480
fixes #394 - remove host from zabbix when terminated
jkrue Jul 5, 2024
2d3d9a9
zabbix api no longer used when not set in configuration
XaverStiensmeier Jul 5, 2024
44cb580
pleased linting by using false instead of no
XaverStiensmeier Jul 5, 2024
90fbb7c
added logging of traceroute even if debug flag is not set when error …
XaverStiensmeier Aug 14, 2024
dd4d0c1
Merge pull request #521 from BiBiServ/improve-logging-520
XaverStiensmeier Aug 14, 2024
8dbab38
Update action 515 (#516)
XaverStiensmeier Aug 16, 2024
51e9e2e
Added apt-reactivate-auto-update to reactivate updates at the end of …
XaverStiensmeier Aug 16, 2024
00eb5f2
added multiple configuration keys for boot volume handling
XaverStiensmeier Aug 19, 2024
22f4993
updated documentation
XaverStiensmeier Aug 19, 2024
1841d5e
updated documentation for new volumes and for usually ignored keys
XaverStiensmeier Aug 20, 2024
9f83f4d
updated and added tests
XaverStiensmeier Aug 28, 2024
92351ee
Merge branch 'master' into dev
XaverStiensmeier Aug 28, 2024
619b92f
Merge branch 'master' into dev
XaverStiensmeier Sep 6, 2024
81c4919
Pleasing Dependabot
XaverStiensmeier Sep 6, 2024
f855dc9
Linting now uses python 3.10
XaverStiensmeier Sep 6, 2024
cef8040
added early termination when configuration file not found
XaverStiensmeier Sep 11, 2024
5907903
added dontUploadCredentials documentation
XaverStiensmeier Sep 12, 2024
628e6f9
fixed broken links
XaverStiensmeier Sep 12, 2024
05f8df6
added dontUploadCredentials to schema valiation
XaverStiensmeier Sep 12, 2024
6acfb06
fixed dontUploadCredential ansible start bug
XaverStiensmeier Sep 12, 2024
b4f5464
prevented BiBiGrid from looking for other keys if created key doesn't…
XaverStiensmeier Sep 12, 2024
0c4a86a
prevented BiBiGrid from looking for other keys if created key doesn't…
XaverStiensmeier Sep 12, 2024
3a37bcc
updated requirements.txt
XaverStiensmeier Sep 13, 2024
87d1d51
restricted clouds.yaml access
XaverStiensmeier Sep 13, 2024
f747b9f
moved openstack credentials permission change to server only
XaverStiensmeier Sep 13, 2024
882f8d6
added '' to 3.10
XaverStiensmeier Sep 13, 2024
2dc9529
converted implicit to explicit octet notation
XaverStiensmeier Sep 13, 2024
2c34c03
added "" and fixed a few more implicit octets
XaverStiensmeier Sep 13, 2024
644bb84
added ""
XaverStiensmeier Sep 13, 2024
efe6658
added missing "
XaverStiensmeier Sep 13, 2024
e30748e
added allow_agent=False to further prevent BiBiGrid from looking for …
XaverStiensmeier Sep 16, 2024
7c54773
removed hardcoded /vol/
XaverStiensmeier Sep 23, 2024
fc0aa01
updated versions
XaverStiensmeier Sep 23, 2024
6d400e7
removed unnecessary comments and commented out Workflow execution
XaverStiensmeier Sep 23, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
8 changes: 4 additions & 4 deletions bibigrid/core/actions/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,12 @@ def upload_data(self, private_key, clean_playbook=False):

ansible_configurator.configure_ansible_yaml(providers=self.providers, configurations=self.configurations,
cluster_id=self.cluster_id, log=self.log)
ansible_start = ssh_handler.ANSIBLE_START
ansible_start[-1] = (ansible_start[-1][0].format(",".join(self.permanents)), ansible_start[-1][1])
self.log.debug(f"Starting playbook with {ansible_start}.")
if self.configurations[0].get("dontUploadCredentials"):
commands = ssh_handler.ANSIBLE_START
commands = ansible_start
else:
ansible_start = ssh_handler.ANSIBLE_START
ansible_start[-1] = (ansible_start[-1][0].format(",".join(self.permanents)), ansible_start[-1][1])
self.log.debug(f"Starting playbook with {ansible_start}.")
commands = [ssh_handler.get_ac_command(self.providers, AC_NAME.format(
cluster_id=self.cluster_id))] + ssh_handler.ANSIBLE_START
if clean_playbook:
Expand Down
3 changes: 3 additions & 0 deletions bibigrid/core/utility/handler/configuration_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

import os
import sys

import mergedeep
import yaml
Expand Down Expand Up @@ -31,8 +32,10 @@ def read_configuration(log, path, configuration_list=True):
configuration = yaml.safe_load(stream)
except yaml.YAMLError as exc:
log.warning("Couldn't read configuration %s: %s", path, exc)
sys.exit(1)
else:
log.warning("No such configuration file %s.", path)
sys.exit(1)
if configuration_list and not isinstance(configuration, list):
log.warning("Configuration should be list. Attempting to rescue by assuming a single configuration.")
return [configuration]
Expand Down
2 changes: 1 addition & 1 deletion bibigrid/core/utility/handler/ssh_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def is_active(client, paramiko_key, ssh_data, log):
log.info(f"Attempt {attempts}/{ssh_data['timeout']}. Connecting to {ssh_data['floating_ip']}")
client.connect(hostname=ssh_data['gateway'].get("ip") or ssh_data['floating_ip'],
username=ssh_data['username'], pkey=paramiko_key, timeout=7,
auth_timeout=ssh_data['timeout'], port=port)
auth_timeout=ssh_data['timeout'], port=port, look_for_keys=False, allow_agent=False)
establishing_connection = False
log.info(f"Successfully connected to {ssh_data['floating_ip']}.")
except paramiko.ssh_exception.NoValidConnectionsError as exc:
Expand Down
3 changes: 2 additions & 1 deletion bibigrid/core/utility/validate_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
Optional('zabbix'): bool, Optional('nfs'): bool, Optional('ide'): bool, Optional('useMasterAsCompute'): bool,
Optional('useMasterWithPublicIp'): bool, Optional('waitForServices'): [str], Optional('bootVolume'): str,
Optional('bootFromVolume'): bool, Optional('terminateBootVolume'): bool, Optional('volumeSize'): int,
Optional('gateway'): {'ip': str, 'portFunction': str}, Optional('fallbackOnOtherImage'): bool,
Optional('gateway'): {'ip': str, 'portFunction': str}, Optional('dontUploadCredentials'): bool,
Optional('fallbackOnOtherImage'): bool,
Optional('localDNSLookup'): bool, Optional('features'): [str], 'workerInstances': [
WORKER],
'masterInstance': MASTER,
Expand Down
23 changes: 15 additions & 8 deletions documentation/markdown/features/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ nfsshares:
`nfsShares` expects a list of folder paths to share over the network using nfs.
In every case, `/vol/spool/` is always an nfsShare.

This key is only relevant if the [nfs key](#nfs-optional) is set `True`.
This key is only relevant if the [nfs key](#nfs-optionalfalse) is set `True`.

If you would like to share a [masterMount](#mastermounts-optional), take a look [here](../software/nfs.md#mount-volume-into-share).
If you would like to share a [masterMount](#mastermounts-optionalfalse), take a look [here](../software/nfs.md#mount-volume-into-share).

<details>
<summary>
Expand Down Expand Up @@ -191,7 +191,7 @@ If `True`, [nfs](../software/nfs.md) is set up. Default is `False`.
#### ide (optional:False)

If `True`, [Theia Web IDE](../software/theia_ide.md) is installed.
After creation connection information is [printed](../features/create.md#prints-cluster-information). Default is `False`.
After creation connection information is [printed](../features/create.md). Default is `False`.

#### useMasterAsCompute (optional:True)

Expand All @@ -217,7 +217,15 @@ gateway:
portFunction: 30000 + oct4 # variables are called: oct1.oct2.oct3.oct4
```

Using gateway also automatically sets [useMasterWithPublicIp](#usemasterwithpublicip-optional) to `False`.
Using gateway also automatically sets [useMasterWithPublicIp](#usemasterwithpublicip-optionaltrue) to `False`.

#### dontUploadCredentials (optional:True)
Usually, BiBiGrid will upload your credentials to the cluster. This is necessary for on demand scheduling.
However, if all your nodes are permanent (i.e. not on demand), you do not need to upload your credentials.
In such cases you can set `dontUploadCredentials: True`.

This also allows for external node schedulers by using the Slurm REST API to decide whether a new node should be started or not.
[SimpleVM](https://cloud.denbi.de/about/project-types/simplevm/) is scheduling that way.

### Local

Expand Down Expand Up @@ -288,7 +296,7 @@ most recent release is active, you can use `Ubuntu 22.04 LTS \(.*\)` so it alway
This regex will also be used when starting worker instances on demand
and is therefore mandatory to automatically resolve image updates of the described kind while running a cluster.

There's also a [Fallback Option](#fallbackonotherimage-optional).
There's also a [Fallback Option](#fallbackonotherimage-optionalfalse).

##### Find your active `type`s
`flavor` is just the OpenStack terminology for `type`.
Expand Down Expand Up @@ -364,14 +372,14 @@ openstack subnet list --os-cloud=openstack

#### features (optional)

Cloud-wide slurm [features](#whats-a-feature) that are attached to every node in the cloud described by the configuration.
Cloud-wide slurm features that are attached to every node in the cloud described by the configuration.
If both [worker group](#workerinstances) or [master features](#masterInstance) and configuration features are defined,
they are merged. If you only have a single cloud and therefore a single configuration, this key is not helpful as a feature
that is present at all nodes can be omitted as it can't influence the scheduling.

#### bootFromVolume (optional:False)
If True, the instance will boot from a volume created for this purpose. Keep in mind that on demand scheduling can lead
to multiple boots of the same configurated node. If you don't make use of [terminateBootVolume](#terminatebootvolume-optionalfalse)
to multiple boots of the same configurated node. If you don't make use of [terminateBootVolume](#terminatebootvolume-optionaltrue)
this will lead to many created volumes.

#### volumeSize (optional:50)
Expand All @@ -380,4 +388,3 @@ The created volume's size if you use [bootFromVolume](#bootfromvolume-optionalfa
#### terminateBootVolume (optional:True)
If True, once the instance is shut down, boot volume is destroyed. This does not affect other attached volumes.
Only the boot volume is affected.

2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ansible_lint==6.8.0
ansible_lint==24.9.0
pylint==2.14.5
14 changes: 7 additions & 7 deletions requirements-rest.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
openstacksdk==0.62
mergedeep
paramiko
mergedeep~=1.3.4
paramiko~=3.4.0
python-cinderclient
python-keystoneclient
python-novaclient
python-openstackclient==6.0.0
PyYAML
shortuuid
sshtunnel
fastapi
PyYAML~=6.0
shortuuid~=1.0.13
sshtunnel~=0.4.0
fastapi~=0.113.0
python-multipart
uvicorn
uvicorn~=0.23.2
httpx
14 changes: 7 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
openstacksdk==0.62
mergedeep~=1.3.4
paramiko~=2.12.0
paramiko~=3.5.0
python-cinderclient
python-keystoneclient
python-novaclient
python-openstackclient==6.0.0
PyYAML~=6.0
shortuuid~=1.0.11
shortuuid~=1.0.13
sshtunnel~=0.4.0
sympy~=1.12
seedir~=0.4.2
cryptography~=38.0.4
uvicorn~=0.23.2
seedir~=0.5.0
cryptography~=43.0.1
uvicorn~=0.30.6
fastapi~=0.101.0
pydantic~=2.1.1
pydantic~=2.9.2
keystoneauth1~=5.1.0
filelock~=3.13.1
filelock~=3.16.1
schema~=0.7.7
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
dest: "{{ item.path }}.disabled"
owner: root
group: root
mode: 0644
mode: "0o644"
remote_src: true
with_items: "{{ collected_files.files }}"
- name: Remove collected files
Expand All @@ -30,7 +30,7 @@
line: "network: {config: disabled}"
owner: root
group: root
mode: 0644
mode: "0o644"
create: true

- name: Generate location specific worker userdata
Expand All @@ -39,7 +39,7 @@
dest: "/etc/systemd/network/bibigrid_ens3.network"
owner: root
group: systemd-network
mode: 0640
mode: "0o640"
become: true
notify:
- systemd-networkd restart
Expand All @@ -50,7 +50,7 @@
dest: "/etc/systemd/network/bibigrid_ens3.link"
owner: root
group: systemd-network
mode: 0640
mode: "0o640"
become: true
notify:
- systemd-networkd restart
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
path: /opt/playbook/
state: directory
recurse: true
mode: "0770"
mode: "0o770"
2 changes: 1 addition & 1 deletion resources/playbook/roles/bibigrid/tasks/001-apt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
dest: /etc/apt/apt.conf.d/20auto-upgrades
owner: root
group: root
mode: 0644
mode: "0o644"

- name: Wait for cloud-init / user-data to finish
command: cloud-init status --wait
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
dest: /etc/systemd/network/wg0.netdev
owner: root
group: systemd-network
mode: 0640
mode: "0o640"
become: true
notify:
- systemd-networkd restart
Expand All @@ -20,7 +20,7 @@
dest: /etc/systemd/network/wg0.network
owner: root
group: systemd-network
mode: 0640
mode: "0o640"
become: true
notify: systemd-networkd restart

Expand Down
6 changes: 3 additions & 3 deletions resources/playbook/roles/bibigrid/tasks/003-dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@
template:
src: dns/hosts.j2
dest: /etc/dnsmasq.hosts
mode: '0644'
mode: "0o644"
notify: dnsmasq

- name: Adjust dnsmasq.resolv.conf
template:
src: dns/resolv.conf.j2
dest: /etc/dnsmasq.resolv.conf
mode: '0644'
mode: "0o644"
notify: dnsmasq

- name: Adjust dnsmasq conf
template:
src: dns/dnsmasq.conf.j2
dest: /etc/dnsmasq.conf
mode: '0644'
mode: "0o644"
notify: dnsmasq

- name: Flush handlers
Expand Down
4 changes: 2 additions & 2 deletions resources/playbook/roles/bibigrid/tasks/010-bin-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
copy:
src: ~/bin
dest: /usr/local
mode: '0775'
mode: "0o775"
- name: Delete origin folder
file:
path: ~{{ ansible_facts.env.SUDO_USER }}/bin
Expand All @@ -24,4 +24,4 @@
template:
src: "bin/bibiname.j2"
dest: "/usr/local/bin/bibiname"
mode: '0775'
mode: "0o775"
8 changes: 4 additions & 4 deletions resources/playbook/roles/bibigrid/tasks/011-zabbix-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@
file:
path: /etc/zabbix/zabbix_agentd.d/
state: directory
mode: 0755
mode: "0o755"

- name: Create zabbix_agent log directory
file:
path: /var/log/zabbix
state: directory
owner: zabbix
group: zabbix
mode: 0755
mode: "0o755"

- name: Adjust zabbix agent configuration
template:
src: zabbix/zabbix_agentd.conf.j2
dest: /etc/zabbix/zabbix_agentd.conf
mode: 0644
mode: "0o644"
notify: zabbix-agent

- name: Copy Zabbix Host delete script
copy:
src: zabbix/zabbix_host_delete.py
dest: /usr/local/bin/zabbix_host_delete.py
mode: 0755
mode: "0o755"

- name: Install zabbix python-api
pip:
Expand Down
10 changes: 5 additions & 5 deletions resources/playbook/roles/bibigrid/tasks/011-zabbix-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
template:
src: zabbix/zabbix_server.conf.j2
dest: /etc/zabbix/zabbix_server.conf
mode: 0644
mode: "0o644"
notify: zabbix-server

- name: Start and Enable zabbix-server
Expand Down Expand Up @@ -121,7 +121,7 @@
state: directory
owner: root
group: root
mode: '0755'
mode: "0o755"

- name: Adjust zabbix web frontend configuration
notify: apache2
Expand All @@ -130,12 +130,12 @@
template:
src: zabbix/apache.conf.j2
dest: /etc/zabbix/apache.conf
mode: 0644
mode: "0o644"
- name: Adjust zabbix.conf
template:
src: zabbix/zabbix.conf.php.j2
dest: /etc/zabbix/web/zabbix.conf.php
mode: 0644
mode: "0o644"

- name: Start and enable apache web server
systemd:
Expand All @@ -147,7 +147,7 @@
copy:
src: zabbix/index.html
dest: /var/www/html/index.html
mode: 0644
mode: "0o644"

- name: Force all notified handlers to run at this point
meta: flush_handlers
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

- name: Create mount folders if they don't exist
file:
path: "/vol/{{ item.mount_point }}"
path: "{{ item.mount_point }}"
state: directory
mode: '0755'
mode: "0o755"
owner: root
group: '{{ ansible_distribution | lower }}'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
file:
path: /vol/scratch
state: directory
mode: 0777
mode: "0o777"
Loading
Loading