2026-02-06 11:58:29,223 - INFO - Domain Default found not creating 2026-02-06 11:58:29,411 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93381541 not found, creating it 2026-02-06 11:58:29,950 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93381541, ID : ce1bcbd5-b205-4ca3-91c5-bedec0dacb0f 2026-02-06 11:58:31,517 - INFO - ================================================================================ 2026-02-06 11:58:31,517 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-06 11:58:31,773 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-06 11:58:31,773 - INFO - Initial checks done. Running the testcase now 2026-02-06 11:58:31,773 - INFO - 2026-02-06 11:58:31,773 - INFO - ================================================================================ 2026-02-06 11:58:31,773 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-06 11:58:31,773 - 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-02-06 11:58:32,077 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-06 11:58:32,077 - INFO - Initial checks done. Running the testcase now 2026-02-06 11:58:32,077 - INFO - 2026-02-06 11:58:32,444 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93381541:ctest-vn4-37889918, 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-93381541:ctest-vn4-37889918, 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-93381541:ctest-vn4-37889918, 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-93381541:ctest-vn4-37889918, 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-02-06 11:58:32,961 - DEBUG - Response for create_network : {'network': {'id': 'eb23ff6c-b907-44a4-b1bf-7dc9fdb8aa82', 'name': 'ctest-vn4-37889918', 'tenant_id': 'ce1bcbd5b2054ca391c5bedec0dacb0f', 'project_id': 'ce1bcbd5b2054ca391c5bedec0dacb0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93381541', 'ctest-vn4-37889918'], 'port_security_enabled': True, 'description': ''}} 2026-02-06 11:58:33,103 - DEBUG - Response for create_subnet : {'subnet': {'id': '47dda156-3166-4d1c-92e2-17b85c472139', 'name': '', 'tenant_id': 'ce1bcbd5b2054ca391c5bedec0dacb0f', 'network_id': 'eb23ff6c-b907-44a4-b1bf-7dc9fdb8aa82', 'ip_version': 4, 'cidr': '113.144.124.128/26', 'allocation_pools': [{'start': '113.144.124.130', 'end': '113.144.124.190'}], 'gateway_ip': '113.144.124.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.144.124.130', 'tags': [], 'project_id': 'ce1bcbd5b2054ca391c5bedec0dacb0f'}} 2026-02-06 11:58:33,292 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac226ecc-c68a-4d5d-b7a2-be12dbe86467', 'name': '', 'tenant_id': 'ce1bcbd5b2054ca391c5bedec0dacb0f', 'network_id': 'eb23ff6c-b907-44a4-b1bf-7dc9fdb8aa82', 'ip_version': 6, 'cidr': '296d:6104:db2:a86d:9464:1aca::/96', 'allocation_pools': [{'start': '296d:6104:db2:a86d:9464:1aca:0:2', 'end': '296d:6104:db2:a86d:9464:1aca:ffff:fffe'}], 'gateway_ip': '296d:6104:db2:a86d:9464:1aca:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '296d:6104:db2:a86d:9464:1aca:0:2', 'tags': [], 'project_id': 'ce1bcbd5b2054ca391c5bedec0dacb0f'}} 2026-02-06 11:58:33,313 - INFO - Created VN ctest-vn4-37889918 2026-02-06 11:58:33,369 - DEBUG - VN ctest-vn4-37889918 UUID is eb23ff6c-b907-44a4-b1bf-7dc9fdb8aa82 2026-02-06 11:58:33,574 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb23ff6c-b907-44a4-b1bf-7dc9fdb8aa82', 'name': 'ctest-vn4-37889918', 'tenant_id': 'ce1bcbd5b2054ca391c5bedec0dacb0f', 'project_id': 'ce1bcbd5b2054ca391c5bedec0dacb0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47dda156-3166-4d1c-92e2-17b85c472139', 'ac226ecc-c68a-4d5d-b7a2-be12dbe86467'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93381541', 'ctest-vn4-37889918'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93381541', 'ctest-policy1-23773641']], 'subnet_ipam': [{'subnet_cidr': '113.144.124.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '296d:6104:db2:a86d:9464:1aca::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-06 11:58:33,741 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-06 11:58:34,206 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-06 11:58:34,252 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7a2e9e8c-30b5-455c-8c38-384f3bb20d04 2026-02-06 11:58:34,265 - DEBUG - Requesting: http://10.0.0.50:8082/project/ce1bcbd5-b205-4ca3-91c5-bedec0dacb0f 2026-02-06 11:58:34,348 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eb23ff6c-b907-44a4-b1bf-7dc9fdb8aa82 2026-02-06 11:58:34,360 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eb23ff6c-b907-44a4-b1bf-7dc9fdb8aa82 2026-02-06 11:58:34,369 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/06ef0410-acac-4617-9dda-30943c613c1c 2026-02-06 11:58:34,376 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/06ef0410-acac-4617-9dda-30943c613c1c 2026-02-06 11:58:34,383 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eebc05b8-f3d3-42ea-ad08-628af56687ef 2026-02-06 11:58:34,389 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-06 11:58:34,389 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eb23ff6c-b907-44a4-b1bf-7dc9fdb8aa82 2026-02-06 11:58:34,397 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/06ef0410-acac-4617-9dda-30943c613c1c 2026-02-06 11:58:34,411 - INFO - Verified VN network id 11 for VN eb23ff6c-b907-44a4-b1bf-7dc9fdb8aa82 2026-02-06 11:58:34,411 - INFO - Verifications in API Server for VN ctest-vn4-37889918 passed 2026-02-06 11:58:34,411 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eb23ff6c-b907-44a4-b1bf-7dc9fdb8aa82 2026-02-06 11:58:34,423 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/06ef0410-acac-4617-9dda-30943c613c1c 2026-02-06 11:58:34,430 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/06ef0410-acac-4617-9dda-30943c613c1c 2026-02-06 11:58:34,439 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eebc05b8-f3d3-42ea-ad08-628af56687ef 2026-02-06 11:58:34,452 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93381541:ctest-vn4-37889918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93381541', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16943667065523750052', 'uuid-lslong': '12808094171763616386'}, 'enable': 'true', 'created': '2026-02-06T11:58:32', 'last-modified': '2026-02-06T11:58:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.901661'} 2026-02-06 11:58:34,458 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-06 11:58:34,458 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37889918 passed 2026-02-06 11:58:34,458 - DEBUG - ====Verifying policy data for ctest-vn4-37889918 in API_Server ====== 2026-02-06 11:58:34,458 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-06 11:58:34,463 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7a2e9e8c-30b5-455c-8c38-384f3bb20d04 2026-02-06 11:58:34,473 - DEBUG - Requesting: http://10.0.0.50:8082/project/ce1bcbd5-b205-4ca3-91c5-bedec0dacb0f 2026-02-06 11:58:34,542 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/eb23ff6c-b907-44a4-b1bf-7dc9fdb8aa82 2026-02-06 11:58:34,552 - DEBUG - ==>Verifying data for policy with id: dbcfe940-cfaf-4184-8bfa-e9ec64f32502, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93381541', 'ctest-policy1-23773641'] 2026-02-06 11:58:34,552 - INFO - VN ctest-vn4-37889918 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-06 11:58:34,552 - DEBUG - Verifying the vn in opserver 2026-02-06 11:58:34,552 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93381541:ctest-vn4-37889918 virtual network link through opserver 10.0.0.50 2026-02-06 11:58:34,552 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-06 11:58:34,865 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-06 11:58:34,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93381541:ctest-vn4-37889918', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93381541:ctest-vn4-37889918?flat'} 2026-02-06 11:58:34,946 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93381541:ctest-vn4-37889918 is found in opserver 2026-02-06 11:58:34,955 - DEBUG - Do not have enough data to verify VN in agent 2026-02-06 11:58:34,960 - DEBUG - VRF ids for VN ctest-vn4-37889918: {} 2026-02-06 11:58:34,960 - DEBUG - ====Verifying data for ctest-policy1-23773641 in API_Server ====== 2026-02-06 11:58:34,960 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-06 11:58:34,966 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7a2e9e8c-30b5-455c-8c38-384f3bb20d04 2026-02-06 11:58:34,980 - DEBUG - Requesting: http://10.0.0.50:8082/project/ce1bcbd5-b205-4ca3-91c5-bedec0dacb0f 2026-02-06 11:58:35,052 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/dbcfe940-cfaf-4184-8bfa-e9ec64f32502 2026-02-06 11:58:35,061 - INFO - Verified policy ctest-policy1-23773641 in API Server, Result: True 2026-02-06 11:58:35,061 - INFO - Done with setup and verification, moving onto test .. 2026-02-06 11:58:35,070 - INFO - Deleting VN ctest-vn4-37889918 2026-02-06 11:58:35,178 - DEBUG - Response for deleting network () 2026-02-06 11:58:35,178 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/06ef0410-acac-4617-9dda-30943c613c1c 2026-02-06 11:58:35,183 - DEBUG - Response Code: 404 2026-02-06 11:58:35,183 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-06 11:58:35,189 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7a2e9e8c-30b5-455c-8c38-384f3bb20d04 2026-02-06 11:58:35,247 - DEBUG - Requesting: http://10.0.0.50:8082/project/ce1bcbd5-b205-4ca3-91c5-bedec0dacb0f 2026-02-06 11:58:35,321 - INFO - Validated that VN ctest-vn4-37889918 is not found in API Server 2026-02-06 11:58:35,330 - DEBUG - VN ctest-vn4-37889918 is not present in Agent 10.0.0.50 2026-02-06 11:58:35,330 - INFO - Validated that VN ctest-vn4-37889918 is not in any agent 2026-02-06 11:58:35,345 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37889918 info 2026-02-06 11:58:35,372 - INFO - Deleted policy ctest-policy1-23773641 2026-02-06 11:58:35,537 - DEBUG - policy ctest-policy1-23773641 is not found in API Server 2026-02-06 11:58:35,791 - DEBUG - No XMPP flaps were noticed during the test
2026-02-06 11:58:35,791 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-06 11:58:35,791 - INFO - -------------------------------------------------------------------------------- 2026-02-06 11:58:36,087 - DEBUG - No XMPP flaps were noticed during the test
2026-02-06 11:58:36,087 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-06 11:58:36,087 - INFO - -------------------------------------------------------------------------------- 2026-02-06 11:58:36,792 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93381541, ID : ce1bcbd5-b205-4ca3-91c5-bedec0dacb0f