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

6.1.2.h3 #462

Open
wants to merge 344 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
344 commits
Select commit Hold shift + click to select a range
dcbea49
Fix unit test.
acvizi Dec 2, 2016
1fe047c
Move test_get_reply_stream out of the CGROUPS ifdef.
Dec 2, 2016
60ddb3a
TRQ-3861. Add a mechanism for forcing the server to accept the new
Dec 2, 2016
001b2e6
TRQ-3861. Fix an error in the cherry-pick.
Dec 2, 2016
0575370
Fix another scaffolding error.
Dec 2, 2016
c42e91d
Revert "TRQ-3682. Fix gpu indexing for multi-gpu nodes."
Dec 2, 2016
6899ae1
TRQ-3682. Add back that we don't set CUDA_VISIBLE_DEVICES when cgroups
Dec 2, 2016
c110cd6
TRQ-3798. Make our decimal division for cgroup memory more precise.
Dec 2, 2016
4b5a8e3
TRQ-3735. Fix dependencies when using a job suffix alias.
Dec 6, 2016
05098b9
TRQ-3861. Fix a unit test.
Dec 6, 2016
0781f17
TRQ-3735. Fix another unit test.
Dec 6, 2016
024a2d3
TRQ-3862. Fix a command line vs. submit filter precedence error for
Dec 6, 2016
a9b8ece
TRQ-3847 - change select() instances to poll()
acvizi Dec 7, 2016
3a9b443
TRQ-3862. Fix a regression caused by this change.
Dec 7, 2016
42769b6
TRQ-3822. Make the default gpu mode apply to -L jobs as well.
Dec 7, 2016
b8353e8
TRQ-3685. Make jobs with array dependencies that can never be satisfied
Dec 9, 2016
219382e
TRQ-3847 - fix regression issue with pbsdsh (no output)
acvizi Dec 9, 2016
2034211
TRQ-3847 - fix interactive issue with pbsdsh (no output)
acvizi Dec 9, 2016
473076d
Fix two Coverity bugs.
Dec 9, 2016
f14a108
TRQ-3879. Fix another crash on a rare failure type.
Dec 12, 2016
1526925
TRQ-3847 - initialize all poll fd entries to -1
acvizi Dec 12, 2016
217431e
TRQ-3832. Get the amount of file space available to an unprivileged user
Dec 13, 2016
fb55b68
Fix a unit test issue.
Dec 13, 2016
cc748e0
TRQ-3887. Fix a scenario where two jobs are sent to the same GPU.
Dec 13, 2016
a06798c
TRQ-3886. Fix a rare crash in freeing array subjobs.
Dec 13, 2016
82f8c24
TRQ-3609. Make qsub fail if the working directory isn't valid.
Dec 13, 2016
44718f1
TRQ-1996. Remove unnecessary libraries from pbs_demux.
Dec 14, 2016
3943c60
TRQ-3886. Fix the regression from the other check-in. Arrays weren't
Dec 14, 2016
1643f78
TRQ-3886. Fix another regression - validate the array index from array
Dec 14, 2016
8d89d7f
TRQ-3332 - add array slot limit to qstat output
acvizi Dec 14, 2016
33288f1
Change torque-build to run under bash
acvizi Dec 15, 2016
5b1d792
DOC-2819 pbs_server_attributes document scheduler_iteration has no ef…
ssather Dec 15, 2016
ce3b78f
TRQ-3711. Fix false positives around job start failures for setting
Dec 15, 2016
27ce229
TRQ-3888 - add -G option to torque-build
acvizi Dec 15, 2016
3d4d3cd
TRQ-3729. Add the -L submission, if present, to the accounting log.
Dec 15, 2016
0de4c37
TRQ-3886. Tweak job array cleanup.
Jan 4, 2017
a2bcb03
TRQ-3830. Make conflicting defaults not get applied.
Jan 4, 2017
f25b8d3
TRQ-2212. Add a --logfile_dir=<path> option for trqauthd.
Jan 4, 2017
835da66
TRQ-3213. Set the gpu mode for -l procs jobs as well.
Jan 6, 2017
f82c462
DOC-3057. Fix two spelling errors in man pages.
Jan 9, 2017
f68a611
TRQ-3057. Fix three more spelling errors.
Jan 9, 2017
b866eb5
DOC-2915 pbs_mom -w now documented in manpages
ssather Jan 9, 2017
9d123c5
TRQ-3903 && TRQ-3862. Fix some flags being ignored if they're in the job
Jan 9, 2017
ae99597
TRQ-3839. Reject invalid memory submissions at submission time.
Jan 10, 2017
de123f4
TRQ-3711. Tweak the fix for this to still fail when the mom times out.
Jan 11, 2017
0326944
TRQ-3866 - make torque.setup more robust
acvizi Jan 11, 2017
a729d8c
TRQ-3830. Add a null check to this code.
Jan 12, 2017
006e45a
TRQ-3876 - add support for multi-homed systems to torque.setup
acvizi Jan 16, 2017
bcc7ac5
TRQ-3907 - make "pbsnodes -q" do the right thing
acvizi Jan 19, 2017
7fbea58
TRQ-3910 - fix deadlock when modifying queues
acvizi Jan 23, 2017
0a7fcde
TRQ-3909. Fix some memory leaks when dumping recovered jobs.
Jan 23, 2017
f47b4af
TRQ-3909. Fix two uninitialized read errors from valgrind.
Jan 19, 2017
60715d0
TRQ-3909. Tweak a unit test.
Jan 24, 2017
5b8c6d1
TRQ-3873. Prevent req_information from growing indefinitely when jobs
Jan 24, 2017
7c9478b
TRQ-3890. Fix routing queues' routing order.
Jan 24, 2017
e098477
TRQ-3890. Add a unit test.
Jan 24, 2017
994387d
TRQ-3839. Make the error message more precise.
Jan 24, 2017
cab6294
Fix a configure.ac message.
Jan 30, 2017
741c01e
TRQ-3923. Fix a bug in handling job scripts > 64k in size.
Feb 3, 2017
0398c77
TRQ-3924. Upgrade the init.d script to help ensure that pbs_server goes
Feb 6, 2017
82b4d0c
Merge branch '6.1-dev' of https://github.com/adaptivecomputing/torque…
Feb 6, 2017
15c4f70
Fix a scaffolding issue.
Feb 7, 2017
cdd2f47
TRQ-3914. Add start_count to the accounting entry for each job.
Feb 7, 2017
724f9ac
TRQ-3914. Fix the cherry-pick for this branch.
Feb 7, 2017
e5019ed
TRQ-3805. Reduce the frequency of the "preparing to send 'x' mail" log
Feb 7, 2017
87fda90
TRQ-3811. Add commit hash to pbs_mom --about
Feb 7, 2017
4bf87d6
TRQ-3812. Make client commands --version output to stdout, not stderr.
Feb 7, 2017
4f23f0c
TRQ-3911. Make interactive jobs more resilient against resetting the …
Feb 10, 2017
7d61ed3
TRQ-3929 - don't validate -w path when VALIDATEPATH not set or is false
acvizi Feb 10, 2017
afbb77f
TRQ-3882 - avoid stat'ing mom if job no longer running
acvizi Feb 13, 2017
ed26930
TRQ-3793. Include the output and error paths in abort emails.
Feb 14, 2017
8fe6b91
TRQ-3917. Make the release hold error message more specific when it i…
Feb 14, 2017
7d01646
TRQ-3881. Don't hold the GPUs the entire time pbs_mom is running.
Feb 14, 2017
b2ce974
TRQ-3932. Fix a race condition for max_user_queuable and array submis…
Feb 16, 2017
5f3d5f8
TRQ-3913 - set proper default gpu mode based on CUDA library version
acvizi Feb 17, 2017
9c07aa3
TRQ-3913 - fix unit test
acvizi Feb 17, 2017
b886799
Fix some unit test issues.
Feb 17, 2017
1824657
TRQ-3934. Fix some translation of memory requirements from -l to -L.
Feb 17, 2017
98cddaf
TRQ-2978. Make the logging more specific for group failures.
Feb 18, 2017
e6ff18b
TRQ-3941. Avoid a crash when arrays are submitted with a bad range.
Feb 21, 2017
3c1ba92
Fix a unit test that fails if check is forking.
Feb 21, 2017
f70b1b6
TRQ-3933. Add some protections around the resource plugin code.
Feb 21, 2017
3ceb697
TRQ-3927 - fix pbs_mom systemd unit file
acvizi Feb 22, 2017
8b09b78
TRQ-3940. Fix an infinite loop due to resetting loop conditions.
Feb 22, 2017
bec4b3b
Merge branch '6.1-dev' of https://github.com/adaptivecomputing/torque…
Feb 22, 2017
11f9e97
TRQ-3927 - pbs_mom unit file kills process only; adjust DBPRT() macro
acvizi Feb 22, 2017
d0b33db
TRQ-3878. Add new options for mail_body_fmt.
Feb 24, 2017
79251f3
TRQ-3753 - kill procs in cpuset before removing cgroup
acvizi Feb 28, 2017
8571370
TRQ-3882 - in stat_update() don't abort job if no longer running
acvizi Feb 28, 2017
87172c4
TRQ-3878. Fix a unit test problem.
Feb 28, 2017
14ae082
TRQ-3714. Add the ability to set a specific memory and or swap value …
Feb 28, 2017
82cea51
TRQ-3714. Fix an issue with the last check in.
Feb 28, 2017
9dafb3e
Fix a unit test issue.
Feb 28, 2017
513c77c
Remove some unnecessary work when sending mom updates to pbs_server.
Feb 28, 2017
ff5129d
Fix a scaffolding issue.
Mar 1, 2017
f907f97
Fix another unit test issue.
Mar 1, 2017
cfbdae1
TRQ-3925. Don't allow the specification of both --disable-cpuset and …
Mar 1, 2017
c9e3af2
TRQ-3827. Make the cgroups limit RSS memory.
Mar 1, 2017
fd385d8
TRQ-3944. Reject jobs with unknown resources even if it was submitted…
Mar 2, 2017
e9789f6
TRQ-3944. Update a unit test.
Mar 2, 2017
4ade779
TRQ-3952. Add momctl -u to get the mom to force an update of its layo…
Mar 3, 2017
2b2e290
TRQ-3031. Notify the interactive process when a job is canceled while…
Mar 7, 2017
5c1cdc3
TRQ-3031. Add two scaffolding definitions.
Mar 7, 2017
aeec37f
TRQ-1264. Add INTERACTIVE_PORT_RANGE to torque.cfg to force a range f…
Mar 7, 2017
41b056e
TRQ-3881. Optimize gaining access to the gpus while they're being used.
Mar 7, 2017
bd61a98
TRQ-3885. default_gpu_mode wasn't working after a restart.
Mar 8, 2017
7a71de2
TRQ-3885. Add two scaffolding definitions.
Mar 8, 2017
d003e4f
TRQ-3885. "exclusive" is not a valid gpu mode.
Mar 8, 2017
ab0a816
TRQ-3885. Update the unit test.
Mar 9, 2017
9ce2dc6
TRQ-3937. Add a unit test to verify this.
Mar 9, 2017
34b34cf
Merge branch '6.1-dev' of https://github.com/adaptivecomputing/torque…
Mar 9, 2017
538263c
TRQ-3524. Make sisters clean up a job even when mother superior no lo…
Mar 9, 2017
538bc32
TRQ-3950. Fix a potential hang if a job somehow gets a dependency on …
Mar 9, 2017
5fb8ff1
TRQ-3905. Move the contact listener error message to level 6 instead …
Mar 10, 2017
4527174
TRQ-3825. Validate the value for minwclimit to be a time string.
Mar 13, 2017
534e23c
TRQ-3825. Fix two errors in the check-in.
Mar 13, 2017
f023237
TRQ-3875. Inform the server for job prologue retries.
Mar 13, 2017
cdf2a9e
Fix qsub man page (-w option).
acvizi Mar 14, 2017
17ade67
DOC-3098 - update man page for qsub to include -F and -L options.
acvizi Mar 14, 2017
87fefe3
Fix two crashes found in the regressions last night.
Mar 14, 2017
6138d9a
TRQ-3913 - set correct gpu default when using CUDA 8
acvizi Mar 15, 2017
9ab04c3
TRQ-3924 - fix pbs_server.in file
acvizi Mar 16, 2017
2729a51
TRQ-3965. Add diagnostics and correct the source of the gpu indices f…
Mar 17, 2017
e9bbfbb
TRQ-3961. Fix restricting devices with the cgroup.
Mar 20, 2017
d4c90f3
TRQ-3961. Fix some errors in the previous check-in.
Mar 21, 2017
7cf4aca
TRQ-3965. Make pbs_server automatically take a new layout when the nu…
Mar 22, 2017
c5a509f
TRQ-3965. Add a unit test.
Mar 22, 2017
97a14a9
TRQ-3961. Fix a regression around MICS.
Mar 22, 2017
9f65950
TRQ-3807 - create sendmail_path sever attribute
acvizi Mar 24, 2017
369adaf
TRQ-3964 - enable core files by default in systemd unit files
acvizi Mar 24, 2017
1b6990e
TRQ-3934. Treat the memory value in req as per req and not per task.
Mar 28, 2017
7ec3ed1
TRQ-3852 - fix path problem in RPM spec files
acvizi Mar 28, 2017
f2638b4
TRQ-2978. Fix one place check_pwd()'s return was being evaluated inco…
Mar 28, 2017
28238ef
TRQ-3979 and github issue #421. Fix a place where an unlocked job is …
Mar 30, 2017
7537312
TRQ-3825. Verify the correct value.
Mar 30, 2017
3383bdf
TRQ-3932. To avoid cheating max_user_queuable, only route whole arrays.
Apr 3, 2017
8726c26
TRQ-3934. Add mem_per_task and swap_per_task, and fix some confusion …
Apr 3, 2017
9e53c59
TRQ-3901. Clarify varattr time and how it's applied.
Apr 3, 2017
76ee091
TRQ-3248. Add the array id to error messages for array recovery.
Apr 3, 2017
c64dc07
TRQ-3934. Make sure task_count is never 0.
Apr 4, 2017
df784e2
TRQ-3807 - change default sendmail path for RPMs
acvizi Apr 6, 2017
49758a6
TRQ-3877 - fix rpmbuild problem
acvizi Apr 7, 2017
a591051
Fix a spelling error in an error message.
acvizi Apr 7, 2017
3bd4f4d
Fix another spelling error in an error message.
acvizi Apr 7, 2017
4de960f
TRQ-3766 - clean up nvml logging
acvizi Apr 10, 2017
6ab8b28
TRQ-3932. Fix a deadlock in my commit (the job was being left locked).
Apr 11, 2017
7fb92fa
TRQ-3973. Make allow_node_submit compatible with FQDNs as well as sho…
Apr 11, 2017
4c66f1f
TRQ-3993 - fix hostname lookups in torque.setup
acvizi Apr 12, 2017
dbcdf1f
TRQ-3932. Tweak this fix.
Apr 12, 2017
e38033b
TRQ-3932. Fix some invalid reads and writes when qdel -p'ing an array.
Apr 13, 2017
9990e06
TRQ-3932. Fix a deadlock and cleanup better when purging an unrouteab…
Apr 13, 2017
88b3d39
TRQ-3934. For consistency, display memory and total memory. All req f…
Apr 13, 2017
19d627e
Fix potential memory leak.
acvizi Apr 14, 2017
14abbd6
TRQ-3997. Make it easier to upgrade from Torque 6.0.* and 6.1.0
Apr 14, 2017
b72474f
TRQ-3934. Fix a silly mistake I made.
Apr 14, 2017
16de8dc
TRQ-3997. Add some scaffolding definitions.
Apr 17, 2017
68af569
TRQ-3934. Undo a piece of this change.
Apr 18, 2017
6e8a3c2
TRQ-3994 - fix server deadlock
acvizi Apr 19, 2017
1c985a0
Fix a regression around submitting a large array and then immediately…
Apr 20, 2017
651d931
Support the spool option when making rpm
jovandeginste Apr 24, 2017
97c81b2
TRQ-3995. Take the first step towards being able to parse RUR for usa…
Apr 25, 2017
41bc4a5
TRQ-3986. Add a check before erasing an object from container.
Apr 25, 2017
2054045
TRQ-4015. Remove :<port> from the server_name file when adding the se…
Apr 25, 2017
08aa6c5
TRQ-3989 - Preserve node gpu counts across pbs_server restarts
acvizi Apr 26, 2017
25bc0f4
TRQ-3627. Make resources_max.proc work correctly.
Apr 27, 2017
f022946
TRQ-3413. Make trqauthd the default Authentication method displayed b…
Apr 27, 2017
8c915d7
TRQ-3722. Add the option --with-reserved-port-start to configure
Apr 27, 2017
0b9d7b6
TRQ-3577. Make notes for cray compute nodes last across restarts.
Apr 28, 2017
af1c6e2
TRQ-3716 Cause make rpm to default to use the prefix resulting from c…
scottm1ll May 1, 2017
14ef3c3
TRQ-3489 - look for xauth in /usr/bin
acvizi May 2, 2017
1d06f00
small update to include entire range of ports for TRQ-1264
May 2, 2017
6c08bd5
TRQ-3951. Handle job dependencies in routing queues.
May 2, 2017
42c00b1
TRQ-3972. Make place=socket|numa work with gpus.
May 2, 2017
6dd0fe8
TRQ-3634 - display correct output paths when qsub -k used
acvizi May 4, 2017
1e5c715
TRQ-3634 - fix build issue under CentOS7
acvizi May 4, 2017
00f97df
TRQ-4027. Fix a valgrind leak.
May 4, 2017
28dbe04
TRQ-3951. Make the removeAfterAnyDependency() function delete empty d…
May 4, 2017
569de62
TRQ-3988 Update distributed spec file to define _initrddir as /etc/in…
scottm1ll May 4, 2017
5a08dcc
Reset fromlen before each accept() call
mattmix May 8, 2017
67092eb
Merge branch 'patch-1' of https://github.com/mattmix/torque into matt…
May 8, 2017
1ee6c33
Merge branch 'mattmix-patch' into 6.1-dev
May 8, 2017
fa280f1
TRQ-4003. Fix a client-side segfault when using Torque's drmaa library.
May 10, 2017
400f1d0
TRQ-4035. Memory-only nodes were causing the cgroup code to crash.
May 10, 2017
97a6271
TRQ-3991. Make the node health check not inherit pbs_mom's file desri…
May 11, 2017
4d97ca6
TRQ-4036. Add a null check when inspecting an attribute.
May 15, 2017
34fc9c2
TRQ-4047. Fix another crash around memory only nodes.
May 16, 2017
827d2f1
TRQ-3995. Take step two for parsing the taskstats file (RUR) for job …
May 16, 2017
c536e7f
TRQ-3995. Add the sample file for the unit test.
May 16, 2017
4eed6f1
TRQ-1990. Make -fstack-protector the default.
May 16, 2017
b435d72
TRQ-3995. Add some scaffolding definitions.
May 16, 2017
5c2b7ed
TRQ-3978. When hwloc fails to tell us where GPUs are, add them to soc…
May 17, 2017
3b999a8
TRQ-4046. Don't unlock and unlocked node in write_node_state_work().
May 17, 2017
ed282d3
TRQ-3978. Fix an error in the previous patch.
May 17, 2017
a5b54aa
TRQ-4017 - fix NVIDIA GPU assignment indexing problem
acvizi May 22, 2017
5d62826
Remove duplicate entries in spec file
scottm1ll May 25, 2017
1135067
TRQ-4000 - disallow cgroup and geometry request switches concurrently…
acvizi Jun 29, 2017
e9cfbc7
TRQ-4068 - avoid post job copy when -k specified
acvizi Jul 11, 2017
c615ccf
TRQ-4052 - Reword --enable-nvidia-gpus configure option
acvizi Jul 12, 2017
8811f45
TRQ-4085 - take last qsub option
acvizi Jul 20, 2017
e51e53c
TRQ-4065 - add logic to exit array processing loop
acvizi Aug 14, 2017
9e22c0b
TRQ-4099 Modify Socket::spread_place update
acvizi Aug 30, 2017
c5e1199
TRQ-1853. Send success code to orphaned nodes to reduce update freq
DanielSaunders May 25, 2017
7f001fa
TRQ-2994. Add node_check_on_job_start and node_check_on_job_end
DanielSaunders May 30, 2017
ca3427f
Merge pull request #434 from DanielSaunders/trq_1853
acvizi Sep 13, 2017
0bd8f29
Fix unit tests.
acvizi Sep 13, 2017
f3a816d
Merge pull request #438 from DanielSaunders/trq_2994
acvizi Sep 14, 2017
8595741
TRQ-3512. Maintain $pbsclient value over MOM hierarchy updates.
DanielSaunders May 23, 2017
69d0d79
Merge pull request #439 from DanielSaunders/trq_3512
acvizi Sep 14, 2017
4aee4fe
TRQ-3957. Do not run epilogues unless prologues have run.
DanielSaunders May 16, 2017
9344e59
Merge pull request #442 from DanielSaunders/trq_3957
acvizi Sep 14, 2017
4b50761
TRQ-4054. Add '--xml' flag as alias for '-x' for supported commands
DanielSaunders May 25, 2017
68fc162
Merge pull request #443 from DanielSaunders/trq_4054
acvizi Sep 14, 2017
d323329
TRQ-3957. Revision to earlier commit.
DanielSaunders Sep 14, 2017
0b928d8
Merge pull request #444 from DanielSaunders/trq_3957_fix
acvizi Sep 14, 2017
f8d2afa
Fix unit tests.
acvizi Sep 15, 2017
f1a604f
TRQ-3957. Run epilogue on sister nodes properly.
DanielSaunders Sep 15, 2017
0faeb67
Merge pull request #445 from DanielSaunders/trq_3957_fix2
acvizi Sep 15, 2017
27156b6
TRQ-3746. Make sure pbs_server reads the pbs_environment file
DanielSaunders May 25, 2017
16c6e5c
Merge pull request #447 from DanielSaunders/trq_3746
acvizi Sep 18, 2017
23266fe
TRQ-4072. Add bind() before client-side connect() calls
DanielSaunders Jul 3, 2017
196a191
Merge pull request #435 from DanielSaunders/trq_4072
acvizi Sep 18, 2017
972ba58
TRQ-4062. Add IP address field to momctl -d output
DanielSaunders Jun 1, 2017
2e6f21d
Merge pull request #448 from DanielSaunders/trq_4062
acvizi Sep 18, 2017
9d148ad
Revert checkin for TRQ-3746
acvizi Sep 19, 2017
2013fc8
TRQ-4072 - do not bind socket to local mom
acvizi Sep 21, 2017
ad151fe
TRQ-4072 - conditionally bind outbound sockets
acvizi Sep 22, 2017
d767357
Update unit test.
acvizi Sep 26, 2017
78efae7
Removed the word Error from an information message on the MOM.
knielson May 5, 2016
9a94da3
Fix an error when reserving mics for jobs.
Jan 12, 2016
177cf84
Update version to 6.1.2
ac-autogit Sep 26, 2017
5dc37e5
TRQ-4070 - use vectors in port fowarding code
acvizi Sep 29, 2017
ccab25c
TRQ-4070 - fix unit tests
acvizi Sep 29, 2017
2592589
TRQ-4070 - fix unit test typo
acvizi Sep 29, 2017
18ec517
Fix Valgrind issues.
acvizi Oct 9, 2017
9f58a26
Fix free() problem with previous valgrind commit.
acvizi Oct 9, 2017
71a0eb3
Back out recent valgrind fixes.
acvizi Oct 10, 2017
c906ae4
Fix previous check in for TRQ-4065
acvizi Oct 12, 2017
0a238e8
TRQ-4101 - add Delegate=yes to pbs_mom unit file
acvizi Oct 16, 2017
7f5879e
TRQ-4128 - avoid deadlock when looking for orphaned reservations
acvizi Oct 17, 2017
54f21e0
TRQ-3978 - use NVML API rather than hwloc for info about NVIDIA devices
acvizi Oct 26, 2017
e142e2e
TRQ-3978 - correct buffer size when getting NVIDIA device name
acvizi Oct 27, 2017
a9193e9
TRQ-4138 - maintain proper user job counts when submitting jobs with …
acvizi Nov 20, 2017
8b11a53
TRQ-4115 - fix pbs_server deadlock
acvizi Dec 1, 2017
f32dfc7
TRQ-4161 - make additional check before deleting job
acvizi Feb 2, 2018
41d0ee6
TRQ-4161 - small optimization to original commit
acvizi Feb 2, 2018
95f1eac
TRQ-4161 - fix problem with original patch
acvizi Feb 7, 2018
62ae99b
Fix unit test.
acvizi Feb 8, 2018
661e092
TRQ-4161 - fix hang condition
acvizi Feb 8, 2018
f242894
TRQ-4161 - fix hang condition
acvizi Feb 8, 2018
955c3da
Commit fix for TRQ-4359 acl_group_sloppy not working as expected.
knielson Jun 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 19 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@ include $(top_srcdir)/buildutils/config.mk
ACLOCAL_AMFLAGS = -I buildutils
SUBDIRS = src doc contrib/blcr contrib/init.d contrib/systemd

