2025-11-24 02:01:54,200 - INFO - Domain Default found not creating 2025-11-24 02:01:54,386 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87250687 not found, creating it 2025-11-24 02:01:54,911 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87250687, ID : 1ff32cfe-9d3d-4e84-b9f5-66d6bacb92d4 2025-11-24 02:01:56,503 - INFO - ================================================================================ 2025-11-24 02:01:56,503 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 02:01:56,771 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-11-24 02:01:56,771 - INFO - Initial checks done. Running the testcase now 2025-11-24 02:01:56,771 - INFO - 2025-11-24 02:01:56,771 - INFO - ================================================================================ 2025-11-24 02:01:56,771 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 02:01:56,771 - 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-11-24 02:01:57,063 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-11-24 02:01:57,063 - INFO - Initial checks done. Running the testcase now 2025-11-24 02:01:57,063 - INFO - 2025-11-24 02:01:57,458 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87250687:ctest-vn4-32820510, 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-87250687:ctest-vn4-32820510, 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-87250687:ctest-vn4-32820510, 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-87250687:ctest-vn4-32820510, 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-11-24 02:01:57,975 - DEBUG - Response for create_network : {'network': {'id': 'e3b24159-850b-4431-aa55-fbedf17e3cb6', 'name': 'ctest-vn4-32820510', 'tenant_id': '1ff32cfe9d3d4e84b9f566d6bacb92d4', 'project_id': '1ff32cfe9d3d4e84b9f566d6bacb92d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87250687', 'ctest-vn4-32820510'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:01:58,150 - DEBUG - Response for create_subnet : {'subnet': {'id': '8659aa1a-70ae-4cbd-ac4d-08df71af1125', 'name': '', 'tenant_id': '1ff32cfe9d3d4e84b9f566d6bacb92d4', 'network_id': 'e3b24159-850b-4431-aa55-fbedf17e3cb6', 'ip_version': 4, 'cidr': '31.106.175.64/26', 'allocation_pools': [{'start': '31.106.175.66', 'end': '31.106.175.126'}], 'gateway_ip': '31.106.175.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.106.175.66', 'tags': [], 'project_id': '1ff32cfe9d3d4e84b9f566d6bacb92d4'}} 2025-11-24 02:01:58,352 - DEBUG - Response for create_subnet : {'subnet': {'id': 'acec6bac-a6e4-48c5-a6d7-2218f82a9698', 'name': '', 'tenant_id': '1ff32cfe9d3d4e84b9f566d6bacb92d4', 'network_id': 'e3b24159-850b-4431-aa55-fbedf17e3cb6', 'ip_version': 6, 'cidr': '21ce:58ca:881e:69bc:3658:7294::/96', 'allocation_pools': [{'start': '21ce:58ca:881e:69bc:3658:7294:0:2', 'end': '21ce:58ca:881e:69bc:3658:7294:ffff:fffe'}], 'gateway_ip': '21ce:58ca:881e:69bc:3658:7294:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21ce:58ca:881e:69bc:3658:7294:0:2', 'tags': [], 'project_id': '1ff32cfe9d3d4e84b9f566d6bacb92d4'}} 2025-11-24 02:01:58,374 - INFO - Created VN ctest-vn4-32820510 2025-11-24 02:01:58,425 - DEBUG - VN ctest-vn4-32820510 UUID is e3b24159-850b-4431-aa55-fbedf17e3cb6 2025-11-24 02:01:58,645 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e3b24159-850b-4431-aa55-fbedf17e3cb6', 'name': 'ctest-vn4-32820510', 'tenant_id': '1ff32cfe9d3d4e84b9f566d6bacb92d4', 'project_id': '1ff32cfe9d3d4e84b9f566d6bacb92d4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8659aa1a-70ae-4cbd-ac4d-08df71af1125', 'acec6bac-a6e4-48c5-a6d7-2218f82a9698'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87250687', 'ctest-vn4-32820510'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87250687', 'ctest-policy1-16529948']], 'subnet_ipam': [{'subnet_cidr': '31.106.175.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21ce:58ca:881e:69bc:3658:7294::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 02:01:58,813 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-24 02:01:59,151 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-24 02:01:59,183 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57 2025-11-24 02:01:59,195 - DEBUG - Requesting: http://10.0.0.242:8082/project/1ff32cfe-9d3d-4e84-b9f5-66d6bacb92d4 2025-11-24 02:01:59,269 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e3b24159-850b-4431-aa55-fbedf17e3cb6 2025-11-24 02:01:59,284 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e3b24159-850b-4431-aa55-fbedf17e3cb6 2025-11-24 02:01:59,295 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/aa89563c-5ef5-4eac-b3fe-f98d23860196 2025-11-24 02:01:59,303 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/aa89563c-5ef5-4eac-b3fe-f98d23860196 2025-11-24 02:01:59,310 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f469d027-c4c4-4ca4-94a5-f4a971489ba3 2025-11-24 02:01:59,317 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:01:59,317 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e3b24159-850b-4431-aa55-fbedf17e3cb6 2025-11-24 02:01:59,330 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/aa89563c-5ef5-4eac-b3fe-f98d23860196 2025-11-24 02:01:59,345 - INFO - Verified VN network id 11 for VN e3b24159-850b-4431-aa55-fbedf17e3cb6 2025-11-24 02:01:59,345 - INFO - Verifications in API Server for VN ctest-vn4-32820510 passed 2025-11-24 02:01:59,345 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e3b24159-850b-4431-aa55-fbedf17e3cb6 2025-11-24 02:01:59,355 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/aa89563c-5ef5-4eac-b3fe-f98d23860196 2025-11-24 02:01:59,362 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/aa89563c-5ef5-4eac-b3fe-f98d23860196 2025-11-24 02:01:59,370 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f469d027-c4c4-4ca4-94a5-f4a971489ba3 2025-11-24 02:01:59,382 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87250687:ctest-vn4-32820510', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87250687', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16407248245204141105', 'uuid-lslong': '12273993358845557942'}, 'enable': 'true', 'created': '2025-11-24T02:01:57', 'last-modified': '2025-11-24T02:01:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.776379'} 2025-11-24 02:01:59,388 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 02:01:59,388 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32820510 passed 2025-11-24 02:01:59,388 - DEBUG - ====Verifying policy data for ctest-vn4-32820510 in API_Server ====== 2025-11-24 02:01:59,388 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-24 02:01:59,394 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57 2025-11-24 02:01:59,407 - DEBUG - Requesting: http://10.0.0.242:8082/project/1ff32cfe-9d3d-4e84-b9f5-66d6bacb92d4 2025-11-24 02:01:59,476 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e3b24159-850b-4431-aa55-fbedf17e3cb6 2025-11-24 02:01:59,486 - DEBUG - ==>Verifying data for policy with id: 16a651ba-dcb3-4aa7-bfb1-c2653a977d14, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87250687', 'ctest-policy1-16529948'] 2025-11-24 02:01:59,486 - INFO - VN ctest-vn4-32820510 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 02:01:59,486 - DEBUG - Verifying the vn in opserver 2025-11-24 02:01:59,486 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87250687:ctest-vn4-32820510 virtual network link through opserver 10.0.0.242 2025-11-24 02:01:59,486 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-24 02:01:59,824 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-24 02:01:59,888 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87250687:ctest-vn4-32820510', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87250687:ctest-vn4-32820510?flat'} 2025-11-24 02:01:59,888 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87250687:ctest-vn4-32820510 is found in opserver 2025-11-24 02:01:59,898 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 02:01:59,903 - DEBUG - VRF ids for VN ctest-vn4-32820510: {} 2025-11-24 02:01:59,903 - DEBUG - ====Verifying data for ctest-policy1-16529948 in API_Server ====== 2025-11-24 02:01:59,903 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-24 02:01:59,909 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57 2025-11-24 02:01:59,920 - DEBUG - Requesting: http://10.0.0.242:8082/project/1ff32cfe-9d3d-4e84-b9f5-66d6bacb92d4 2025-11-24 02:01:59,993 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/16a651ba-dcb3-4aa7-bfb1-c2653a977d14 2025-11-24 02:02:00,003 - INFO - Verified policy ctest-policy1-16529948 in API Server, Result: True 2025-11-24 02:02:00,003 - INFO - Done with setup and verification, moving onto test .. 2025-11-24 02:02:00,011 - INFO - Deleting VN ctest-vn4-32820510 2025-11-24 02:02:00,131 - DEBUG - Response for deleting network () 2025-11-24 02:02:00,131 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/aa89563c-5ef5-4eac-b3fe-f98d23860196 2025-11-24 02:02:00,136 - DEBUG - Response Code: 404 2025-11-24 02:02:00,136 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-24 02:02:00,141 - DEBUG - Requesting: http://10.0.0.242:8082/domain/3d516aa3-00e7-47eb-957a-294b4c298a57 2025-11-24 02:02:00,194 - DEBUG - Requesting: http://10.0.0.242:8082/project/1ff32cfe-9d3d-4e84-b9f5-66d6bacb92d4 2025-11-24 02:02:00,277 - INFO - Validated that VN ctest-vn4-32820510 is not found in API Server 2025-11-24 02:02:00,288 - DEBUG - VN ctest-vn4-32820510 is not present in Agent 10.0.0.242 2025-11-24 02:02:00,288 - INFO - Validated that VN ctest-vn4-32820510 is not in any agent 2025-11-24 02:02:00,302 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32820510 info 2025-11-24 02:02:00,332 - INFO - Deleted policy ctest-policy1-16529948 2025-11-24 02:02:00,501 - DEBUG - policy ctest-policy1-16529948 is not found in API Server 2025-11-24 02:02:00,758 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 02:02:00,759 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-24 02:02:00,759 - INFO - -------------------------------------------------------------------------------- 2025-11-24 02:02:01,047 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 02:02:01,047 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-24 02:02:01,047 - INFO - -------------------------------------------------------------------------------- 2025-11-24 02:02:01,795 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-87250687, ID : 1ff32cfe-9d3d-4e84-b9f5-66d6bacb92d4