58 | | # WP4 |
59 | | # all users by default can use only DEFAULT partition (i.e. ALL minus WP4) |
60 | | SYSCFG PLIST=DEFAULT |
61 | | |
62 | | |
63 | | # increase priority of the plgrid-wp4-produkcja queue |
64 | | CLASSCFG[plgrid-wp4-produkcja] PRIORITY=90000 |
65 | | # jobs submitted to the plgrid-wp4 queue CAN use and CAN ONLY (note the &) use the wp4 partition |
66 | | CLASSCFG[plgrid-wp4] PLIST=wp4& |
67 | | |
68 | | # devote some machines to the Work Package 4 |
69 | | NODECFG[r512] PARTITION=wp4 |
70 | | NODECFG[r513] PARTITION=wp4 |
71 | | NODECFG[r514] PARTITION=wp4 |
72 | | NODECFG[r515] PARTITION=wp4 |
73 | | NODECFG[r516] PARTITION=wp4 |
74 | | NODECFG[r517] PARTITION=wp4 |
75 | | NODECFG[r518] PARTITION=wp4 |
76 | | NODECFG[r519] PARTITION=wp4 |
| 58 | # WP4 |
| 59 | # all users by default can use only DEFAULT partition (i.e. ALL minus WP4) |
| 60 | SYSCFG PLIST=DEFAULT |
| 61 | |
| 62 | |
| 63 | # increase priority of the plgrid-wp4-produkcja queue |
| 64 | CLASSCFG[plgrid-wp4-produkcja] PRIORITY=90000 |
| 65 | # jobs submitted to the plgrid-wp4 queue CAN use and CAN ONLY (note the &) use the wp4 partition |
| 66 | CLASSCFG[plgrid-wp4] PLIST=wp4& |
| 67 | |
| 68 | # devote some machines to the Work Package 4 |
| 69 | NODECFG[r512] PARTITION=wp4 |
| 70 | NODECFG[r513] PARTITION=wp4 |
| 71 | NODECFG[r514] PARTITION=wp4 |
| 72 | NODECFG[r515] PARTITION=wp4 |
| 73 | NODECFG[r516] PARTITION=wp4 |
| 74 | NODECFG[r517] PARTITION=wp4 |
| 75 | NODECFG[r518] PARTITION=wp4 |
| 76 | NODECFG[r519] PARTITION=wp4 |
84 | | # |
85 | | # Create and define queue plgrid-wp4 |
86 | | # |
87 | | create queue plgrid-wp4 |
88 | | set queue plgrid-wp4 queue_type = Execution |
89 | | set queue plgrid-wp4 resources_max.walltime = 72:00:00 |
90 | | set queue plgrid-wp4 resources_default.ncpus = 1 |
91 | | set queue plgrid-wp4 resources_default.walltime = 72:00:00 |
92 | | set queue plgrid-wp4 acl_group_enable = True |
93 | | set queue plgrid-wp4 acl_groups = plgrid-wp4 |
94 | | set queue plgrid-wp4 acl_group_sloppy = True |
95 | | set queue plgrid-wp4 enabled = True |
96 | | set queue plgrid-wp4 started = True |
97 | | |
98 | | # |
99 | | # Create and define queue plgrid-wp4-produkcja |
100 | | # |
101 | | create queue plgrid-wp4-produkcja |
102 | | set queue plgrid-wp4-produkcja queue_type = Execution |
103 | | set queue plgrid-wp4-produkcja resources_max.walltime = 72:00:00 |
104 | | set queue plgrid-wp4-produkcja resources_max.ncpus = 256 |
105 | | set queue plgrid-wp4-produkcja resources_default.ncpus = 1 |
106 | | set queue plgrid-wp4-produkcja resources_default.walltime = 72:00:00 |
107 | | set queue plgrid-wp4-produkcja acl_group_enable = True |
108 | | set queue plgrid-wp4-produkcja acl_groups = plgrid-wp4 |
109 | | set queue plgrid-wp4-produkcja acl_group_sloppy = True |
110 | | set queue plgrid-wp4-produkcja enabled = True |
111 | | set queue plgrid-wp4-produkcja started = True |
| 84 | # |
| 85 | # Create and define queue plgrid-wp4 |
| 86 | # |
| 87 | create queue plgrid-wp4 |
| 88 | set queue plgrid-wp4 queue_type = Execution |
| 89 | set queue plgrid-wp4 resources_max.walltime = 72:00:00 |
| 90 | set queue plgrid-wp4 resources_default.ncpus = 1 |
| 91 | set queue plgrid-wp4 resources_default.walltime = 72:00:00 |
| 92 | set queue plgrid-wp4 acl_group_enable = True |
| 93 | set queue plgrid-wp4 acl_groups = plgrid-wp4 |
| 94 | set queue plgrid-wp4 acl_group_sloppy = True |
| 95 | set queue plgrid-wp4 enabled = True |
| 96 | set queue plgrid-wp4 started = True |
| 97 | |
| 98 | # |
| 99 | # Create and define queue plgrid-wp4-produkcja |
| 100 | # |
| 101 | create queue plgrid-wp4-produkcja |
| 102 | set queue plgrid-wp4-produkcja queue_type = Execution |
| 103 | set queue plgrid-wp4-produkcja resources_max.walltime = 72:00:00 |
| 104 | set queue plgrid-wp4-produkcja resources_max.ncpus = 256 |
| 105 | set queue plgrid-wp4-produkcja resources_default.ncpus = 1 |
| 106 | set queue plgrid-wp4-produkcja resources_default.walltime = 72:00:00 |
| 107 | set queue plgrid-wp4-produkcja acl_group_enable = True |
| 108 | set queue plgrid-wp4-produkcja acl_groups = plgrid-wp4 |
| 109 | set queue plgrid-wp4-produkcja acl_group_sloppy = True |
| 110 | set queue plgrid-wp4-produkcja enabled = True |
| 111 | set queue plgrid-wp4-produkcja started = True |
168 | | # /opt/plgrid/qcg/smoa/share/smoa-comp/tools/smoa-comp-install.sh |
169 | | Welcome to smoa-comp installation script! |
170 | | |
171 | | This script will guide you through process of configuring proper environment |
172 | | for running the Smoa Computing service. You have to answer few questions regarding |
173 | | parameters of your database. If you are not sure just press Enter and use the |
174 | | default values. |
175 | | |
176 | | Use local PostgreSQL server? (y/n) [y]: y |
177 | | Database [smoa_comp]: |
178 | | User [smoa_comp]: |
179 | | Password [smoa_comp]: MojeTajneHaslo |
180 | | Create database? (y/n) [y]: y |
181 | | Create user? (y/n) [y]: y |
182 | | |
183 | | Checking for system user smoa_comp...OK |
184 | | Checking whether PostgreSQL server is installed...OK |
185 | | Checking whether PostgreSQL server is running...OK |
186 | | |
187 | | Performing installation |
188 | | * Creating user smoa_comp...OK |
189 | | * Creating database smoa_comp...OK |
190 | | * Creating database schema...OK |
191 | | * Checking for ODBC data source smoa_comp... |
192 | | * Installing ODBC data source...OK |
| 168 | /opt/plgrid/qcg/smoa/share/smoa-comp/tools/smoa-comp-install.sh |
| 169 | Welcome to smoa-comp installation script! |
| 170 | |
| 171 | This script will guide you through process of configuring proper environment |
| 172 | for running the Smoa Computing service. You have to answer few questions regarding |
| 173 | parameters of your database. If you are not sure just press Enter and use the |
| 174 | default values. |
| 175 | |
| 176 | Use local PostgreSQL server? (y/n) [y]: y |
| 177 | Database [smoa_comp]: |
| 178 | User [smoa_comp]: |
| 179 | Password [smoa_comp]: MojeTajneHaslo |
| 180 | Create database? (y/n) [y]: y |
| 181 | Create user? (y/n) [y]: y |
| 182 | |
| 183 | Checking for system user smoa_comp...OK |
| 184 | Checking whether PostgreSQL server is installed...OK |
| 185 | Checking whether PostgreSQL server is running...OK |
| 186 | |
| 187 | Performing installation |
| 188 | * Creating user smoa_comp...OK |
| 189 | * Creating database smoa_comp...OK |
| 190 | * Creating database schema...OK |
| 191 | * Checking for ODBC data source smoa_comp... |
| 192 | * Installing ODBC data source...OK |
216 | | wget https://dist.eugridpma.info/distribution/igtf/current/accredited/RPMS/ca_PolishGrid-1.38-1.noarch.rpm |
217 | | rpm -i ca_PolishGrid-1.38-1.noarch.rpm |
218 | | wget http://software.plgrid.pl/packages/general/ca_PLGRID-SimpleCA-1.0-2.noarch.rpm |
219 | | rpm -i ca_PLGRID-SimpleCA-1.0-2.noarch.rpm |
220 | | #install certificate revocation list fetching utility |
221 | | wget https://dist.eugridpma.info/distribution/util/fetch-crl/fetch-crl-2.8.5-1.noarch.rpm |
222 | | rpm -i fetch-crl-2.8.5-1.noarch.rpm |
223 | | #get fresh CRLs now |
224 | | /usr/sbin/fetch-crl |
225 | | #install cron job for it |
226 | | cat > /etc/cron.daily/fetch-crl.cron << EOF |
227 | | #!/bin/sh |
228 | | |
229 | | /usr/sbin/fetch-crl |
230 | | EOF |
231 | | chmod a+x /etc/cron.daily/fetch-crl.cron |
| 216 | wget https://dist.eugridpma.info/distribution/igtf/current/accredited/RPMS/ca_PolishGrid-1.38-1.noarch.rpm |
| 217 | rpm -i ca_PolishGrid-1.38-1.noarch.rpm |
| 218 | wget http://software.plgrid.pl/packages/general/ca_PLGRID-SimpleCA-1.0-2.noarch.rpm |
| 219 | rpm -i ca_PLGRID-SimpleCA-1.0-2.noarch.rpm |
| 220 | #install certificate revocation list fetching utility |
| 221 | wget https://dist.eugridpma.info/distribution/util/fetch-crl/fetch-crl-2.8.5-1.noarch.rpm |
| 222 | rpm -i fetch-crl-2.8.5-1.noarch.rpm |
| 223 | #get fresh CRLs now |
| 224 | /usr/sbin/fetch-crl |
| 225 | #install cron job for it |
| 226 | cat > /etc/cron.daily/fetch-crl.cron << EOF |
| 227 | #!/bin/sh |
| 228 | /usr/sbin/fetch-crl |
| 229 | EOF |
| 230 | chmod a+x /etc/cron.daily/fetch-crl.cron |
248 | | #install grid-mapfile generator from PL-Grid repository |
249 | | yum install plggridmapfilegenerator |
250 | | #configure gridmapfilegenerator - remember to change url property to your local ldap replica |
251 | | cat > /opt/plgrid/plggridmapfilegenerator/etc/plggridmapfilegenerator.conf << EOF |
252 | | [ldap] |
253 | | url=ldaps://10.4.1.39 |
254 | | #search base |
255 | | #base=dc=osrodek,dc=plgrid,dc=pl |
256 | | base=ou=People,dc=cyfronet,dc=plgrid,dc=pl |
257 | | #filter, specifies which users should be processed |
258 | | filter=plgridX509CertificateDN=* |
259 | | #timeout for execution of ldap queries |
260 | | timeout=10 |
| 247 | #install grid-mapfile generator from PL-Grid repository |
| 248 | yum install plggridmapfilegenerator |
| 249 | #configure gridmapfilegenerator - remember to change url property to your local ldap replica |
| 250 | cat > /opt/plgrid/plggridmapfilegenerator/etc/plggridmapfilegenerator.conf << EOF |
| 251 | [ldap] |
| 252 | url=ldaps://10.4.1.39 |
| 253 | #search base |
| 254 | #base=dc=osrodek,dc=plgrid,dc=pl |
| 255 | base=ou=People,dc=cyfronet,dc=plgrid,dc=pl |
| 256 | #filter, specifies which users should be processed |
| 257 | filter=plgridX509CertificateDN=* |
| 258 | #timeout for execution of ldap queries |
| 259 | timeout=10 |
262 | | [output] |
263 | | format=^plgridX509CertificateDN, uid |
264 | | EOF |
265 | | #add the gridmapfile generator as the cron.job |
266 | | cat > /etc/cron.hourly/gridmapfile.cron << EOF |
267 | | #!/bin/sh |
268 | | /opt/plgrid/plggridmapfilegenerator/bin/plggridmapfilegenerator.py -o /etc/grid-security/grid-mapfile |
269 | | EOF |
270 | | #set executable bit |
271 | | chmod a+x /etc/cron.hourly/gridmapfile.cron |
272 | | #try it! |
273 | | /etc/cron.hourly/gridmapfile.cron |
| 261 | [output] |
| 262 | format=^plgridX509CertificateDN, uid |
| 263 | EOF |
| 264 | #add the gridmapfile generator as the cron.job |
| 265 | cat > /etc/cron.hourly/gridmapfile.cron << EOF |
| 266 | #!/bin/sh |
| 267 | /opt/plgrid/plggridmapfilegenerator/bin/plggridmapfilegenerator.py -o /etc/grid-security/grid-mapfile |
| 268 | EOF |
| 269 | #set executable bit |
| 270 | chmod a+x /etc/cron.hourly/gridmapfile.cron |
| 271 | #try it! |
| 272 | /etc/cron.hourly/gridmapfile.cron |
292 | | cp /etc/grid-security/hostcert.pem /opt/plgrid/qcg/smoa/etc/certs/smoacert.pem |
293 | | cp /etc/grid-security/hostkey.pem /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem |
294 | | chown smoa_comp /opt/plgrid/qcg/smoa/etc/certs/smoacert.pem |
295 | | chown smoa_comp /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem |
296 | | chmod 0600 /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem |
| 291 | cp /etc/grid-security/hostcert.pem /opt/plgrid/qcg/smoa/etc/certs/smoacert.pem |
| 292 | cp /etc/grid-security/hostkey.pem /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem |
| 293 | chown smoa_comp /opt/plgrid/qcg/smoa/etc/certs/smoacert.pem |
| 294 | chown smoa_comp /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem |
| 295 | chmod 0600 /opt/plgrid/qcg/smoa/etc/certs/smoakey.pem |
551 | | <?xml version="1.0" encoding="UTF-8"?> |
552 | | <sm:SMOACore |
553 | | xmlns:sm="http://schemas.smoa-project.com/core/2009/01/config" |
554 | | xmlns="http://schemas.smoa-project.com/comp/2009/01/config" |
555 | | xmlns:smc="http://schemas.smoa-project.com/comp/2009/01/config" |
556 | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
557 | | |
558 | | <Configuration> |
559 | | <sm:ModuleManager> |
560 | | <sm:Directory>/opt/QCG/smoa/lib/smoa-core/modules/</sm:Directory> |
561 | | <sm:Directory>/opt/QCG/smoa//lib/smoa-comp/modules/</sm:Directory> |
562 | | </sm:ModuleManager> |
563 | | |
564 | | <sm:Client xsi:type="smoa-comp" description="SMOA Computing client"> |
565 | | <sm:Transport> |
566 | | <sm:Module xsi:type="sm:ecm_gsoap.client"> |
567 | | <sm:ServiceURL>httpg://frontend.example.com:19000/</sm:ServiceURL> |
568 | | <sm:Authentication> |
569 | | <sm:Module xsi:type="sm:atc_transport_gsi.client"/> |
570 | | </sm:Authentication> |
571 | | <sm:Module xsi:type="smc:smoa-comp-client"/> |
572 | | </sm:Module> |
573 | | </sm:Transport> |
574 | | </sm:Client> |
575 | | </Configuration> |
576 | | </sm:SMOACore> |
| 550 | <?xml version="1.0" encoding="UTF-8"?> |
| 551 | <sm:SMOACore |
| 552 | xmlns:sm="http://schemas.smoa-project.com/core/2009/01/config" |
| 553 | xmlns="http://schemas.smoa-project.com/comp/2009/01/config" |
| 554 | xmlns:smc="http://schemas.smoa-project.com/comp/2009/01/config" |
| 555 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 556 | |
| 557 | <Configuration> |
| 558 | <sm:ModuleManager> |
| 559 | <sm:Directory>/opt/QCG/smoa/lib/smoa-core/modules/</sm:Directory> |
| 560 | <sm:Directory>/opt/QCG/smoa//lib/smoa-comp/modules/</sm:Directory> |
| 561 | </sm:ModuleManager> |
| 562 | |
| 563 | <sm:Client xsi:type="smoa-comp" description="SMOA Computing client"> |
| 564 | <sm:Transport> |
| 565 | <sm:Module xsi:type="sm:ecm_gsoap.client"> |
| 566 | <sm:ServiceURL>httpg://frontend.example.com:19000/</sm:ServiceURL> |
| 567 | <sm:Authentication> |
| 568 | <sm:Module xsi:type="sm:atc_transport_gsi.client"/> |
| 569 | </sm:Authentication> |
| 570 | <sm:Module xsi:type="smc:smoa-comp-client"/> |
| 571 | </sm:Module> |
| 572 | </sm:Transport> |
| 573 | </sm:Client> |
| 574 | </Configuration> |
| 575 | </sm:SMOACore> |
702 | | $ psql -h localhost smoa_comp smoa_comp |
703 | | Password for user smoa_comp: |
704 | | Welcome to psql 8.1.23, the PostgreSQL interactive terminal. |
705 | | |
706 | | Type: \copyright for distribution terms |
707 | | \h for help with SQL commands |
708 | | \? for help with psql commands |
709 | | \g or terminate with semicolon to execute query |
710 | | \q to quit |
711 | | |
712 | | smoa_comp=> \o jobs.acc |
713 | | smoa_comp=> SELECT * FROM jobs_acc where end_time < date '2010-01-10'; |
714 | | smoa_comp=> \o reservations.acc |
715 | | smoa_comp=> SELECT * FROM reservations_acc where end_time < date '2010-01-10'; |
716 | | smoa_comp=> \o |
717 | | smoa_comp=> DELETE FROM jobs_acc where end_time < date '2010-01-10'; |
718 | | smoa_comp=> DELETE FROM reservation_acc where end_time < date '2010-01-10'; |
719 | | }}} |
720 | | }}} |
| 701 | psql -h localhost smoa_comp smoa_comp |
| 702 | Password for user smoa_comp: |
| 703 | Welcome to psql 8.1.23, the PostgreSQL interactive terminal. |
| 704 | |
| 705 | Type: \copyright for distribution terms |
| 706 | \h for help with SQL commands |
| 707 | \? for help with psql commands |
| 708 | \g or terminate with semicolon to execute query |
| 709 | \q to quit |
| 710 | |
| 711 | smoa_comp=> \o jobs.acc |
| 712 | smoa_comp=> SELECT * FROM jobs_acc where end_time < date '2010-01-10'; |
| 713 | smoa_comp=> \o reservations.acc |
| 714 | smoa_comp=> SELECT * FROM reservations_acc where end_time < date '2010-01-10'; |
| 715 | smoa_comp=> \o |
| 716 | smoa_comp=> DELETE FROM jobs_acc where end_time < date '2010-01-10'; |
| 717 | smoa_comp=> DELETE FROM reservation_acc where end_time < date '2010-01-10'; |
| 718 | }}} |
| 719 | }}} |