noinst_SCRIPTS = torque.setup

edit_scripts = sed \
-e "s|@exec_prefix[@]|$(exec_prefix)|g" \
-e "s|@PBS_HOME[@]|$(PBS_SERVER_HOME)|g"

torque.setup: Makefile
rm -f $@ [email protected]
my_srcdir=''; \
test -f ./[email protected] || my_srcdir=$(srcdir)/; \
$(edit_scripts) $${my_srcdir}[email protected] >[email protected]
chmod +x [email protected]
chmod a-w [email protected]
mv [email protected] $@

torque.setup: torque.setup.in

EXTRA_DIST = acinclude.m4 \
CHANGELOG \
configure.ac \
Expand All @@ -25,7 +42,7 @@ EXTRA_DIST = acinclude.m4 \
README.new_in_51 \
Release_Notes \
run_report.py \
torque.setup \
torque.setup.in \
torque.spec \
buildutils/config.mk \
buildutils/determine.distro \
Expand Down Expand Up @@ -68,6 +85,7 @@ EXTRA_DIST = acinclude.m4 \

bin_SCRIPTS = pbs-config

CLEANFILES = torque.setup
DISTCLEANFILES = pbs-config current_hash
MOSTLYCLEANFILES = *.gcda *.gcno *.gcov

Expand Down
17 changes: 13 additions & 4 deletions buildutils/torque-build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

