2025-11-24 17:29:17,227 - INFO - Domain Default found not creating 2025-11-24 17:29:17,630 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-81437539 not found, creating it 2025-11-24 17:29:18,215 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-81437539, ID : f1c85987-3ce3-4a94-8af1-bee7b08e8044 2025-11-24 17:29:20,368 - INFO - ================================================================================ 2025-11-24 17:29:20,368 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 17:29:20,694 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.252': '0'}} with 2025-11-24 17:29:20,694 - INFO - Initial checks done. Running the testcase now 2025-11-24 17:29:20,695 - INFO - 2025-11-24 17:29:20,695 - INFO - ================================================================================ 2025-11-24 17:29:20,695 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 17:29:20,695 - 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 17:29:21,025 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.252': '0'}} with 2025-11-24 17:29:21,026 - INFO - Initial checks done. Running the testcase now 2025-11-24 17:29:21,026 - INFO - 2025-11-24 17:29:21,483 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81437539:ctest-vn4-84309000, 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-81437539:ctest-vn4-84309000, 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-81437539:ctest-vn4-84309000, 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-81437539:ctest-vn4-84309000, 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 17:29:22,099 - DEBUG - Response for create_network : {'network': {'id': '20bc475c-fdfe-47aa-b0b3-08a5d589cd26', 'name': 'ctest-vn4-84309000', 'tenant_id': 'f1c859873ce34a948af1bee7b08e8044', 'project_id': 'f1c859873ce34a948af1bee7b08e8044', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81437539', 'ctest-vn4-84309000'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 17:29:22,273 - DEBUG - Response for create_subnet : {'subnet': {'id': '98453757-ed01-4f67-afc4-3b204875b811', 'name': '', 'tenant_id': 'f1c859873ce34a948af1bee7b08e8044', 'network_id': '20bc475c-fdfe-47aa-b0b3-08a5d589cd26', 'ip_version': 4, 'cidr': '184.78.159.0/26', 'allocation_pools': [{'start': '184.78.159.2', 'end': '184.78.159.62'}], 'gateway_ip': '184.78.159.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.78.159.2', 'tags': [], 'project_id': 'f1c859873ce34a948af1bee7b08e8044'}} 2025-11-24 17:29:22,496 - DEBUG - Response for create_subnet : {'subnet': {'id': '5af294c0-daea-4658-8694-f808254da501', 'name': '', 'tenant_id': 'f1c859873ce34a948af1bee7b08e8044', 'network_id': '20bc475c-fdfe-47aa-b0b3-08a5d589cd26', 'ip_version': 6, 'cidr': '2bde:397:7211:1848:455f:a36::/96', 'allocation_pools': [{'start': '2bde:397:7211:1848:455f:a36:0:2', 'end': '2bde:397:7211:1848:455f:a36:ffff:fffe'}], 'gateway_ip': '2bde:397:7211:1848:455f:a36:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bde:397:7211:1848:455f:a36:0:2', 'tags': [], 'project_id': 'f1c859873ce34a948af1bee7b08e8044'}} 2025-11-24 17:29:22,530 - INFO - Created VN ctest-vn4-84309000 2025-11-24 17:29:22,592 - DEBUG - VN ctest-vn4-84309000 UUID is 20bc475c-fdfe-47aa-b0b3-08a5d589cd26 2025-11-24 17:29:22,871 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '20bc475c-fdfe-47aa-b0b3-08a5d589cd26', 'name': 'ctest-vn4-84309000', 'tenant_id': 'f1c859873ce34a948af1bee7b08e8044', 'project_id': 'f1c859873ce34a948af1bee7b08e8044', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98453757-ed01-4f67-afc4-3b204875b811', '5af294c0-daea-4658-8694-f808254da501'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81437539', 'ctest-vn4-84309000'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81437539', 'ctest-policy1-72948265']], 'subnet_ipam': [{'subnet_cidr': '184.78.159.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bde:397:7211:1848:455f:a36::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 17:29:23,052 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-24 17:29:23,395 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-24 17:29:23,446 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1eb80f03-1c7f-4a4e-9ca1-46517aa49f22 2025-11-24 17:29:23,471 - DEBUG - Requesting: http://10.0.0.33:8082/project/f1c85987-3ce3-4a94-8af1-bee7b08e8044 2025-11-24 17:29:23,574 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20bc475c-fdfe-47aa-b0b3-08a5d589cd26 2025-11-24 17:29:23,595 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20bc475c-fdfe-47aa-b0b3-08a5d589cd26 2025-11-24 17:29:23,614 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e74e271e-f778-4d7b-b1ea-2f21ac51e8e1 2025-11-24 17:29:23,628 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e74e271e-f778-4d7b-b1ea-2f21ac51e8e1 2025-11-24 17:29:23,636 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/fd44f07c-b422-4f75-b8cb-639b7421898d 2025-11-24 17:29:23,646 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 17:29:23,646 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20bc475c-fdfe-47aa-b0b3-08a5d589cd26 2025-11-24 17:29:23,662 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e74e271e-f778-4d7b-b1ea-2f21ac51e8e1 2025-11-24 17:29:23,684 - INFO - Verified VN network id 11 for VN 20bc475c-fdfe-47aa-b0b3-08a5d589cd26 2025-11-24 17:29:23,684 - INFO - Verifications in API Server for VN ctest-vn4-84309000 passed 2025-11-24 17:29:23,684 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20bc475c-fdfe-47aa-b0b3-08a5d589cd26 2025-11-24 17:29:23,702 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e74e271e-f778-4d7b-b1ea-2f21ac51e8e1 2025-11-24 17:29:23,719 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e74e271e-f778-4d7b-b1ea-2f21ac51e8e1 2025-11-24 17:29:23,732 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/fd44f07c-b422-4f75-b8cb-639b7421898d 2025-11-24 17:29:23,755 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81437539:ctest-vn4-84309000', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-81437539', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2358838769559160746', 'uuid-lslong': '12732530079851728166'}, 'enable': 'true', 'created': '2025-11-24T17:29:22', 'last-modified': '2025-11-24T17:29:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927564'} 2025-11-24 17:29:23,764 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 17:29:23,764 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-84309000 passed 2025-11-24 17:29:23,764 - DEBUG - ====Verifying policy data for ctest-vn4-84309000 in API_Server ====== 2025-11-24 17:29:23,764 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-24 17:29:23,772 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1eb80f03-1c7f-4a4e-9ca1-46517aa49f22 2025-11-24 17:29:23,785 - DEBUG - Requesting: http://10.0.0.33:8082/project/f1c85987-3ce3-4a94-8af1-bee7b08e8044 2025-11-24 17:29:23,867 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/20bc475c-fdfe-47aa-b0b3-08a5d589cd26 2025-11-24 17:29:23,881 - DEBUG - ==>Verifying data for policy with id: c65db0e0-69b0-419a-874b-cd4858e30000, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81437539', 'ctest-policy1-72948265'] 2025-11-24 17:29:23,881 - INFO - VN ctest-vn4-84309000 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 17:29:23,881 - DEBUG - Verifying the vn in opserver 2025-11-24 17:29:23,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81437539:ctest-vn4-84309000 virtual network link through opserver 10.0.0.33 2025-11-24 17:29:23,881 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-24 17:29:24,194 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-24 17:29:24,335 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81437539:ctest-vn4-84309000', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81437539:ctest-vn4-84309000?flat'} 2025-11-24 17:29:24,335 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81437539:ctest-vn4-84309000 is found in opserver 2025-11-24 17:29:24,355 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 17:29:24,362 - DEBUG - VRF ids for VN ctest-vn4-84309000: {} 2025-11-24 17:29:24,363 - DEBUG - ====Verifying data for ctest-policy1-72948265 in API_Server ====== 2025-11-24 17:29:24,363 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-24 17:29:24,372 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1eb80f03-1c7f-4a4e-9ca1-46517aa49f22 2025-11-24 17:29:24,392 - DEBUG - Requesting: http://10.0.0.33:8082/project/f1c85987-3ce3-4a94-8af1-bee7b08e8044 2025-11-24 17:29:24,495 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/c65db0e0-69b0-419a-874b-cd4858e30000 2025-11-24 17:29:24,520 - INFO - Verified policy ctest-policy1-72948265 in API Server, Result: True 2025-11-24 17:29:24,520 - INFO - Done with setup and verification, moving onto test .. 2025-11-24 17:29:24,539 - INFO - Deleting VN ctest-vn4-84309000 2025-11-24 17:29:24,738 - DEBUG - Response for deleting network () 2025-11-24 17:29:24,738 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e74e271e-f778-4d7b-b1ea-2f21ac51e8e1 2025-11-24 17:29:24,744 - DEBUG - Response Code: 404 2025-11-24 17:29:24,744 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-24 17:29:24,751 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1eb80f03-1c7f-4a4e-9ca1-46517aa49f22 2025-11-24 17:29:24,805 - DEBUG - Requesting: http://10.0.0.33:8082/project/f1c85987-3ce3-4a94-8af1-bee7b08e8044 2025-11-24 17:29:24,892 - INFO - Validated that VN ctest-vn4-84309000 is not found in API Server 2025-11-24 17:29:24,906 - DEBUG - VN ctest-vn4-84309000 is not present in Agent 10.0.0.33 2025-11-24 17:29:24,906 - INFO - Validated that VN ctest-vn4-84309000 is not in any agent 2025-11-24 17:29:24,927 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-84309000 info 2025-11-24 17:29:24,956 - INFO - Deleted policy ctest-policy1-72948265 2025-11-24 17:29:25,151 - DEBUG - policy ctest-policy1-72948265 is not found in API Server 2025-11-24 17:29:25,470 - DEBUG - No XMPP flaps were noticed during the test