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

Fix manage path in the restartComponent script #11572

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

amaltaro
Copy link
Contributor

@amaltaro amaltaro commented Apr 24, 2023

Fixes #11492
Superseeds #11493

Status

ready

Description

Instead of redefining variables to be used in this script, just use those already defined in the env.sh script.
Fix the $install variable if needed (artifact from python2 vs python3 WMAgent).

Is it backward compatible (if not, which system it affects?)

YES

Related PRs

None

External dependencies / deployment changes

None

@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Unit tests: succeeded
    • 4 tests no longer failing
    • 1 changes in unstable tests
  • Python3 Pylint check: succeeded
  • Pylint py3k check: succeeded
  • Pycodestyle check: succeeded

Details at https://cmssdt.cern.ch/dmwm-jenkins/view/All/job/DMWM-WMCore-PR-test/14226/artifact/artifacts/PullRequestReport.html

@amaltaro
Copy link
Contributor Author

This proposal actually drops the amtool, from the PR that it superseeds. If we want to adopt amtool for such alerts - from outside CERN - then someone will have to follow this up with CMSMonitoring and CERN IT. But I suggest to deal with that in a different issue not to block this one.

Valentin.s review

Accept list of component names via script argument

update release version in the example deployment command
@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Unit tests: succeeded
    • 6 tests no longer failing
    • 2 changes in unstable tests
  • Python3 Pylint check: succeeded
  • Pylint py3k check: succeeded
  • Pycodestyle check: succeeded

Details at https://cmssdt.cern.ch/dmwm-jenkins/view/All/job/DMWM-WMCore-PR-test/14235/artifact/artifacts/PullRequestReport.html

@amaltaro
Copy link
Contributor Author

This has been tested in the FNAL agent.
Apologies for bypassing the review, but we definitely need to start this upgrade today.

@amaltaro amaltaro merged commit 3c59321 into dmwm:master Apr 25, 2023
Copy link
Contributor

@todor-ivanov todor-ivanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

else
WMA_PATH="/data/srv/wmagent/current/install/wmagentpy3"
if [ ! -d "$install" ]; then
install="/data/srv/wmagent/current/install/wmagentpy3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know the following component does not relate to this exact script (so no action expected - just a comment).
I think python3 is the de-facto only version we are going to support from now on... and we never plan to move back to py2 or to prolong any support of it.So we should think of getting rid of this py3 suffix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I thought the same as well. The positive aspect of keeping this logic around is that it will ease the migration process to a new major python release. However, there is no release date for python4 neither certainty that it will be ever released.

TAIL_LOG=`tail -n100 $COMPLOG`
$WMA_PATH/manage execute-agent wmcoreD --restart --components=$comp
$manage execute-agent wmcoreD --restart --components=$comp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is indeed better. It seems in the previous version this script must have been failing completely ....

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.

Script to restart components using the wrong path
3 participants