POSIXLY_CORRECT=1

Expand Down Expand Up @@ -29,7 +29,8 @@ usage() {
echo " /opt/coverity/default/bin/cov-build)"
echo " -C|--no-coverity Do not run coverity (default)"
echo ""
echo " -g|--enable-cgroups Enable cgroups"
echo " -g|--enable-cgroups Enable cgroups (default)"
echo " -G|--disable-cgroups Do not enable cgroups"
echo " -u|--unit-tests Run unit-tests (default)"
echo " -U|--no-unit-tests Do not run unit tests"
echo ""
Expand Down Expand Up @@ -134,6 +135,11 @@ do
cgroups=1
shift
;;
-G|--disable-cgroups)
cgroups=0
with_option="$with_option --without cgroups --without hwloc"
shift
;;
*)
echo "Invalid argument '${1}' specified." >&2
usage
Expand Down Expand Up @@ -225,6 +231,7 @@ then
cgroupsopts="--enable-cgroups"
configure_options="$configure_options --enable-cgroups --with-hwloc-path=$hwloc_path"
else
hwloc_path=none
cgroupsopts="--disable-cgroups"
fi

Expand Down Expand Up @@ -289,8 +296,10 @@ then
mkdir -p buildutils/rpmbuild/SOURCES
mkdir -p buildutils/rpmbuild/SPECS
mkdir -p buildutils/rpmbuild/RPMS/{i386,i686,noarch,x86_64}
# get the distro
distro=$(buildutils/determine.distro -r)

# ignore SP version suffix for SLES12
echo "${distro}" | fgrep -q sles12. && distro=sles12

if [ "${distro}" = el7 ]; then
cp buildutils/torque.adaptive.spec.el7 \
buildutils/rpmbuild/SPECS/torque.adaptive.spec
Expand Down
17 changes: 9 additions & 8 deletions buildutils/torque.adaptive.spec.el6
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@
unset CONFFLAGS \
CONFFLAGS_FILE=`mktemp %{_tmppath}/confflags.XXXX` \
./configure --help 2>&1 > ${CONFFLAGS_FILE} \
if grep -q -- '--with-hwloc-path' "${CONFFLAGS_FILE}" \
if test %{_hwlocpath} != none \
then \
CONFFLAGS='--with-hwloc-path=%{_hwlocpath}' \
if grep -q -- '--with-hwloc-path' "${CONFFLAGS_FILE}" \
then \
CONFFLAGS='--with-hwloc-path=%{_hwlocpath}' \
fi \
fi \
if grep -q -- '--enable-cgroups' "${CONFFLAGS_FILE}" \
then \
Expand Down Expand Up @@ -348,7 +351,7 @@
### Macro variables
%{!?torque_user:%global torque_user root}
%{!?torque_home:%global torque_home %{_var}/spool/%{project_name}}
%{!?sendmail_path:%global sendmail_path %{_sbindir}/sendmail}
%{!?sendmail_path:%global sendmail_path /usr/sbin/sendmail}

