tools/mlock_report.py can't import psutil module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Fix Released
|
Undecided
|
Federico Ressi |
Bug Description
When enabling 'memory_tracker' service and using Python3, memory_tracker.sh fails to run because tools/mlock_
2020-01-23 19:16:50.727 | + functions-
2020-01-23 19:16:50.777 | enabled
2020-01-23 19:16:50.789 | + functions-
2020-01-23 19:16:50.838 | â— devstack@
2020-01-23 19:16:50.839 | Loaded: loaded (/etc/systemd/
2020-01-23 19:16:50.839 | Active: failed (Result: exit-code) since Thu 2020-01-23 19:15:20 UTC; 1min 30s ago
2020-01-23 19:16:50.839 | Main PID: 28314 (code=exited, status=1/FAILURE)
2020-01-23 19:16:50.839 |
2020-01-23 19:16:50.839 | Jan 23 19:15:20 centos-
2020-01-23 19:16:50.839 | Jan 23 19:15:20 centos-
2020-01-23 19:16:50.839 | Jan 23 19:15:20 centos-
2020-01-23 19:16:50.839 | Jan 23 19:15:20 centos-
2020-01-23 19:16:50.839 | Jan 23 19:15:20 centos-
2020-01-23 19:16:50.839 | Jan 23 19:15:20 centos-
2020-01-23 19:16:50.839 | Jan 23 19:15:20 centos-
2020-01-23 19:16:50.839 | Jan 23 19:15:20 centos-
2020-01-23 19:16:50.839 | Jan 23 19:15:20 centos-
2020-01-23 19:16:50.840 | Jan 23 19:15:20 centos-
My best guess is that the python script is using python command, while DevStack made available psutil package to python3 command. I think DevStack should now use 'python3' command by default and use 'python' command only as fallback interpreter.
description: | updated |
Changed in devstack: | |
assignee: | nobody → Radosław Piliszek (yoctozepto) |
status: | New → In Progress |
Changed in devstack: | |
assignee: | Federico Ressi (fressi-redhat) → Ian Wienand (iwienand) |
Changed in devstack: | |
assignee: | Ian Wienand (iwienand) → Federico Ressi (fressi-redhat) |
Related fix proposed to branch: master /review. opendev. org/704110
Review: https:/