Add support Python 3.5 for Kolla

Registered by Duong Ha-Quang

Currently, Kolla works well with Python 2.7 and 3.4 but needs some works to be able to run with Python 3.5.

The goals is to:
- Make all Python script in Kolla works with Python 3.5 as well as Python 2.7 and 3.4
- Update gate to reflect changes. (currently gate still lack some cases so it is still green)

Below is the current coverage report for kolla and here we can see that we need add few more cases for this to get report upto 80-85%.

=====================================================
Ran 36 tests in 0.206s (-0.004s)
PASSED (id=1, skips=12)
cover runtests: commands[1] | coverage report --show-missing
Name Stmts Miss Cover Missing
-----------------------------------------------------------------
kolla/__init__.py 4 0 100%
kolla/cmd/__init__.py 0 0 100%
kolla/cmd/build.py 15 2 87% 24, 39
kolla/common/__init__.py 0 0 100%
kolla/common/config.py 34 1 97% 523
kolla/common/task.py 16 5 69% 26, 29, 33, 37, 42
kolla/exception.py 9 0 100%
kolla/hacking/__init__.py 0 0 100%
kolla/hacking/checks.py 13 2 85% 39-40
kolla/image/__init__.py 0 0 100%
kolla/image/build.py 659 325 51% 46, 66-67, 99-115, 129, 157, 159, 161, 165, 175-177, 181, 185-186, 200, 207-214, 221, 227-232, 249, 258-272, 288-337, 359, 363-366, 372-374, 379-382, 384-386, 390-398, 415-432, 445-448, 451-482, 492, 525, 538-552, 566, 575-577, 588, 594, 610-615, 664-671, 695, 702, 719, 724-726, 737-779, 782-795, 805, 855-870, 873-874, 884-885, 890-897, 905-914, 922-938, 947-1021
kolla/opts.py 3 3 0% 13-17
kolla/template/__init__.py 0 0 100%
kolla/template/filters.py 12 10 17% 20-29
kolla/template/methods.py 14 13 7% 34-63
kolla/tests/__init__.py 0 0 100%
kolla/tests/base.py 18 0 100%
kolla/tests/common/__init__.py 0 0 100%
kolla/tests/common/test_config.py 5 0 100%
kolla/tests/test_build.py 170 2 99% 202, 220
kolla/tests/test_hacking.py 12 0 100%
kolla/version.py 2 0 100%
-----------------------------------------------------------------
TOTAL 986 363 63%
______________________________________________________________ summary _______________________________________________________________
  cover: commands succeeded
  congratulations :)
=====================================================

Blueprint information

Status:
Complete
Approver:
Jeffrey Zhang
Priority:
High
Drafter:
Duong Ha-Quang
Direction:
Approved
Assignee:
Surya Prakash Singh
Definition:
Approved
Series goal:
Accepted for ocata
Implementation:
Implemented
Milestone target:
milestone icon ocata-3
Started by
Surya Prakash Singh
Completed by
Jeffrey Zhang

Related branches

Sprints

Whiteboard

Is this bp implemented? (egonzalez 01/20/2017)

Gerrit topic: https://review.openstack.org/#q,topic:bp/support-python-3,n,z

Addressed by: https://review.openstack.org/414813
    support Python 3.5 for Kolla

Gerrit topic: https://review.openstack.org/#q,topic:bp/support-python-35,n,z

(?)

Work Items

Work items:
Replace filter(): TODO

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.