# This ensures that the debugging symbols are not stripped
%define __os_install_post /usr/lib/rpm/brp-compress
Expand Down Expand Up @@ -600,10 +603,10 @@ echo '$logevent 225 # bitmap of which events to log' > \
%{buildroot}%{torque_sysconfdir}/mom_priv/config

%{__mkdir_p} %{buildroot}/etc/profile.d
echo 'test -d ${_bindir} && export PATH=%{_bindir}:${PATH}' > %{buildroot}/etc/profile.d/torque.sh
echo 'test -d %{_bindir} && export PATH=%{_bindir}:${PATH}' > %{buildroot}/etc/profile.d/torque.sh
echo 'test `id -u` = 0 && test -d %{_sbindir} && export PATH=%{_sbindir}:${PATH}' >> %{buildroot}/etc/profile.d/torque.sh
echo 'test -d ${_bindir} && setenv PATH %{_bindir}:${PATH}' > %{buildroot}/etc/profile.d/torque.csh
echo 'test `id -u` = 0 && test-d ${_sbindir} && setenv PATH %{_sbindir}:${PATH}' >> %{buildroot}/etc/profile.d/torque.csh
echo 'test -d %{_bindir} && setenv PATH %{_bindir}:${PATH}' > %{buildroot}/etc/profile.d/torque.csh
echo 'test `id -u` = 0 && test -d %{_sbindir} && setenv PATH %{_sbindir}:${PATH}' >> %{buildroot}/etc/profile.d/torque.csh

