2025-10-17 17:44:02,342 - INFO - Domain Default found not creating 2025-10-17 17:44:02,674 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96170444 not found, creating it 2025-10-17 17:44:03,350 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96170444, ID : f5f11622-644d-49eb-9dfd-af71a2b5076b 2025-10-17 17:44:05,131 - INFO - ================================================================================ 2025-10-17 17:44:05,132 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-17 17:44:05,470 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-17 17:44:05,470 - INFO - Initial checks done. Running the testcase now 2025-10-17 17:44:05,470 - INFO - 2025-10-17 17:44:05,471 - INFO - ================================================================================ 2025-10-17 17:44:05,471 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-17 17:44:05,471 - 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-17 17:44:05,800 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-17 17:44:05,800 - INFO - Initial checks done. Running the testcase now 2025-10-17 17:44:05,800 - INFO - 2025-10-17 17:44:06,242 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96170444:ctest-vn4-42712786, 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-96170444:ctest-vn4-42712786, 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-96170444:ctest-vn4-42712786, 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-96170444:ctest-vn4-42712786, 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-17 17:44:06,884 - DEBUG - Response for create_network : {'network': {'id': '8c4b2120-3c3d-414d-8045-f28422121250', 'name': 'ctest-vn4-42712786', 'tenant_id': 'f5f11622644d49eb9dfdaf71a2b5076b', 'project_id': 'f5f11622644d49eb9dfdaf71a2b5076b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96170444', 'ctest-vn4-42712786'], 'port_security_enabled': True, 'description': ''}} 2025-10-17 17:44:07,125 - DEBUG - Response for create_subnet : {'subnet': {'id': '51179029-c842-4493-91e5-78955e4d5a10', 'name': '', 'tenant_id': 'f5f11622644d49eb9dfdaf71a2b5076b', 'network_id': '8c4b2120-3c3d-414d-8045-f28422121250', 'ip_version': 4, 'cidr': '161.26.19.64/26', 'allocation_pools': [{'start': '161.26.19.66', 'end': '161.26.19.126'}], 'gateway_ip': '161.26.19.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.26.19.66', 'tags': [], 'project_id': 'f5f11622644d49eb9dfdaf71a2b5076b'}} 2025-10-17 17:44:07,303 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1833419-9aa9-4d90-b9ae-bae1a8d54736', 'name': '', 'tenant_id': 'f5f11622644d49eb9dfdaf71a2b5076b', 'network_id': '8c4b2120-3c3d-414d-8045-f28422121250', 'ip_version': 6, 'cidr': '2e9a:fcc5:6e35:ac24:2795:c7c6::/96', 'allocation_pools': [{'start': '2e9a:fcc5:6e35:ac24:2795:c7c6:0:2', 'end': '2e9a:fcc5:6e35:ac24:2795:c7c6:ffff:fffe'}], 'gateway_ip': '2e9a:fcc5:6e35:ac24:2795:c7c6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e9a:fcc5:6e35:ac24:2795:c7c6:0:2', 'tags': [], 'project_id': 'f5f11622644d49eb9dfdaf71a2b5076b'}} 2025-10-17 17:44:07,336 - INFO - Created VN ctest-vn4-42712786 2025-10-17 17:44:07,388 - DEBUG - VN ctest-vn4-42712786 UUID is 8c4b2120-3c3d-414d-8045-f28422121250 2025-10-17 17:44:07,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c4b2120-3c3d-414d-8045-f28422121250', 'name': 'ctest-vn4-42712786', 'tenant_id': 'f5f11622644d49eb9dfdaf71a2b5076b', 'project_id': 'f5f11622644d49eb9dfdaf71a2b5076b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51179029-c842-4493-91e5-78955e4d5a10', 'c1833419-9aa9-4d90-b9ae-bae1a8d54736'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96170444', 'ctest-vn4-42712786'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96170444', 'ctest-policy1-65823700']], 'subnet_ipam': [{'subnet_cidr': '161.26.19.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e9a:fcc5:6e35:ac24:2795:c7c6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-17 17:44:07,832 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-17 17:44:08,141 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-17 17:44:08,191 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f53eaa-c0b6-4cb5-a484-332aed9cd156 2025-10-17 17:44:08,216 - DEBUG - Requesting: http://10.0.0.33:8082/project/f5f11622-644d-49eb-9dfd-af71a2b5076b 2025-10-17 17:44:08,338 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8c4b2120-3c3d-414d-8045-f28422121250 2025-10-17 17:44:08,362 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8c4b2120-3c3d-414d-8045-f28422121250 2025-10-17 17:44:08,384 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/025ef7e5-3949-4003-b809-fb15c3d76630 2025-10-17 17:44:08,398 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/025ef7e5-3949-4003-b809-fb15c3d76630 2025-10-17 17:44:08,410 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/fff92f06-aac3-49c0-9759-53d5f4d8764c 2025-10-17 17:44:08,423 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-17 17:44:08,423 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8c4b2120-3c3d-414d-8045-f28422121250 2025-10-17 17:44:08,441 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/025ef7e5-3949-4003-b809-fb15c3d76630 2025-10-17 17:44:08,473 - INFO - Verified VN network id 11 for VN 8c4b2120-3c3d-414d-8045-f28422121250 2025-10-17 17:44:08,473 - INFO - Verifications in API Server for VN ctest-vn4-42712786 passed 2025-10-17 17:44:08,474 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8c4b2120-3c3d-414d-8045-f28422121250 2025-10-17 17:44:08,491 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/025ef7e5-3949-4003-b809-fb15c3d76630 2025-10-17 17:44:08,502 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/025ef7e5-3949-4003-b809-fb15c3d76630 2025-10-17 17:44:08,516 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/fff92f06-aac3-49c0-9759-53d5f4d8764c 2025-10-17 17:44:08,538 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96170444:ctest-vn4-42712786', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96170444', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10109210210896527693', 'uuid-lslong': '9243060459569025616'}, 'enable': 'true', 'created': '2025-10-17T17:44:06', 'last-modified': '2025-10-17T17:44:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916760'} 2025-10-17 17:44:08,553 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-17 17:44:08,553 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42712786 passed 2025-10-17 17:44:08,554 - DEBUG - ====Verifying policy data for ctest-vn4-42712786 in API_Server ====== 2025-10-17 17:44:08,554 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-17 17:44:08,562 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f53eaa-c0b6-4cb5-a484-332aed9cd156 2025-10-17 17:44:08,581 - DEBUG - Requesting: http://10.0.0.33:8082/project/f5f11622-644d-49eb-9dfd-af71a2b5076b 2025-10-17 17:44:08,665 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8c4b2120-3c3d-414d-8045-f28422121250 2025-10-17 17:44:08,679 - DEBUG - ==>Verifying data for policy with id: 8ddeb6ab-cc65-4c55-b193-0136dfddb77a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96170444', 'ctest-policy1-65823700'] 2025-10-17 17:44:08,679 - INFO - VN ctest-vn4-42712786 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-17 17:44:08,679 - DEBUG - Verifying the vn in opserver 2025-10-17 17:44:08,679 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96170444:ctest-vn4-42712786 virtual network link through opserver 10.0.0.33 2025-10-17 17:44:08,679 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-17 17:44:08,986 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-17 17:44:09,063 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96170444:ctest-vn4-42712786', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96170444:ctest-vn4-42712786?flat'} 2025-10-17 17:44:09,064 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96170444:ctest-vn4-42712786 is found in opserver 2025-10-17 17:44:09,085 - DEBUG - Do not have enough data to verify VN in agent 2025-10-17 17:44:09,096 - DEBUG - VRF ids for VN ctest-vn4-42712786: {} 2025-10-17 17:44:09,098 - DEBUG - ====Verifying data for ctest-policy1-65823700 in API_Server ====== 2025-10-17 17:44:09,098 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-17 17:44:09,106 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f53eaa-c0b6-4cb5-a484-332aed9cd156 2025-10-17 17:44:09,123 - DEBUG - Requesting: http://10.0.0.33:8082/project/f5f11622-644d-49eb-9dfd-af71a2b5076b 2025-10-17 17:44:09,205 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/8ddeb6ab-cc65-4c55-b193-0136dfddb77a 2025-10-17 17:44:09,219 - INFO - Verified policy ctest-policy1-65823700 in API Server, Result: True 2025-10-17 17:44:09,219 - INFO - Done with setup and verification, moving onto test .. 2025-10-17 17:44:09,231 - INFO - Deleting VN ctest-vn4-42712786 2025-10-17 17:44:09,376 - DEBUG - Response for deleting network () 2025-10-17 17:44:09,376 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/025ef7e5-3949-4003-b809-fb15c3d76630 2025-10-17 17:44:09,382 - DEBUG - Response Code: 404 2025-10-17 17:44:09,383 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-17 17:44:09,390 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74f53eaa-c0b6-4cb5-a484-332aed9cd156 2025-10-17 17:44:09,448 - DEBUG - Requesting: http://10.0.0.33:8082/project/f5f11622-644d-49eb-9dfd-af71a2b5076b 2025-10-17 17:44:09,578 - INFO - Validated that VN ctest-vn4-42712786 is not found in API Server 2025-10-17 17:44:09,588 - DEBUG - VN ctest-vn4-42712786 is not present in Agent 10.0.0.33 2025-10-17 17:44:09,588 - INFO - Validated that VN ctest-vn4-42712786 is not in any agent 2025-10-17 17:44:09,605 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42712786 info 2025-10-17 17:44:09,633 - INFO - Deleted policy ctest-policy1-65823700 2025-10-17 17:44:09,812 - DEBUG - policy ctest-policy1-65823700 is not found in API Server 2025-10-17 17:44:10,142 - DEBUG - No XMPP flaps were noticed during the test