Jeremy Gardais
|
e35b7af614
|
Disable queue when 0 pending jobs
|
2020-09-24 14:56:27 +02:00 |
Jeremy Gardais
|
c1d23c04f6
|
debug func return 0 to allow chain function
|
2020-08-20 10:02:11 +02:00 |
Jeremy Gardais
|
821fb4828a
|
Also purge monthly bench for the tests
|
2020-08-18 09:50:47 +02:00 |
Jeremy Gardais
|
f9d3301da7
|
Update script to use nslcd conf instead of sssd
|
2020-08-14 08:09:43 +02:00 |
Jeremy Gardais
|
34db514091
|
Update repositories before upgrading packages
|
2020-07-18 16:28:34 +02:00 |
Jeremy Gardais
|
e74122fb21
|
Start service if process is NOT running…
|
2020-07-13 16:11:41 +02:00 |
Jeremy Gardais
|
ded681aeb9
|
Try to start sge service if required
|
2020-07-06 17:19:07 +02:00 |
Jeremy Gardais
|
7229c8640e
|
Reorder tests and add infos about force mode
|
2020-07-06 17:05:06 +02:00 |
Jeremy Gardais
|
d5186390b3
|
Correct exit condition if sge_flag_pattern s absent
|
2020-07-06 16:37:30 +02:00 |
Jeremy Gardais
|
8e8c60c405
|
Ensure to clean useless files
|
2020-07-06 16:26:55 +02:00 |
Jeremy Gardais
|
46ceeb5baf
|
Use same var prefix "sge_queue_flag"
|
2020-07-06 16:19:11 +02:00 |
Jeremy Gardais
|
fdbc34e5cc
|
Exit if all SGE queues were manually disabled
|
2020-07-06 16:16:25 +02:00 |
Jeremy Gardais
|
47d7060743
|
find allow to use pattern to verify if file exists
|
2020-07-06 15:30:32 +02:00 |
Jeremy Gardais
|
df39d103e6
|
Exit if nologin file exists
|
2020-07-06 15:07:23 +02:00 |
Jeremy Gardais
|
f765e15c7f
|
Avoid to enable queue during upgrade
|
2020-07-06 11:30:24 +02:00 |
Jeremy Gardais
|
588dc554ef
|
Ensure maco.service is enable for next reboot
|
2020-07-06 08:29:13 +02:00 |
Jeremy Gardais
|
9ed62204ae
|
Add info about -q|--quiet option
|
2020-06-29 09:19:03 +02:00 |
Jeremy Gardais
|
b13eaf3564
|
Remove APT warning
|
2020-06-25 08:50:17 +02:00 |
Jeremy Gardais
|
dc271d73ee
|
Disable DEBUG_MODE
|
2020-06-24 16:03:33 +02:00 |
Jeremy Gardais
|
b7a369ae90
|
Don't manage files with SIMULATE_MODE enabled
|
2020-06-24 15:54:53 +02:00 |
Jeremy Gardais
|
1c6a8fcbc6
|
Create a file in /opt/ipr/cluster instead of /etc
|
2020-06-24 14:56:04 +02:00 |
Jeremy Gardais
|
e96c9ff548
|
Test if given hostname is the current host
|
2020-06-24 14:53:53 +02:00 |
Jeremy Gardais
|
3d6d8de497
|
Define vars in a function
|
2020-06-24 14:14:08 +02:00 |
Jeremy Gardais
|
cc1ccba855
|
Manage debug, help and hostname options
|
2020-06-24 14:07:23 +02:00 |
Jeremy Gardais
|
c730d36ed4
|
Disable systemd service
|
2020-06-24 12:24:12 +02:00 |
Jeremy Gardais
|
0141ec027b
|
Exit if any proc related to maco runs
|
2020-06-24 11:51:24 +02:00 |
Jeremy Gardais
|
9549db7a17
|
Prepare temp script during tests on physix*5 nodes
To avoid two differents upgrades systems on some nodes.
|
2020-06-24 11:47:24 +02:00 |
Jeremy Gardais
|
652fca2abc
|
Redirect qmod stdout to /dev/null
|
2020-06-24 10:40:23 +02:00 |
Jeremy Gardais
|
2ffd9ce5bd
|
Correct the value of watched file
|
2020-06-23 17:05:48 +02:00 |
Jeremy Gardais
|
ce8cf73b0e
|
Refactor CHECK_UPGRADE
|
2020-06-22 20:46:37 +02:00 |
Jeremy Gardais
|
de494b76c1
|
FORCE_MODE implies to don't check for upgrade
|
2020-06-22 20:42:09 +02:00 |
Jeremy Gardais
|
d6f266a129
|
Enable FORCE_MODE for remote host
|
2020-06-22 20:27:10 +02:00 |
Jeremy Gardais
|
205207fd15
|
Define extra vars in a function
|
2020-06-22 20:04:46 +02:00 |
Jeremy Gardais
|
60c307b933
|
Fix: Ensure to grep at least one "-"
|
2020-06-22 18:23:22 +02:00 |
Jeremy Gardais
|
4535850b3a
|
Add --force option to force to enable a queue
|
2020-06-22 17:12:14 +02:00 |
Jeremy Gardais
|
2ac0de9343
|
Add --hostname option
|
2020-06-22 14:20:45 +02:00 |
Jeremy Gardais
|
04946977d9
|
Add message on stdout and quiet mode
|
2020-06-22 14:04:57 +02:00 |
Jeremy Gardais
|
baab6c28a4
|
Add options list in help message
|
2020-06-22 13:48:37 +02:00 |
Jeremy Gardais
|
2e493e086f
|
Add options management
|
2020-06-22 13:48:26 +02:00 |
Jeremy Gardais
|
3d01cb8487
|
(re)enable SGE queue only if disable by a script
Test if /etc/.sge.${QUEUE_NAME}.disable exist
|
2020-06-22 13:25:34 +02:00 |
Jeremy Gardais
|
138aecfb47
|
Exit if pending upgrades
|
2020-06-22 12:32:31 +02:00 |
Jeremy Gardais
|
270c1eb3fb
|
New script to enable host's SGE queue(s)
|
2020-06-22 11:33:31 +02:00 |
Jeremy Gardais
|
05bc7ac54e
|
Rename sge disable queue script
|
2020-06-22 11:25:11 +02:00 |
Jeremy Gardais
|
14fc3ac684
|
Reboot after a successful upgrade
|
2020-06-22 11:23:20 +02:00 |
Jeremy Gardais
|
78be3391b0
|
Prepare the host before upgrade (forbid SSH,…)
|
2020-06-22 11:13:03 +02:00 |
Jeremy Gardais
|
872bb98950
|
Clean temp files after successful upgrade
|
2020-06-22 11:08:02 +02:00 |
Jeremy Gardais
|
17e8e0027d
|
Launch maco upgrade
|
2020-06-22 11:00:24 +02:00 |
Jeremy Gardais
|
2257ab7742
|
Ensure to don't have any SGE queue enable
|
2020-06-19 10:43:10 +02:00 |
Jeremy Gardais
|
0505db5082
|
Exit if any APT processes runs
|
2020-06-19 10:30:13 +02:00 |
Jeremy Gardais
|
e522d78cb0
|
Prepare a script to apply Maco upgrade
|
2020-06-19 10:19:03 +02:00 |
Jeremy Gardais
|
23325d2060
|
Finish by rebooting the system
|
2020-06-19 10:10:13 +02:00 |
Jeremy Gardais
|
6af24258ad
|
Clean temp data if upgrade succeed
|
2020-06-19 09:28:12 +02:00 |
Jeremy Gardais
|
d133af4fed
|
Exit with code 50 if upgrade fail
|
2020-06-18 17:03:57 +02:00 |
Jeremy Gardais
|
8daa80803d
|
Check if any Maco upgrade is present
To allow the upgrade before applying any required reboot,…
|
2020-06-18 17:02:39 +02:00 |
Jeremy Gardais
|
c3cd76960c
|
Upgrade system
|
2020-06-18 16:39:14 +02:00 |
Jeremy Gardais
|
04b4befbc6
|
Check slots_used on all SGE queues
|
2020-06-18 12:23:17 +02:00 |
Jeremy Gardais
|
35b9846c80
|
Use RED color for found procs
Also remove non-breaking space character.
|
2020-06-18 12:14:45 +02:00 |
Jeremy Gardais
|
27ef7256a0
|
Watch for temp APT file if APT upgrade is available
|
2020-06-18 11:51:48 +02:00 |
Jeremy Gardais
|
6a84224f8a
|
Create a temp file if APT upgrade is available
|
2020-06-18 08:45:28 +02:00 |
Jeremy Gardais
|
448f71d4cc
|
Prepare script to apply APT upgrades
|
2020-06-17 16:35:11 +02:00 |
Jeremy Gardais
|
ee91922764
|
Manage a temp file if upgrade is required
|
2020-06-17 16:01:25 +02:00 |
Jeremy Gardais
|
965fc3dd0e
|
Remove non-breaking space character
|
2020-06-16 10:04:01 +02:00 |
Jeremy Gardais
|
06b03ea27c
|
Exit with success if everything was ok
|
2020-06-15 13:49:25 +02:00 |
Jeremy Gardais
|
03178436a9
|
Add simulation mode without any modifications
|
2020-06-15 13:48:52 +02:00 |
Jeremy Gardais
|
d7dd9bd592
|
Check for empty vars
|
2020-06-15 09:23:50 +02:00 |
Jeremy Gardais
|
9adce8cb1e
|
Prepare host if an upgrade is required
|
2020-06-12 17:24:34 +02:00 |
Jeremy Gardais
|
85ded81370
|
Order functions (most common first) to exit 0 asap
|
2020-06-12 16:21:20 +02:00 |
Jeremy Gardais
|
842543d62f
|
Add information messages and silent mode
|
2020-06-12 15:23:28 +02:00 |
Jeremy Gardais
|
19dcf6a96e
|
Manage options outside of a function
|
2020-06-12 15:13:53 +02:00 |
Jeremy Gardais
|
f51f207890
|
New script to check maco's upgrade
|
2020-06-12 12:34:23 +02:00 |
Jeremy Gardais
|
74b932506d
|
Disable script now manage multiple queues
|
2020-06-05 10:53:51 +02:00 |
Jeremy Gardais
|
8d6178fa82
|
Add possibility to check state of multiple queues
|
2020-06-05 10:19:34 +02:00 |
Jeremy Gardais
|
f2149ced87
|
Simplification of the command to get queue state
With a fake_user, sge command doesn't return any pending jobs.
|
2020-06-05 07:32:03 +02:00 |
Jeremy Gardais
|
19a233d145
|
Forgot to update the vars after debug
|
2020-06-04 16:52:10 +02:00 |
Jeremy Gardais
|
8ea845f74e
|
Rename script to check APT updates
|
2020-06-04 16:43:17 +02:00 |
Jeremy Gardais
|
a2df1e2c4e
|
Avoid to count pending jobs in queue state command
|
2020-06-04 16:39:50 +02:00 |
Jeremy Gardais
|
01dac009a0
|
Script to check if APT upgrade is available
And prepare the host (by disabling SGE queue) in order to apply upgrades
asap.
|
2020-06-04 14:37:01 +02:00 |
Jeremy Gardais
|
4cfedce127
|
Add debug_message function
|
2020-06-04 11:31:13 +02:00 |
Jeremy Gardais
|
d317376171
|
Add possibility to inherit DEBUG value
|
2020-06-04 11:22:50 +02:00 |
Jeremy Gardais
|
1cb88264ee
|
Add program name in debug messages
|
2020-06-04 11:22:20 +02:00 |
Jeremy Gardais
|
104932b182
|
Exit with error if the script end with queue enable
|
2020-06-03 17:51:31 +02:00 |
Jeremy Gardais
|
1e2bbcea40
|
Exit if the queue is already disable
|
2020-06-03 17:51:04 +02:00 |
Jeremy Gardais
|
ea3ecf26cf
|
Script to disable a SGE queue on a host
|
2020-06-03 15:29:56 +02:00 |
Jeremy Gardais
|
31d5b0c669
|
Move to a generic script to create directory
|
2018-10-10 11:02:55 +02:00 |
Jeremy Gardais
|
09fb786f1e
|
Update script name used to create homedir
|
2018-10-09 16:47:04 +02:00 |
Jeremy Gardais
|
bfc6d287e7
|
New script to automatically create user's homedir
This way new users should be enable to connect to Compute Cluster
without human actions.
|
2018-10-08 18:15:28 +02:00 |
Jeremy Gardais
|
2d10dee279
|
Add purpose for creation scripts
|
2018-10-08 18:13:53 +02:00 |
Jeremy Gardais
|
b727bc7261
|
Disable debug mode for creation scripts
|
2018-10-08 18:09:27 +02:00 |
Jeremy Gardais
|
7ce55bcce1
|
Check if dir already exists
This way it's avoid the chown/chmod on an existing home/work directory.
|
2018-10-08 11:30:30 +02:00 |
Jeremy Gardais
|
574d1fc318
|
Add a script to create user's work dir
|
2018-09-14 11:07:00 +02:00 |
Jeremy Gardais
|
fb40c9d1d2
|
Move compute's script to cluster directory
|
2018-09-14 11:06:53 +02:00 |