# Moab requires libtorque.so.0, but works with libtorque.so.2, so fudge it
%{__ln_s} libtorque.so.2 %{buildroot}%{_libdir}/libtorque.so.0
Expand Down Expand Up @@ -674,8 +677,6 @@ TIMESTAMP="`date +%%Y.%%m.%%d_%%H.%%M.%%S`"
%{pre_add_back_up_file %{_bindir}/printjob %{client_sub}-${TIMESTAMP}}
%{pre_add_back_up_file %{_bindir}/printserverdb %{client_sub}-${TIMESTAMP}}
%{pre_add_back_up_file %{_bindir}/printtracking %{client_sub}-${TIMESTAMP}}
%{pre_add_back_up_file %{_bindir}/printtracking %{client_sub}-${TIMESTAMP}}
%{pre_add_back_up_file %{_bindir}/printtracking %{client_sub}-${TIMESTAMP}}
for file in %{_bindir}/q*
do
%{pre_add_back_up_file ${file} %{client_sub}-${TIMESTAMP}}
Expand Down
15 changes: 9 additions & 6 deletions buildutils/torque.adaptive.spec.el7
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@
unset CONFFLAGS \
CONFFLAGS_FILE=`mktemp %{_tmppath}/confflags.XXXX` \
./configure --help 2>&1 > ${CONFFLAGS_FILE} \
if grep -q -- '--with-hwloc-path' "${CONFFLAGS_FILE}" \
if test %{_hwlocpath} != none \
then \
CONFFLAGS='--with-hwloc-path=%{_hwlocpath}' \
if grep -q -- '--with-hwloc-path' "${CONFFLAGS_FILE}" \
then \
CONFFLAGS='--with-hwloc-path=%{_hwlocpath}' \
fi \
fi \
if grep -q -- '--enable-cgroups' "${CONFFLAGS_FILE}" \
then \
Expand Down Expand Up @@ -348,7 +351,7 @@
### Macro variables
%{!?torque_user:%global torque_user root}
%{!?torque_home:%global torque_home %{_var}/spool/%{project_name}}
%{!?sendmail_path:%global sendmail_path %{_sbindir}/sendmail}
%{!?sendmail_path:%global sendmail_path /usr/sbin/sendmail}

