Bug 1330979
Summary: | Ansible 2.0 is not backwards compatible with 1.9 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Christos Triantafyllidis <christos.triantafyllidis> |
Component: | ansible | Assignee: | Kevin Fenzi <kevin> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 23 | CC: | a.badger, athmanem, foss, kevin, kupo, mark, maxim |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-05-06 19:24:58 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Christos Triantafyllidis
2016-04-27 11:49:42 UTC
So, the thing here is that the python API interface to ansible is not something that is stable and supported by ansible. From the docs: "Please note that while we make this API available it is not intended for direct consumption, it is here for the support of the Ansible command line tools. We try not to make breaking changes but we reserve the right to do so at any time if it makes sense for the Ansible toolset. The following documentation is provided for those that still want to use the API directly, but be mindful this is not something the Ansible team supports." So, this API can (and in fact has) changed in other releases. Aside from a pretty small number of cases ansible 2.0 handles playbooks written for 1.9.x just fine. For those small numbers of folks, we have provided the ansible1.9 package, but note that it will go away once upstream stops supporting 1.9.x updates. As discussed on IRC the main problem is that --allowerasing doesn't help on the migration from ansible to ansible1.9: # rpm -qa ansible ansible-2.0.1.0-2.fc23.noarch # dnf install ansible1.9 --allowerasing Last metadata expiration check: 0:35:24 ago on Wed Apr 27 15:41:53 2016. Dependencies resolved. ==================================================================================================================================================== Package Arch Version Repository Size ==================================================================================================================================================== Installing: ansible1.9 noarch 1.9.6-1.fc23 updates 1.7 M Downgrading: ansible noarch 1.9.3-2.fc23 fedora 1.7 M Transaction Summary ==================================================================================================================================================== Install 1 Package Downgrade 1 Package Total size: 3.4 M Is this ok [y/N]: n Operation aborted. AND: # rpm -qa ansible ansible-1.9.3-2.fc23.noarch # dnf install ansible1.9 --allowerasing Last metadata expiration check: 0:40:11 ago on Wed Apr 27 15:41:53 2016. Dependencies resolved. ====================================================================================================================================================== Package Arch Version Repository Size ====================================================================================================================================================== Installing: ansible1.9 noarch 1.9.6-1.fc23 updates 1.7 M Transaction Summary ====================================================================================================================================================== Install 1 Package Total download size: 1.7 M Installed size: 7.2 M Is this ok [y/N]: In both cases we end up with a setup that tries to install ansible-1.9.3 and ansible1.9 in parallel which conflicts as they share path location. Looking at the 1.9 spec file it MIGHT help to change: Conflicts: ansible >= 2 To: Conflicts: ansible But i'm not sure if a package can Provide and Conflict with the same name. Cheers, Christos ansible1.9-1.9.6-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-f392541f73 ansible1.9-1.9.6-2.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-af216d3233 ansible1.9-1.9.6-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-48b827a9d9 ansible1.9-1.9.6-2.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-5c482c7c47 ansible1.9-1.9.6-2.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-5c482c7c47 ansible1.9-1.9.6-2.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-af216d3233 ansible1.9-1.9.6-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-48b827a9d9 ansible1.9-1.9.6-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-f392541f73 ansible1.9-1.9.6-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. ansible1.9-1.9.6-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. ansible1.9-1.9.6-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report. ansible1.9-1.9.6-2.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. |