2026-04-23 02:33:22,652 - INFO - Domain Default found not creating 2026-04-23 02:33:22,837 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85532379 not found, creating it 2026-04-23 02:33:23,435 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85532379, ID : 0bfee3d2-d9cb-4b0e-861c-8a893261c6ed 2026-04-23 02:33:24,924 - INFO - ================================================================================ 2026-04-23 02:33:24,924 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 02:33:26,203 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.131': {'10.20.0.25': '0', '10.20.0.193': '0'}} with 2026-04-23 02:33:26,203 - INFO - Initial checks done. Running the testcase now 2026-04-23 02:33:26,203 - INFO - 2026-04-23 02:33:26,203 - INFO - ================================================================================ 2026-04-23 02:33:26,203 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 02:33:26,203 - 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-23 02:33:27,486 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.25': '0', '10.20.0.193': '0'}, '10.0.0.131': {'10.20.0.25': '0', '10.20.0.193': '0'}} with 2026-04-23 02:33:27,486 - INFO - Initial checks done. Running the testcase now 2026-04-23 02:33:27,486 - INFO - 2026-04-23 02:33:27,853 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509, 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-85532379:ctest-vn4-21540509, 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-85532379:ctest-vn4-21540509, 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-85532379:ctest-vn4-21540509, 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-23 02:33:28,516 - DEBUG - Response for create_network : {'network': {'id': '719fde38-b4cd-485c-b951-9595c8a0928e', 'name': 'ctest-vn4-21540509', 'tenant_id': '0bfee3d2d9cb4b0e861c8a893261c6ed', 'project_id': '0bfee3d2d9cb4b0e861c8a893261c6ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85532379', 'ctest-vn4-21540509'], 'port_security_enabled': True, 'description': ''}} 2026-04-23 02:33:28,825 - DEBUG - Response for create_subnet : {'subnet': {'id': '836a21f8-d7af-48dc-8940-7572da8c50bc', 'name': '', 'tenant_id': '0bfee3d2d9cb4b0e861c8a893261c6ed', 'network_id': '719fde38-b4cd-485c-b951-9595c8a0928e', 'ip_version': 4, 'cidr': '110.111.224.64/26', 'allocation_pools': [{'start': '110.111.224.66', 'end': '110.111.224.126'}], 'gateway_ip': '110.111.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.111.224.66', 'tags': [], 'project_id': '0bfee3d2d9cb4b0e861c8a893261c6ed'}} 2026-04-23 02:33:29,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '1fc12ac6-0fe7-4b00-9e66-31e3ecd38f02', 'name': '', 'tenant_id': '0bfee3d2d9cb4b0e861c8a893261c6ed', 'network_id': '719fde38-b4cd-485c-b951-9595c8a0928e', 'ip_version': 6, 'cidr': '21ca:ed92:f83b:e352:35f0:59fa::/96', 'allocation_pools': [{'start': '21ca:ed92:f83b:e352:35f0:59fa:0:2', 'end': '21ca:ed92:f83b:e352:35f0:59fa:ffff:fffe'}], 'gateway_ip': '21ca:ed92:f83b:e352:35f0:59fa:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21ca:ed92:f83b:e352:35f0:59fa:0:2', 'tags': [], 'project_id': '0bfee3d2d9cb4b0e861c8a893261c6ed'}} 2026-04-23 02:33:29,085 - INFO - Created VN ctest-vn4-21540509 2026-04-23 02:33:29,097 - DEBUG - VN ctest-vn4-21540509 UUID is 719fde38-b4cd-485c-b951-9595c8a0928e 2026-04-23 02:33:29,364 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '719fde38-b4cd-485c-b951-9595c8a0928e', 'name': 'ctest-vn4-21540509', 'tenant_id': '0bfee3d2d9cb4b0e861c8a893261c6ed', 'project_id': '0bfee3d2d9cb4b0e861c8a893261c6ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['836a21f8-d7af-48dc-8940-7572da8c50bc', '1fc12ac6-0fe7-4b00-9e66-31e3ecd38f02'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85532379', 'ctest-vn4-21540509'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85532379', 'ctest-policy1-85158100']], 'subnet_ipam': [{'subnet_cidr': '110.111.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21ca:ed92:f83b:e352:35f0:59fa::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-23 02:33:29,467 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-23 02:33:29,761 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-23 02:33:29,796 - DEBUG - Requesting: http://10.0.0.23:8082/domain/36692cb6-e180-463e-9a23-ae16be53ee8b 2026-04-23 02:33:29,810 - DEBUG - Requesting: http://10.0.0.23:8082/project/0bfee3d2-d9cb-4b0e-861c-8a893261c6ed 2026-04-23 02:33:29,912 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/719fde38-b4cd-485c-b951-9595c8a0928e 2026-04-23 02:33:29,922 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/719fde38-b4cd-485c-b951-9595c8a0928e 2026-04-23 02:33:29,931 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1a3a2125-c050-44eb-8010-2ec0cae048cb 2026-04-23 02:33:29,939 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1a3a2125-c050-44eb-8010-2ec0cae048cb 2026-04-23 02:33:29,945 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/4f2001e5-80d0-4e8f-b2d7-6c325b321d9b 2026-04-23 02:33:29,954 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 02:33:29,954 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/719fde38-b4cd-485c-b951-9595c8a0928e 2026-04-23 02:33:29,964 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1a3a2125-c050-44eb-8010-2ec0cae048cb 2026-04-23 02:33:29,981 - INFO - Verified VN network id 14 for VN 719fde38-b4cd-485c-b951-9595c8a0928e 2026-04-23 02:33:29,981 - INFO - Verifications in API Server for VN ctest-vn4-21540509 passed 2026-04-23 02:33:29,981 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/719fde38-b4cd-485c-b951-9595c8a0928e 2026-04-23 02:33:29,992 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1a3a2125-c050-44eb-8010-2ec0cae048cb 2026-04-23 02:33:30,000 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1a3a2125-c050-44eb-8010-2ec0cae048cb 2026-04-23 02:33:30,009 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/4f2001e5-80d0-4e8f-b2d7-6c325b321d9b 2026-04-23 02:33:30,022 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85532379', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8187506982715738204', 'uuid-lslong': '13353618840678863502'}, 'enable': 'true', 'created': '2026-04-23T02:33:28', 'last-modified': '2026-04-23T02:33:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.713114'} 2026-04-23 02:33:30,030 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 02:33:30,037 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85532379', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8187506982715738204', 'uuid-lslong': '13353618840678863502'}, 'enable': 'true', 'created': '2026-04-23T02:33:28', 'last-modified': '2026-04-23T02:33:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.744615'} 2026-04-23 02:33:30,043 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 02:33:30,050 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85532379', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8187506982715738204', 'uuid-lslong': '13353618840678863502'}, 'enable': 'true', 'created': '2026-04-23T02:33:28', 'last-modified': '2026-04-23T02:33:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.749344'} 2026-04-23 02:33:30,057 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 02:33:30,057 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21540509 passed 2026-04-23 02:33:30,057 - DEBUG - ====Verifying policy data for ctest-vn4-21540509 in API_Server ====== 2026-04-23 02:33:30,057 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-23 02:33:30,064 - DEBUG - Requesting: http://10.0.0.23:8082/domain/36692cb6-e180-463e-9a23-ae16be53ee8b 2026-04-23 02:33:30,076 - DEBUG - Requesting: http://10.0.0.23:8082/project/0bfee3d2-d9cb-4b0e-861c-8a893261c6ed 2026-04-23 02:33:30,191 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/719fde38-b4cd-485c-b951-9595c8a0928e 2026-04-23 02:33:30,201 - DEBUG - ==>Verifying data for policy with id: a937cf53-a2ef-49a6-836c-75647de221b5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85532379', 'ctest-policy1-85158100'] 2026-04-23 02:33:30,201 - INFO - VN ctest-vn4-21540509 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-23 02:33:30,201 - DEBUG - Verifying the vn in opserver 2026-04-23 02:33:30,201 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509 virtual network link through opserver 10.0.0.23 2026-04-23 02:33:30,201 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-23 02:33:30,512 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-23 02:33:30,583 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509?flat'} 2026-04-23 02:33:30,583 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509 virtual network link through opserver 10.0.0.130 2026-04-23 02:33:30,584 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-04-23 02:33:30,902 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-04-23 02:33:30,997 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509?flat'} 2026-04-23 02:33:30,997 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509 virtual network link through opserver 10.0.0.249 2026-04-23 02:33:30,997 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-23 02:33:31,304 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-23 02:33:31,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509?flat'} 2026-04-23 02:33:31,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85532379:ctest-vn4-21540509 is found in opserver 2026-04-23 02:33:31,401 - DEBUG - Do not have enough data to verify VN in agent 2026-04-23 02:33:31,413 - DEBUG - VRF ids for VN ctest-vn4-21540509: {} 2026-04-23 02:33:31,413 - DEBUG - ====Verifying data for ctest-policy1-85158100 in API_Server ====== 2026-04-23 02:33:31,413 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-23 02:33:31,419 - DEBUG - Requesting: http://10.0.0.23:8082/domain/36692cb6-e180-463e-9a23-ae16be53ee8b 2026-04-23 02:33:31,431 - DEBUG - Requesting: http://10.0.0.23:8082/project/0bfee3d2-d9cb-4b0e-861c-8a893261c6ed 2026-04-23 02:33:31,541 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/a937cf53-a2ef-49a6-836c-75647de221b5 2026-04-23 02:33:31,553 - INFO - Verified policy ctest-policy1-85158100 in API Server, Result: True 2026-04-23 02:33:31,553 - INFO - Done with setup and verification, moving onto test .. 2026-04-23 02:33:31,573 - INFO - Deleting VN ctest-vn4-21540509 2026-04-23 02:33:31,823 - DEBUG - Response for deleting network () 2026-04-23 02:33:31,823 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1a3a2125-c050-44eb-8010-2ec0cae048cb 2026-04-23 02:33:31,837 - DEBUG - Response Code: 404 2026-04-23 02:33:31,837 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-04-23 02:33:31,849 - DEBUG - Requesting: http://10.0.0.23:8082/domain/36692cb6-e180-463e-9a23-ae16be53ee8b 2026-04-23 02:33:31,866 - DEBUG - Requesting: http://10.0.0.23:8082/project/0bfee3d2-d9cb-4b0e-861c-8a893261c6ed 2026-04-23 02:33:31,973 - INFO - Validated that VN ctest-vn4-21540509 is not found in API Server 2026-04-23 02:33:31,985 - DEBUG - VN ctest-vn4-21540509 is not present in Agent 10.0.0.73 2026-04-23 02:33:32,001 - DEBUG - VN ctest-vn4-21540509 is not present in Agent 10.0.0.131 2026-04-23 02:33:32,001 - INFO - Validated that VN ctest-vn4-21540509 is not in any agent 2026-04-23 02:33:32,039 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21540509 info 2026-04-23 02:33:32,087 - INFO - Deleted policy ctest-policy1-85158100 2026-04-23 02:33:32,277 - DEBUG - policy ctest-policy1-85158100 is not found in API Server 2026-04-23 02:33:33,547 - DEBUG - No XMPP flaps were noticed during the test
2026-04-23 02:33:33,547 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-04-23 02:33:33,547 - INFO - -------------------------------------------------------------------------------- 2026-04-23 02:33:34,814 - DEBUG - No XMPP flaps were noticed during the test
2026-04-23 02:33:34,814 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-04-23 02:33:34,814 - INFO - -------------------------------------------------------------------------------- 2026-04-23 02:33:35,542 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85532379, ID : 0bfee3d2-d9cb-4b0e-861c-8a893261c6ed