We are stoked to announce the release of: kolla-cli 9.0.0: Command Line Interface for Kolla-Ansible This release is part of the train release series. The source is available from: https://opendev.org/openstack/kolla-cli Download the package from: https://tarballs.openstack.org/null/ Please report issues through: https://bugs.launchpad.net/kolla-cli/+bugs For more details, please see below. Changes in kolla-cli o3l_4.0.1..9.0.0 ------------------------------------- 2fdd388 Add Generating Documentation 36c0c75 Switch to official Ussuri jobs ecff34a Blacklist sphinx 2.1.0 (autodoc bug) 5a1662a Typo fixed: Update Upgrade to Check 50aeac2 Add --hosts support for check action d5d6766 tox: Move the whitelist_externals to testenv section 1ec3980 tox: Keeping going with docs 8feb577 Revert "Switch to official Ussuri jobs" 387bb8d Switch to official Ussuri jobs 41d6029 Revert "Add test action unit test" ea368ae Add genconfig unit test 46b368a Add test action unit test b56875b Add stop unit test with services and hosts 4e25281 Revert "Add defualt property list" 4e363ef Add upgrade unit test ba05f68 Add pull unit test for zuul f8ce810 Add --services support for stop action fd94f4e Fix Typos: fix the help information for prechecks action a7ea023 Generate PDF documentation a81bffb Fix typos: update upgrade to generate 9b4d42a Add unit test with host and service for reconfigure action 5d8a917 Add --hosts variable support for upgrade action acbbd13 add reconfigure unit test cef5e35 Add kolla args check for control plane action 165465d Add group list command 4e4fc39 Do not always copy files 1498b7e Move stop acton to kolla model from host 96f5956 Add --hosts and --services support for reconfigure action 6cc525c Use inventory object to validate the hosts and services 661f3f5 Move kolla prechecks action into kolla_actiom model fe33d21 Use kolla-cli owner url as the home page d9d5014 Typo fix: update aciton to action ce489ad Update kolla command to kolla-cli action command 55963d9 Add reno for release notes management ba7c612 Move doc related modules to doc/requirements.txt 68eb78e Add defualt property list 4a0d70e Use openstackdocstheme and add docs check into zuul 3babfba Move sphinx-build into tox 679824b Add service and host check for API 6b63c00 Add pull action functional test c5ba7f2 Add host support for genconfig action 13a0091 Add pull aciton default hosts 5949587 [Part4]: Optimise and simplify action code 6b38a92 Add host support for pull action 50ffbe5 Remove the duplicated swift ring files check 6b03977 Add get deploy mode action f467c03 Fix the GLOBAL file path 269255c Add smoke test check action ff62513 Update the api module import order ee296a7 Add genconfig aciton into kolla-cli 0f38216 [Part3]: Optimise and simplify action code c60e03e Fix the password check description 29e9929 Move the password check into precheck action ad572a2 Add the support to pull specific service's images 81a8a22 [Part2]: Optimise and simplify action code c12fb07 Fix stop action broken e3ef61e [Part1]: Optimise and simplify action code 4ec3954 Add postdeploy action dba696b Bump docker_version_min to 1.10.0 09ca85b Use handers_action_result to simplify the code 6230773 Optimise the warning log into success result 23881fc Fix the host setup failed when the password is int 583abab Update module import order 62c9fe8 Refactor code: move certificate action into kolla_action module 77177d1 Refactor code: move upgrade action into kolla_action module 403b099 Refactor code: move deploy action into kolla_action module 66c354f unnecessary spaces should be removed 835fdb2 Refactor code: move setdeploy action into mode module c43a1dc Refactor code: move reconfigure action into kolla_action module afa62af Remove the unused pull module da9658c Refactor code: move pull action into kolla_action module 8ac36d7 Bump some requirements to latest e677586 Bump Babel to 2.5.3 acf9885 Optimise the action help information c8f8ccd Move the lockpath into Lock instance 7cc4b7f Move the stestr command into testenv section 9548917 Update the tox.ini for functional 98dca2e Rename functional to functional-py27 and add functional-py37 aa955b7 Add debug env into tox e9c019f Synchronize tox and ansible version from kolla-ansible 410ca50 Cap bandit below 1.6.0 version and add it into pep8 section c5fb7b1 Add lower-constraints check into zuul c60addf Add lower-constraints.txt for kolla-cli e023cf9 Use openstack-python-jobs to run pep8 and py27 test 05c917b Add cover into zuul check 54cc295 Add Python 3 Train unit tests 77d84bb Blacklist sphinx 2.1.0 (autodoc bug) 10cc205 Add doc8 test into pep8 a0d2860 Remove the doc/build 0695a17 Sync Sphinx requirement 2eb7b08 Replace git.openstack.org URLs with opendev.org URLs 056df01 Change openstack-dev to openstack-discuss d2d9444 change the description of the class 14e691b Update hacking version 8a49934 Fixing test failures 88e2881 OpenDev Migration Patch 46a09f1 Fix bug in updating inventory file from an existing inventory 6aaa28f Add --services flag for deploy 07dbcbd Add .project and .pydevproject into .gitignore e87622e Drop py34 target in tox.ini and Python 3.5 is added a79a393 Bump ansible_version_min to 2.4 9f0d3f3 Remove testrepository 6e3bccf Update README.rst d39b458 Fix the "python ./cli-setup.py" command failed c9cf67f Update the ansible min version to 2.2.0 c6850cf Add import inventory command & api 231411e Check passwords.yml exist before init action c6632ef Add ability to load inventory from a file 4d732d7 Add ssh key generation to setup script 4fc34d1 Fix input import to work with py2 and py3 f87d59b Sort the children in the output of service list e315e0d Fix py3 raw_imput usage 30dd6d7 Fix for kolla/etc copy in setup script c6ada24 fix tox python3 overrides 50f3f58 Remove the unnecessary ">" 4e26ee0 Add service command unit tests 88bc113 Add group unit tests d70126e Fix 'host check --predeploy' command 1d35882 Use renamed kolla_action variable 5e3a06d Switch to using stestr 52122a6 Gate python3 unittests ccb5087 Add setup script for kolla-cli / kolla-ansible 8e960e4 Add unit tests for host commands 05daa45 Noop host destroy all when there are no hosts 5d8343a Fix host destroy double check logic a49cddd Update readme e6459aa Add support for config reset command. 8bfacb0 Run certificate init playbook as admin user bca9db2 Enable py35 functional tests e7eedc1 Support updates of None type properties a0441f7 Fix setting passwords with special characters 1862b08 Create 'certificate init' command. 9f9b073 Fix integer property persistence issue 23bec78 Don't remove host vars when removing host from group edeb5d6 Password set now works on an empty password file 2f72cc3 Fix error during host remove all 7c0bc71 Fix mypy static type checker 8b2f52e Align tests with how functional tests are handled 010b892 Updates to fix py27 / tox tests 155d174 Add initial pep8 check / gate tests 716890c Add a .gitreview file 78a1fce Updating the cli to work against kolla-ansible Diffstat (except docs and test files) ------------------------------------- .gitignore | 26 + .gitreview | 4 + .stestr.conf | 3 + .zuul.yaml | 55 + README.rst | 129 +- ansible_plugins/LICENSE | 622 ------- ansible_plugins/kolla_callback.py | 398 ---- builddocs.sh | 4 - buildrpm/openstack-kollacli.spec | 312 ---- cli_setup.py | 143 ++ .../html/_modules/kollacli/api/exceptions.html | 172 -- .../html/_modules/kollacli/api/properties.html | 276 --- .../html/_modules/kollacli/commands/deploy.html | 231 --- .../_modules/kollacli/commands/exceptions.html | 116 -- .../html/_modules/kollacli/commands/group.html | 296 --- .../html/_modules/kollacli/commands/host.html | 453 ----- .../html/_modules/kollacli/commands/password.html | 234 --- .../html/_modules/kollacli/commands/property.html | 358 ---- .../html/_modules/kollacli/commands/service.html | 214 --- .../html/_modules/kollacli/commands/support.html | 131 -- .../html/_modules/kollacli/commands/upgrade.html | 151 -- .../_modules/kollacli/common/ansible/actions.html | 337 ---- .../html/_modules/kollacli/common/ansible/job.html | 611 ------- .../_modules/kollacli/common/ansible/playbook.html | 266 --- .../html/_modules/kollacli/common/inventory.html | 768 -------- .../html/_modules/kollacli/common/passwords.html | 199 -- .../html/_modules/kollacli/common/properties.html | 456 ----- .../html/_modules/kollacli/common/sshutils.html | 187 -- .../html/_modules/kollacli/common/support.html | 320 ---- .../html/_sources/kollacli.common.ansible.txt | 38 - .../locale/openstack-kollacli.pot | 0 {kollacli => kolla_cli}/__init__.py | 0 {kollacli => kolla_cli}/api/__init__.py | 0 kolla_cli/api/certificate.py | 38 + kolla_cli/api/client.py | 77 + kolla_cli/api/config.py | 58 + kolla_cli/api/control_plane.py | 345 ++++ {kollacli => kolla_cli}/api/exceptions.py | 3 +- {kollacli => kolla_cli}/api/group.py | 16 +- {kollacli => kolla_cli}/api/host.py | 76 +- {kollacli => kolla_cli}/api/job.py | 0 {kollacli => kolla_cli}/api/password.py | 44 +- {kollacli => kolla_cli}/api/properties.py | 26 +- {kollacli => kolla_cli}/api/service.py | 19 +- {kollacli => kolla_cli}/api/support.py | 16 +- {kollacli => kolla_cli}/commands/__init__.py | 0 kolla_cli/commands/config.py | 63 + {kollacli => kolla_cli}/commands/exceptions.py | 3 +- {kollacli => kolla_cli}/commands/group.py | 77 +- {kollacli => kolla_cli}/commands/host.py | 169 +- kolla_cli/commands/kolla_action.py | 342 ++++ kolla_cli/commands/mode.py | 76 + {kollacli => kolla_cli}/commands/password.py | 8 +- {kollacli => kolla_cli}/commands/property.py | 12 +- {kollacli => kolla_cli}/commands/service.py | 17 +- {kollacli => kolla_cli}/commands/support.py | 9 +- {kollacli => kolla_cli}/common/__init__.py | 0 {kollacli => kolla_cli}/common/ansible/__init__.py | 0 kolla_cli/common/ansible/actions.py | 240 +++ kolla_cli/common/ansible/job.py | 269 +++ {kollacli => kolla_cli}/common/ansible/playbook.py | 60 +- kolla_cli/common/ansible/utils.py | 28 + .../common/ansible_inventory.py | 44 +- {kollacli => kolla_cli}/common/host.py | 0 {kollacli => kolla_cli}/common/host_group.py | 2 +- {kollacli => kolla_cli}/common/inventory.py | 159 +- {kollacli => kolla_cli}/common/passwords.py | 23 +- {kollacli => kolla_cli}/common/properties.py | 27 +- {kollacli => kolla_cli}/common/service.py | 3 + {kollacli => kolla_cli}/common/sshutils.py | 23 +- {kollacli => kolla_cli}/common/subservice.py | 2 +- {kollacli => kolla_cli}/common/support.py | 38 +- {kollacli => kolla_cli}/common/utils.py | 254 ++- {kollacli => kolla_cli}/i18n.py | 2 +- {kollacli => kolla_cli}/shell.py | 17 +- kollacli/api/client.py | 130 -- kollacli/api/control_plane.py | 130 -- kollacli/commands/deploy.py | 139 -- kollacli/commands/pull.py | 46 - kollacli/commands/reconfigure.py | 52 - kollacli/commands/upgrade.py | 59 - kollacli/common/ansible/actions.py | 245 --- kollacli/common/ansible/job.py | 519 ------ lower-constraints.txt | 109 ++ openstack-kolla-data/ansible.cfg | 347 ---- .../ansible/prechecks_preinstall.yml | 9 - releasenotes/notes/add-reno-f5e9ff4d9ccfa716.yaml | 3 + releasenotes/source/conf.py | 190 ++ .../index.txt => releasenotes/source/index.rst | 15 +- releasenotes/source/unreleased.rst | 5 + requirements.txt | 23 +- setup.cfg | 107 +- test-requirements.txt | 25 +- tools/kolla_actions.py | 98 +- tools/log_collector.py | 4 +- tox.ini | 133 +- 196 files changed, 4891 insertions(+), 22730 deletions(-) Requirements updates -------------------- diff --git a/requirements.txt b/requirements.txt index 116008f..b93694f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,13 @@ -ansible>=1.9.2 -Babel>=0.9.6 -cliff==1.13.0 # Apache-2.0 -cliff-tablib<=1.1 -jsonpickle>=0.9 -oslo.i18n>=1.3.0 # Apache-2.0 -paramiko>=1.15 -pbr>=0.10 -PyYAML>=3.10 -six>=1.9.0 +# The order of packages is significant, because pip processes them in the order +# of appearance. Changing the order has an impact on the overall integration +# process, which may cause wedges in the gate later. + +Babel>=2.5.3 # BSD +cliff>=2.11.0 # Apache-2.0 +cliff-tablib>=2.0 # Apache-2.0 +jsonpickle>=0.9 # BSD +oslo.i18n>=3.20.0 # Apache-2.0 +paramiko>=2.6.0 # LGPL +pbr!=2.1.0,>=2.0.0 # Apache-2.0 +six>=1.10.0 # MIT +docker>=2.4.2 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index dc370cb..5908061 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -5 +4,0 @@ -hacking>=0.10.2,<0.11 @@ -7,5 +6,13 @@ hacking>=0.10.2,<0.11 -bandit>=0.13.2 -coverage>=3.6 -discover -fixtures>=0.3.14 -mock>=1.0 +hacking>=1.1.0,<1.2.0 + +ansible>=2.5.0 +# security linter +bandit>=1.1.0,<1.6.0 # Apache-2.0 +coverage>=4.0 +doc8>=0.6.0 # Apache-2.0 +fixtures>=3.0.0 +mock>=2.0.0 +mypy>=0.6; python_version>'2.7' +oslo.utils>=3.33.0 # Apache-2.0 +oslotest>=3.2.0 # Apache-2.0 +stestr>=2.0.0 # Apache-2.0 @@ -13,4 +20,2 @@ pexpect>=4.0.1 -sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 -sphinxcontrib-pecanwsme>=0.8 -testrepository>=0.0.18 -testtools>=0.9.36,!=1.2.0 +testtools>=2.2.0 +typing>=3.6; python_version>'2.7'