2025-10-22 15:11:43,790 - INFO - Domain Default found not creating 2025-10-22 15:11:43,989 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87911076 not found, creating it 2025-10-22 15:11:44,852 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87911076, ID : ad7cbc4b-a1d3-4362-9508-0e497eda7b23 2025-10-22 15:11:46,846 - INFO - ================================================================================ 2025-10-22 15:11:46,846 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 15:11:47,164 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-22 15:11:47,164 - INFO - Initial checks done. Running the testcase now 2025-10-22 15:11:47,164 - INFO - 2025-10-22 15:11:47,165 - INFO - ================================================================================ 2025-10-22 15:11:47,165 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 15:11:47,165 - 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-22 15:11:47,500 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-22 15:11:47,501 - INFO - Initial checks done. Running the testcase now 2025-10-22 15:11:47,501 - INFO - 2025-10-22 15:11:47,916 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87911076:ctest-vn4-00869957, 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-87911076:ctest-vn4-00869957, 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-87911076:ctest-vn4-00869957, 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-87911076:ctest-vn4-00869957, 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-22 15:11:48,644 - DEBUG - Response for create_network : {'network': {'id': '4957496c-8257-4305-96b4-5a94072d64c7', 'name': 'ctest-vn4-00869957', 'tenant_id': 'ad7cbc4ba1d3436295080e497eda7b23', 'project_id': 'ad7cbc4ba1d3436295080e497eda7b23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87911076', 'ctest-vn4-00869957'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 15:11:48,846 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b499f8fc-8765-4451-a755-17c16b4efc35', 'name': '', 'tenant_id': 'ad7cbc4ba1d3436295080e497eda7b23', 'network_id': '4957496c-8257-4305-96b4-5a94072d64c7', 'ip_version': 4, 'cidr': '174.10.168.128/26', 'allocation_pools': [{'start': '174.10.168.130', 'end': '174.10.168.190'}], 'gateway_ip': '174.10.168.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.10.168.130', 'tags': [], 'project_id': 'ad7cbc4ba1d3436295080e497eda7b23'}} 2025-10-22 15:11:49,101 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfa228a7-353a-4d06-83d4-dff49690ecad', 'name': '', 'tenant_id': 'ad7cbc4ba1d3436295080e497eda7b23', 'network_id': '4957496c-8257-4305-96b4-5a94072d64c7', 'ip_version': 6, 'cidr': '3e45:434:bb9d:4302:f0a7:e633::/96', 'allocation_pools': [{'start': '3e45:434:bb9d:4302:f0a7:e633:0:2', 'end': '3e45:434:bb9d:4302:f0a7:e633:ffff:fffe'}], 'gateway_ip': '3e45:434:bb9d:4302:f0a7:e633:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e45:434:bb9d:4302:f0a7:e633:0:2', 'tags': [], 'project_id': 'ad7cbc4ba1d3436295080e497eda7b23'}} 2025-10-22 15:11:49,130 - INFO - Created VN ctest-vn4-00869957 2025-10-22 15:11:49,189 - DEBUG - VN ctest-vn4-00869957 UUID is 4957496c-8257-4305-96b4-5a94072d64c7 2025-10-22 15:11:49,540 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4957496c-8257-4305-96b4-5a94072d64c7', 'name': 'ctest-vn4-00869957', 'tenant_id': 'ad7cbc4ba1d3436295080e497eda7b23', 'project_id': 'ad7cbc4ba1d3436295080e497eda7b23', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b499f8fc-8765-4451-a755-17c16b4efc35', 'cfa228a7-353a-4d06-83d4-dff49690ecad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87911076', 'ctest-vn4-00869957'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87911076', 'ctest-policy1-46737272']], 'subnet_ipam': [{'subnet_cidr': '174.10.168.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e45:434:bb9d:4302:f0a7:e633::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 15:11:49,738 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-22 15:11:50,070 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-22 15:11:50,109 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c541f812-44e9-4610-bcaa-caa2592141a4 2025-10-22 15:11:50,129 - DEBUG - Requesting: http://10.0.0.141:8082/project/ad7cbc4b-a1d3-4362-9508-0e497eda7b23 2025-10-22 15:11:50,238 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4957496c-8257-4305-96b4-5a94072d64c7 2025-10-22 15:11:50,257 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4957496c-8257-4305-96b4-5a94072d64c7 2025-10-22 15:11:50,271 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08364045-4585-4df8-964f-252fcb5d0c24 2025-10-22 15:11:50,282 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08364045-4585-4df8-964f-252fcb5d0c24 2025-10-22 15:11:50,294 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/70d72d60-0f81-4fae-8aa9-4ca65e753499 2025-10-22 15:11:50,303 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 15:11:50,303 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4957496c-8257-4305-96b4-5a94072d64c7 2025-10-22 15:11:50,318 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08364045-4585-4df8-964f-252fcb5d0c24 2025-10-22 15:11:50,341 - INFO - Verified VN network id 10 for VN 4957496c-8257-4305-96b4-5a94072d64c7 2025-10-22 15:11:50,341 - INFO - Verifications in API Server for VN ctest-vn4-00869957 passed 2025-10-22 15:11:50,341 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4957496c-8257-4305-96b4-5a94072d64c7 2025-10-22 15:11:50,352 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08364045-4585-4df8-964f-252fcb5d0c24 2025-10-22 15:11:50,362 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08364045-4585-4df8-964f-252fcb5d0c24 2025-10-22 15:11:50,373 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/70d72d60-0f81-4fae-8aa9-4ca65e753499 2025-10-22 15:11:50,390 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87911076:ctest-vn4-00869957', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87911076', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5284773418134618885', 'uuid-lslong': '10859404193319183559'}, 'enable': 'true', 'created': '2025-10-22T15:11:48', 'last-modified': '2025-10-22T15:11:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911991'} 2025-10-22 15:11:50,397 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 15:11:50,397 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00869957 passed 2025-10-22 15:11:50,397 - DEBUG - ====Verifying policy data for ctest-vn4-00869957 in API_Server ====== 2025-10-22 15:11:50,397 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-22 15:11:50,405 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c541f812-44e9-4610-bcaa-caa2592141a4 2025-10-22 15:11:50,423 - DEBUG - Requesting: http://10.0.0.141:8082/project/ad7cbc4b-a1d3-4362-9508-0e497eda7b23 2025-10-22 15:11:50,513 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/4957496c-8257-4305-96b4-5a94072d64c7 2025-10-22 15:11:50,528 - DEBUG - ==>Verifying data for policy with id: 2eb35677-908c-4ba4-b6e9-018c6ef0e33e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87911076', 'ctest-policy1-46737272'] 2025-10-22 15:11:50,528 - INFO - VN ctest-vn4-00869957 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 15:11:50,528 - DEBUG - Verifying the vn in opserver 2025-10-22 15:11:50,528 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87911076:ctest-vn4-00869957 virtual network link through opserver 10.0.0.141 2025-10-22 15:11:50,529 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-22 15:11:50,843 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-22 15:11:50,959 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87911076:ctest-vn4-00869957', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87911076:ctest-vn4-00869957?flat'} 2025-10-22 15:11:50,959 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87911076:ctest-vn4-00869957 is found in opserver 2025-10-22 15:11:50,984 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 15:11:50,999 - DEBUG - VRF ids for VN ctest-vn4-00869957: {} 2025-10-22 15:11:51,000 - DEBUG - ====Verifying data for ctest-policy1-46737272 in API_Server ====== 2025-10-22 15:11:51,000 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-22 15:11:51,009 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c541f812-44e9-4610-bcaa-caa2592141a4 2025-10-22 15:11:51,027 - DEBUG - Requesting: http://10.0.0.141:8082/project/ad7cbc4b-a1d3-4362-9508-0e497eda7b23 2025-10-22 15:11:51,112 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/2eb35677-908c-4ba4-b6e9-018c6ef0e33e 2025-10-22 15:11:51,126 - INFO - Verified policy ctest-policy1-46737272 in API Server, Result: True 2025-10-22 15:11:51,126 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 15:11:51,139 - INFO - Deleting VN ctest-vn4-00869957 2025-10-22 15:11:51,285 - DEBUG - Response for deleting network () 2025-10-22 15:11:51,285 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/08364045-4585-4df8-964f-252fcb5d0c24 2025-10-22 15:11:51,292 - DEBUG - Response Code: 404 2025-10-22 15:11:51,292 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-22 15:11:51,298 - DEBUG - Requesting: http://10.0.0.141:8082/domain/c541f812-44e9-4610-bcaa-caa2592141a4 2025-10-22 15:11:51,355 - DEBUG - Requesting: http://10.0.0.141:8082/project/ad7cbc4b-a1d3-4362-9508-0e497eda7b23 2025-10-22 15:11:51,447 - INFO - Validated that VN ctest-vn4-00869957 is not found in API Server 2025-10-22 15:11:51,463 - DEBUG - VN ctest-vn4-00869957 is not present in Agent 10.0.0.141 2025-10-22 15:11:51,463 - INFO - Validated that VN ctest-vn4-00869957 is not in any agent 2025-10-22 15:11:51,488 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00869957 info 2025-10-22 15:11:51,527 - INFO - Deleted policy ctest-policy1-46737272 2025-10-22 15:11:51,721 - DEBUG - policy ctest-policy1-46737272 is not found in API Server 2025-10-22 15:11:52,032 - DEBUG - No XMPP flaps were noticed during the test