2026-03-23 02:32:55,549 - INFO - Domain Default found not creating 2026-03-23 02:32:55,735 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83254667 not found, creating it 2026-03-23 02:32:56,218 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83254667, ID : 77270699-d230-449e-adb4-746b04c7c4b7 2026-03-23 02:32:57,817 - INFO - ================================================================================ 2026-03-23 02:32:57,817 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-23 02:32:58,075 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.129': '0'}} with 2026-03-23 02:32:58,075 - INFO - Initial checks done. Running the testcase now 2026-03-23 02:32:58,075 - INFO - 2026-03-23 02:32:58,075 - INFO - ================================================================================ 2026-03-23 02:32:58,075 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-23 02:32:58,075 - 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-03-23 02:32:58,374 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.129': '0'}} with 2026-03-23 02:32:58,374 - INFO - Initial checks done. Running the testcase now 2026-03-23 02:32:58,374 - INFO - 2026-03-23 02:32:58,745 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83254667:ctest-vn4-98088479, 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-83254667:ctest-vn4-98088479, 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-83254667:ctest-vn4-98088479, 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-83254667:ctest-vn4-98088479, 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-03-23 02:32:59,286 - DEBUG - Response for create_network : {'network': {'id': '8c63b7c7-b535-4ce6-ba43-c09ca70c5036', 'name': 'ctest-vn4-98088479', 'tenant_id': '77270699d230449eadb4746b04c7c4b7', 'project_id': '77270699d230449eadb4746b04c7c4b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83254667', 'ctest-vn4-98088479'], 'port_security_enabled': True, 'description': ''}} 2026-03-23 02:32:59,515 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ac81b1c-5c84-479a-85f4-fb622c8ff685', 'name': '', 'tenant_id': '77270699d230449eadb4746b04c7c4b7', 'network_id': '8c63b7c7-b535-4ce6-ba43-c09ca70c5036', 'ip_version': 4, 'cidr': '29.137.157.0/26', 'allocation_pools': [{'start': '29.137.157.2', 'end': '29.137.157.62'}], 'gateway_ip': '29.137.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.137.157.2', 'tags': [], 'project_id': '77270699d230449eadb4746b04c7c4b7'}} 2026-03-23 02:32:59,741 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d3a8805-dd08-4123-aa3c-54c39523a2ae', 'name': '', 'tenant_id': '77270699d230449eadb4746b04c7c4b7', 'network_id': '8c63b7c7-b535-4ce6-ba43-c09ca70c5036', 'ip_version': 6, 'cidr': '3930:b780:6d91:bdf0:3c7d:4a39::/96', 'allocation_pools': [{'start': '3930:b780:6d91:bdf0:3c7d:4a39:0:2', 'end': '3930:b780:6d91:bdf0:3c7d:4a39:ffff:fffe'}], 'gateway_ip': '3930:b780:6d91:bdf0:3c7d:4a39:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3930:b780:6d91:bdf0:3c7d:4a39:0:2', 'tags': [], 'project_id': '77270699d230449eadb4746b04c7c4b7'}} 2026-03-23 02:32:59,764 - INFO - Created VN ctest-vn4-98088479 2026-03-23 02:32:59,817 - DEBUG - VN ctest-vn4-98088479 UUID is 8c63b7c7-b535-4ce6-ba43-c09ca70c5036 2026-03-23 02:33:00,025 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c63b7c7-b535-4ce6-ba43-c09ca70c5036', 'name': 'ctest-vn4-98088479', 'tenant_id': '77270699d230449eadb4746b04c7c4b7', 'project_id': '77270699d230449eadb4746b04c7c4b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ac81b1c-5c84-479a-85f4-fb622c8ff685', '4d3a8805-dd08-4123-aa3c-54c39523a2ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83254667', 'ctest-vn4-98088479'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83254667', 'ctest-policy1-30944032']], 'subnet_ipam': [{'subnet_cidr': '29.137.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3930:b780:6d91:bdf0:3c7d:4a39::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-23 02:33:00,193 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-23 02:33:00,495 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-23 02:33:00,527 - DEBUG - Requesting: http://10.0.0.242:8082/domain/350aa37e-1f36-404e-942e-e5708f2ea1f5 2026-03-23 02:33:00,542 - DEBUG - Requesting: http://10.0.0.242:8082/project/77270699-d230-449e-adb4-746b04c7c4b7 2026-03-23 02:33:00,626 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8c63b7c7-b535-4ce6-ba43-c09ca70c5036 2026-03-23 02:33:00,642 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8c63b7c7-b535-4ce6-ba43-c09ca70c5036 2026-03-23 02:33:00,652 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a5e74571-e208-444c-a489-d0c238333217 2026-03-23 02:33:00,660 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a5e74571-e208-444c-a489-d0c238333217 2026-03-23 02:33:00,668 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8dacce3e-b894-48ac-9671-1bb823b9d13e 2026-03-23 02:33:00,675 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-23 02:33:00,675 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8c63b7c7-b535-4ce6-ba43-c09ca70c5036 2026-03-23 02:33:00,685 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a5e74571-e208-444c-a489-d0c238333217 2026-03-23 02:33:00,705 - INFO - Verified VN network id 11 for VN 8c63b7c7-b535-4ce6-ba43-c09ca70c5036 2026-03-23 02:33:00,705 - INFO - Verifications in API Server for VN ctest-vn4-98088479 passed 2026-03-23 02:33:00,705 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8c63b7c7-b535-4ce6-ba43-c09ca70c5036 2026-03-23 02:33:00,715 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a5e74571-e208-444c-a489-d0c238333217 2026-03-23 02:33:00,724 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a5e74571-e208-444c-a489-d0c238333217 2026-03-23 02:33:00,733 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8dacce3e-b894-48ac-9671-1bb823b9d13e 2026-03-23 02:33:00,746 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83254667:ctest-vn4-98088479', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83254667', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10116131256370810086', 'uuid-lslong': '13421783093544243254'}, 'enable': 'true', 'created': '2026-03-23T02:32:59', 'last-modified': '2026-03-23T02:32:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.750069'} 2026-03-23 02:33:00,752 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-23 02:33:00,753 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98088479 passed 2026-03-23 02:33:00,753 - DEBUG - ====Verifying policy data for ctest-vn4-98088479 in API_Server ====== 2026-03-23 02:33:00,753 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-23 02:33:00,759 - DEBUG - Requesting: http://10.0.0.242:8082/domain/350aa37e-1f36-404e-942e-e5708f2ea1f5 2026-03-23 02:33:00,771 - DEBUG - Requesting: http://10.0.0.242:8082/project/77270699-d230-449e-adb4-746b04c7c4b7 2026-03-23 02:33:00,843 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8c63b7c7-b535-4ce6-ba43-c09ca70c5036 2026-03-23 02:33:00,853 - DEBUG - ==>Verifying data for policy with id: fb43fe39-baaa-46d7-93f1-5a16aafbbcef, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83254667', 'ctest-policy1-30944032'] 2026-03-23 02:33:00,853 - INFO - VN ctest-vn4-98088479 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-23 02:33:00,853 - DEBUG - Verifying the vn in opserver 2026-03-23 02:33:00,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83254667:ctest-vn4-98088479 virtual network link through opserver 10.0.0.242 2026-03-23 02:33:00,853 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-23 02:33:01,152 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-23 02:33:01,220 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83254667:ctest-vn4-98088479', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83254667:ctest-vn4-98088479?flat'} 2026-03-23 02:33:01,220 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83254667:ctest-vn4-98088479 is found in opserver 2026-03-23 02:33:01,231 - DEBUG - Do not have enough data to verify VN in agent 2026-03-23 02:33:01,235 - DEBUG - VRF ids for VN ctest-vn4-98088479: {} 2026-03-23 02:33:01,236 - DEBUG - ====Verifying data for ctest-policy1-30944032 in API_Server ====== 2026-03-23 02:33:01,236 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-23 02:33:01,241 - DEBUG - Requesting: http://10.0.0.242:8082/domain/350aa37e-1f36-404e-942e-e5708f2ea1f5 2026-03-23 02:33:01,255 - DEBUG - Requesting: http://10.0.0.242:8082/project/77270699-d230-449e-adb4-746b04c7c4b7 2026-03-23 02:33:01,323 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/fb43fe39-baaa-46d7-93f1-5a16aafbbcef 2026-03-23 02:33:01,333 - INFO - Verified policy ctest-policy1-30944032 in API Server, Result: True 2026-03-23 02:33:01,333 - INFO - Done with setup and verification, moving onto test .. 2026-03-23 02:33:01,342 - INFO - Deleting VN ctest-vn4-98088479 2026-03-23 02:33:01,482 - DEBUG - Response for deleting network () 2026-03-23 02:33:01,482 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a5e74571-e208-444c-a489-d0c238333217 2026-03-23 02:33:01,489 - DEBUG - Response Code: 404 2026-03-23 02:33:01,490 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-23 02:33:01,501 - DEBUG - Requesting: http://10.0.0.242:8082/domain/350aa37e-1f36-404e-942e-e5708f2ea1f5 2026-03-23 02:33:01,516 - DEBUG - Requesting: http://10.0.0.242:8082/project/77270699-d230-449e-adb4-746b04c7c4b7 2026-03-23 02:33:01,591 - INFO - Validated that VN ctest-vn4-98088479 is not found in API Server 2026-03-23 02:33:01,603 - DEBUG - VN ctest-vn4-98088479 is not present in Agent 10.0.0.242 2026-03-23 02:33:01,603 - INFO - Validated that VN ctest-vn4-98088479 is not in any agent 2026-03-23 02:33:01,621 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98088479 info 2026-03-23 02:33:01,644 - INFO - Deleted policy ctest-policy1-30944032 2026-03-23 02:33:01,805 - DEBUG - policy ctest-policy1-30944032 is not found in API Server 2026-03-23 02:33:02,065 - DEBUG - No XMPP flaps were noticed during the test
2026-03-23 02:33:02,065 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-23 02:33:02,065 - INFO - -------------------------------------------------------------------------------- 2026-03-23 02:33:02,355 - DEBUG - No XMPP flaps were noticed during the test
2026-03-23 02:33:02,355 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-23 02:33:02,355 - INFO - -------------------------------------------------------------------------------- 2026-03-23 02:33:03,069 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-83254667, ID : 77270699-d230-449e-adb4-746b04c7c4b7