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

Tier0Handler: add maxTime, improve cert warning #45943

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

JanChyczynski
Copy link
Contributor

@JanChyczynski JanChyczynski commented Sep 6, 2024

PR description:

Before this PR Tier0Handler was running a curl command using only the --connect-timeout flag which sets the timeout for connecting. If the connection is established but the server takes forever to respond, the command waits indefinitely. To avoid hung-up processes maxTime argument was added to Tier0Handler setting the --max-time flag. This flag sets the maximum time for the whole curl command.

Tier0Handler is used in the conddb command and the maxTime was set to 60 s, the connection timeout was left at 1 s.

Also, extends the warning information when the certificates are not provided with information about the X509_USER_CERT and X509_USER_KEY env variables.

This is a follow-up to #45779

PR validation:

Tested by running python3 tier0.py which is running the test for it and by running conddb showFSCR (for the latter scram b is needed beforehand).

The proper functionality of --connect-timeout and --max-time in Tier0Handler was tested by changing the T0 API URL using the TIER0_API_URL env variable to:

  • http://localhost:8099/ and running nc -kl 8099 to test being able to connect but never receiving a response
  • https://example.com:81/ to test the connection timeout

Backport

Backports PRs to 14_1_X and 14_0_X:
#45944 (14_1_X )
#45945 (14_0_X)

FYI @perrotta @francescobrivio @PonIlya

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 6, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 6, 2024

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45943/41701

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 6, 2024

A new Pull Request was created by @JanChyczynski for master.

It involves the following packages:

  • CondCore/Utilities (db)

@cmsbuild, @consuegs, @francescobrivio, @perrotta, @saumyaphor4252 can you please review it and eventually sign? Thanks.
@JanChyczynski, @PonIlya, @mmusich, @rsreds, @yuanchao this is something you requested to watch as well.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@perrotta
Copy link
Contributor

perrotta commented Sep 6, 2024

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 7, 2024

-1

Failed Tests: UnitTests
Size: This PR adds an extra 48KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c39738/41379/summary.html
COMMIT: 5239086
CMSSW: CMSSW_14_2_X_2024-09-05-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/45943/41379/install.sh to create a dev area with all the needed externals and cmssw changes.

The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:

You can see more details here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c39738/41379/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-c39738/41379/git-merge-result

Unit Tests

I found 1 errors in the following unit tests:

---> test testSiStripPayloadInspector had ERRORS

Comparison Summary

Summary:

  • You potentially added 2 lines to the logs
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 6841 differences found in the comparisons
  • DQMHistoTests: Total files compared: 44
  • DQMHistoTests: Total histograms compared: 3328579
  • DQMHistoTests: Total failures: 2536
  • DQMHistoTests: Total nulls: 11
  • DQMHistoTests: Total successes: 3326012
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 237.2239999999998 KiB( 43 files compared)
  • DQMHistoSizes: changed ( 1000.0,... ): 6.777 KiB Ecal/Trends
  • DQMHistoSizes: changed ( 140.023 ): -0.008 KiB JetMET/SUSYDQM
  • DQMHistoSizes: changed ( 140.043 ): 0.020 KiB JetMET/SUSYDQM
  • DQMHistoSizes: changed ( 140.063 ): 0.016 KiB JetMET/SUSYDQM
  • Checked 193 log files, 163 edm output root files, 44 DQM output files
  • TriggerResults: found differences in 1 / 42 workflows

@mmusich
Copy link
Contributor

mmusich commented Sep 7, 2024

-1

the failure is caused by #45795, my bad

@perrotta
Copy link
Contributor

perrotta commented Sep 8, 2024

+db

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 8, 2024

This pull request is fully signed and it will be integrated in one of the next master IBs (but tests are reportedly failing). This pull request will now be reviewed by the release team before it's merged. @mandrenguyen, @sextonkennedy, @rappoccio, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2)

@mandrenguyen
Copy link
Contributor

ignore tests-rejected with ib-failure

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 71f4491 into cms-sw:master Sep 9, 2024
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants