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

MON-157061 Centreon next 25.01 (Jira release #20343#) #2002

Open
wants to merge 508 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
508 commits
Select commit Hold shift + click to select a range
6b4b06b
Merethis -> Centreon
julienmathis Feb 12, 2015
2eea6d5
Fix centreontrapd with unknown trap file
Feb 19, 2015
77f3171
Fix #6183
Mar 5, 2015
6b0a332
Fix ack_time in events
Apr 21, 2015
8dc6627
Fix #6391
May 12, 2015
48da8d0
+ Manage sticky ack in eventreportbuilder
Jul 3, 2015
24b307d
+ centreontrapd: add @DAYS@ macro
Jul 28, 2015
7a9a5e8
+ centreontrapd: add a function to forward trap
Jul 29, 2015
b26595a
+ centreontrapd: add service notes in centreon macros (@SERVICENOTES@)
Aug 4, 2015
e2360ca
Merge pull request #3754 from garnier-quentin/2.7.x
Aug 4, 2015
44b66f6
+ add grouping in centreontrapd
Sep 11, 2015
e7c3b36
Merge pull request #3778 from garnier-quentin/2.7.x
Sep 11, 2015
dab68a4
refs #3814
julienmathis Oct 7, 2015
1b33f10
fix #3814
julienmathis Oct 7, 2015
6242211
refs #3787 remove ndo support
julienmathis Oct 13, 2015
93f86e2
Merge pull request #3 from centreon/2.6.x
Oct 14, 2015
f69c254
Merge pull request #3828 from s-duret/2.6.x
Oct 14, 2015
3d3b527
+ Fix #3838
Oct 19, 2015
b897080
Merge pull request #3839 from garnier-quentin/2.7.x
Oct 19, 2015
7adb293
Fix issue #CE2-87 Add purge for downtimes and comments
Oct 20, 2015
13d851b
+ Add purge for index_data table
Oct 22, 2015
1802812
#3862 fix centreon-engine logs import
kduret Oct 27, 2015
552928c
Merge branch '2.7.x' of https://github.com/centreon/centreon into 2.7.x
kduret Oct 27, 2015
b9fefd2
#3863 Declare ssh option
Oct 27, 2015
b6d331e
CE2-111 merge 2.6.x to 2.7.x
kduret Nov 2, 2015
9f0c392
Apply patch #3834 - Add negate effect on advanced matching rule on Traps
leoncx Nov 9, 2015
94c0b07
+ Should be better (and simple)
Nov 10, 2015
507a628
fix broker statistics display
kduret Nov 17, 2015
d579707
fix variable declaration in centcore
kduret Nov 17, 2015
f5d4060
fix broker statistics synchronization
kduret Nov 17, 2015
5035e61
correct typo
lpinsivy Nov 20, 2015
da06e2d
Correct typo
lpinsivy Dec 9, 2015
d22be53
Fixed #3926 - centreontrapd process on poller will check its own conf…
lpinsivy Dec 9, 2015
c9ac0f7
split commands before sending it
julienmathis Jan 15, 2016
4b77c5d
split a little problem with my previous commit.
julienmathis Jan 15, 2016
63b6884
split a little problem with my previous commit.
julienmathis Jan 15, 2016
3ac2f0f
#4131 Fix purge on index_data to avoid graph deletion
kduret Jan 21, 2016
ee8a301
fox centcore : do not send twice commands to pollers
julienmathis Feb 8, 2016
f55b814
SNMP traps, patch to add negate effect on Advanced matching rule #3834
mtoufik Feb 10, 2016
ba9685f
Use db_port in centreon scripts
sathieu Apr 6, 2016
8efc6c8
refs #4401
julienmathis May 12, 2016
12a8209
fix centcore : typo and variable problem
julienmathis May 31, 2016
ead9525
remove ndo support
julienmathis Jun 7, 2016
bcb7c9d
remove ndo management in reporting
julienmathis Jun 8, 2016
42910a4
fix problem with comment expiration query.
julienmathis Jun 13, 2016
9ecc64d
Do not check debug on poller
Jun 15, 2016
e94b66a
Do not check debug on poller
Jun 15, 2016
66e95c5
Fix problem with comments purge system
julienmathis Jul 12, 2016
31419ea
fix #4548 - Centreontrapd - issue if number of downtimes is greater t…
lpinsivy Jul 25, 2016
e7ca6e8
rename directory filesGeneration/nagiosCFG by filesGeneration/engine …
julienmathis Jul 26, 2016
8cf8308
Merge branch '2.8.x' of https://github.com/centreon/centreon into 2.8.x
julienmathis Jul 26, 2016
13e5eb0
add cron for centstorage purge
kduret Aug 4, 2016
0c2a09c
Merge pull request #3 from centreon/2.8.x
Tpo76 Aug 30, 2016
71438a3
ref #4646 - Beta 2.8 Impossible to see Centreon Broker statistics
lpinsivy Sep 6, 2016
d391a2f
Merge branch 'master' into 2.9.x
Nov 29, 2016
78e938f
#4826 : fix reload of centreon db
Dec 15, 2016
0ce36f7
#4826 : fix reload of centreon db
Dec 15, 2016
ae55fe8
Reporting 100% Undetermined On Fresh install
julienmathis Dec 22, 2016
c0bf01f
remove debug
julienmathis Jan 13, 2017
82b3b96
Reporting 100% Undetermined On Fresh install
julienmathis Dec 22, 2016
71bbf0e
remove debug
julienmathis Jan 13, 2017
ce58a1e
centreontrapd
loiclau Jan 31, 2017
ea02236
centreontrapd
loiclau Jan 31, 2017
eca595a
remove broker failover and temporary configuration
kduret Feb 21, 2017
e56082e
Use /service/ to restart Centreon Engine in centcore.
Feb 27, 2017
28dd42b
Fix: Error variable name
Mar 6, 2017
b377190
* Add support for several filetype when pushing coonfig to a poller
Mar 9, 2017
a398b30
fix merge conflicts
kduret Feb 21, 2017
96b1c4a
Fix: Error variable name
Mar 6, 2017
4055cc1
try to merge between 2.8.x and master
kduret Mar 23, 2017
039c34e
finish merge with 2.8.x
kduret Mar 24, 2017
d7a567b
Merge pull request #7 from centreon/master
Apr 7, 2017
bb07b9a
fix(traps): fix variable name in centreontrapd.pm
Oct 12, 2017
8a7396e
feat(remote): add a new command in centcore service for sending of ex…
vhr Aug 23, 2018
08b4eba
feat(remote): add a new command in centcore service for sending of ex…
vhr Aug 23, 2018
deb9709
feat(remote): add a new command in centcore service for sending of ex…
vhr Aug 23, 2018
6d7ff00
merge react
victorvassilev Aug 23, 2018
91fe2c5
feat(remote): add a new command in centcore service for sending of ex…
vhr Aug 23, 2018
ffe2161
feat(remote): changed a remote path of exported data
vhr Sep 5, 2018
faecf1d
merge master
victorvassilev Sep 5, 2018
46697a7
Merge branch 'poller-remote-wizard' into react-remote-merged
vhr Sep 10, 2018
9148ac9
fix(remote): centcore sendexport command
vhr Sep 20, 2018
798710b
fix(remote): send export scp don't create directories on remote
vhr Sep 20, 2018
0375e53
Merge pull request #6630 from centreon/react-menu-merged
kduret Sep 20, 2018
0a8cc15
Extend centreon clapi (#6667)
victorvassilev Sep 27, 2018
50afad7
fix(remote): in cencore:sendExport replace scp command with rsync (#6…
vhr Sep 28, 2018
9478c56
Multistepform finalize (#6721)
v-radev Oct 3, 2018
2b04fbb
fix(centreontrapd): use centcore directory instead of command file (#…
lpinsivy Oct 16, 2018
1d13a3d
enh(centcore): Use Remote Server to send conf and external commands (…
lpinsivy Oct 16, 2018
815092c
Updates to remote (#6824)
vhr Oct 16, 2018
0a99f39
fix(centcore): fix missing var declaration
lpinsivy Oct 17, 2018
e83f20d
fix(remote-server): remove md5__ in encoded password before to call api
lpinsivy Oct 18, 2018
70f690e
Fix regexp for trap argument ending by backslash (#6699)
s-duret Oct 18, 2018
36cd746
fix(broker): fix wizard broker configuration with one peer retention …
kduret Jan 14, 2019
fca115b
fix(sec): allow to set illegal characters for centcore (#7206)
kduret Mar 4, 2019
7611ec6
enh(centcore): Enhance centcore log
garnier-quentin Mar 1, 2019
9ab7e5c
enh(core): enhance logger lib to handle utf8
garnier-quentin Apr 10, 2019
b0780c3
refactor(monitoring): code refactor on logAnalyserBroker.pm
garnier-quentin Apr 11, 2019
ec59a90
fix(core): fix getinfos information
garnier-quentin Apr 10, 2019
a948e70
feat(core): centreon_health script to gather various data
Dec 29, 2017
e98f33c
fix(centcore): do not overwrite commands (#7650)
lpinsivy Jul 1, 2019
d2774e8
enh(snmp-traps): add centreontrapd @HOSTID@ macro (#7592)
garnier-quentin Jul 4, 2019
38bf8d9
Mon 3509 add trap regexp match 2 (#7679)
lpinsivy Jul 8, 2019
8aa7514
enh(centcore): use correct ssh port (#7677)
lpinsivy Jul 17, 2019
e7c7166
enh(remote-server): allow to use direct ssh connection to poller from…
lpinsivy Aug 20, 2019
436a9ea
feat(configuration): move filesGeneration directory to /var/cache/cen…
kduret Aug 21, 2019
245db87
refacto(remote-server): optimize execution time of export/import (#7749)
cgagnaire Sep 19, 2019
803512e
feat(engine/broker): allow to set action command for engine/broker (#…
kduret Sep 23, 2019
a7e5e67
enh(remote-server): poller attached to multiple remote servers (#7849)
lpinsivy Oct 2, 2019
710359e
Correct typo in #7849 (#7946)
UrBnW Oct 11, 2019
3d926e9
fix(rrd): fix rrd command line with v1.5 (#7804)
nelbren Nov 15, 2019
1e5e610
fix(trap): fix traps regression with same oid (#8118)
garnier-quentin Nov 19, 2019
76798f7
chore: remove outdated Perl scripts.
Dec 3, 2019
036196a
enh(centcore): use centcore to reload centreon broker (#8062)
kduret Dec 6, 2019
3ff4a67
enh(core): replace centcore with gorgoned (#8414)
sc979 Mar 18, 2020
8f4d501
feat(install): remove nagiosPerfTrace (#8514)
cgagnaire Apr 2, 2020
dc854ea
Fix #8237: centreontrapd messages from error to info (#8592)
garnier-quentin Apr 30, 2020
bbe886f
fix(trap): remove hardcoded default value when options configured (#8…
pkriko Jun 9, 2020
eca443f
fix(reporting): fix host availability related to broker changes (#8776)
kduret Jun 9, 2020
ea5750f
fix(reporting): fix reporting issues related to downtime cancellation…
kduret Jun 9, 2020
7616427
fix(reporting): fix reporting calculation when downtime actual_end_ti…
kduret Jun 26, 2020
03ff7c3
fix(reporting): manage reporting calcuation on host/service rename (#…
kduret Jul 1, 2020
9b0a9b0
fix(security): check mib name in comment (#8850)
lpinsivy Jul 28, 2020
b8a6b40
fix(snmptraps): Unable to import SNMP traps MIBs, fix #8816 (#8849)
lpinsivy Aug 17, 2020
113adf9
fix(reporting): fix reporting of services by hostgroup (#9141)
kduret Oct 28, 2020
f100e3a
fix(perl/libs): database query bad looping parameters (#9059)
garnier-quentin Oct 29, 2020
53f6383
MON-6280: Add a special variable for trap OID (#9182)
garnier-quentin Nov 24, 2020
f7a301a
fix(sql): fix compatibility with MySQL 8 (#10034)
kduret Jul 29, 2021
a3f765b
fix(export): fix conf export fail because of centreontrapd (#9973)
tanguyvda Nov 26, 2021
206e753
fetch and rebase (#235)
sc979 Dec 28, 2021
8f819a6
Merge branch 'centreon:develop' into develop
sc979 Dec 28, 2021
73a86bb
fix(perlcore): test conf.pm file present (#10913)
garnier-quentin Apr 4, 2022
a432950
enh(conf) handle new centengine logger in configuration (#11013)
a-launois May 6, 2022
ea533bd
fix(centreontrapd): check if conf file is not empty before to load it…
lpinsivy Sep 19, 2022
e49f566
chore(git): synchronize centreon web develop branch (#43)
kduret Oct 4, 2022
1ffbe04
merge centreon-dsm
tuntoja Nov 8, 2022
665bd1a
fix(centreontrapd): carriage return entreprise args
garnier-quentin Jun 19, 2023
ec61bf6
Centreon 23.10 (Jira release #19426#)
paloth Oct 30, 2023
8e65ca8
MON-22657 Sync Centreon OSS next 23.10 (#2482)
pkippes Oct 31, 2023
aaf0f61
Sync dev-23.10.x vers develop oss (#2487)
pkippes Oct 31, 2023
8b80452
enh(packaging): package centreon web using nfpm (#2673)
kduret Dec 14, 2023
ecfe7be
Centreon 24.04 (Jira release #19608#)
paloth Jan 25, 2024
5bad36b
Empty-Commit
tuntoja Jan 26, 2024
97a58d6
MON-34022 Sync Centreon OSS next 24.04 (Jira release #34022#) (#3181)
pkippes Jan 26, 2024
a939107
Centreon 24.04 (Jira release #19735#)
paloth Apr 9, 2024
91427f3
MON-37060 Sync Centreon OSS next 24.04 (Jira release #37060#) (#3826)
pkippes Apr 10, 2024
69c16cb
feat(ci): install centreon web on container startup and remove slimto…
kduret Oct 4, 2024
7f0d739
silent mode for installer and modifier (#1737)
jean-christophe81 Oct 8, 2024
5300d2f
enh(engine/gRPC): GetService function return all about service (#1721)
sechkem Oct 9, 2024
2879b57
enh(Engine/robottest): Add inheritance test for host (#1735)
sechkem Oct 9, 2024
3a2e05d
enh(broker): the database outputs can use a vault to get their passwords
bouda1 Oct 9, 2024
c628651
fix(packaging): always set release number provided by action inputs (…
kduret Oct 10, 2024
ab623bb
chore(deps): absorb 24.10 dependabot GitHub Actions updates (#1745)
mushroomempires Oct 10, 2024
39c95aa
build agent and then build installer (#1756)
jean-christophe81 Oct 14, 2024
4281524
feat(gorgone): when pushing engine conf, push centreon_vmware daemon …
Evan-Adam Oct 14, 2024
4633257
Mon-148838 Add a robot test to check the service (#1750)
sechkem Oct 15, 2024
95d27bb
Mon 144663 gorgone pull tests fail some time on the ci (#1753)
Evan-Adam Oct 15, 2024
f4ec90c
enh(ci): update push jobs in workflows (#1755)
tuntoja Oct 17, 2024
b340b03
retention.dat is not referenced in centreon-collect.yaml, so it's not…
jean-christophe81 Oct 17, 2024
e7a68cb
enh(broker): AdaptiveHostStatus and AdaptiveServiceStatus added
bouda1 Oct 17, 2024
9cdcbfa
fix(engine/test): Test inheritance Contact (#1764)
sechkem Oct 17, 2024
7b6aa44
fix(ci): update push jobs in workflows (#1771)
tuntoja Oct 18, 2024
9abb011
implement linux check_cpu (#1763)
jean-christophe81 Oct 18, 2024
ca8be28
cleanup(clib): directory_entry/file_entry are removed. And some depre…
bouda1 Oct 18, 2024
ae93ddc
enh(engine/grpc): api evolution getservice return anomaly properties …
sechkem Oct 18, 2024
fdd54d5
enh(ci): refactor get-version workflow (#1777)
kduret Oct 22, 2024
8eeb10e
fix(ci): fix check of release_type input (#1780)
kduret Oct 23, 2024
623c3b5
enh(ci): update docker secrets for push and pull (#1782)
tuntoja Oct 25, 2024
aa4a605
enh(engine/gRPC): the GetHostgroup function to return all about the H…
sechkem Oct 28, 2024
6bffffc
fix(gorgone): move centreon-common dependency (#1792)
kduret Oct 30, 2024
77acac0
fix(ci): detect cloud environment when pushing on master (#1795)
kduret Oct 30, 2024
ab5093b
fix(engine/test): Test inheritance service group (#1793)
sechkem Nov 1, 2024
0c73860
fix(engine/test): Test inheritance contact group (#1794)
sechkem Nov 4, 2024
a864406
agent scheduler modified to spread checks over period and fix a crash…
jean-christophe81 Nov 5, 2024
4095134
cleanup(code): Compilation warnings unused parameters, fallthrough an…
sechkem Nov 5, 2024
d91e06b
ci(perl-libs): move common libs in another package to be used by gorg…
Evan-Adam Oct 23, 2024
f7a86df
feat(perl-logger): merge and enhance logger library.
Evan-Adam Oct 23, 2024
4528304
test(perl-logger): Add unit tests and run them on the CI
Evan-Adam Oct 23, 2024
578d889
tests(centreonvault): remove pid on verbose and add more tests.
Evan-Adam Nov 4, 2024
47f38cc
feat(perl-libs): add new vault library and it's tests
Evan-Adam Oct 23, 2024
04a5127
ci(perl): move centreon-perl-libs to centreon-collect repository
Evan-Adam Nov 5, 2024
59a4a2b
fix(ci): ci compilation fixed with legacy_engine
bouda1 Nov 5, 2024
90d7ec4
agent scheduler modified to spread checks over period and fix a crash…
jean-christophe81 Nov 6, 2024
1476421
chore(release): bump collect and gorgone to 24.11 (#1833)
tuntoja Nov 6, 2024
e543ca2
native cpu check code moved to a template (#1779)
jean-christophe81 Nov 7, 2024
4a03878
MON-149537 windows check cpu (#1778)
jean-christophe81 Nov 8, 2024
828d374
fix(engine/broker): segfault relations child/parent host (#1846)
sechkem Nov 8, 2024
6d14c50
enh(ci): trigger scheduled builds on maintenance branches weekly
mushroomempires Nov 12, 2024
c45d1f4
Revert "enh(ci): trigger scheduled builds on maintenance branches wee…
mushroomempires Nov 12, 2024
872b871
implement uptime check (#1849)
jean-christophe81 Nov 12, 2024
8a848c6
enh(ci): trigger scheduled builds on maintenance branches weekly (#1856)
mushroomempires Nov 12, 2024
d58be5a
feat(engine/grpc) : GetTag return information about a tag (#1848)
sechkem Nov 13, 2024
1f044b7
fix(gorgone): use Centreon version to create 1 docker images per vers…
sdepassio Nov 13, 2024
3d1bb2b
feat(engine): GetSeverity return information about severity (#1865)
sechkem Nov 15, 2024
44112ba
Merge remote-tracking branch 'centreon-web/MON-106121-pull-wss-add-go…
Evan-Adam Nov 18, 2024
65daf4d
MON-106121-move-centreon-perl-libs-packages-v2 (#1870)
bouda1 Nov 18, 2024
dbd3362
fix(broker/unified_sql): typo on hosts_hostgroups (#1871)
s-duret Nov 20, 2024
36c1039
fix(common/perfdata): Fix parsing labels with brackets in their names…
vuntz Nov 20, 2024
0807cac
fix(engine): grpc api evolution and new inheritance tests (#1878)
sechkem Nov 20, 2024
3fa34d5
Mon 147936 native windows drivesize (#1866)
jean-christophe81 Nov 21, 2024
db9ed97
fix(broker/sql): two issues in the mysql object
bouda1 Nov 25, 2024
41be71c
enh(broker/engine): new extended negociation between engine and broker
bouda1 Nov 25, 2024
f9e0bde
ci(nfpm): add github label for manual upload of package artifact
Evan-Adam Nov 5, 2024
ae788a5
ci(perl): gorgone workflow now build centreon-perl-libs*
Evan-Adam Nov 18, 2024
6ece408
fix(perl-libs): fix nfpm path searching the code
Evan-Adam Nov 18, 2024
abed117
ci(perl-libs): fix docker image tag research
Evan-Adam Nov 18, 2024
18b0320
ci(perl-libs): unit test of the perl libs run on GHA
Evan-Adam Nov 19, 2024
31ca21d
test(perl-libs): check if env file exist before moving it
Evan-Adam Nov 19, 2024
5e47333
Update .github/workflows/gorgone.yml
Evan-Adam Nov 26, 2024
d51752e
chore(packaging): package centreon-common in a dedicated workflow (#1…
kduret Nov 27, 2024
a4f8470
fix(gorgone): reduce buffer_size and document it. #1889
Evan-Adam Nov 27, 2024
8307521
Mon 147916 native windows memory check (#1847)
jean-christophe81 Nov 28, 2024
18fd906
feat(ci): automate ticket creation on scheduled build failure (#1876)
mushroomempires Dec 3, 2024
13cf396
fix(nightly): fix variable on get-environment in the case of a schedu…
mushroomempires Dec 4, 2024
a003262
rename memory base to native base, add help on native checks (#1919)
jean-christophe81 Dec 6, 2024
042b543
enh(ci): skip debuginfo deployments on unstable repos (#1923)
kduret Dec 6, 2024
8a9f132
fix(ci): comment nightly dispatch on maintenance branches (#1925)
mushroomempires Dec 9, 2024
9685c22
chore(ci): update upload-artifacts to v4.4.3 (#1922)
tuntoja Dec 9, 2024
5c71fe2
Mon 147933 native windows service (#1899)
jean-christophe81 Dec 10, 2024
5123189
add robot test (#1924)
jean-christophe81 Dec 10, 2024
47302f2
enh(ci): skip workflow when no change on PR (#1927)
kduret Dec 10, 2024
4aed3b9
feat(gorgone): use centreonvault lib to decrypt password in gorgone c…
Evan-Adam Dec 11, 2024
60b7aeb
add flapping and percent_state_change (#1926)
jean-christophe81 Dec 11, 2024
1bbd64b
fix several prepared for (INSERT IGNORE INTO hosts_hosts_parents (chi…
jean-christophe81 Dec 12, 2024
b32734a
fix(broker): Revert "add flapping and percent_state_change (#1926)" (…
bouda1 Dec 13, 2024
66c82d6
MON-154014-rework-the-code-owner-file-of-centreon-collect (#1934)
Evan-Adam Dec 16, 2024
f210197
enh(ci): workflow to add external label to forked pull requests (#1949)
kduret Dec 16, 2024
8d9f0a9
Merge remote-tracking branch 'origin/master' into develop
bouda1 Dec 16, 2024
d7dfbe2
enh(ci): run push and publish jobs only on centreon/centreon-collect …
tuntoja Dec 17, 2024
c339ea9
enh(agent): new agent check_health (#1944)
jean-christophe81 Dec 20, 2024
7fa0635
fix(broker): extended negotiation has a bug with the detection of bro…
bouda1 Dec 20, 2024
b717e77
enh(ci): adapt codeowners for powershell and robot scripts (#1973)
kduret Dec 24, 2024
358d85b
enh(ci): skip workflows when it is a bump branch (#1984)
kduret Jan 6, 2025
3dc5a66
enh(ci): add docker related workflows to release trigger build workfl…
tuntoja Jan 8, 2025
980788e
fix(pipeline): fix gorgone pipeline dependencies (#1991)
mushroomempires Jan 8, 2025
de1f43e
chore(release) bump collect to 25.01.0 (#1989)
pkippes Jan 8, 2025
8f6f413
feat(common): engine conf able to expand the engine configuration (#1…
sechkem Jan 8, 2025
294b720
Mon 145030 cma ceip (#1950)
jean-christophe81 Jan 8, 2025
99846af
fix defunct process and grpc coredump (#1978)
jean-christophe81 Jan 8, 2025
ad82de9
fix(ci): do not deliver centreon-common on ubuntu (#1994)
kduret Jan 9, 2025
cd8a50c
enh(release): move all .version files to the root level of file tree …
tuntoja Jan 9, 2025
b7e7c69
MON-149871 embed plugins in cma installer (#1928)
jean-christophe81 Jan 9, 2025
0fd367d
fix(mbi): fix group by statement for mysql 8 (#1995)
vuntz Jan 13, 2025
3f9c018
enh(ci): check if pull request on testing is a cherry-pick (#2001)
kduret Jan 13, 2025
b309813
fix(packaging): use nfpm 2.41.1 to avoid rpm signature regression (#2…
kduret Jan 15, 2025
46a4b1e
enh(ci): trigger workflows on new major version (#2022)
kduret Jan 20, 2025
e0d0a09
chore(ci): remove jammy from packaging on develop (#2020) (#2023)
tuntoja Jan 20, 2025
35eb4d8
enh(ci): avoid to rerun veracode analyse on pr if it has already succ…
kduret Jan 21, 2025
e94d20e
enh(ci): manage apt internal repository (#2038) (#2039)
kduret Jan 23, 2025
983d0f5
fix(packaging): require initscripts dependency on centreon-gorgone (#…
kduret Jan 29, 2025
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
  •  
  •  
  •  
13 changes: 8 additions & 5 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
* @centreon/owners-cpp

gorgone/ @centreon/owners-perl
perl-libs/ @centreon/owners-perl

.version* @centreon/owners-pipelines
.github/** @centreon/owners-pipelines
packaging/** @centreon/owners-pipelines
**/packaging/** @centreon/owners-pipelines
selinux/** @centreon/owners-pipelines

tests/** @centreon/owners-robot-e2e
.github/scripts/*robot* @centreon/owners-robot-e2e

gorgone/ @centreon/owners-perl
gorgone/docs/ @centreon/owners-doc
gorgone/tests/robot/tests @centreon/owners-robot-e2e

gorgone/tests/robot/config/ @centreon/owners-perl
*.pm @centreon/owners-perl
*.pl @centreon/owners-perl
*.ps1 @centreon/owners-cpp
142 changes: 142 additions & 0 deletions .github/actions/create-jira-ticket/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
name: Workflow incident tracking
description: Create Jira ticket on incident

inputs:
jira_base_url:
required: true
description: jira base url
jira_user_email:
required: true
description: jira user email
jira_api_token:
required: true
description: jira api token
module_name:
required: true
description: module name
ticket_labels:
required: true
description: ticket labels, usually Pipeline + Nightly/Veracode + x
default: 'Pipeline'

runs:
using: "composite"
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Get ticket elements from context
id: get_context
run: |
# Safely set/unset IFS in order to parse the table of labels properly
[ -n "${IFS+set}" ] && saved_IFS=$IFS
IFS=', ' read -a ticket_labels <<< $(echo "${{ inputs.ticket_labels }}" | tr -d "[],'")
unset IFS
[ -n "${saved_IFS+set}" ] && { IFS=$saved_IFS; unset saved_IFS; }

# Change context elements (summary, parent epic, etc.) that is checked depending on the ticket labels in the input
if [[ "${ticket_labels[@]}" =~ "Veracode" ]]; then
parent_epic_id=83818
parent_epic_key="AT-268"
ticket_summary="PR-${{ github.event.pull_request.number }} incident on ${{ inputs.module_name }}"

JSON_TEMPLATE_FILE="./.github/actions/create-jira-ticket/veracode-ticket-template.json"
sed -i \
-e 's|@PULL_REQUEST_NUMBER@|${{ github.event.pull_request.number }}|g' \
-e 's|@PULL_REQUEST_URL@|${{ github.event.pull_request.html_url }}|g' $JSON_TEMPLATE_FILE
elif [[ "${ticket_labels[@]}" =~ "Nightly" ]]; then
parent_epic_id=206242
parent_epic_key="MON-151547"
ticket_summary="$(date '+%Y-%m-%d') ${{ inputs.module_name }}-${{ github.ref_name }} nightly build failure"

JSON_TEMPLATE_FILE="./.github/actions/create-jira-ticket/nightly-ticket-template.json"
sed -i \
-e 's|@MODULE_NAME@|${{ inputs.module_name }}|g' \
-e "s|@DATE@|$(date '+%Y-%m-%d')|g" $JSON_TEMPLATE_FILE
else
echo "::error::Cannot find a valid labelling option for the ticket."
exit 1
fi

sed -i \
-e 's|@GITHUB_BRANCH@|${{ github.base_ref || github.ref_name }}|g' \
-e 's|@GITHUB_SERVER_URL@|${{ github.server_url }}|g' \
-e 's|@GITHUB_REPOSITORY@|${{ github.repository }}|g' \
-e 's|@GITHUB_RUN_ID@|${{ github.run_id }}|g' \
-e 's|@GITHUB_RUN_ATTEMPT@|${{ github.run_attempt }}|g' $JSON_TEMPLATE_FILE

echo "parent_epic_id=$parent_epic_id" >> $GITHUB_OUTPUT
echo "parent_epic_key=$parent_epic_key" >> $GITHUB_OUTPUT
echo "ticket_summary=$ticket_summary" >> $GITHUB_OUTPUT
echo "json_template_file=$JSON_TEMPLATE_FILE" >> $GITHUB_OUTPUT

cat $JSON_TEMPLATE_FILE
cat $GITHUB_OUTPUT
shell: bash
env:
GH_TOKEN: ${{ github.token }}

- name: Check if the ticket already exists
id: check_ticket
run: |
# Checking if an incident ticket already exists
response=$(curl \
--write-out "%{http_code}" \
--request POST \
--url "${{ inputs.jira_base_url }}/rest/api/3/search" \
--user "${{ inputs.jira_user_email }}:${{ inputs.jira_api_token }}" \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data '{
"fields": ["summary"],
"jql": "project = MON AND parentEpic = ${{ steps.get_context.outputs.parent_epic_key }} AND issueType = Technical AND summary ~ \"${{ steps.get_context.outputs.ticket_summary }}\" AND component = \"${{ inputs.module_name }}\" AND resolution = unresolved ORDER BY key ASC",
"maxResults": 1
}'
)
echo "[DEBUG] $response"
if [[ $(echo "$response" | tr -d '\n' | tail -c 3) -ne 200 ]]; then
echo "::error:: Jira API request was not completed properly."
fi
check_if_ticket_exists=$(echo "$response" | head -c -4 | jq .issues[0].key)
if [[ "$check_if_ticket_exists" != "null" ]]; then
echo "abort_ticket_creation=true" >> $GITHUB_ENV
echo "::error::ticket found as $check_if_ticket_exists aborting ticket creation"
fi
shell: bash

- name: Create Jira Issue
if: ${{ env.abort_ticket_creation != 'true' }}
run: |
# Creating a new incident ticket on Jira
DATA=$( cat <<-EOF
{
"fields": {
"summary": "${{ steps.get_context.outputs.ticket_summary }}",
"project": {"key": "MON"},
"issuetype": {"id": "10209"},
"parent": {"id": "${{ steps.get_context.outputs.parent_epic_id }}", "key": "${{ steps.get_context.outputs.parent_epic_key }}"},
"labels": ${{ inputs.ticket_labels }},
"components":[{"name": "${{ inputs.module_name }}"}],
"customfield_10902": {"id": "10524", "value": "DevSecOps"},
"customfield_10005": 1.0,
"description": $(cat ${{ steps.get_context.outputs.json_template_file }})
}
}
EOF
)

response=$(curl \
--request POST \
--url "${{ inputs.jira_base_url }}/rest/api/3/issue" \
--user "${{ inputs.jira_user_email }}:${{ inputs.jira_api_token }}" \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data "$DATA")
echo $response
if [ $? -ne 0 ]; then
echo "::error::Failed to create ticket: $response"
exit 1
fi

ticket_key=$(echo "$response" | jq -r .key)
echo "::notice::Created ticket: $ticket_key"
shell: bash
32 changes: 32 additions & 0 deletions .github/actions/create-jira-ticket/nightly-ticket-template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "This incident ticket relates to the @MODULE_NAME@ nightly on the @GITHUB_BRANCH@ branch which failed on @DATE@."
}
]
},
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Link to the failed nightly",
"marks": [
{
"type": "link",
"attrs": {
"href": "@GITHUB_SERVER_URL@/@GITHUB_REPOSITORY@/actions/runs/@GITHUB_RUN_ID@/attempts/@GITHUB_RUN_ATTEMPT@"
}
}
]
}
]
}
]
}
11 changes: 6 additions & 5 deletions .github/actions/deb-delivery/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ inputs:
release_type:
description: "Type of release (hotfix, release)"
required: true
release_cloud:
is_cloud:
description: "Release context (cloud or not cloud)"
required: true

Expand All @@ -49,18 +49,19 @@ runs:
echo "[DEBUG] - Version: ${{ inputs.version }}"
echo "[DEBUG] - Distrib: ${{ inputs.distrib }}"
echo "[DEBUG] - module_name: ${{ inputs.module_name }}"
echo "[DEBUG] - release_cloud: ${{ inputs.release_cloud }}"
echo "[DEBUG] - is_cloud: ${{ inputs.is_cloud }}"
echo "[DEBUG] - release_type: ${{ inputs.release_type }}"
echo "[DEBUG] - stability: ${{ inputs.stability }}"

# Make sure all required inputs are NOT empty
if [[ -z "${{ inputs.module_name }}" || -z "${{ inputs.distrib }}" || -z ${{ inputs.stability }} || -z ${{ inputs.version }} || -z ${{ inputs.release_cloud }} || -z ${{ inputs.release_type }} ]]; then
if [[ -z "${{ inputs.module_name }}" || -z "${{ inputs.distrib }}" || -z ${{ inputs.stability }} || -z ${{ inputs.version }} || -z "${{ inputs.is_cloud }}" ]]; then
echo "Some mandatory inputs are empty, please check the logs."
exit 1
fi

# Handle either standard debian or ubuntu repository path
if [[ "${{ inputs.distrib }}" == "jammy" ]]; then
if [[ "${{ inputs.is_cloud }}" == "true" ]]; then
ROOT_REPO_PATH="apt-standard-internal-${{ inputs.stability }}"
elif [[ "${{ inputs.distrib }}" == "jammy" ]]; then
ROOT_REPO_PATH="ubuntu-standard-${{ inputs.version }}-${{ inputs.stability }}"
else
ROOT_REPO_PATH="apt-standard-${{ inputs.version }}-${{ inputs.stability }}"
Expand Down
24 changes: 13 additions & 11 deletions .github/actions/delivery/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ inputs:
release_type:
description: "Type of release (hotfix, release)"
required: true
release_cloud:
is_cloud:
description: "Release context (cloud or not cloud)"
required: true

Expand Down Expand Up @@ -63,12 +63,12 @@ runs:
echo "[DEBUG] - Major version: ${{ inputs.major_version }}"
echo "[DEBUG] - Distrib: ${{ inputs.distrib }}"
echo "[DEBUG] - module_name: ${{ inputs.module_name }}"
echo "[DEBUG] - release_cloud: ${{ inputs.release_cloud }}"
echo "[DEBUG] - is_cloud: ${{ inputs.is_cloud }}"
echo "[DEBUG] - release_type: ${{ inputs.release_type }}"
echo "[DEBUG] - stability: ${{ inputs.stability }}"

# Make sure all required inputs are NOT empty
if [[ -z "${{ inputs.module_name }}" || -z "${{ inputs.distrib }}" || -z ${{ inputs.stability }} || -z ${{ inputs.major_version }} || -z ${{ inputs.release_cloud }} || -z ${{ inputs.release_type }} ]]; then
if [[ -z "${{ inputs.module_name }}" || -z "${{ inputs.distrib }}" || -z ${{ inputs.stability }} || -z ${{ inputs.major_version }} || -z "${{ inputs.is_cloud }}" ]]; then
echo "Some mandatory inputs are empty, please check the logs."
exit 1
fi
Expand All @@ -87,32 +87,32 @@ runs:
mv "$FILE" "$ARCH"
done

# Build upload target path based on release_cloud and release_type values
# Build upload target path based on is_cloud and release_type values
# if cloud + hotfix or cloud + release, deliver to internal testing-<release_type>
# if cloud + develop, delivery to internal unstable
# if non-cloud, delivery to onprem testing or unstable

# CLOUD + HOTFIX + REPO STANDARD INTERNAL OR CLOUD + RELEASE + REPO STANDARD INTERNAL
if [[ ${{ inputs.release_cloud }} -eq 1 && ( ${{ inputs.release_type }} == "hotfix" || ${{ inputs.release_type }} == "release" ) ]]; then
if [[ "${{ inputs.is_cloud }}" == "true" && ( "${{ inputs.release_type }}" == "hotfix" || "${{ inputs.release_type }}" == "release" ) ]]; then
echo "[DEBUG] : Release cloud + ${{ inputs.release_type }}, using rpm-standard-internal."
ROOT_REPO_PATHS="rpm-standard-internal"
UPLOAD_REPO_PATH="${{ inputs.major_version }}/${{ inputs.distrib }}/${{ inputs.stability }}-${{ inputs.release_type }}/$ARCH/${{ inputs.module_name }}/"

# CLOUD + NOT HOTFIX OR CLOUD + NOT RELEASE + REPO STANDARD INTERNAL
elif [[ ${{ inputs.release_cloud }} -eq 1 && ( ${{ inputs.release_type }} != "hotfix" && ${{ inputs.release_type }} != "release" ) ]]; then
elif [[ "${{ inputs.is_cloud }}" == "true" && ( "${{ inputs.release_type }}" != "hotfix" && "${{ inputs.release_type }}" != "release" ) ]]; then
echo "[DEBUG] : Release cloud + NOT ${{ inputs.release_type }}, using rpm-standard-internal."
ROOT_REPO_PATHS="rpm-standard-internal"
UPLOAD_REPO_PATH="${{ inputs.major_version }}/${{ inputs.distrib }}/${{ inputs.stability }}-${{ inputs.release_type }}/$ARCH/${{ inputs.module_name }}/"

# NON-CLOUD + (HOTFIX OR RELEASE) + REPO STANDARD
elif [[ ${{ inputs.release_cloud }} -eq 0 ]]; then
elif [[ "${{ inputs.is_cloud }}" == "false" ]]; then
echo "[DEBUG] : NOT Release cloud + ${{ inputs.release_type }}, using rpm-standard."
ROOT_REPO_PATHS="rpm-standard"
UPLOAD_REPO_PATH="${{ inputs.major_version }}/${{ inputs.distrib }}/${{ inputs.stability }}/$ARCH/${{ inputs.module_name }}/"

# NOT VALID, DO NOT DELIVER
else
echo "::error:: Invalid combination of release_type [${{ inputs.release_type }}] and release_cloud [${{ inputs.release_cloud }}]"
echo "::error:: Invalid combination of release_type [${{ inputs.release_type }}] and is_cloud [${{ inputs.is_cloud }}]"
exit 1
fi

Expand Down Expand Up @@ -141,12 +141,12 @@ runs:
echo "[DEBUG] - Major version: ${{ inputs.major_version }}"
echo "[DEBUG] - Distrib: ${{ inputs.distrib }}"
echo "[DEBUG] - module_name: ${{ inputs.module_name }}"
echo "[DEBUG] - release_cloud: ${{ inputs.release_cloud }}"
echo "[DEBUG] - is_cloud: ${{ inputs.is_cloud }}"
echo "[DEBUG] - release_type: ${{ inputs.release_type }}"
echo "[DEBUG] - stability: ${{ inputs.stability }}"

# Make sure all required inputs are NOT empty
if [[ -z "${{ inputs.module_name }}" || -z "${{ inputs.distrib }}" || -z ${{ inputs.stability }} || -z ${{ inputs.major_version }} || -z ${{ inputs.release_cloud }} || -z ${{ inputs.release_type }} ]]; then
if [[ -z "${{ inputs.module_name }}" || -z "${{ inputs.distrib }}" || -z ${{ inputs.stability }} || -z ${{ inputs.major_version }} || -z "${{ inputs.is_cloud }}" ]]; then
echo "Some mandatory inputs are empty, please check the logs."
exit 1
fi
Expand All @@ -160,7 +160,9 @@ runs:

echo "[DEBUG] - Major version: $VERSION"

if [[ "${{ inputs.distrib }}" == "jammy" ]]; then
if [[ "${{ inputs.is_cloud }}" == "true" ]]; then
ROOT_REPO_PATH="apt-standard-internal-${{ inputs.stability }}"
elif [[ "${{ inputs.distrib }}" == "jammy" ]]; then
ROOT_REPO_PATH="ubuntu-standard-${{ inputs.major_version }}-${{ inputs.stability }}"
else
ROOT_REPO_PATH="apt-standard-${{ inputs.major_version }}-${{ inputs.stability }}"
Expand Down
9 changes: 3 additions & 6 deletions .github/actions/package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ inputs:
stability:
description: "branch stability (stable, testing, unstable, canary)"
required: true

runs:
using: composite

Expand Down Expand Up @@ -76,7 +75,6 @@ runs:

MAJOR_LEFT=$( echo $MAJOR_VERSION | cut -d "." -f1 )
MAJOR_RIGHT=$( echo $MAJOR_VERSION | cut -d "-" -f1 | cut -d "." -f2 )
BUMP_MAJOR_RIGHT=$(( MAJOR_RIGHT_PART + 1 ))
if [ "$MAJOR_RIGHT" = "04" ]; then
BUMP_MAJOR_LEFT="$MAJOR_LEFT"
BUMP_MAJOR_RIGHT="10"
Expand Down Expand Up @@ -111,11 +109,10 @@ runs:
path: ./*.${{ inputs.package_extension }}
key: ${{ inputs.cache_key }}

# Update if condition to true to get packages as artifacts
- if: ${{ false }}
- if: ${{ contains(github.event.pull_request.labels.*.name, 'upload-artifacts') }}
name: Upload package artifacts
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: ${{ inputs.arch != '' && format('packages-{0}-{1}', inputs.distrib, inputs.arch) || format('packages-{0}', inputs.distrib) }}
name: ${{ inputs.arch != '' && format('packages-{0}-{1}', inputs.distrib, inputs.arch) || format('packages-{0}', inputs.distrib) }}-${{ inputs.stability }}
path: ./*.${{ inputs.package_extension}}
retention-days: 1
14 changes: 7 additions & 7 deletions .github/actions/promote-to-stable/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ inputs:
release_type:
description: "Type of release (hotfix, release)"
required: true
release_cloud:
is_cloud:
description: "Release context (cloud or not cloud)"
required: true

Expand All @@ -48,7 +48,7 @@ runs:
# DEBUG
echo "[DEBUG] - Major version: ${{ inputs.major_version }}"
echo "[DEBUG] - Distrib: ${{ inputs.distrib }}"
echo "[DEBUG] - release_cloud: ${{ inputs.release_cloud }}"
echo "[DEBUG] - is_cloud: ${{ inputs.is_cloud }}"
echo "[DEBUG] - release_type: ${{ inputs.release_type }}"

# Cloud specific promote
Expand All @@ -62,15 +62,15 @@ runs:
# Search for testing packages candidate for promote
for ARCH in "noarch" "x86_64"; do

# Build search path based on release_cloud and release_type values
# Build search path based on is_cloud and release_type values
# if cloud, search in testing-<release_type> path
# if non-cloud, search in the testing usual path
if [[ ${{ inputs.release_cloud }} -eq 1 && ${{ inputs.release_type }} == "hotfix" ]] || [[ ${{ inputs.release_cloud }} -eq 1 && ${{ inputs.release_type }} == "release" ]]; then
if [[ "${{ inputs.is_cloud }}" == "true" && "${{ inputs.release_type }}" == "hotfix" ]] || [[ "${{ inputs.is_cloud }}" == "true" && "${{ inputs.release_type }}" == "release" ]]; then
SEARCH_REPO_PATH="${{ inputs.major_version }}/${{ inputs.distrib }}/testing-${{ inputs.release_type }}/$ARCH/${{ inputs.module_name }}"
elif [[ ${{ inputs.release_cloud }} -eq 0 ]]; then
elif [[ "${{ inputs.is_cloud }}" == "false" ]]; then
SEARCH_REPO_PATH="${{ inputs.major_version }}/${{ inputs.distrib }}/testing/$ARCH/${{ inputs.module_name }}"
else
echo "Invalid combination of release_type and release_cloud"
echo "Invalid combination of release_type and is_cloud"
fi

echo "[DEBUG] - Get path of $ARCH testing artifacts to promote to stable."
Expand Down Expand Up @@ -115,7 +115,7 @@ runs:
shell: bash

- name: Promote DEB packages to stable
if: ${{ contains(fromJSON('["bullseye", "bookworm"]'), inputs.distrib) }}
if: ${{ inputs.is_cloud == 'false' && contains(fromJSON('["bullseye", "bookworm"]'), inputs.distrib) }}
run: |
set -eux

Expand Down
Loading
Loading