# This ensures that the debugging symbols are not stripped
%define __os_install_post /usr/lib/rpm/brp-compress
Expand Down Expand Up @@ -599,10 +602,10 @@ echo '$logevent 225 # bitmap of which events to log' > \
%{buildroot}%{torque_sysconfdir}/mom_priv/config

%{__mkdir_p} %{buildroot}/etc/profile.d
echo 'test -d ${_bindir} && export PATH=%{_bindir}:${PATH}' > %{buildroot}/etc/profile.d/torque.sh
echo 'test -d %{_bindir} && export PATH=%{_bindir}:${PATH}' > %{buildroot}/etc/profile.d/torque.sh
echo 'test `id -u` = 0 && test -d %{_sbindir} && export PATH=%{_sbindir}:${PATH}' >> %{buildroot}/etc/profile.d/torque.sh
echo 'test -d ${_bindir} && setenv PATH %{_bindir}:${PATH}' > %{buildroot}/etc/profile.d/torque.csh
echo 'test `id -u` = 0 && test-d ${_sbindir} && setenv PATH %{_sbindir}:${PATH}' >> %{buildroot}/etc/profile.d/torque.csh
echo 'test -d %{_bindir} && setenv PATH %{_bindir}:${PATH}' > %{buildroot}/etc/profile.d/torque.csh
echo 'test `id -u` = 0 && test -d %{_sbindir} && setenv PATH %{_sbindir}:${PATH}' >> %{buildroot}/etc/profile.d/torque.csh

