2025-10-21 21:27:51,746 - INFO - Domain Default found not creating 2025-10-21 21:27:51,895 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25295513 not found, creating it 2025-10-21 21:27:52,394 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25295513, ID : 94b664ac-2fea-488d-ae47-26ad8a95544d 2025-10-21 21:27:53,854 - INFO - ================================================================================ 2025-10-21 21:27:53,854 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 21:27:54,125 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-21 21:27:54,125 - INFO - Initial checks done. Running the testcase now 2025-10-21 21:27:54,125 - INFO - 2025-10-21 21:27:54,125 - INFO - ================================================================================ 2025-10-21 21:27:54,126 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 21:27:54,126 - 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-21 21:27:54,420 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-21 21:27:54,420 - INFO - Initial checks done. Running the testcase now 2025-10-21 21:27:54,420 - INFO - 2025-10-21 21:27:54,773 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25295513:ctest-vn4-43352654, 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-25295513:ctest-vn4-43352654, 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-25295513:ctest-vn4-43352654, 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-25295513:ctest-vn4-43352654, 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-21 21:27:55,272 - DEBUG - Response for create_network : {'network': {'id': '86fabcd6-3f08-4382-8b39-4a373d5e9ee8', 'name': 'ctest-vn4-43352654', 'tenant_id': '94b664ac2fea488dae4726ad8a95544d', 'project_id': '94b664ac2fea488dae4726ad8a95544d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25295513', 'ctest-vn4-43352654'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 21:27:55,426 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ecd52ae0-d92e-4530-be24-f5c530b0ed28', 'name': '', 'tenant_id': '94b664ac2fea488dae4726ad8a95544d', 'network_id': '86fabcd6-3f08-4382-8b39-4a373d5e9ee8', 'ip_version': 4, 'cidr': '133.40.225.128/26', 'allocation_pools': [{'start': '133.40.225.130', 'end': '133.40.225.190'}], 'gateway_ip': '133.40.225.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.40.225.130', 'tags': [], 'project_id': '94b664ac2fea488dae4726ad8a95544d'}} 2025-10-21 21:27:55,581 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5c9882b-592c-4144-bf6e-81feef3ca99e', 'name': '', 'tenant_id': '94b664ac2fea488dae4726ad8a95544d', 'network_id': '86fabcd6-3f08-4382-8b39-4a373d5e9ee8', 'ip_version': 6, 'cidr': '2b48:818d:6219:34d8:fb98:b033::/96', 'allocation_pools': [{'start': '2b48:818d:6219:34d8:fb98:b033:0:2', 'end': '2b48:818d:6219:34d8:fb98:b033:ffff:fffe'}], 'gateway_ip': '2b48:818d:6219:34d8:fb98:b033:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b48:818d:6219:34d8:fb98:b033:0:2', 'tags': [], 'project_id': '94b664ac2fea488dae4726ad8a95544d'}} 2025-10-21 21:27:55,600 - INFO - Created VN ctest-vn4-43352654 2025-10-21 21:27:55,651 - DEBUG - VN ctest-vn4-43352654 UUID is 86fabcd6-3f08-4382-8b39-4a373d5e9ee8 2025-10-21 21:27:55,860 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86fabcd6-3f08-4382-8b39-4a373d5e9ee8', 'name': 'ctest-vn4-43352654', 'tenant_id': '94b664ac2fea488dae4726ad8a95544d', 'project_id': '94b664ac2fea488dae4726ad8a95544d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ecd52ae0-d92e-4530-be24-f5c530b0ed28', 'f5c9882b-592c-4144-bf6e-81feef3ca99e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25295513', 'ctest-vn4-43352654'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25295513', 'ctest-policy1-72207506']], 'subnet_ipam': [{'subnet_cidr': '133.40.225.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b48:818d:6219:34d8:fb98:b033::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 21:27:56,023 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 21:27:56,314 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 21:27:56,341 - DEBUG - Requesting: http://10.0.0.254:8082/domain/98eb14d4-90e8-40a6-bb66-e927fceca62e 2025-10-21 21:27:56,353 - DEBUG - Requesting: http://10.0.0.254:8082/project/94b664ac-2fea-488d-ae47-26ad8a95544d 2025-10-21 21:27:56,423 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86fabcd6-3f08-4382-8b39-4a373d5e9ee8 2025-10-21 21:27:56,434 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86fabcd6-3f08-4382-8b39-4a373d5e9ee8 2025-10-21 21:27:56,443 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/96e66108-bb86-47dc-a5f9-3537c75df5e8 2025-10-21 21:27:56,449 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/96e66108-bb86-47dc-a5f9-3537c75df5e8 2025-10-21 21:27:56,456 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ef374e2a-5afa-4ea4-bafc-212bbbaaba9d 2025-10-21 21:27:56,462 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 21:27:56,462 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86fabcd6-3f08-4382-8b39-4a373d5e9ee8 2025-10-21 21:27:56,470 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/96e66108-bb86-47dc-a5f9-3537c75df5e8 2025-10-21 21:27:56,484 - INFO - Verified VN network id 10 for VN 86fabcd6-3f08-4382-8b39-4a373d5e9ee8 2025-10-21 21:27:56,484 - INFO - Verifications in API Server for VN ctest-vn4-43352654 passed 2025-10-21 21:27:56,484 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86fabcd6-3f08-4382-8b39-4a373d5e9ee8 2025-10-21 21:27:56,493 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/96e66108-bb86-47dc-a5f9-3537c75df5e8 2025-10-21 21:27:56,498 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/96e66108-bb86-47dc-a5f9-3537c75df5e8 2025-10-21 21:27:56,504 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ef374e2a-5afa-4ea4-bafc-212bbbaaba9d 2025-10-21 21:27:56,514 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25295513:ctest-vn4-43352654', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25295513', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9726293973626536834', 'uuid-lslong': '10032131246057758440'}, 'enable': 'true', 'created': '2025-10-21T21:27:55', 'last-modified': '2025-10-21T21:27:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.679512'} 2025-10-21 21:27:56,521 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 21:27:56,521 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43352654 passed 2025-10-21 21:27:56,522 - DEBUG - ====Verifying policy data for ctest-vn4-43352654 in API_Server ====== 2025-10-21 21:27:56,522 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 21:27:56,528 - DEBUG - Requesting: http://10.0.0.254:8082/domain/98eb14d4-90e8-40a6-bb66-e927fceca62e 2025-10-21 21:27:56,543 - DEBUG - Requesting: http://10.0.0.254:8082/project/94b664ac-2fea-488d-ae47-26ad8a95544d 2025-10-21 21:27:56,615 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/86fabcd6-3f08-4382-8b39-4a373d5e9ee8 2025-10-21 21:27:56,625 - DEBUG - ==>Verifying data for policy with id: 188509f2-d77a-4dde-bee2-037f1dc3fb0c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25295513', 'ctest-policy1-72207506'] 2025-10-21 21:27:56,625 - INFO - VN ctest-vn4-43352654 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 21:27:56,625 - DEBUG - Verifying the vn in opserver 2025-10-21 21:27:56,625 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25295513:ctest-vn4-43352654 virtual network link through opserver 10.0.0.254 2025-10-21 21:27:56,625 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-21 21:27:56,919 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-21 21:27:56,972 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25295513:ctest-vn4-43352654', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25295513:ctest-vn4-43352654?flat'} 2025-10-21 21:27:56,972 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25295513:ctest-vn4-43352654 is found in opserver 2025-10-21 21:27:56,982 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 21:27:56,985 - DEBUG - VRF ids for VN ctest-vn4-43352654: {} 2025-10-21 21:27:56,986 - DEBUG - ====Verifying data for ctest-policy1-72207506 in API_Server ====== 2025-10-21 21:27:56,986 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 21:27:56,990 - DEBUG - Requesting: http://10.0.0.254:8082/domain/98eb14d4-90e8-40a6-bb66-e927fceca62e 2025-10-21 21:27:57,000 - DEBUG - Requesting: http://10.0.0.254:8082/project/94b664ac-2fea-488d-ae47-26ad8a95544d 2025-10-21 21:27:57,067 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/188509f2-d77a-4dde-bee2-037f1dc3fb0c 2025-10-21 21:27:57,077 - INFO - Verified policy ctest-policy1-72207506 in API Server, Result: True 2025-10-21 21:27:57,077 - INFO - Done with setup and verification, moving onto test .. 2025-10-21 21:27:57,084 - INFO - Deleting VN ctest-vn4-43352654 2025-10-21 21:27:57,202 - DEBUG - Response for deleting network () 2025-10-21 21:27:57,202 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/96e66108-bb86-47dc-a5f9-3537c75df5e8 2025-10-21 21:27:57,207 - DEBUG - Response Code: 404 2025-10-21 21:27:57,207 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-21 21:27:57,212 - DEBUG - Requesting: http://10.0.0.254:8082/domain/98eb14d4-90e8-40a6-bb66-e927fceca62e 2025-10-21 21:27:57,268 - DEBUG - Requesting: http://10.0.0.254:8082/project/94b664ac-2fea-488d-ae47-26ad8a95544d 2025-10-21 21:27:57,338 - INFO - Validated that VN ctest-vn4-43352654 is not found in API Server 2025-10-21 21:27:57,348 - DEBUG - VN ctest-vn4-43352654 is not present in Agent 10.0.0.254 2025-10-21 21:27:57,348 - INFO - Validated that VN ctest-vn4-43352654 is not in any agent 2025-10-21 21:27:57,364 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43352654 info 2025-10-21 21:27:57,403 - INFO - Deleted policy ctest-policy1-72207506 2025-10-21 21:27:57,578 - DEBUG - policy ctest-policy1-72207506 is not found in API Server 2025-10-21 21:27:57,832 - DEBUG - No XMPP flaps were noticed during the test