2025-11-05 19:31:44,502 - INFO - Domain Default found not creating 2025-11-05 19:31:44,684 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19631475 not found, creating it 2025-11-05 19:31:45,144 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19631475, ID : 4576bebf-6359-4043-b055-76ee8a038253 2025-11-05 19:31:46,668 - INFO - ================================================================================ 2025-11-05 19:31:46,668 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 19:31:46,934 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-05 19:31:46,934 - INFO - Initial checks done. Running the testcase now 2025-11-05 19:31:46,934 - INFO - 2025-11-05 19:31:46,934 - INFO - ================================================================================ 2025-11-05 19:31:46,934 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 19:31:46,934 - 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. 2025-11-05 19:31:47,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-05 19:31:47,236 - INFO - Initial checks done. Running the testcase now 2025-11-05 19:31:47,236 - INFO - 2025-11-05 19:31:47,611 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19631475:ctest-vn4-43443939, 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-19631475:ctest-vn4-43443939, 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-19631475:ctest-vn4-43443939, 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-19631475:ctest-vn4-43443939, 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] 2025-11-05 19:31:48,140 - DEBUG - Response for create_network : {'network': {'id': 'b143d26f-4c30-4041-a729-c28896c25f48', 'name': 'ctest-vn4-43443939', 'tenant_id': '4576bebf63594043b05576ee8a038253', 'project_id': '4576bebf63594043b05576ee8a038253', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19631475', 'ctest-vn4-43443939'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 19:31:48,303 - DEBUG - Response for create_subnet : {'subnet': {'id': '1204833d-9464-46ae-9c78-521d63875ab9', 'name': '', 'tenant_id': '4576bebf63594043b05576ee8a038253', 'network_id': 'b143d26f-4c30-4041-a729-c28896c25f48', 'ip_version': 4, 'cidr': '46.84.199.0/26', 'allocation_pools': [{'start': '46.84.199.2', 'end': '46.84.199.62'}], 'gateway_ip': '46.84.199.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.84.199.2', 'tags': [], 'project_id': '4576bebf63594043b05576ee8a038253'}} 2025-11-05 19:31:48,453 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cb1513c-286f-41ba-b23e-2738720762e9', 'name': '', 'tenant_id': '4576bebf63594043b05576ee8a038253', 'network_id': 'b143d26f-4c30-4041-a729-c28896c25f48', 'ip_version': 6, 'cidr': '3462:6aeb:a5e0:579e:170d:9af9::/96', 'allocation_pools': [{'start': '3462:6aeb:a5e0:579e:170d:9af9:0:2', 'end': '3462:6aeb:a5e0:579e:170d:9af9:ffff:fffe'}], 'gateway_ip': '3462:6aeb:a5e0:579e:170d:9af9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3462:6aeb:a5e0:579e:170d:9af9:0:2', 'tags': [], 'project_id': '4576bebf63594043b05576ee8a038253'}} 2025-11-05 19:31:48,474 - INFO - Created VN ctest-vn4-43443939 2025-11-05 19:31:48,529 - DEBUG - VN ctest-vn4-43443939 UUID is b143d26f-4c30-4041-a729-c28896c25f48 2025-11-05 19:31:48,722 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b143d26f-4c30-4041-a729-c28896c25f48', 'name': 'ctest-vn4-43443939', 'tenant_id': '4576bebf63594043b05576ee8a038253', 'project_id': '4576bebf63594043b05576ee8a038253', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1204833d-9464-46ae-9c78-521d63875ab9', '2cb1513c-286f-41ba-b23e-2738720762e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19631475', 'ctest-vn4-43443939'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19631475', 'ctest-policy1-37027961']], 'subnet_ipam': [{'subnet_cidr': '46.84.199.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3462:6aeb:a5e0:579e:170d:9af9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 19:31:48,853 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 19:31:49,170 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 19:31:49,203 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0abf5c5-4c69-4064-b262-0314d8719ba6 2025-11-05 19:31:49,216 - DEBUG - Requesting: http://10.0.0.38:8082/project/4576bebf-6359-4043-b055-76ee8a038253 2025-11-05 19:31:49,288 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b143d26f-4c30-4041-a729-c28896c25f48 2025-11-05 19:31:49,299 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b143d26f-4c30-4041-a729-c28896c25f48 2025-11-05 19:31:49,309 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a09e817a-b60a-4239-b4d8-cc2af1bb9beb 2025-11-05 19:31:49,316 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a09e817a-b60a-4239-b4d8-cc2af1bb9beb 2025-11-05 19:31:49,323 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d5c34f36-a87b-4fb6-9a84-4a99eb3d7e83 2025-11-05 19:31:49,329 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 19:31:49,329 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b143d26f-4c30-4041-a729-c28896c25f48 2025-11-05 19:31:49,341 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a09e817a-b60a-4239-b4d8-cc2af1bb9beb 2025-11-05 19:31:49,354 - INFO - Verified VN network id 11 for VN b143d26f-4c30-4041-a729-c28896c25f48 2025-11-05 19:31:49,354 - INFO - Verifications in API Server for VN ctest-vn4-43443939 passed 2025-11-05 19:31:49,355 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b143d26f-4c30-4041-a729-c28896c25f48 2025-11-05 19:31:49,363 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a09e817a-b60a-4239-b4d8-cc2af1bb9beb 2025-11-05 19:31:49,370 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a09e817a-b60a-4239-b4d8-cc2af1bb9beb 2025-11-05 19:31:49,377 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d5c34f36-a87b-4fb6-9a84-4a99eb3d7e83 2025-11-05 19:31:49,388 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19631475:ctest-vn4-43443939', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19631475', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12773284343614292033', 'uuid-lslong': '12045372570279763784'}, 'enable': 'true', 'created': '2025-11-05T19:31:48', 'last-modified': '2025-11-05T19:31:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689374'} 2025-11-05 19:31:49,394 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 19:31:49,394 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43443939 passed 2025-11-05 19:31:49,395 - DEBUG - ====Verifying policy data for ctest-vn4-43443939 in API_Server ====== 2025-11-05 19:31:49,395 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 19:31:49,400 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0abf5c5-4c69-4064-b262-0314d8719ba6 2025-11-05 19:31:49,470 - DEBUG - Requesting: http://10.0.0.38:8082/project/4576bebf-6359-4043-b055-76ee8a038253 2025-11-05 19:31:49,544 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b143d26f-4c30-4041-a729-c28896c25f48 2025-11-05 19:31:49,553 - DEBUG - ==>Verifying data for policy with id: b806d1a6-f085-4880-a595-05632217d8e8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19631475', 'ctest-policy1-37027961'] 2025-11-05 19:31:49,553 - INFO - VN ctest-vn4-43443939 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 19:31:49,553 - DEBUG - Verifying the vn in opserver 2025-11-05 19:31:49,553 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19631475:ctest-vn4-43443939 virtual network link through opserver 10.0.0.38 2025-11-05 19:31:49,553 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-05 19:31:49,869 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-05 19:31:49,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19631475:ctest-vn4-43443939', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19631475:ctest-vn4-43443939?flat'} 2025-11-05 19:31:49,941 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19631475:ctest-vn4-43443939 is found in opserver 2025-11-05 19:31:49,951 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 19:31:49,955 - DEBUG - VRF ids for VN ctest-vn4-43443939: {} 2025-11-05 19:31:49,956 - DEBUG - ====Verifying data for ctest-policy1-37027961 in API_Server ====== 2025-11-05 19:31:49,956 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 19:31:49,961 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0abf5c5-4c69-4064-b262-0314d8719ba6 2025-11-05 19:31:49,970 - DEBUG - Requesting: http://10.0.0.38:8082/project/4576bebf-6359-4043-b055-76ee8a038253 2025-11-05 19:31:50,048 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b806d1a6-f085-4880-a595-05632217d8e8 2025-11-05 19:31:50,062 - INFO - Verified policy ctest-policy1-37027961 in API Server, Result: True 2025-11-05 19:31:50,062 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 19:31:50,070 - INFO - Deleting VN ctest-vn4-43443939 2025-11-05 19:31:50,224 - DEBUG - Response for deleting network () 2025-11-05 19:31:50,224 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a09e817a-b60a-4239-b4d8-cc2af1bb9beb 2025-11-05 19:31:50,230 - DEBUG - Response Code: 404 2025-11-05 19:31:50,230 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 19:31:50,236 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f0abf5c5-4c69-4064-b262-0314d8719ba6 2025-11-05 19:31:50,290 - DEBUG - Requesting: http://10.0.0.38:8082/project/4576bebf-6359-4043-b055-76ee8a038253 2025-11-05 19:31:50,362 - INFO - Validated that VN ctest-vn4-43443939 is not found in API Server 2025-11-05 19:31:50,376 - DEBUG - VN ctest-vn4-43443939 is not present in Agent 10.0.0.38 2025-11-05 19:31:50,376 - INFO - Validated that VN ctest-vn4-43443939 is not in any agent 2025-11-05 19:31:50,391 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43443939 info 2025-11-05 19:31:50,416 - INFO - Deleted policy ctest-policy1-37027961 2025-11-05 19:31:50,581 - DEBUG - policy ctest-policy1-37027961 is not found in API Server 2025-11-05 19:31:50,838 - DEBUG - No XMPP flaps were noticed during the test