# Moab requires libtorque.so.0, but works with libtorque.so.2, so fudge it
%{__ln_s} libtorque.so.2 %{buildroot}%{_libdir}/libtorque.so.0
Expand Down
15 changes: 9 additions & 6 deletions buildutils/torque.adaptive.spec.sles12
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@
unset CONFFLAGS \
CONFFLAGS_FILE=`mktemp %{_tmppath}/confflags.XXXX` \
./configure --help 2>&1 > ${CONFFLAGS_FILE} \
if grep -q -- '--with-hwloc-path' "${CONFFLAGS_FILE}" \
if test %{_hwlocpath} != none \
then \
CONFFLAGS='--with-hwloc-path=%{_hwlocpath}' \
if grep -q -- '--with-hwloc-path' "${CONFFLAGS_FILE}" \
then \
CONFFLAGS='--with-hwloc-path=%{_hwlocpath}' \
fi \
fi \
if grep -q -- '--enable-cgroups' "${CONFFLAGS_FILE}" \
then \
Expand Down Expand Up @@ -348,7 +351,7 @@
### Macro variables
%{!?torque_user:%global torque_user root}
%{!?torque_home:%global torque_home %{_var}/spool/%{project_name}}
%{!?sendmail_path:%global sendmail_path %{_sbindir}/sendmail}
%{!?sendmail_path:%global sendmail_path /usr/sbin/sendmail}

# This ensures that the debugging symbols are not stripped
%define __os_install_post /usr/lib/rpm/brp-compress
Expand Down Expand Up @@ -599,10 +602,10 @@ echo '$logevent 225 # bitmap of which events to log' > \
%{buildroot}%{torque_sysconfdir}/mom_priv/config

%{__mkdir_p} %{buildroot}/etc/profile.d
echo 'test -d ${_bindir} && export PATH=%{_bindir}:${PATH}' > %{buildroot}/etc/profile.d/torque.sh
echo 'test -d %{_bindir} && export PATH=%{_bindir}:${PATH}' > %{buildroot}/etc/profile.d/torque.sh
echo 'test `id -u` = 0 && test -d %{_sbindir} && export PATH=%{_sbindir}:${PATH}' >> %{buildroot}/etc/profile.d/torque.sh
echo 'test -d ${_bindir} && setenv PATH %{_bindir}:${PATH}' > %{buildroot}/etc/profile.d/torque.csh
echo 'test `id -u` = 0 && test-d ${_sbindir} && setenv PATH %{_sbindir}:${PATH}' >> %{buildroot}/etc/profile.d/torque.csh
echo 'test -d %{_bindir} && setenv PATH %{_bindir}:${PATH}' > %{buildroot}/etc/profile.d/torque.csh
echo 'test `id -u` = 0 && test -d %{_sbindir} && setenv PATH %{_sbindir}:${PATH}' >> %{buildroot}/etc/profile.d/torque.csh

# Moab requires libtorque.so.0, but works with libtorque.so.2, so fudge it
%{__ln_s} libtorque.so.2 %{buildroot}%{_libdir}/libtorque.so.0
Expand Down
10 changes: 10 additions & 0 deletions buildutils/torque.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
%endif

# If _initrddir is defined, which indicates that we are on a system with SYSV
# init.d services, define _initrddir to be /etc/init.d so that the source
# tarball will work across both Red Hat and SUSE distros.
%if %{?_initrddir:1}0
%define _initrddir /etc/init.d
%endif

# some binaries under /bin in el5|6 are only provided in /usr/bin in el7+.
# the el7 rpms actually provide the old location, but can't be used as a rpm requirement
# introducing the rootbin macro for this, as none seems to exists
Expand Down Expand Up @@ -387,6 +394,9 @@ test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
%doc INSTALL INSTALL.GNU CHANGELOG PBS_License.txt README.* Release_Notes src/pam/README.pam
%doc doc/READ_ME doc/doc_fonts doc/soelim.c doc/ers
%config(noreplace) %{torque_home}/pbs_environment
%config(noreplace) /etc/ld.so.conf.d/torque.conf
%config(noreplace) /etc/profile.d/torque.sh
%config(noreplace) /etc/profile.d/torque.csh
%config(noreplace) %{torque_home}/server_name
%if %{?_unitdir:1}0
%{_unitdir}/trqauthd.service
Expand Down
Loading