Project

General

Profile

Feature #3101

Dynamically creating the secondary schedd config file and dirs

Added by Igor Sfiligoi about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Igor Sfiligoi
Category:
-
Target version:
Start date:
11/01/2012
Due date:
% Done:

0%

Estimated time:
Stakeholders:
Duration:

Description

We currently have no good way to add or remove secondary schedds, after the initial install.

This ticket proposes a method for the config.d mode, where the assumption is that (with very few exceptions) the partial config files are never modified by hand.

The proposal is to create a tool that creates a dedicated config file, given the list of secondary collector names.
The same tool would also create directory trees needed for these schedds.

Any time the admin wants to change the list of secondary schedds, he just runs this tool and replaces to old config file.
Unused directory trees will not be touched, and existing ones will be reused.


Related issues

Related to GlideinWMS - Bug #3103: Overly complicated secondary schedd configNew11/01/2012

History

#1 Updated by Igor Sfiligoi about 8 years ago

The proposed name for the tool is

glidecondor_createSecSched

in the install directory.

The proposed config file is

11_gwms_secondary_schedds.config

(used a number above 10, to allow static config files to fit in the lower range)

#2 Updated by Igor Sfiligoi about 8 years ago

Created the tool in
branch_v2plus_igor_3101

Could use a bit more polishing, but it is already usable.

PS: I used the "short config"... see #3103.

#3 Updated by Igor Sfiligoi about 8 years ago

  • Status changed from New to Feedback
  • Assignee changed from Igor Sfiligoi to Burt Holzman
  • Target version set to v2_7_x

I am satisfied with the tool.

Burt: Can you have a look, or find someone who can?
I would like to merge this branch to v2plus.

#4 Updated by John Weigand about 8 years ago

Is there doc somewhere?
The usage does not tell me anything.
I did this as a first attempt...

[weigand@cms-xen21$ glidecondor_createSecSched --help
Schedd --help configured and initialized

Where did it create this --help config?

John Weigand

#5 Updated by Igor Sfiligoi about 8 years ago

OK, I guess I have to account for peoplw that like the '--help' option ;)
As it is, it does not recognize it, and thus assumes it is a schedd name.

Here is what you get if you run it without arguments, or with -h:

$ ./glidecondor_createSecSched
Usage:
 glidecondor_createSecSched [-commonlog] [-nocreatedirs] <scheddlist>
Example:
  glidecondor_createSecSched schedd_glideins1,schedd_glideins2

Clear enough?

PS: Yes, we should put this in the manual (soon).

#6 Updated by John Weigand about 8 years ago

No. My point was that the usage tells you nothing. It should tell you what all the args mean and what it is going to do, like what output it is creating and where. It is the first line of documentation and most times the only one an end user is going to look at. Finding it in our manual will be the last place anyone looks. My view.
John Weigand

#7 Updated by Igor Sfiligoi about 8 years ago

How do you propose to proceed?

I am not sure I would be comfortable to put all that you are requesting in the "help" message.
But make your proposal, and I'll se what I can do.

Thanks,
Igor

#8 Updated by John Weigand almost 8 years ago

Igor,

Are you asking me to write it for you?
I gave a general description of what it should contain.
Maybe just add what you feel comfortable with. I am assuming
you will creating doc for it as well.

John Wegiand

#9 Updated by Burt Holzman almost 8 years ago

  • Status changed from Feedback to Assigned
  • Assignee changed from Burt Holzman to Igor Sfiligoi

Just a friendly reminder: we're waiting on more documentation before this gets merged.

#10 Updated by Igor Sfiligoi almost 8 years ago

  • Status changed from Assigned to Feedback
  • Assignee changed from Igor Sfiligoi to John Weigand

Finished documenting.

Please review.

#11 Updated by John Weigand almost 8 years ago

Corrected a typo.
branch_v2plus_3101. hash: 0d6bb6d

Looks fine.

John Weigand

#12 Updated by John Weigand almost 8 years ago

  • Assignee changed from John Weigand to Igor Sfiligoi

Igor,

Forgot to reassign it back to you.

John Weigand

#13 Updated by Igor Sfiligoi almost 8 years ago

  • Status changed from Feedback to Closed

Merged into v2plus and master.

#14 Updated by Parag Mhashilkar almost 8 years ago

  • Target version changed from v2_7_x to v2_7

#15 Updated by John Weigand almost 8 years ago

  • Status changed from Closed to Feedback

Igor,

When you merged this into the master, I believe you forgot
to merge the doc
http://home.fnal.gov/~weigand/tmp/doc.master/components/tools.html
http://home.fnal.gov/~weigand/tmp/doc.v2plus/components/tools.html

John Weigand

#16 Updated by Igor Sfiligoi almost 8 years ago

Argh... forgot to git add.

Should be in master now.
(e76c46f)

#17 Updated by John Weigand almost 8 years ago

  • Status changed from Feedback to Resolved

Looks good.
Marking as resolved.
John Weigand

#18 Updated by Parag Mhashilkar over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF