Skip to content

CP-49916: Moved perfmon, perfmon.service and sysconfig-perfmon from scripts/ to python3/perfmon directory #5767

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

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

ashwin9390
Copy link
Contributor

Main ticket CP-49100 :Move python3 scripts from scripts directory to python3 directory.

Sub task CP-49916:

  • Moved perfmon, perfmon.service and sysconfig-perfmon from scripts/ to python3/perfmon directory
  • Modified Makefile to include these changes.
  • Removed perfmon, perfmon.service and sysconfig-perfmon from scripts/Makefile

Signed-off-by: Ashwinh ashwin.h@cloud.com

…cripts/ to python3/perfmon directory

- Modified Makefile to include these changes.
- Removed  perfmon, perfmon.service and sysconfig-perfmon from scripts/Makefile

Signed-off-by: Ashwinh <ashwin.h@cloud.com>
@psafont psafont merged commit 1263258 into xapi-project:feature/py3 Jul 2, 2024
14 checks passed
stephenchengCloud added a commit to stephenchengCloud/xen-api that referenced this pull request Jul 24, 2024
When testing the feature/py3 branch, xapi failed to restart due to
perfmon.service not loaded.

The root cause is that:
In this PR: xapi-project#5767, we moved
perfmon.service from `scripts/Makefile` to `python3/Makefile`
In `scripts/Makefile`, `IPROG` is defined as:
IPROG=./install.sh 755
IDATA=./install.sh 644
While in `python3/Makefile`, `IPROG` is defined as:
IPROG=install -m 755
IDATA=install -m 644

And the purpose of `install.sh` is to replace strings
in *.service like: @OPTDIR@ -> ${OPTDIR}
So in python3/Makefile, we didn't replace these strings, and then led to the error.

Signed-off-by: Stephen Cheng <stephen.cheng@cloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants