2026-10-31 00:27:03,950 - INFO - Domain Default found not creating 2026-10-31 00:27:04,106 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47229791 not found, creating it 2026-10-31 00:27:04,542 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47229791, ID : a80a6bd1-fc2f-4493-bb36-adebdb259e1b 2026-10-31 00:27:06,038 - INFO - ================================================================================ 2026-10-31 00:27:06,038 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-31 00:27:06,293 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-10-31 00:27:06,293 - INFO - Initial checks done. Running the testcase now 2026-10-31 00:27:06,293 - INFO - 2026-10-31 00:27:06,293 - INFO - ================================================================================ 2026-10-31 00:27:06,293 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-31 00:27:06,293 - 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-10-31 00:27:06,584 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-10-31 00:27:06,584 - INFO - Initial checks done. Running the testcase now 2026-10-31 00:27:06,584 - INFO - 2026-10-31 00:27:06,964 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47229791:ctest-vn4-94833273, 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-47229791:ctest-vn4-94833273, 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-47229791:ctest-vn4-94833273, 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-47229791:ctest-vn4-94833273, 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-10-31 00:27:07,453 - DEBUG - Response for create_network : {'network': {'id': '082b9a5b-d768-4057-b336-d20916a8bd11', 'name': 'ctest-vn4-94833273', 'tenant_id': 'a80a6bd1fc2f4493bb36adebdb259e1b', 'project_id': 'a80a6bd1fc2f4493bb36adebdb259e1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47229791', 'ctest-vn4-94833273'], 'port_security_enabled': True, 'description': ''}} 2026-10-31 00:27:07,594 - DEBUG - Response for create_subnet : {'subnet': {'id': '3eba4a95-2c49-4169-9a21-6b4e46e649be', 'name': '', 'tenant_id': 'a80a6bd1fc2f4493bb36adebdb259e1b', 'network_id': '082b9a5b-d768-4057-b336-d20916a8bd11', 'ip_version': 4, 'cidr': '146.212.171.192/26', 'allocation_pools': [{'start': '146.212.171.194', 'end': '146.212.171.254'}], 'gateway_ip': '146.212.171.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.212.171.194', 'tags': [], 'project_id': 'a80a6bd1fc2f4493bb36adebdb259e1b'}} 2026-10-31 00:27:07,753 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2aa0ca7-1139-4aba-a3c7-7ef33e6b41d6', 'name': '', 'tenant_id': 'a80a6bd1fc2f4493bb36adebdb259e1b', 'network_id': '082b9a5b-d768-4057-b336-d20916a8bd11', 'ip_version': 6, 'cidr': '2021:170:d051:2b12:c365:a6cf::/96', 'allocation_pools': [{'start': '2021:170:d051:2b12:c365:a6cf:0:2', 'end': '2021:170:d051:2b12:c365:a6cf:ffff:fffe'}], 'gateway_ip': '2021:170:d051:2b12:c365:a6cf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2021:170:d051:2b12:c365:a6cf:0:2', 'tags': [], 'project_id': 'a80a6bd1fc2f4493bb36adebdb259e1b'}} 2026-10-31 00:27:07,768 - INFO - Created VN ctest-vn4-94833273 2026-10-31 00:27:07,819 - DEBUG - VN ctest-vn4-94833273 UUID is 082b9a5b-d768-4057-b336-d20916a8bd11 2026-10-31 00:27:07,986 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '082b9a5b-d768-4057-b336-d20916a8bd11', 'name': 'ctest-vn4-94833273', 'tenant_id': 'a80a6bd1fc2f4493bb36adebdb259e1b', 'project_id': 'a80a6bd1fc2f4493bb36adebdb259e1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['3eba4a95-2c49-4169-9a21-6b4e46e649be', 'a2aa0ca7-1139-4aba-a3c7-7ef33e6b41d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47229791', 'ctest-vn4-94833273'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47229791', 'ctest-policy1-25934769']], 'subnet_ipam': [{'subnet_cidr': '146.212.171.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2021:170:d051:2b12:c365:a6cf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-31 00:27:08,147 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-31 00:27:08,460 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-31 00:27:08,482 - DEBUG - Requesting: http://10.0.0.177:8082/domain/26f98261-18cb-4a0f-9a0b-df0d3247dd8e 2026-10-31 00:27:08,492 - DEBUG - Requesting: http://10.0.0.177:8082/project/a80a6bd1-fc2f-4493-bb36-adebdb259e1b 2026-10-31 00:27:08,561 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/082b9a5b-d768-4057-b336-d20916a8bd11 2026-10-31 00:27:08,573 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/082b9a5b-d768-4057-b336-d20916a8bd11 2026-10-31 00:27:08,582 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/f1a43cfe-9229-4b3a-bf67-eab5ae0706f5 2026-10-31 00:27:08,589 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/f1a43cfe-9229-4b3a-bf67-eab5ae0706f5 2026-10-31 00:27:08,594 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/75d8b8ce-a39c-47b5-a6ad-55684a3d7f41 2026-10-31 00:27:08,600 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-31 00:27:08,600 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/082b9a5b-d768-4057-b336-d20916a8bd11 2026-10-31 00:27:08,609 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/f1a43cfe-9229-4b3a-bf67-eab5ae0706f5 2026-10-31 00:27:08,619 - INFO - Verified VN network id 11 for VN 082b9a5b-d768-4057-b336-d20916a8bd11 2026-10-31 00:27:08,620 - INFO - Verifications in API Server for VN ctest-vn4-94833273 passed 2026-10-31 00:27:08,620 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/082b9a5b-d768-4057-b336-d20916a8bd11 2026-10-31 00:27:08,628 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/f1a43cfe-9229-4b3a-bf67-eab5ae0706f5 2026-10-31 00:27:08,634 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/f1a43cfe-9229-4b3a-bf67-eab5ae0706f5 2026-10-31 00:27:08,639 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/75d8b8ce-a39c-47b5-a6ad-55684a3d7f41 2026-10-31 00:27:08,649 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47229791:ctest-vn4-94833273', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47229791', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '588733895548616791', 'uuid-lslong': '12913739918008171793'}, 'enable': 'true', 'created': '2026-10-31T00:27:07', 'last-modified': '2026-10-31T00:27:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.685282'} 2026-10-31 00:27:08,656 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-31 00:27:08,656 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94833273 passed 2026-10-31 00:27:08,656 - DEBUG - ====Verifying policy data for ctest-vn4-94833273 in API_Server ====== 2026-10-31 00:27:08,656 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-31 00:27:08,660 - DEBUG - Requesting: http://10.0.0.177:8082/domain/26f98261-18cb-4a0f-9a0b-df0d3247dd8e 2026-10-31 00:27:08,669 - DEBUG - Requesting: http://10.0.0.177:8082/project/a80a6bd1-fc2f-4493-bb36-adebdb259e1b 2026-10-31 00:27:08,736 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/082b9a5b-d768-4057-b336-d20916a8bd11 2026-10-31 00:27:08,744 - DEBUG - ==>Verifying data for policy with id: db570d71-fb01-4c47-9e10-68cd29f6063f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47229791', 'ctest-policy1-25934769'] 2026-10-31 00:27:08,744 - INFO - VN ctest-vn4-94833273 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-31 00:27:08,744 - DEBUG - Verifying the vn in opserver 2026-10-31 00:27:08,744 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47229791:ctest-vn4-94833273 virtual network link through opserver 10.0.0.177 2026-10-31 00:27:08,744 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-10-31 00:27:09,055 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-10-31 00:27:09,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47229791:ctest-vn4-94833273', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47229791:ctest-vn4-94833273?flat'} 2026-10-31 00:27:09,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47229791:ctest-vn4-94833273 is found in opserver 2026-10-31 00:27:09,105 - DEBUG - Do not have enough data to verify VN in agent 2026-10-31 00:27:09,109 - DEBUG - VRF ids for VN ctest-vn4-94833273: {} 2026-10-31 00:27:09,109 - DEBUG - ====Verifying data for ctest-policy1-25934769 in API_Server ====== 2026-10-31 00:27:09,109 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-31 00:27:09,114 - DEBUG - Requesting: http://10.0.0.177:8082/domain/26f98261-18cb-4a0f-9a0b-df0d3247dd8e 2026-10-31 00:27:09,121 - DEBUG - Requesting: http://10.0.0.177:8082/project/a80a6bd1-fc2f-4493-bb36-adebdb259e1b 2026-10-31 00:27:09,194 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/db570d71-fb01-4c47-9e10-68cd29f6063f 2026-10-31 00:27:09,204 - INFO - Verified policy ctest-policy1-25934769 in API Server, Result: True 2026-10-31 00:27:09,204 - INFO - Done with setup and verification, moving onto test .. 2026-10-31 00:27:09,210 - INFO - Deleting VN ctest-vn4-94833273 2026-10-31 00:27:09,308 - DEBUG - Response for deleting network () 2026-10-31 00:27:09,309 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/f1a43cfe-9229-4b3a-bf67-eab5ae0706f5 2026-10-31 00:27:09,312 - DEBUG - Response Code: 404 2026-10-31 00:27:09,312 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-10-31 00:27:09,321 - DEBUG - Requesting: http://10.0.0.177:8082/domain/26f98261-18cb-4a0f-9a0b-df0d3247dd8e 2026-10-31 00:27:09,376 - DEBUG - Requesting: http://10.0.0.177:8082/project/a80a6bd1-fc2f-4493-bb36-adebdb259e1b 2026-10-31 00:27:09,444 - INFO - Validated that VN ctest-vn4-94833273 is not found in API Server 2026-10-31 00:27:09,452 - DEBUG - VN ctest-vn4-94833273 is not present in Agent 10.0.0.177 2026-10-31 00:27:09,452 - INFO - Validated that VN ctest-vn4-94833273 is not in any agent 2026-10-31 00:27:09,464 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94833273 info 2026-10-31 00:27:09,487 - INFO - Deleted policy ctest-policy1-25934769 2026-10-31 00:27:09,651 - DEBUG - policy ctest-policy1-25934769 is not found in API Server 2026-10-31 00:27:09,904 - DEBUG - No XMPP flaps were noticed during the test
2026-10-31 00:27:09,904 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-10-31 00:27:09,905 - INFO - -------------------------------------------------------------------------------- 2026-10-31 00:27:10,191 - DEBUG - No XMPP flaps were noticed during the test
2026-10-31 00:27:10,191 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-31 00:27:10,191 - INFO - -------------------------------------------------------------------------------- 2026-10-31 00:27:10,885 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-47229791, ID : a80a6bd1-fc2f-4493-bb36-adebdb259e1b