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

Provide minimal supported Ansible version #71

Open
przmv opened this issue Aug 12, 2021 · 1 comment
Open

Provide minimal supported Ansible version #71

przmv opened this issue Aug 12, 2021 · 1 comment
Assignees
Labels
bug unix Machine Stats for Unix-like Systems

Comments

@przmv
Copy link
Contributor

przmv commented Aug 12, 2021

Right now Machine Stats for Unix-like Systems requires ansible<2.10 (because 2.10 is not yet supported by Red Hat). However, the minimal required version is not specified. This leads to the following issue:

  • OS: Debian 10 (buster)
  • Ansible 2.7.7 (installed with sudo apt-get install ansible)
  • Machine Stats 1.0.1 (installed with pip3 install machine-stats)
$ machine-stats --help
Traceback (most recent call last):
  File "/home/petr_razumov/.local/bin/machine-stats", line 6, in <module>
    from machine_stats import main
  File "/home/petr_razumov/.local/lib/python3.7/site-packages/machine_stats/__init__.py", line 56, in <module>
    from ansible import context
ImportError: cannot import name 'context' from 'ansible' (/usr/lib/python3/dist-packages/ansible/__init__.py)

ansible.context was introduced in v2.8.0

@przmv przmv added bug unix Machine Stats for Unix-like Systems labels Aug 12, 2021
@przmv przmv self-assigned this Aug 12, 2021
przmv pushed a commit to tidalmigrations/machine-stats-workshop that referenced this issue Aug 12, 2021
@pranavmalaviya
Copy link
Collaborator

More details/discussion on this issue is being done internally in this doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unix Machine Stats for Unix-like Systems
Projects
None yet
Development

No branches or pull requests

2 participants