Le jeudi 25 août 2016 à 07:25 -0700, Toshio Kuratomi a écrit : > I don't think that enough modules are currently working to be able to manage a > production infrastructure using just python3 capable modules. But there are > enough that we've been able to start turning on integration tests for modules > on python3. for instance, here's a recent run of the known good subset of > integration tests on a VM with only python3 installed: > https://app.shippable.com/runs/57be39613d3c340e0003c341/30/console
So I have been trying that, and while indeed, we can't run a complete infrastructure yet, there is only a few type of errors to fix. One of the easiest is iteritems vs items on python 3, which requires this kind of fix: https://github.com/ansible/ansible-modules-core/pull/4576 It should be easy to find the place that need a fix with grep (on iteritems, iterkeys, itervalues) There is various strings/unicode issues, who can be more tricky, but most of the time, that's just using "to_native" at the right place: https://github.com/ansible/ansible-modules-core/pull/4556 https://github.com/ansible/ansible-modules-core/pull/4560 Also, if you do testing, I would recommend to test idempotence, and more than just a single run. I stumbled on https://github.com/ansible/ansible-modules-core/pull/4559/files the code was working, but it was no longer idempotent. The last type of issue I did see is with filter, who no longer return a list, so we have to be explicit when using it, see one of the fix on https://github.com/ansible/ansible-modules-core/pull/4496/files With the various PR to fix that are on github, I was able to successfully deploy a few non trivial roles on Fedora 24. -- Michael Scherer Sysadmin, Community Infrastructure and Platform, OSAS -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: This is a digitally signed message part