Summary: | ansible-playbook: Unexpected Exception: 'module' object has no attribute '_vendor' | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | Ivan Zakharyaschev <imz> |
Component: | ansible | Assignee: | Andrey Cherepanov <cas> |
Status: | CLOSED NOTABUG | QA Contact: | qa-sisyphus |
Severity: | major | ||
Priority: | P3 | CC: | aen, cas, obirvalger |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux | ||
Bug Depends on: | 32709 | ||
Bug Blocks: |
Description
Ivan Zakharyaschev
2016-11-03 21:37:36 MSK
Насколько я помню свои исследования, cli в 2.0* вполне официально нерабочий и обещался позже. (В ответ на комментарий №1)
> Насколько я помню свои исследования, cli в 2.0* вполне официально нерабочий и
> обещался позже.
Понятно, спасибо.
Нам дали потестировать облачное приложение, которое хочет cli в скрипте установки. Там скромно написано, что лучше запускать этот скрипт с ansible-2.2. :)
This error happens iff python-module-pycrypto is not installed. The internal reasons for this have not been studied by me yet (perhaps, pycrypto is really needed, perhaps, pycrypto's absense leads to some alternative behavior which causes this error). More investigation in future. (If Python autoreqs are resurrected as in the build which I'm preparing in http://git.altlinux.org/tasks/171993/build/500/x86_64/ , pycrypto is detected, but as a dep of a module. But as we see, it must be also a dep of the main ansible code.) More precise conditions for this error (in Sisyphus): * ansible-playbook tries to use python-module-pycrypto * if python-module-pycrypto is installed, it goes on successfully (without trying python-module-cryptography) * if python-module-pycrypto is not installed, this fails, and ansible-playbook tries to use python-module-cryptography * if python-module-cryptography is not installed, it goes on successfully * if python-module-cryptography is installed, the above error occurs when using it In p8, the same conditions for this error hold. (The difference between the p8 and Sisyphus environments is that in p8 python-module-paramiko depends on python-module-pycrypto, which makes ansible-playbook happy because it depends on python-module-paramiko. And if one removes python-module-pycrypto, the same situation as in Sisyphus would be visible. In Sisyphus, python-module-paramiko depends on python-module-cryptography, so when it is used in ansible-playbook, this error happens.) |