Closed ghost closed 4 years ago
Thanks for creating the issue. Can I ask what distro and version you are using, how you installed pip, what your general use case for pip is (vs distro package managers), and whether you find support for pip in osconfig useful?
I ask because supporting a tool that does not have a stable api across versions is complicated and I need to decide if we simply drop support entirely or just support the latest version.
I came across this in Debian 9, specifically one of the AI Platform Notebooks images:
gcloud compute images list --project deeplearning-platform-release --no-standard-images --filter name:common-cpu-notebooks-20200127
NAME PROJECT FAMILY DEPRECATED STATUS
common-cpu-notebooks-20200127 deeplearning-platform-release common-cpu-notebooks READY
Pip is installed on the image out of the box. For my use case I have no preference on the pip reporting, I was interested in the software recipes functionality and the inventory's pip logs served as a red herring while trying to work with them. They also end up taking over the osconfig agent's logs as the pip command fails repeatedly every 10 minutes which makes it more difficult to monitor for failures when applying software recipes.
For easier debugging I would suggest leveraging cloud logging as that would allow you to filter out logs that aren't useful. Also if you have issues with software recipe debugging feel free to open another issue, I know that piece of the agent is lacking in logs right now. As far as this issue goes, I'll update the logic a bit to work the the latest versions of pip so as not to break any existing uses but also decrease the logging severity so as not to spam.
Inventory for pip fails due to use of removed format 'legacy' for pip list. Pip list format legacy support was removed in pip 18.0
https://github.com/GoogleCloudPlatform/osconfig/blob/27a85d59cc833fed7372ab0da24f27aa93d386ee/inventory/packages/pip.go#L27-L30
Error when manually invoking
Errors logged by OS Config Agent