2025-09-21 15:06:17,639 - INFO - Domain Default found not creating 2025-09-21 15:06:17,779 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49056201 not found, creating it 2025-09-21 15:06:18,226 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49056201, ID : a9f418cf-73d9-4088-8d65-a6fcc1cfd626 2025-09-21 15:06:19,618 - INFO - ================================================================================ 2025-09-21 15:06:19,618 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-21 15:06:19,882 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-21 15:06:19,882 - INFO - Initial checks done. Running the testcase now 2025-09-21 15:06:19,882 - INFO - 2025-09-21 15:06:19,882 - INFO - ================================================================================ 2025-09-21 15:06:19,882 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-21 15:06:19,882 - 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-09-21 15:06:20,170 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-21 15:06:20,170 - INFO - Initial checks done. Running the testcase now 2025-09-21 15:06:20,170 - INFO - 2025-09-21 15:06:20,510 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49056201:ctest-vn4-68499248, 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-49056201:ctest-vn4-68499248, 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-49056201:ctest-vn4-68499248, 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-49056201:ctest-vn4-68499248, 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-09-21 15:06:21,013 - DEBUG - Response for create_network : {'network': {'id': '1cb9c5fe-0486-4d49-b754-f871c1ebdeed', 'name': 'ctest-vn4-68499248', 'tenant_id': 'a9f418cf73d940888d65a6fcc1cfd626', 'project_id': 'a9f418cf73d940888d65a6fcc1cfd626', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49056201', 'ctest-vn4-68499248'], 'port_security_enabled': True, 'description': ''}} 2025-09-21 15:06:21,182 - DEBUG - Response for create_subnet : {'subnet': {'id': '1771f8a2-0399-43b8-bc16-cd3f3bd24051', 'name': '', 'tenant_id': 'a9f418cf73d940888d65a6fcc1cfd626', 'network_id': '1cb9c5fe-0486-4d49-b754-f871c1ebdeed', 'ip_version': 4, 'cidr': '16.86.21.192/26', 'allocation_pools': [{'start': '16.86.21.194', 'end': '16.86.21.254'}], 'gateway_ip': '16.86.21.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.86.21.194', 'tags': [], 'project_id': 'a9f418cf73d940888d65a6fcc1cfd626'}} 2025-09-21 15:06:21,344 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb411dce-3036-4951-a7e8-ad2057b58aaf', 'name': '', 'tenant_id': 'a9f418cf73d940888d65a6fcc1cfd626', 'network_id': '1cb9c5fe-0486-4d49-b754-f871c1ebdeed', 'ip_version': 6, 'cidr': '32e8:486f:c81d:23ef:d434:41c7::/96', 'allocation_pools': [{'start': '32e8:486f:c81d:23ef:d434:41c7:0:2', 'end': '32e8:486f:c81d:23ef:d434:41c7:ffff:fffe'}], 'gateway_ip': '32e8:486f:c81d:23ef:d434:41c7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32e8:486f:c81d:23ef:d434:41c7:0:2', 'tags': [], 'project_id': 'a9f418cf73d940888d65a6fcc1cfd626'}} 2025-09-21 15:06:21,367 - INFO - Created VN ctest-vn4-68499248 2025-09-21 15:06:21,421 - DEBUG - VN ctest-vn4-68499248 UUID is 1cb9c5fe-0486-4d49-b754-f871c1ebdeed 2025-09-21 15:06:21,624 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1cb9c5fe-0486-4d49-b754-f871c1ebdeed', 'name': 'ctest-vn4-68499248', 'tenant_id': 'a9f418cf73d940888d65a6fcc1cfd626', 'project_id': 'a9f418cf73d940888d65a6fcc1cfd626', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1771f8a2-0399-43b8-bc16-cd3f3bd24051', 'bb411dce-3036-4951-a7e8-ad2057b58aaf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49056201', 'ctest-vn4-68499248'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49056201', 'ctest-policy1-30291603']], 'subnet_ipam': [{'subnet_cidr': '16.86.21.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32e8:486f:c81d:23ef:d434:41c7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-21 15:06:21,781 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-21 15:06:22,075 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-21 15:06:22,101 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a8c8cfdf-5dfd-4fc5-b9f3-3d0b11d31fdc 2025-09-21 15:06:22,113 - DEBUG - Requesting: http://10.0.0.48:8082/project/a9f418cf-73d9-4088-8d65-a6fcc1cfd626 2025-09-21 15:06:22,189 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1cb9c5fe-0486-4d49-b754-f871c1ebdeed 2025-09-21 15:06:22,202 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1cb9c5fe-0486-4d49-b754-f871c1ebdeed 2025-09-21 15:06:22,212 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c0e0c892-47c0-4bd0-9b36-ff8ef932d888 2025-09-21 15:06:22,220 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c0e0c892-47c0-4bd0-9b36-ff8ef932d888 2025-09-21 15:06:22,226 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/bb14d2dd-ca96-403c-a3a1-1d86528301f2 2025-09-21 15:06:22,232 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-21 15:06:22,233 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1cb9c5fe-0486-4d49-b754-f871c1ebdeed 2025-09-21 15:06:22,241 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c0e0c892-47c0-4bd0-9b36-ff8ef932d888 2025-09-21 15:06:22,254 - INFO - Verified VN network id 9 for VN 1cb9c5fe-0486-4d49-b754-f871c1ebdeed 2025-09-21 15:06:22,255 - INFO - Verifications in API Server for VN ctest-vn4-68499248 passed 2025-09-21 15:06:22,255 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1cb9c5fe-0486-4d49-b754-f871c1ebdeed 2025-09-21 15:06:22,263 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c0e0c892-47c0-4bd0-9b36-ff8ef932d888 2025-09-21 15:06:22,269 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c0e0c892-47c0-4bd0-9b36-ff8ef932d888 2025-09-21 15:06:22,275 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/bb14d2dd-ca96-403c-a3a1-1d86528301f2 2025-09-21 15:06:22,290 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49056201:ctest-vn4-68499248', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49056201', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2069903198541729097', 'uuid-lslong': '13210456774452961005'}, 'enable': 'true', 'created': '2025-09-21T15:06:20', 'last-modified': '2025-09-21T15:06:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690762'} 2025-09-21 15:06:22,296 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-21 15:06:22,296 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-68499248 passed 2025-09-21 15:06:22,296 - DEBUG - ====Verifying policy data for ctest-vn4-68499248 in API_Server ====== 2025-09-21 15:06:22,296 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-21 15:06:22,301 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a8c8cfdf-5dfd-4fc5-b9f3-3d0b11d31fdc 2025-09-21 15:06:22,312 - DEBUG - Requesting: http://10.0.0.48:8082/project/a9f418cf-73d9-4088-8d65-a6fcc1cfd626 2025-09-21 15:06:22,383 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1cb9c5fe-0486-4d49-b754-f871c1ebdeed 2025-09-21 15:06:22,392 - DEBUG - ==>Verifying data for policy with id: 362f078a-2bad-43ac-8eb9-45310338acaf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49056201', 'ctest-policy1-30291603'] 2025-09-21 15:06:22,392 - INFO - VN ctest-vn4-68499248 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-21 15:06:22,392 - DEBUG - Verifying the vn in opserver 2025-09-21 15:06:22,392 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49056201:ctest-vn4-68499248 virtual network link through opserver 10.0.0.48 2025-09-21 15:06:22,392 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-21 15:06:22,680 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-21 15:06:22,731 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49056201:ctest-vn4-68499248', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49056201:ctest-vn4-68499248?flat'} 2025-09-21 15:06:22,731 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49056201:ctest-vn4-68499248 is found in opserver 2025-09-21 15:06:22,740 - DEBUG - Do not have enough data to verify VN in agent 2025-09-21 15:06:22,744 - DEBUG - VRF ids for VN ctest-vn4-68499248: {} 2025-09-21 15:06:22,744 - DEBUG - ====Verifying data for ctest-policy1-30291603 in API_Server ====== 2025-09-21 15:06:22,744 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-21 15:06:22,750 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a8c8cfdf-5dfd-4fc5-b9f3-3d0b11d31fdc 2025-09-21 15:06:22,760 - DEBUG - Requesting: http://10.0.0.48:8082/project/a9f418cf-73d9-4088-8d65-a6fcc1cfd626 2025-09-21 15:06:22,831 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/362f078a-2bad-43ac-8eb9-45310338acaf 2025-09-21 15:06:22,840 - INFO - Verified policy ctest-policy1-30291603 in API Server, Result: True 2025-09-21 15:06:22,840 - INFO - Done with setup and verification, moving onto test .. 2025-09-21 15:06:22,847 - INFO - Deleting VN ctest-vn4-68499248 2025-09-21 15:06:22,953 - DEBUG - Response for deleting network () 2025-09-21 15:06:22,953 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c0e0c892-47c0-4bd0-9b36-ff8ef932d888 2025-09-21 15:06:22,958 - DEBUG - Response Code: 404 2025-09-21 15:06:22,959 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-21 15:06:22,965 - DEBUG - Requesting: http://10.0.0.48:8082/domain/a8c8cfdf-5dfd-4fc5-b9f3-3d0b11d31fdc 2025-09-21 15:06:23,023 - DEBUG - Requesting: http://10.0.0.48:8082/project/a9f418cf-73d9-4088-8d65-a6fcc1cfd626 2025-09-21 15:06:23,093 - INFO - Validated that VN ctest-vn4-68499248 is not found in API Server 2025-09-21 15:06:23,103 - DEBUG - VN ctest-vn4-68499248 is not present in Agent 10.0.0.48 2025-09-21 15:06:23,103 - INFO - Validated that VN ctest-vn4-68499248 is not in any agent 2025-09-21 15:06:23,116 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-68499248 info 2025-09-21 15:06:23,139 - INFO - Deleted policy ctest-policy1-30291603 2025-09-21 15:06:23,305 - DEBUG - policy ctest-policy1-30291603 is not found in API Server 2025-09-21 15:06:23,561 - DEBUG - No XMPP flaps were noticed during the test