2026-04-28 19:03:03,163 - INFO - Domain Default found not creating 2026-04-28 19:03:03,355 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71671944 not found, creating it 2026-04-28 19:03:03,870 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71671944, ID : 7fc3db03-1d60-4f74-861f-c11ab9fbc677 2026-04-28 19:03:05,395 - INFO - ================================================================================ 2026-04-28 19:03:05,395 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 19:03:05,649 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2026-04-28 19:03:05,649 - INFO - Initial checks done. Running the testcase now 2026-04-28 19:03:05,649 - INFO - 2026-04-28 19:03:05,650 - INFO - ================================================================================ 2026-04-28 19:03:05,650 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 19:03:05,650 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2026-04-28 19:03:05,935 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2026-04-28 19:03:05,935 - INFO - Initial checks done. Running the testcase now 2026-04-28 19:03:05,936 - INFO - 2026-04-28 19:03:06,302 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71671944:ctest-vn4-27989028, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71671944:ctest-vn4-27989028, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71671944:ctest-vn4-27989028, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71671944:ctest-vn4-27989028, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2026-04-28 19:03:06,807 - DEBUG - Response for create_network : {'network': {'id': '82e1d372-7cc4-47ec-83c4-6fae38d90fc5', 'name': 'ctest-vn4-27989028', 'tenant_id': '7fc3db031d604f74861fc11ab9fbc677', 'project_id': '7fc3db031d604f74861fc11ab9fbc677', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71671944', 'ctest-vn4-27989028'], 'port_security_enabled': True, 'description': ''}} 2026-04-28 19:03:06,969 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e849955-be1f-4153-9fab-06897d185c79', 'name': '', 'tenant_id': '7fc3db031d604f74861fc11ab9fbc677', 'network_id': '82e1d372-7cc4-47ec-83c4-6fae38d90fc5', 'ip_version': 4, 'cidr': '128.166.250.64/26', 'allocation_pools': [{'start': '128.166.250.66', 'end': '128.166.250.126'}], 'gateway_ip': '128.166.250.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.166.250.66', 'tags': [], 'project_id': '7fc3db031d604f74861fc11ab9fbc677'}} 2026-04-28 19:03:07,122 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e0a3f2c-7f84-4c4f-a184-85e0ba52f757', 'name': '', 'tenant_id': '7fc3db031d604f74861fc11ab9fbc677', 'network_id': '82e1d372-7cc4-47ec-83c4-6fae38d90fc5', 'ip_version': 6, 'cidr': '3b24:5eb0:1c21:9a24:a614:74e6::/96', 'allocation_pools': [{'start': '3b24:5eb0:1c21:9a24:a614:74e6:0:2', 'end': '3b24:5eb0:1c21:9a24:a614:74e6:ffff:fffe'}], 'gateway_ip': '3b24:5eb0:1c21:9a24:a614:74e6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b24:5eb0:1c21:9a24:a614:74e6:0:2', 'tags': [], 'project_id': '7fc3db031d604f74861fc11ab9fbc677'}} 2026-04-28 19:03:07,141 - INFO - Created VN ctest-vn4-27989028 2026-04-28 19:03:07,195 - DEBUG - VN ctest-vn4-27989028 UUID is 82e1d372-7cc4-47ec-83c4-6fae38d90fc5 2026-04-28 19:03:07,403 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82e1d372-7cc4-47ec-83c4-6fae38d90fc5', 'name': 'ctest-vn4-27989028', 'tenant_id': '7fc3db031d604f74861fc11ab9fbc677', 'project_id': '7fc3db031d604f74861fc11ab9fbc677', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1e849955-be1f-4153-9fab-06897d185c79', '7e0a3f2c-7f84-4c4f-a184-85e0ba52f757'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71671944', 'ctest-vn4-27989028'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71671944', 'ctest-policy1-08477363']], 'subnet_ipam': [{'subnet_cidr': '128.166.250.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b24:5eb0:1c21:9a24:a614:74e6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-28 19:03:07,567 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-28 19:03:07,860 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-28 19:03:07,891 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08ebec29-9dfe-4d37-9485-0f6aa67ef17e 2026-04-28 19:03:07,903 - DEBUG - Requesting: http://10.0.0.38:8082/project/7fc3db03-1d60-4f74-861f-c11ab9fbc677 2026-04-28 19:03:07,975 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/82e1d372-7cc4-47ec-83c4-6fae38d90fc5 2026-04-28 19:03:07,989 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/82e1d372-7cc4-47ec-83c4-6fae38d90fc5 2026-04-28 19:03:08,000 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/358643f3-7b71-4f83-844d-aa71a9ab2ea2 2026-04-28 19:03:08,007 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/358643f3-7b71-4f83-844d-aa71a9ab2ea2 2026-04-28 19:03:08,015 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/82536e8b-f156-47dd-b512-f2897bf7c2d8 2026-04-28 19:03:08,022 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 19:03:08,022 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/82e1d372-7cc4-47ec-83c4-6fae38d90fc5 2026-04-28 19:03:08,032 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/358643f3-7b71-4f83-844d-aa71a9ab2ea2 2026-04-28 19:03:08,048 - INFO - Verified VN network id 11 for VN 82e1d372-7cc4-47ec-83c4-6fae38d90fc5 2026-04-28 19:03:08,048 - INFO - Verifications in API Server for VN ctest-vn4-27989028 passed 2026-04-28 19:03:08,048 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/82e1d372-7cc4-47ec-83c4-6fae38d90fc5 2026-04-28 19:03:08,058 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/358643f3-7b71-4f83-844d-aa71a9ab2ea2 2026-04-28 19:03:08,066 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/358643f3-7b71-4f83-844d-aa71a9ab2ea2 2026-04-28 19:03:08,075 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/82536e8b-f156-47dd-b512-f2897bf7c2d8 2026-04-28 19:03:08,088 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71671944:ctest-vn4-27989028', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71671944', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9431051583363500012', 'uuid-lslong': '9494836708472590277'}, 'enable': 'true', 'created': '2026-04-28T19:03:06', 'last-modified': '2026-04-28T19:03:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.710228'} 2026-04-28 19:03:08,095 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 19:03:08,095 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27989028 passed 2026-04-28 19:03:08,095 - DEBUG - ====Verifying policy data for ctest-vn4-27989028 in API_Server ====== 2026-04-28 19:03:08,095 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-28 19:03:08,101 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08ebec29-9dfe-4d37-9485-0f6aa67ef17e 2026-04-28 19:03:08,112 - DEBUG - Requesting: http://10.0.0.38:8082/project/7fc3db03-1d60-4f74-861f-c11ab9fbc677 2026-04-28 19:03:08,183 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/82e1d372-7cc4-47ec-83c4-6fae38d90fc5 2026-04-28 19:03:08,192 - DEBUG - ==>Verifying data for policy with id: fe9ddd21-31f6-4ca3-8073-b18eaec09e07, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71671944', 'ctest-policy1-08477363'] 2026-04-28 19:03:08,192 - INFO - VN ctest-vn4-27989028 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-28 19:03:08,192 - DEBUG - Verifying the vn in opserver 2026-04-28 19:03:08,192 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71671944:ctest-vn4-27989028 virtual network link through opserver 10.0.0.38 2026-04-28 19:03:08,193 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-28 19:03:08,495 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-28 19:03:08,559 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71671944:ctest-vn4-27989028', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71671944:ctest-vn4-27989028?flat'} 2026-04-28 19:03:08,559 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71671944:ctest-vn4-27989028 is found in opserver 2026-04-28 19:03:08,568 - DEBUG - Do not have enough data to verify VN in agent 2026-04-28 19:03:08,573 - DEBUG - VRF ids for VN ctest-vn4-27989028: {} 2026-04-28 19:03:08,573 - DEBUG - ====Verifying data for ctest-policy1-08477363 in API_Server ====== 2026-04-28 19:03:08,574 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-28 19:03:08,579 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08ebec29-9dfe-4d37-9485-0f6aa67ef17e 2026-04-28 19:03:08,589 - DEBUG - Requesting: http://10.0.0.38:8082/project/7fc3db03-1d60-4f74-861f-c11ab9fbc677 2026-04-28 19:03:08,659 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/fe9ddd21-31f6-4ca3-8073-b18eaec09e07 2026-04-28 19:03:08,669 - INFO - Verified policy ctest-policy1-08477363 in API Server, Result: True 2026-04-28 19:03:08,669 - INFO - Done with setup and verification, moving onto test .. 2026-04-28 19:03:08,677 - INFO - Deleting VN ctest-vn4-27989028 2026-04-28 19:03:08,787 - DEBUG - Response for deleting network () 2026-04-28 19:03:08,787 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/358643f3-7b71-4f83-844d-aa71a9ab2ea2 2026-04-28 19:03:08,791 - DEBUG - Response Code: 404 2026-04-28 19:03:08,792 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-28 19:03:08,797 - DEBUG - Requesting: http://10.0.0.38:8082/domain/08ebec29-9dfe-4d37-9485-0f6aa67ef17e 2026-04-28 19:03:08,852 - DEBUG - Requesting: http://10.0.0.38:8082/project/7fc3db03-1d60-4f74-861f-c11ab9fbc677 2026-04-28 19:03:08,928 - INFO - Validated that VN ctest-vn4-27989028 is not found in API Server 2026-04-28 19:03:08,938 - DEBUG - VN ctest-vn4-27989028 is not present in Agent 10.0.0.38 2026-04-28 19:03:08,938 - INFO - Validated that VN ctest-vn4-27989028 is not in any agent 2026-04-28 19:03:08,953 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27989028 info 2026-04-28 19:03:08,978 - INFO - Deleted policy ctest-policy1-08477363 2026-04-28 19:03:09,143 - DEBUG - policy ctest-policy1-08477363 is not found in API Server 2026-04-28 19:03:09,400 - DEBUG - No XMPP flaps were noticed during the test
2026-04-28 19:03:09,400 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-28 19:03:09,400 - INFO - -------------------------------------------------------------------------------- 2026-04-28 19:03:09,688 - DEBUG - No XMPP flaps were noticed during the test
2026-04-28 19:03:09,688 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-28 19:03:09,688 - INFO - -------------------------------------------------------------------------------- 2026-04-28 19:03:10,383 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71671944, ID : 7fc3db03-1d60-4f74-861f-c11ab9fbc677