2025-08-25 12:31:05,208 - INFO - Domain Default found not creating 2025-08-25 12:31:05,385 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-46131942 not found, creating it 2025-08-25 12:31:05,931 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-46131942, ID : e8ca3ddb-75d4-4cfa-8b09-61d5f621573d 2025-08-25 12:31:07,606 - INFO - ================================================================================ 2025-08-25 12:31:07,606 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-25 12:31:07,863 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-08-25 12:31:07,863 - INFO - Initial checks done. Running the testcase now 2025-08-25 12:31:07,863 - INFO - 2025-08-25 12:31:07,863 - INFO - ================================================================================ 2025-08-25 12:31:07,863 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-25 12:31:07,863 - 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-08-25 12:31:08,158 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-08-25 12:31:08,158 - INFO - Initial checks done. Running the testcase now 2025-08-25 12:31:08,158 - INFO - 2025-08-25 12:31:08,541 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46131942:ctest-vn4-78058208, 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-46131942:ctest-vn4-78058208, 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-46131942:ctest-vn4-78058208, 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-46131942:ctest-vn4-78058208, 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-08-25 12:31:09,101 - DEBUG - Response for create_network : {'network': {'id': '2eacfb22-6754-4e55-a00d-6936dbc79e0d', 'name': 'ctest-vn4-78058208', 'tenant_id': 'e8ca3ddb75d44cfa8b0961d5f621573d', 'project_id': 'e8ca3ddb75d44cfa8b0961d5f621573d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46131942', 'ctest-vn4-78058208'], 'port_security_enabled': True, 'description': ''}} 2025-08-25 12:31:09,275 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eaefdfc9-fdba-40e7-a7f3-18b090a6a6f0', 'name': '', 'tenant_id': 'e8ca3ddb75d44cfa8b0961d5f621573d', 'network_id': '2eacfb22-6754-4e55-a00d-6936dbc79e0d', 'ip_version': 4, 'cidr': '6.187.9.192/26', 'allocation_pools': [{'start': '6.187.9.194', 'end': '6.187.9.254'}], 'gateway_ip': '6.187.9.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.187.9.194', 'tags': [], 'project_id': 'e8ca3ddb75d44cfa8b0961d5f621573d'}} 2025-08-25 12:31:09,490 - DEBUG - Response for create_subnet : {'subnet': {'id': '93d18146-ec24-4835-84a1-61c939f55c82', 'name': '', 'tenant_id': 'e8ca3ddb75d44cfa8b0961d5f621573d', 'network_id': '2eacfb22-6754-4e55-a00d-6936dbc79e0d', 'ip_version': 6, 'cidr': '219f:9645:8bc8:46bf:489a:77e8::/96', 'allocation_pools': [{'start': '219f:9645:8bc8:46bf:489a:77e8:0:2', 'end': '219f:9645:8bc8:46bf:489a:77e8:ffff:fffe'}], 'gateway_ip': '219f:9645:8bc8:46bf:489a:77e8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219f:9645:8bc8:46bf:489a:77e8:0:2', 'tags': [], 'project_id': 'e8ca3ddb75d44cfa8b0961d5f621573d'}} 2025-08-25 12:31:09,511 - INFO - Created VN ctest-vn4-78058208 2025-08-25 12:31:09,564 - DEBUG - VN ctest-vn4-78058208 UUID is 2eacfb22-6754-4e55-a00d-6936dbc79e0d 2025-08-25 12:31:09,801 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2eacfb22-6754-4e55-a00d-6936dbc79e0d', 'name': 'ctest-vn4-78058208', 'tenant_id': 'e8ca3ddb75d44cfa8b0961d5f621573d', 'project_id': 'e8ca3ddb75d44cfa8b0961d5f621573d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eaefdfc9-fdba-40e7-a7f3-18b090a6a6f0', '93d18146-ec24-4835-84a1-61c939f55c82'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46131942', 'ctest-vn4-78058208'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46131942', 'ctest-policy1-94422188']], 'subnet_ipam': [{'subnet_cidr': '6.187.9.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '219f:9645:8bc8:46bf:489a:77e8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-25 12:31:09,976 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-25 12:31:10,294 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-25 12:31:10,323 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b0b1ecbd-454d-43a5-8516-1a866cb6cb67 2025-08-25 12:31:10,338 - DEBUG - Requesting: http://10.0.0.65:8082/project/e8ca3ddb-75d4-4cfa-8b09-61d5f621573d 2025-08-25 12:31:10,419 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/2eacfb22-6754-4e55-a00d-6936dbc79e0d 2025-08-25 12:31:10,432 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/2eacfb22-6754-4e55-a00d-6936dbc79e0d 2025-08-25 12:31:10,444 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7bba0518-0d22-4fa7-b255-daa59a4597f3 2025-08-25 12:31:10,453 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7bba0518-0d22-4fa7-b255-daa59a4597f3 2025-08-25 12:31:10,460 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/7a09094a-ab6e-46b5-8160-be77092ea7b7 2025-08-25 12:31:10,467 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-25 12:31:10,467 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/2eacfb22-6754-4e55-a00d-6936dbc79e0d 2025-08-25 12:31:10,477 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7bba0518-0d22-4fa7-b255-daa59a4597f3 2025-08-25 12:31:10,491 - INFO - Verified VN network id 12 for VN 2eacfb22-6754-4e55-a00d-6936dbc79e0d 2025-08-25 12:31:10,491 - INFO - Verifications in API Server for VN ctest-vn4-78058208 passed 2025-08-25 12:31:10,492 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/2eacfb22-6754-4e55-a00d-6936dbc79e0d 2025-08-25 12:31:10,502 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7bba0518-0d22-4fa7-b255-daa59a4597f3 2025-08-25 12:31:10,509 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7bba0518-0d22-4fa7-b255-daa59a4597f3 2025-08-25 12:31:10,517 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/7a09094a-ab6e-46b5-8160-be77092ea7b7 2025-08-25 12:31:10,531 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46131942:ctest-vn4-78058208', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-46131942', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3363339146919956053', 'uuid-lslong': '11532989905102151181'}, 'enable': 'true', 'created': '2025-08-25T12:31:09', 'last-modified': '2025-08-25T12:31:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.763250'} 2025-08-25 12:31:10,538 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-25 12:31:10,538 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78058208 passed 2025-08-25 12:31:10,538 - DEBUG - ====Verifying policy data for ctest-vn4-78058208 in API_Server ====== 2025-08-25 12:31:10,538 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-25 12:31:10,544 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b0b1ecbd-454d-43a5-8516-1a866cb6cb67 2025-08-25 12:31:10,556 - DEBUG - Requesting: http://10.0.0.65:8082/project/e8ca3ddb-75d4-4cfa-8b09-61d5f621573d 2025-08-25 12:31:10,632 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/2eacfb22-6754-4e55-a00d-6936dbc79e0d 2025-08-25 12:31:10,645 - DEBUG - ==>Verifying data for policy with id: 409c6bee-9b04-4c40-955d-7f9f8ebc101d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46131942', 'ctest-policy1-94422188'] 2025-08-25 12:31:10,645 - INFO - VN ctest-vn4-78058208 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-25 12:31:10,645 - DEBUG - Verifying the vn in opserver 2025-08-25 12:31:10,645 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46131942:ctest-vn4-78058208 virtual network link through opserver 10.0.0.65 2025-08-25 12:31:10,645 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-25 12:31:10,946 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-25 12:31:11,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46131942:ctest-vn4-78058208', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46131942:ctest-vn4-78058208?flat'} 2025-08-25 12:31:11,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46131942:ctest-vn4-78058208 is found in opserver 2025-08-25 12:31:11,014 - DEBUG - Do not have enough data to verify VN in agent 2025-08-25 12:31:11,020 - DEBUG - VRF ids for VN ctest-vn4-78058208: {} 2025-08-25 12:31:11,021 - DEBUG - ====Verifying data for ctest-policy1-94422188 in API_Server ====== 2025-08-25 12:31:11,021 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-25 12:31:11,027 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b0b1ecbd-454d-43a5-8516-1a866cb6cb67 2025-08-25 12:31:11,039 - DEBUG - Requesting: http://10.0.0.65:8082/project/e8ca3ddb-75d4-4cfa-8b09-61d5f621573d 2025-08-25 12:31:11,129 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/409c6bee-9b04-4c40-955d-7f9f8ebc101d 2025-08-25 12:31:11,140 - INFO - Verified policy ctest-policy1-94422188 in API Server, Result: True 2025-08-25 12:31:11,141 - INFO - Done with setup and verification, moving onto test .. 2025-08-25 12:31:11,150 - INFO - Deleting VN ctest-vn4-78058208 2025-08-25 12:31:11,285 - DEBUG - Response for deleting network () 2025-08-25 12:31:11,285 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/7bba0518-0d22-4fa7-b255-daa59a4597f3 2025-08-25 12:31:11,292 - DEBUG - Response Code: 404 2025-08-25 12:31:11,293 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-25 12:31:11,299 - DEBUG - Requesting: http://10.0.0.65:8082/domain/b0b1ecbd-454d-43a5-8516-1a866cb6cb67 2025-08-25 12:31:11,354 - DEBUG - Requesting: http://10.0.0.65:8082/project/e8ca3ddb-75d4-4cfa-8b09-61d5f621573d 2025-08-25 12:31:11,435 - INFO - Validated that VN ctest-vn4-78058208 is not found in API Server 2025-08-25 12:31:11,448 - DEBUG - VN ctest-vn4-78058208 is not present in Agent 10.0.0.65 2025-08-25 12:31:11,448 - INFO - Validated that VN ctest-vn4-78058208 is not in any agent 2025-08-25 12:31:11,465 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78058208 info 2025-08-25 12:31:11,496 - INFO - Deleted policy ctest-policy1-94422188 2025-08-25 12:31:11,672 - DEBUG - policy ctest-policy1-94422188 is not found in API Server 2025-08-25 12:31:11,930 - DEBUG - No XMPP flaps were noticed during the test