2026-04-29 22:28:50,864 - INFO - Domain Default found not creating 2026-04-29 22:28:51,031 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70927730 not found, creating it 2026-04-29 22:28:51,535 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70927730, ID : 933097be-a152-4bc4-9f98-c51cc75dfee7 2026-04-29 22:28:53,115 - INFO - ================================================================================ 2026-04-29 22:28:53,115 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 22:28:53,370 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-04-29 22:28:53,370 - INFO - Initial checks done. Running the testcase now 2026-04-29 22:28:53,370 - INFO - 2026-04-29 22:28:53,370 - INFO - ================================================================================ 2026-04-29 22:28:53,370 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 22:28:53,370 - 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-29 22:28:53,662 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-04-29 22:28:53,662 - INFO - Initial checks done. Running the testcase now 2026-04-29 22:28:53,662 - INFO - 2026-04-29 22:28:54,055 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70927730:ctest-vn4-07475573, 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-70927730:ctest-vn4-07475573, 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-70927730:ctest-vn4-07475573, 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-70927730:ctest-vn4-07475573, 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-29 22:28:54,583 - DEBUG - Response for create_network : {'network': {'id': '05968f23-8a9c-4541-9529-48d5f6649b6a', 'name': 'ctest-vn4-07475573', 'tenant_id': '933097bea1524bc49f98c51cc75dfee7', 'project_id': '933097bea1524bc49f98c51cc75dfee7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70927730', 'ctest-vn4-07475573'], 'port_security_enabled': True, 'description': ''}} 2026-04-29 22:28:54,799 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7949b32-5a4d-406f-9670-c1bcda876fd7', 'name': '', 'tenant_id': '933097bea1524bc49f98c51cc75dfee7', 'network_id': '05968f23-8a9c-4541-9529-48d5f6649b6a', 'ip_version': 4, 'cidr': '92.69.249.0/26', 'allocation_pools': [{'start': '92.69.249.2', 'end': '92.69.249.62'}], 'gateway_ip': '92.69.249.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.69.249.2', 'tags': [], 'project_id': '933097bea1524bc49f98c51cc75dfee7'}} 2026-04-29 22:28:54,956 - DEBUG - Response for create_subnet : {'subnet': {'id': '13c7f7d2-767f-46de-a6b5-1a10caa2e607', 'name': '', 'tenant_id': '933097bea1524bc49f98c51cc75dfee7', 'network_id': '05968f23-8a9c-4541-9529-48d5f6649b6a', 'ip_version': 6, 'cidr': '3b08:a0dc:9cb0:40ed:107f:b7f9::/96', 'allocation_pools': [{'start': '3b08:a0dc:9cb0:40ed:107f:b7f9:0:2', 'end': '3b08:a0dc:9cb0:40ed:107f:b7f9:ffff:fffe'}], 'gateway_ip': '3b08:a0dc:9cb0:40ed:107f:b7f9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b08:a0dc:9cb0:40ed:107f:b7f9:0:2', 'tags': [], 'project_id': '933097bea1524bc49f98c51cc75dfee7'}} 2026-04-29 22:28:54,976 - INFO - Created VN ctest-vn4-07475573 2026-04-29 22:28:55,028 - DEBUG - VN ctest-vn4-07475573 UUID is 05968f23-8a9c-4541-9529-48d5f6649b6a 2026-04-29 22:28:55,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '05968f23-8a9c-4541-9529-48d5f6649b6a', 'name': 'ctest-vn4-07475573', 'tenant_id': '933097bea1524bc49f98c51cc75dfee7', 'project_id': '933097bea1524bc49f98c51cc75dfee7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a7949b32-5a4d-406f-9670-c1bcda876fd7', '13c7f7d2-767f-46de-a6b5-1a10caa2e607'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70927730', 'ctest-vn4-07475573'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70927730', 'ctest-policy1-35317359']], 'subnet_ipam': [{'subnet_cidr': '92.69.249.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b08:a0dc:9cb0:40ed:107f:b7f9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-29 22:28:55,396 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-04-29 22:28:55,736 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-04-29 22:28:55,766 - DEBUG - Requesting: http://10.0.0.141:8082/domain/0d40519a-d52e-4801-b811-5e8ab1dcf333 2026-04-29 22:28:55,778 - DEBUG - Requesting: http://10.0.0.141:8082/project/933097be-a152-4bc4-9f98-c51cc75dfee7 2026-04-29 22:28:55,852 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05968f23-8a9c-4541-9529-48d5f6649b6a 2026-04-29 22:28:55,866 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05968f23-8a9c-4541-9529-48d5f6649b6a 2026-04-29 22:28:55,878 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/96f6dbf6-8a84-4e13-b253-3468bb3deda5 2026-04-29 22:28:55,887 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/96f6dbf6-8a84-4e13-b253-3468bb3deda5 2026-04-29 22:28:55,894 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/24ee5862-f37a-47c7-ade5-07a6e85c5119 2026-04-29 22:28:55,899 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 22:28:55,899 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05968f23-8a9c-4541-9529-48d5f6649b6a 2026-04-29 22:28:55,908 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/96f6dbf6-8a84-4e13-b253-3468bb3deda5 2026-04-29 22:28:55,923 - INFO - Verified VN network id 11 for VN 05968f23-8a9c-4541-9529-48d5f6649b6a 2026-04-29 22:28:55,923 - INFO - Verifications in API Server for VN ctest-vn4-07475573 passed 2026-04-29 22:28:55,924 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05968f23-8a9c-4541-9529-48d5f6649b6a 2026-04-29 22:28:55,933 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/96f6dbf6-8a84-4e13-b253-3468bb3deda5 2026-04-29 22:28:55,940 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/96f6dbf6-8a84-4e13-b253-3468bb3deda5 2026-04-29 22:28:55,949 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/24ee5862-f37a-47c7-ade5-07a6e85c5119 2026-04-29 22:28:55,961 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70927730:ctest-vn4-07475573', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70927730', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '402666599508362561', 'uuid-lslong': '10748202069495421802'}, 'enable': 'true', 'created': '2026-04-29T22:28:54', 'last-modified': '2026-04-29T22:28:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.762447'} 2026-04-29 22:28:55,967 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 22:28:55,967 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07475573 passed 2026-04-29 22:28:55,967 - DEBUG - ====Verifying policy data for ctest-vn4-07475573 in API_Server ====== 2026-04-29 22:28:55,967 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-04-29 22:28:55,973 - DEBUG - Requesting: http://10.0.0.141:8082/domain/0d40519a-d52e-4801-b811-5e8ab1dcf333 2026-04-29 22:28:55,985 - DEBUG - Requesting: http://10.0.0.141:8082/project/933097be-a152-4bc4-9f98-c51cc75dfee7 2026-04-29 22:28:56,057 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/05968f23-8a9c-4541-9529-48d5f6649b6a 2026-04-29 22:28:56,067 - DEBUG - ==>Verifying data for policy with id: f2ec0f6d-e7cd-473f-95f3-a31a69ae5262, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70927730', 'ctest-policy1-35317359'] 2026-04-29 22:28:56,067 - INFO - VN ctest-vn4-07475573 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-29 22:28:56,067 - DEBUG - Verifying the vn in opserver 2026-04-29 22:28:56,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70927730:ctest-vn4-07475573 virtual network link through opserver 10.0.0.141 2026-04-29 22:28:56,067 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-04-29 22:28:56,400 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-04-29 22:28:56,465 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70927730:ctest-vn4-07475573', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70927730:ctest-vn4-07475573?flat'} 2026-04-29 22:28:56,465 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70927730:ctest-vn4-07475573 is found in opserver 2026-04-29 22:28:56,474 - DEBUG - Do not have enough data to verify VN in agent 2026-04-29 22:28:56,478 - DEBUG - VRF ids for VN ctest-vn4-07475573: {} 2026-04-29 22:28:56,478 - DEBUG - ====Verifying data for ctest-policy1-35317359 in API_Server ====== 2026-04-29 22:28:56,479 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-04-29 22:28:56,484 - DEBUG - Requesting: http://10.0.0.141:8082/domain/0d40519a-d52e-4801-b811-5e8ab1dcf333 2026-04-29 22:28:56,494 - DEBUG - Requesting: http://10.0.0.141:8082/project/933097be-a152-4bc4-9f98-c51cc75dfee7 2026-04-29 22:28:56,575 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/f2ec0f6d-e7cd-473f-95f3-a31a69ae5262 2026-04-29 22:28:56,585 - INFO - Verified policy ctest-policy1-35317359 in API Server, Result: True 2026-04-29 22:28:56,585 - INFO - Done with setup and verification, moving onto test .. 2026-04-29 22:28:56,593 - INFO - Deleting VN ctest-vn4-07475573 2026-04-29 22:28:56,722 - DEBUG - Response for deleting network () 2026-04-29 22:28:56,722 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/96f6dbf6-8a84-4e13-b253-3468bb3deda5 2026-04-29 22:28:56,727 - DEBUG - Response Code: 404 2026-04-29 22:28:56,727 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-04-29 22:28:56,731 - DEBUG - Requesting: http://10.0.0.141:8082/domain/0d40519a-d52e-4801-b811-5e8ab1dcf333 2026-04-29 22:28:56,781 - DEBUG - Requesting: http://10.0.0.141:8082/project/933097be-a152-4bc4-9f98-c51cc75dfee7 2026-04-29 22:28:56,851 - INFO - Validated that VN ctest-vn4-07475573 is not found in API Server 2026-04-29 22:28:56,860 - DEBUG - VN ctest-vn4-07475573 is not present in Agent 10.0.0.141 2026-04-29 22:28:56,860 - INFO - Validated that VN ctest-vn4-07475573 is not in any agent 2026-04-29 22:28:56,874 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07475573 info 2026-04-29 22:28:56,908 - INFO - Deleted policy ctest-policy1-35317359 2026-04-29 22:28:57,080 - DEBUG - policy ctest-policy1-35317359 is not found in API Server 2026-04-29 22:28:57,337 - DEBUG - No XMPP flaps were noticed during the test
2026-04-29 22:28:57,337 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-29 22:28:57,337 - INFO - -------------------------------------------------------------------------------- 2026-04-29 22:28:57,625 - DEBUG - No XMPP flaps were noticed during the test
2026-04-29 22:28:57,625 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-29 22:28:57,625 - INFO - -------------------------------------------------------------------------------- 2026-04-29 22:28:58,345 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-70927730, ID : 933097be-a152-4bc4-9f98-c51cc75dfee7