We high-spiritedly announce the release of: tripleo-common 11.1.0: A common library for TripleO workflows. This release is part of the train release series. The source is available from: https://opendev.org/openstack/tripleo-common Download the package from: https://tarballs.openstack.org/tripleo-common/ Please report issues through: https://bugs.launchpad.net/tripleo-common/+bugs For more details, please see below. 11.1.0 ^^^^^^ New Features ************ * The *bindep.txt* file located in the project root contains all of the basic required packages needed when running local tests. * Developers can now use bindep to list system requirements. The bindep command will load the list of packages for the given platform using the *bindep.txt* file. * Bindep can now be leveraged via tox using the environment **bindep**. This tox environment will use bindep via the *bindep- install* script to install any missing packages on the local system which are required for development purposes. Bug Fixes ********* * The verbosity of the config-download ansible tasks now defaults to 0 instead of 1. This makes the tasks not verbose by default. The verbosity specified on the command line with the deployment command is now honored and can be used to disable verbosity or increase the verbosity level as needed. * The passphrase for config option 'server_certs_key_passphrase', is used as a Fernet key in Octavia and thus must be 32 bytes long. TripleO will now auto-generate 32 bytes long passphrase for OctaviaServerCertsKeyPassphrase. Changes in tripleo-common 11.0.0..11.1.0 ---------------------------------------- b40e95ec Set container=oci for our containers 33bd9240 Skip standalone deploys if tox jobs fail fd22cde2 Update kolla builder tests for new service path cbd8d715 Add get_key tasks for package update 9bcfc867 Set scenario009 job voting to false 0e08cc74 Rsyslog image pull ab0c5eb6 Make a more ansible-ish test on hieradata_files list content 0be1be77 Ensure we're raising proper exceptions 0faa6328 Correct how we fetch External and InternalApi networks name b58b71ec Remove the tripleo.plan_management.v1.list_sample_plans workflow 70b1daa4 Create <service> _cell_node_names if nova_additional_cell 3b15a4dc Remove pika from container builds cc4a3447 Make instances name/hostname optional 8ab13dd5 Also write NetworkConfig to role dir 3c4cb58d Added support of overcloud os_cloud 460b99ae Image Uploader - get_undercloud_registry IPv6 50e464c6 Remove tripleo-common/playbooks 59f82317 Add fqdn and cloud_domain templates to tripleo-hieradata b29b44c3 Add net_ip_map template to tripleo-hieradata 4596f0f3 Exit 1 when container image prepare fails aa8132b7 Processing available Ansible variables as 'parameters' not as 'metadata' 56921742 Get all the available Ansible variables for each validations 7d0da3b4 Stop writing allnodes_vars in inventory d60eb1b4 Python 3 fixes for tripleo-hieradata role 29ef322d Remove the tripleo.plan_management.v1.publish_ui_logs_to_swiftworkflow a2fef2af Remove the tripleo.plan_management.v1.download_logs workflow de2ab558 Ensure that OctaviaServerCertsKeyPassphrase is 32-byte long 1ebdaa70 Add sudo commands for validations tempfile created in Python3 ecd37380 Handle empty NetworkConfig 6d152eaf Linting hardening via pre-commit 1111d4ad Adds tox environment to test requirements conflicts b485aa18 Remove roles that have been imported into tripleo-ansible 8fb1b9ed Add new images for ceph dashboard composable service. 67440277 Check third-party container image metadata. 372be646 Don't calculate vips for some services a0100c43 Add vip_data template to tripleo-hieradata 008af910 Add all_nodes template to tripleo-hieradata. 73f27fe3 remove plotnetcfg from overcloud image yaml ca5f7f8f Fix regression in UpdateParametersAction 87c1cac5 trigger image-build off of image-yaml changes c94ee2bb Add template mode to tripleo-hieradata 06b38c4f Install dumb-init rpm 557fcf67 Minor tox molecule fixes 51d723a9 Handle registries with incorrect certs correctly 94c0c092 tripleo-hieradata: add hieradata_files param 7e8c221f Adds job that runs molecule tests afcd0890 tripleo-hieradata/per-host: use inventory_hostname 2d541ba5 Add tripleo-ansible directory namespace a1495d5f Fix ansible-lint errors 0f8d7630 Don't validate stack in task for backup ceph fetch dir 9e26f857 tripleo-hieradata: introduce hieradata_per_host 0c2efab5 Populate Ansible Host variables with AnsibleHostVarsMap 6cfc2046 Fix tripleo-upgrade-hiera key deleting 26a3d7e6 Fix bashate and flake8 errors 6942ac00 Update the Undercloud Services list in the inventory. 85b7a4ee Render NetworkConfig into config-download dir 70a9cab2 Preserve file extension in config-download 45998199 Remove scenario008 jobs 4071b56b Set resource_registry deployed-server port 8f2e1064 Increase timeout of temp swift URLs from 1 to 4 hours 067473ca Fix bare variable usage in ansible 3f486307 Add ceph-ansible support to tripleo-ansible-inventory 8862ea83 Add bindep support to tox 4132ee40 Add general LOG in kolla_builder.py. 82450668 Rework create_or_find_kernel_and_ramdisk to match the current reality 709f3b4d Convert Docker*Image parameters c58d7cda Transfer all images in a manifest list 8cf8db2f Replace git.openstack.org URLs with opendev.org URLs 12a415a8 utils/config: generate param_config.json if param_config exists 86bb40cf Don't force verbosity of 1 for config-download 5a11fb16 Remove ProcessTemplatesAction as base class 8519dccc Update programming language mentioned in setup.cfg Diffstat (except docs and test files) ------------------------------------- .ansible-lint | 11 + .pre-commit-config.yaml | 36 ++ README.rst | 4 +- ansible_plugins/callback/json_error.py | 62 --- bindep.txt | 35 ++ .../container_image_prepare_defaults.yaml | 16 + container-images/overcloud_containers.yaml | 10 +- container-images/overcloud_containers.yaml.j2 | 421 +++++++++++---------- .../tripleo_kolla_template_overrides.j2 | 13 +- healthcheck/cron | 8 +- healthcheck/opendaylight-api | 2 +- healthcheck/zaqar-socket | 8 +- image-yaml/overcloud-hardened-images-uefi.yaml | 1 - image-yaml/overcloud-hardened-images.yaml | 1 - image-yaml/overcloud-images-python3.yaml | 1 - image-yaml/overcloud-images.yaml | 1 - image-yaml/overcloud-realtime-compute.yaml | 1 - lower-constraints.txt | 3 - playbooks/octavia-files.yaml | 95 ----- playbooks/roles/common/defaults/main.yml | 19 - .../octavia-controller-config/handlers/main.yml | 5 - .../roles/octavia-controller-config/meta/main.yml | 2 - .../tasks/certificate.yml | 22 -- .../roles/octavia-controller-config/tasks/main.yml | 19 - .../tasks/netinterface.yml | 20 - .../octavia-controller-config/tasks/netport.yml | 57 --- .../octavia-controller-config/tasks/octavia.yml | 55 --- .../templates/ifcfg-br-int.j2 | 6 - .../octavia-controller-config/templates/ifcfg.j2 | 19 - .../templates/manager-post-deploy.conf.j2 | 2 - .../defaults/main.yml | 1 - .../octavia-controller-post-config/meta/main.yml | 2 - .../octavia-controller-post-config/tasks/main.yml | 46 --- .../roles/octavia-overcloud-config/meta/main.yml | 2 - .../octavia-overcloud-config/tasks/certs_gen.yml | 72 ---- .../roles/octavia-overcloud-config/tasks/main.yml | 6 - .../octavia-overcloud-config/tasks/network.yml | 82 ---- .../octavia-overcloud-config/tasks/quotas.yml | 4 - playbooks/roles/octavia-undercloud/meta/main.yml | 2 - .../roles/octavia-undercloud/tasks/image_mgmt.yml | 118 ------ playbooks/roles/octavia-undercloud/tasks/main.yml | 63 --- playbooks/rotate-keys.yaml | 72 ---- playbooks/swift_ring_rebalance.yaml | 121 ------ .../notes/bindep-tox-606dbe4ddf68f7a6.yaml | 12 + ...config-download-verbosity-ab2e89e169c208a7.yaml | 7 + ...fix-api-network-rendering-5a65009051a0f464.yaml | 2 +- ...rver_certs_key_passphrase-60cba4653109992c.yaml | 5 + ...date-programming-language-54ded15322426458.yaml | 5 + releasenotes/source/conf.py | 113 +++--- roles/tripleo-bootstrap/README.md | 39 -- roles/tripleo-bootstrap/defaults/main.yml | 13 - roles/tripleo-bootstrap/handlers/main.yml | 1 - roles/tripleo-bootstrap/meta/main.yml | 1 - roles/tripleo-bootstrap/tasks/main.yml | 94 ----- roles/tripleo-container-rm/README.md | 34 -- roles/tripleo-container-rm/defaults/main.yaml | 2 - roles/tripleo-container-rm/tasks/docker.yaml | 21 - roles/tripleo-container-rm/tasks/main.yaml | 5 - roles/tripleo-container-rm/tasks/podman.yaml | 41 -- roles/tripleo-container-tag/README.md | 42 -- roles/tripleo-container-tag/defaults/main.yaml | 3 - roles/tripleo-container-tag/tasks/main.yaml | 7 - roles/tripleo-create-admin/README.md | 57 --- roles/tripleo-create-admin/defaults/main.yml | 2 - .../tripleo-create-admin/tasks/authorize_user.yml | 5 - roles/tripleo-create-admin/tasks/create_user.yml | 38 -- roles/tripleo-create-admin/tasks/main.yml | 2 - roles/tripleo-docker-rm/README.md | 42 -- roles/tripleo-docker-rm/defaults/main.yaml | 2 - roles/tripleo-docker-rm/tasks/main.yaml | 22 -- roles/tripleo-hieradata/README.md | 2 + roles/tripleo-hieradata/defaults/main.yaml | 11 +- roles/tripleo-hieradata/tasks/all_hosts.yaml | 8 + roles/tripleo-hieradata/tasks/hieradata_vars.yaml | 5 + roles/tripleo-hieradata/tasks/main.yaml | 60 ++- roles/tripleo-hieradata/tasks/per_host.yaml | 9 + roles/tripleo-hieradata/templates/all_nodes.j2 | 56 +++ .../tripleo-hieradata/templates/bootstrap_node.j2 | 3 + roles/tripleo-hieradata/templates/cloud_domain.j2 | 3 + roles/tripleo-hieradata/templates/fqdn.j2 | 11 + roles/tripleo-hieradata/templates/net_ip_map.j2 | 18 + roles/tripleo-hieradata/templates/vip_data.j2 | 54 +++ roles/tripleo-hieradata/test-playbook.yaml | 15 +- roles/tripleo-image-serve/README.md | 34 -- roles/tripleo-image-serve/defaults/main.yml | 5 - roles/tripleo-image-serve/handlers/main.yml | 16 - roles/tripleo-image-serve/tasks/main.yml | 42 -- .../templates/image-serve.conf.j2 | 29 -- roles/tripleo-module-load/defaults/main.yaml | 7 - roles/tripleo-module-load/tasks/main.yaml | 52 --- .../templates/module-load.conf.j2 | 2 - roles/tripleo-persist/tasks/cleanup.yml | 4 +- roles/tripleo-persist/tasks/persist.yml | 14 +- roles/tripleo-persist/tasks/restore.yml | 8 +- roles/tripleo-ssh-known-hosts/README.md | 41 -- roles/tripleo-ssh-known-hosts/defaults/main.yml | 3 - roles/tripleo-ssh-known-hosts/handlers/main.yml | 1 - roles/tripleo-ssh-known-hosts/meta/main.yml | 1 - roles/tripleo-ssh-known-hosts/tasks/main.yml | 30 -- roles/tripleo-transfer/README.md | 57 --- roles/tripleo-transfer/defaults/main.yml | 5 - roles/tripleo-transfer/tasks/cleanup.yml | 6 - roles/tripleo-transfer/tasks/main.yml | 77 ---- roles/tripleo-transfer/test-playbook.yml | 11 - .../tasks/create-tripleo-upgrade-file.yml | 10 +- roles/tripleo-upgrade-hiera/tasks/remove-all.yml | 2 +- roles/tripleo-upgrade-hiera/tasks/remove.yml | 14 +- roles/tripleo-upgrade-hiera/tasks/set.yml | 2 +- scripts/bindep-install | 45 +++ scripts/pull-puppet-modules | 2 +- scripts/tripleo-build-images | 14 +- scripts/tripleo-config-download | 5 +- scripts/tripleo-container-image-prepare | 2 + scripts/tripleo-deploy-openshift | 118 +++--- setup.cfg | 21 +- sudoers | 6 +- test-requirements.txt | 6 +- tox.ini | 99 +++-- tripleo_common/actions/ansible.py | 10 + tripleo_common/actions/baremetal_deploy.py | 61 ++- tripleo_common/actions/config.py | 10 +- tripleo_common/actions/deployment.py | 50 ++- tripleo_common/actions/package_update.py | 11 +- tripleo_common/actions/parameters.py | 31 +- tripleo_common/actions/scale.py | 11 +- tripleo_common/actions/templates.py | 2 +- tripleo_common/constants.py | 13 +- tripleo_common/image/builder/buildah.py | 30 +- tripleo_common/image/image_export.py | 39 +- tripleo_common/image/image_uploader.py | 195 ++++++---- tripleo_common/image/kolla_builder.py | 14 +- tripleo_common/inventory.py | 34 +- tripleo_common/templates/deployments.yaml | 24 +- tripleo_common/templates/host_var_server.j2 | 8 +- .../utils/data/host_vars/overcloud-controller-0 | 3 + .../utils/data/host_vars/overcloud-novacompute-0 | 2 + .../utils/data/host_vars/overcloud-novacompute-1 | 2 + .../utils/data/host_vars/overcloud-novacompute-2 | 2 + tripleo_common/utils/clouds_yaml.py | 74 ++++ tripleo_common/utils/common.py | 27 ++ tripleo_common/utils/config.py | 68 +++- tripleo_common/utils/glance.py | 48 +-- tripleo_common/utils/nodes.py | 18 +- tripleo_common/utils/overcloudrc.py | 18 +- tripleo_common/utils/passwords.py | 2 + tripleo_common/utils/process.py | 4 +- tripleo_common/utils/validations.py | 11 +- workbooks/deployment.yaml | 38 +- workbooks/fernet-key-rotate.yaml | 2 +- workbooks/package_update.yaml | 25 ++ workbooks/plan_management.yaml | 227 +---------- workbooks/swift_ring_rebalance.yaml | 2 +- zuul.d/layout.yaml | 41 +- 169 files changed, 2200 insertions(+), 2896 deletions(-) Requirements updates -------------------- diff --git a/test-requirements.txt b/test-requirements.txt index 698e4363..aec5dbe7 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -7,2 +6,0 @@ openstackdocstheme>=1.18.1 # Apache-2.0 -hacking>=1.1.0,<1.2.0 # Apache-2.0 - @@ -12 +10,2 @@ python-subunit>=1.0.0 # Apache-2.0/BSD -sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD +sphinx!=1.6.6,!=1.6.7,>=1.6.2; python_version=='2.7' # BSD +sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2; python_version>='3.4' # BSD @@ -20 +18,0 @@ urllib3>=1.21.1 # MIT -bashate>=0.2 # Apache-2.0