Commit Graph

13 Commits (master)

Author SHA1 Message Date
Lubomír Sedlář c8118527ea
Drop pungi-orchestrator code
This was never actually used.

Signed-off-by: Lubomír Sedlář <>

(cherry picked from commit b7adbf8a91 (centos_master))
2023-11-10 16:54:40 +02:00
Haibo Lin b217470464 Format code
Code didn't get well formatted when jenkins unusable.

Signed-off-by: Haibo Lin <>
2021-03-02 18:31:45 +08:00
Haibo Lin 65aa8fde2f Fix other flake8 complaints
E231 missing whitespace after ','
E265 block comment should start with '# '
E266 too many leading '#' for block comment
E302 expected 2 blank lines, found 1
E501 line too long (115 > 88 characters)
E713 test for membership should be 'not in'
E722 do not use bare 'except'
F812 list comprehension redefines 'g' from line 1499
F821 undefined name 'cmp'
F841 local variable 'ex' is assigned to but never used

Signed-off-by: Haibo Lin <>
2020-02-07 16:14:09 +08:00
Haibo Lin 41a629969c Format code base with black

Signed-off-by: Haibo Lin <>
2020-02-05 17:35:47 +08:00
Lubomír Sedlář 31ef7736aa orchestrator: Monitor status of parts
When a phase is started or stopped, add a line to the to output. This
should help users keep track of what is happening in case the part takes
a long time to run.

Signed-off-by: Lubomír Sedlář <>
2019-03-25 14:20:04 +01:00
Lubomír Sedlář 45cdbb2faf orchestrator: Send messages about the main compose
Only start/finish messages will be sent if a handler is configured.

Signed-off-by: Lubomír Sedlář <>
2019-03-21 09:29:54 +01:00
Lubomír Sedlář 088ea7fe37 orchestrator: Support generic pre- and post- scripts
Run arbitrary commands before and after the compose.

The example config is updated to generate latest symlink with a
post-compose script. The pre compose script runs always, post compose
runs only if the compose is not doomed.

Signed-off-by: Lubomír Sedlář <>
2019-03-21 09:29:54 +01:00
Lubomír Sedlář 86fb93d603 orchestrator: Support getting kerberos ticket
If the configuration sets keytab path and principal, run kinit with
custom cache file, and delete the file at the end of the run.

Signed-off-by: Lubomír Sedlář <>
2019-03-21 09:29:54 +01:00
Lubomír Sedlář afd2d3ae66 orchestrator: Log exception to log file
This data can be useful for debugging.

Signed-off-by: Lubomír Sedlář <>
2019-02-27 09:56:29 +01:00
Lubomír Sedlář 59c9c150ef orchestrator: Use prefix for config substitutions
This will avoid possible conflicts. The names for parts are chosen by
users, and if we decide to add more options in the future, this can
become handy.

Signed-off-by: Lubomír Sedlář <>
2019-02-21 09:42:14 +01:00
Lubomír Sedlář f92c71683f orchestrator: Add missing function arguments
Signed-off-by: Lubomír Sedlář <>
2019-01-21 09:13:03 +01:00
Lubomír Sedlář 7320bf4943 orchestrator: Compatibility with Python 2.6
This is why we can't have nice things.

Signed-off-by: Lubomír Sedlář <>
2019-01-14 10:57:05 +01:00
Lubomír Sedlář 90c60f8e64 Add script to orchestrate multiple composes
It may make sense to break a big compose into smaller chunks that can be
done independently. This script allows describing the smaller parts,
runs them with correct dependencies and arranges the result to look like
a single big compose.

All parts use the same koji event, that is either obtained from Koji, or
from command line argument.

Signed-off-by: Lubomír Sedlář <>
2019-01-08 09:40:36 +01:00