tripleo-ansible/.ansible-lint
Harald Jensås c1aae46f1f Delete OVN MAC addr ports prior to deleting stack
With I6ce29d2908e76044c55eb96d0d3779fe67ba9169 the
OVN MAC address ports created as part of deploy-steps
playbook run won't be cleaned up on 'overcloud delete'

This change fixes that by running the ansible module
tripleo_ovn_mac_addresses without specifying a list
of services.

NOTE: This backport also includes the fixes in change:
  I1f02487e0ae9da4f7a455a1142f94f0ecdd8450c

Fix issues in tripleo_ovn_mac_addresses module

- Don't initialize thread pool when no servers
  (can't do with 0 workers)
- Fix bridge_mappings default
- Don't call write_vars_file when no servers or static_mappings

Also use correct argument for stack_name in
cli-overcloud-delete.yaml playbook.

Implements: blueprint network-data-v2-port
Depends-On: https://review.opendev.org/792522
Change-Id: Id08cb1f907ba9ea9fb1bf1865d8a6491b463c44d
(cherry picked from commit c87997e36a)
(cherry picked from commit 8ef33773a2)
2021-05-21 11:54:55 +02:00

72 lines
2.2 KiB
Plaintext

exclude_paths:
- releasenotes/
parseable: true
quiet: false
rulesdir:
- .ansible-lint_rules/
verbosity: 1
# Mocking modules is not recommended as it prevents testing of invalid
# arguments or lack of their presence at runtime. It is preffered to
# make use of requirements.yml to declare them.
mock_roles:
- ceph-defaults
- ceph-facts
mock_modules:
- baremetal_nodes_validate
- baremetal_register_or_update_nodes
- ceph_crush_rule
- ceph_dashboard_user
- ceph_key
- ceph_fs
- ceph_pool
- ceph_mkspec
- ceph_spec_bootstrap
- config_template
- container_startup_config
- lvm2_physical_devices_facts
- metalsmith_instances
- os_baremetal_clean_node
- os_baremetal_provide_node
- os_tripleo_baremetal_configure
- os_tripleo_baremetal_node_introspection
- podman_container
- podman_container_info
- podman_volume_info
- tripleo_baremetal_check_existing
- tripleo_baremetal_expand_roles
- tripleo_baremetal_populate_environment
- tripleo_build_heat_environment
- tripleo_composable_network
- tripleo_config_download
- tripleo_container_config_scripts
- tripleo_container_configs
- tripleo_container_image_prepare
- tripleo_derive_hci_parameters
- tripleo_diff_exec
- tripleo_fernet_keys_rotate
- tripleo_generate_ansible_inventory
- tripleo_generate_overcloudrc
- tripleo_get_flatten_stack
- tripleo_get_introspected_data
- tripleo_get_role_list
- tripleo_image_params_prepare
- tripleo_iptables
- tripleo_network_populate_environment
- tripleo_network_ports_populate_environment
- tripleo_os_net_config
- tripleo_os_net_config_mappings
- tripleo_overcloud_network_extract
- tripleo_overcloud_network_ports
- tripleo_passwords_rotate
- tripleo_plan_deploy
- tripleo_plan_parameters_update
- tripleo_service_vip
- tripleo_swift_tempurl
- tripleo_templates_upload
- tripleo_unmanaged_populate_environment
- tripleo_generate_inventory_network_config
- tripleo_overcloud_network_vip_extract
- tripleo_overcloud_network_vip_provision
- tripleo_overcloud_network_vip_populate_environment
- tripleo_ovn_mac_addresses