2026-04-27 13:53:55,969 - INFO - Domain Default found not creating 2026-04-27 13:53:56,205 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98791341 not found, creating it 2026-04-27 13:53:56,707 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98791341, ID : 0dd4ef27-ebe7-4dfc-93f9-3ad30dd2c3ba 2026-04-27 13:53:58,431 - INFO - ================================================================================ 2026-04-27 13:53:58,431 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-27 13:53:58,696 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-04-27 13:53:58,696 - INFO - Initial checks done. Running the testcase now 2026-04-27 13:53:58,696 - INFO - 2026-04-27 13:53:58,696 - INFO - ================================================================================ 2026-04-27 13:53:58,696 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-27 13:53:58,696 - 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-27 13:53:59,003 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-04-27 13:53:59,003 - INFO - Initial checks done. Running the testcase now 2026-04-27 13:53:59,003 - INFO - 2026-04-27 13:53:59,694 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98791341:ctest-vn4-37734805, 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-98791341:ctest-vn4-37734805, 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-98791341:ctest-vn4-37734805, 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-98791341:ctest-vn4-37734805, 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-27 13:54:00,295 - DEBUG - Response for create_network : {'network': {'id': 'f567b9f0-bb73-4364-b7ab-8915778f7494', 'name': 'ctest-vn4-37734805', 'tenant_id': '0dd4ef27ebe74dfc93f93ad30dd2c3ba', 'project_id': '0dd4ef27ebe74dfc93f93ad30dd2c3ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98791341', 'ctest-vn4-37734805'], 'port_security_enabled': True, 'description': ''}} 2026-04-27 13:54:00,515 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b66a0a5e-fced-4a0a-8ceb-4664b70b8989', 'name': '', 'tenant_id': '0dd4ef27ebe74dfc93f93ad30dd2c3ba', 'network_id': 'f567b9f0-bb73-4364-b7ab-8915778f7494', 'ip_version': 4, 'cidr': '166.136.134.128/26', 'allocation_pools': [{'start': '166.136.134.130', 'end': '166.136.134.190'}], 'gateway_ip': '166.136.134.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.136.134.130', 'tags': [], 'project_id': '0dd4ef27ebe74dfc93f93ad30dd2c3ba'}} 2026-04-27 13:54:00,725 - DEBUG - Response for create_subnet : {'subnet': {'id': '23620391-df57-4ad6-a571-683771cbf897', 'name': '', 'tenant_id': '0dd4ef27ebe74dfc93f93ad30dd2c3ba', 'network_id': 'f567b9f0-bb73-4364-b7ab-8915778f7494', 'ip_version': 6, 'cidr': '22a6:37eb:77ae:f5ff:3024:4a0e::/96', 'allocation_pools': [{'start': '22a6:37eb:77ae:f5ff:3024:4a0e:0:2', 'end': '22a6:37eb:77ae:f5ff:3024:4a0e:ffff:fffe'}], 'gateway_ip': '22a6:37eb:77ae:f5ff:3024:4a0e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22a6:37eb:77ae:f5ff:3024:4a0e:0:2', 'tags': [], 'project_id': '0dd4ef27ebe74dfc93f93ad30dd2c3ba'}} 2026-04-27 13:54:00,756 - INFO - Created VN ctest-vn4-37734805 2026-04-27 13:54:00,810 - DEBUG - VN ctest-vn4-37734805 UUID is f567b9f0-bb73-4364-b7ab-8915778f7494 2026-04-27 13:54:01,094 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f567b9f0-bb73-4364-b7ab-8915778f7494', 'name': 'ctest-vn4-37734805', 'tenant_id': '0dd4ef27ebe74dfc93f93ad30dd2c3ba', 'project_id': '0dd4ef27ebe74dfc93f93ad30dd2c3ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b66a0a5e-fced-4a0a-8ceb-4664b70b8989', '23620391-df57-4ad6-a571-683771cbf897'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98791341', 'ctest-vn4-37734805'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98791341', 'ctest-policy1-11501281']], 'subnet_ipam': [{'subnet_cidr': '166.136.134.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22a6:37eb:77ae:f5ff:3024:4a0e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-27 13:54:01,274 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-27 13:54:01,591 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-27 13:54:01,640 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0b65d9cc-6482-4b71-b1b2-6c1e40a7d10c 2026-04-27 13:54:01,657 - DEBUG - Requesting: http://10.0.0.242:8082/project/0dd4ef27-ebe7-4dfc-93f9-3ad30dd2c3ba 2026-04-27 13:54:01,741 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f567b9f0-bb73-4364-b7ab-8915778f7494 2026-04-27 13:54:01,757 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f567b9f0-bb73-4364-b7ab-8915778f7494 2026-04-27 13:54:01,771 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f4506947-8db2-4798-b869-a296a24ef86c 2026-04-27 13:54:01,782 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f4506947-8db2-4798-b869-a296a24ef86c 2026-04-27 13:54:01,792 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/872033cb-e24f-4286-9c38-628f32812caa 2026-04-27 13:54:01,802 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-27 13:54:01,802 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f567b9f0-bb73-4364-b7ab-8915778f7494 2026-04-27 13:54:01,816 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f4506947-8db2-4798-b869-a296a24ef86c 2026-04-27 13:54:01,848 - INFO - Verified VN network id 11 for VN f567b9f0-bb73-4364-b7ab-8915778f7494 2026-04-27 13:54:01,848 - INFO - Verifications in API Server for VN ctest-vn4-37734805 passed 2026-04-27 13:54:01,848 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f567b9f0-bb73-4364-b7ab-8915778f7494 2026-04-27 13:54:01,862 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f4506947-8db2-4798-b869-a296a24ef86c 2026-04-27 13:54:01,871 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f4506947-8db2-4798-b869-a296a24ef86c 2026-04-27 13:54:01,880 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/872033cb-e24f-4286-9c38-628f32812caa 2026-04-27 13:54:01,895 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98791341:ctest-vn4-37734805', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98791341', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17683306905481724772', 'uuid-lslong': '13234822655251543188'}, 'enable': 'true', 'created': '2026-04-27T13:54:00', 'last-modified': '2026-04-27T13:54:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.858072'} 2026-04-27 13:54:01,904 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-27 13:54:01,904 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37734805 passed 2026-04-27 13:54:01,904 - DEBUG - ====Verifying policy data for ctest-vn4-37734805 in API_Server ====== 2026-04-27 13:54:01,904 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-27 13:54:01,911 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0b65d9cc-6482-4b71-b1b2-6c1e40a7d10c 2026-04-27 13:54:01,925 - DEBUG - Requesting: http://10.0.0.242:8082/project/0dd4ef27-ebe7-4dfc-93f9-3ad30dd2c3ba 2026-04-27 13:54:02,008 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/f567b9f0-bb73-4364-b7ab-8915778f7494 2026-04-27 13:54:02,022 - DEBUG - ==>Verifying data for policy with id: 280b7c2f-8d4b-4cc8-9be6-991aa02f762b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98791341', 'ctest-policy1-11501281'] 2026-04-27 13:54:02,022 - INFO - VN ctest-vn4-37734805 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-27 13:54:02,022 - DEBUG - Verifying the vn in opserver 2026-04-27 13:54:02,022 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98791341:ctest-vn4-37734805 virtual network link through opserver 10.0.0.242 2026-04-27 13:54:02,023 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-04-27 13:54:02,340 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-04-27 13:54:02,419 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98791341:ctest-vn4-37734805', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98791341:ctest-vn4-37734805?flat'} 2026-04-27 13:54:02,419 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98791341:ctest-vn4-37734805 is found in opserver 2026-04-27 13:54:02,435 - DEBUG - Do not have enough data to verify VN in agent 2026-04-27 13:54:02,443 - DEBUG - VRF ids for VN ctest-vn4-37734805: {} 2026-04-27 13:54:02,444 - DEBUG - ====Verifying data for ctest-policy1-11501281 in API_Server ====== 2026-04-27 13:54:02,444 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-27 13:54:02,453 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0b65d9cc-6482-4b71-b1b2-6c1e40a7d10c 2026-04-27 13:54:02,472 - DEBUG - Requesting: http://10.0.0.242:8082/project/0dd4ef27-ebe7-4dfc-93f9-3ad30dd2c3ba 2026-04-27 13:54:02,560 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/280b7c2f-8d4b-4cc8-9be6-991aa02f762b 2026-04-27 13:54:02,573 - INFO - Verified policy ctest-policy1-11501281 in API Server, Result: True 2026-04-27 13:54:02,573 - INFO - Done with setup and verification, moving onto test .. 2026-04-27 13:54:02,583 - INFO - Deleting VN ctest-vn4-37734805 2026-04-27 13:54:02,768 - DEBUG - Response for deleting network () 2026-04-27 13:54:02,768 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/f4506947-8db2-4798-b869-a296a24ef86c 2026-04-27 13:54:02,774 - DEBUG - Response Code: 404 2026-04-27 13:54:02,775 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-04-27 13:54:02,781 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0b65d9cc-6482-4b71-b1b2-6c1e40a7d10c 2026-04-27 13:54:02,841 - DEBUG - Requesting: http://10.0.0.242:8082/project/0dd4ef27-ebe7-4dfc-93f9-3ad30dd2c3ba 2026-04-27 13:54:02,924 - INFO - Validated that VN ctest-vn4-37734805 is not found in API Server 2026-04-27 13:54:02,935 - DEBUG - VN ctest-vn4-37734805 is not present in Agent 10.0.0.242 2026-04-27 13:54:02,935 - INFO - Validated that VN ctest-vn4-37734805 is not in any agent 2026-04-27 13:54:02,956 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37734805 info 2026-04-27 13:54:02,986 - INFO - Deleted policy ctest-policy1-11501281 2026-04-27 13:54:03,161 - DEBUG - policy ctest-policy1-11501281 is not found in API Server 2026-04-27 13:54:03,437 - DEBUG - No XMPP flaps were noticed during the test 2026-04-27 13:54:03,438 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-04-27 13:54:03,438 - INFO - -------------------------------------------------------------------------------- 2026-04-27 13:54:03,725 - DEBUG - No XMPP flaps were noticed during the test 2026-04-27 13:54:03,725 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-04-27 13:54:03,725 - INFO - -------------------------------------------------------------------------------- 2026-04-27 13:54:04,498 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-98791341, ID : 0dd4ef27-ebe7-4dfc-93f9-3ad30dd2c3ba