2025-10-23 10:49:37,436 - INFO - Domain Default found not creating 2025-10-23 10:49:37,580 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18794187 not found, creating it 2025-10-23 10:49:38,016 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18794187, ID : 3e52c719-f69d-400f-8bc3-6d6212caaa24 2025-10-23 10:49:39,416 - INFO - ================================================================================ 2025-10-23 10:49:39,416 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 10:49:39,669 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-23 10:49:39,669 - INFO - Initial checks done. Running the testcase now 2025-10-23 10:49:39,669 - INFO - 2025-10-23 10:49:39,669 - INFO - ================================================================================ 2025-10-23 10:49:39,669 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 10:49:39,669 - 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-10-23 10:49:39,973 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-23 10:49:39,973 - INFO - Initial checks done. Running the testcase now 2025-10-23 10:49:39,973 - INFO - 2025-10-23 10:49:40,315 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18794187:ctest-vn4-48584889, 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-18794187:ctest-vn4-48584889, 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-18794187:ctest-vn4-48584889, 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-18794187:ctest-vn4-48584889, 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-10-23 10:49:40,853 - DEBUG - Response for create_network : {'network': {'id': '54202ac1-c941-41ab-95d2-9ec57e10ae6a', 'name': 'ctest-vn4-48584889', 'tenant_id': '3e52c719f69d400f8bc36d6212caaa24', 'project_id': '3e52c719f69d400f8bc36d6212caaa24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18794187', 'ctest-vn4-48584889'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 10:49:41,235 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c6d97e1-08db-4d89-a55a-b2a171ce3325', 'name': '', 'tenant_id': '3e52c719f69d400f8bc36d6212caaa24', 'network_id': '54202ac1-c941-41ab-95d2-9ec57e10ae6a', 'ip_version': 4, 'cidr': '204.163.181.64/26', 'allocation_pools': [{'start': '204.163.181.66', 'end': '204.163.181.126'}], 'gateway_ip': '204.163.181.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.163.181.66', 'tags': [], 'project_id': '3e52c719f69d400f8bc36d6212caaa24'}} 2025-10-23 10:49:41,460 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bfdf5a5e-a402-437a-94b9-b778915761fe', 'name': '', 'tenant_id': '3e52c719f69d400f8bc36d6212caaa24', 'network_id': '54202ac1-c941-41ab-95d2-9ec57e10ae6a', 'ip_version': 6, 'cidr': '2cd5:59f9:fbb3:dec8:1bbf:c0f0::/96', 'allocation_pools': [{'start': '2cd5:59f9:fbb3:dec8:1bbf:c0f0:0:2', 'end': '2cd5:59f9:fbb3:dec8:1bbf:c0f0:ffff:fffe'}], 'gateway_ip': '2cd5:59f9:fbb3:dec8:1bbf:c0f0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2cd5:59f9:fbb3:dec8:1bbf:c0f0:0:2', 'tags': [], 'project_id': '3e52c719f69d400f8bc36d6212caaa24'}} 2025-10-23 10:49:41,479 - INFO - Created VN ctest-vn4-48584889 2025-10-23 10:49:41,532 - DEBUG - VN ctest-vn4-48584889 UUID is 54202ac1-c941-41ab-95d2-9ec57e10ae6a 2025-10-23 10:49:41,731 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54202ac1-c941-41ab-95d2-9ec57e10ae6a', 'name': 'ctest-vn4-48584889', 'tenant_id': '3e52c719f69d400f8bc36d6212caaa24', 'project_id': '3e52c719f69d400f8bc36d6212caaa24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c6d97e1-08db-4d89-a55a-b2a171ce3325', 'bfdf5a5e-a402-437a-94b9-b778915761fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18794187', 'ctest-vn4-48584889'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18794187', 'ctest-policy1-63155908']], 'subnet_ipam': [{'subnet_cidr': '204.163.181.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2cd5:59f9:fbb3:dec8:1bbf:c0f0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 10:49:41,900 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 10:49:42,190 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 10:49:42,217 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f702b32-b052-4514-8443-7ef1fda85df5 2025-10-23 10:49:42,228 - DEBUG - Requesting: http://10.0.0.254:8082/project/3e52c719-f69d-400f-8bc3-6d6212caaa24 2025-10-23 10:49:42,297 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54202ac1-c941-41ab-95d2-9ec57e10ae6a 2025-10-23 10:49:42,308 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54202ac1-c941-41ab-95d2-9ec57e10ae6a 2025-10-23 10:49:42,318 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0365b18-7778-483e-93ad-d71b7f728c5f 2025-10-23 10:49:42,325 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0365b18-7778-483e-93ad-d71b7f728c5f 2025-10-23 10:49:42,332 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ba9cd62c-cc30-4c70-a0ec-4aa1a1e88390 2025-10-23 10:49:42,338 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 10:49:42,339 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54202ac1-c941-41ab-95d2-9ec57e10ae6a 2025-10-23 10:49:42,348 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0365b18-7778-483e-93ad-d71b7f728c5f 2025-10-23 10:49:42,362 - INFO - Verified VN network id 10 for VN 54202ac1-c941-41ab-95d2-9ec57e10ae6a 2025-10-23 10:49:42,362 - INFO - Verifications in API Server for VN ctest-vn4-48584889 passed 2025-10-23 10:49:42,362 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54202ac1-c941-41ab-95d2-9ec57e10ae6a 2025-10-23 10:49:42,373 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0365b18-7778-483e-93ad-d71b7f728c5f 2025-10-23 10:49:42,380 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0365b18-7778-483e-93ad-d71b7f728c5f 2025-10-23 10:49:42,387 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ba9cd62c-cc30-4c70-a0ec-4aa1a1e88390 2025-10-23 10:49:42,398 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18794187:ctest-vn4-48584889', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18794187', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6061892110234239403', 'uuid-lslong': '10795865827821268586'}, 'enable': 'true', 'created': '2025-10-23T10:49:40', 'last-modified': '2025-10-23T10:49:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689826'} 2025-10-23 10:49:42,405 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 10:49:42,405 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48584889 passed 2025-10-23 10:49:42,405 - DEBUG - ====Verifying policy data for ctest-vn4-48584889 in API_Server ====== 2025-10-23 10:49:42,405 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 10:49:42,411 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f702b32-b052-4514-8443-7ef1fda85df5 2025-10-23 10:49:42,421 - DEBUG - Requesting: http://10.0.0.254:8082/project/3e52c719-f69d-400f-8bc3-6d6212caaa24 2025-10-23 10:49:42,492 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/54202ac1-c941-41ab-95d2-9ec57e10ae6a 2025-10-23 10:49:42,505 - DEBUG - ==>Verifying data for policy with id: 7c7dcaed-e5c3-4c22-94e4-5404036ec88d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18794187', 'ctest-policy1-63155908'] 2025-10-23 10:49:42,505 - INFO - VN ctest-vn4-48584889 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 10:49:42,505 - DEBUG - Verifying the vn in opserver 2025-10-23 10:49:42,505 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18794187:ctest-vn4-48584889 virtual network link through opserver 10.0.0.254 2025-10-23 10:49:42,505 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-23 10:49:42,797 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-23 10:49:42,853 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18794187:ctest-vn4-48584889', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18794187:ctest-vn4-48584889?flat'} 2025-10-23 10:49:42,853 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18794187:ctest-vn4-48584889 is found in opserver 2025-10-23 10:49:42,865 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 10:49:42,870 - DEBUG - VRF ids for VN ctest-vn4-48584889: {} 2025-10-23 10:49:42,870 - DEBUG - ====Verifying data for ctest-policy1-63155908 in API_Server ====== 2025-10-23 10:49:42,870 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 10:49:42,875 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f702b32-b052-4514-8443-7ef1fda85df5 2025-10-23 10:49:42,885 - DEBUG - Requesting: http://10.0.0.254:8082/project/3e52c719-f69d-400f-8bc3-6d6212caaa24 2025-10-23 10:49:42,958 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/7c7dcaed-e5c3-4c22-94e4-5404036ec88d 2025-10-23 10:49:42,967 - INFO - Verified policy ctest-policy1-63155908 in API Server, Result: True 2025-10-23 10:49:42,967 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 10:49:42,975 - INFO - Deleting VN ctest-vn4-48584889 2025-10-23 10:49:43,157 - DEBUG - Response for deleting network () 2025-10-23 10:49:43,157 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a0365b18-7778-483e-93ad-d71b7f728c5f 2025-10-23 10:49:43,161 - DEBUG - Response Code: 404 2025-10-23 10:49:43,161 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 10:49:43,166 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f702b32-b052-4514-8443-7ef1fda85df5 2025-10-23 10:49:43,217 - DEBUG - Requesting: http://10.0.0.254:8082/project/3e52c719-f69d-400f-8bc3-6d6212caaa24 2025-10-23 10:49:43,288 - INFO - Validated that VN ctest-vn4-48584889 is not found in API Server 2025-10-23 10:49:43,297 - DEBUG - VN ctest-vn4-48584889 is not present in Agent 10.0.0.254 2025-10-23 10:49:43,297 - INFO - Validated that VN ctest-vn4-48584889 is not in any agent 2025-10-23 10:49:43,312 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48584889 info 2025-10-23 10:49:43,339 - INFO - Deleted policy ctest-policy1-63155908 2025-10-23 10:49:43,504 - DEBUG - policy ctest-policy1-63155908 is not found in API Server 2025-10-23 10:49:43,762 - DEBUG - No XMPP flaps were noticed during the test