tripleo-ansible/.ansible-lint
Sandeep Yadav 7886317257 Module: tripleo_unprovision_network and cli playbook
Add the ansible module `tripleo_unprovision_network`. Currently, We
don't have an automated way to clear the resources which we create
using "openstack network provision" command /
`tripleo_composable_network` module.  This module will be used to
delete the composable networks.

We expect user to pass the required network-data.yaml when
to the unprovision command which we added in patch[1].

This module only delete subnet/networks that are defined in net-data
passed via network-data.yaml. This module will only delete a subnet
if there are no ports from corresponding subnets, A network will only
be deleted if there are no subnets in that network (This is to
safeguard us from scenarios where same networks are used with
different subnets for the separate overcloud stacks).

Also, Adds CLI playbook cli-overcloud-network-unprovision.yaml
Playbook loads configuration data file, iterates over each composable
network definition and calls the tripleo_unprovision_network to delete
the network.

[1] https://review.opendev.org/c/openstack/python-tripleoclient/+/773034

Change-Id: Ibef1d21c4d1f911e9c8ccc27253439c336c2420c
2021-06-28 16:28:43 +05:30

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
- 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_findif_for_ip
- 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
- tripleo_unprovision_network