2025-10-16 09:22:31,361 - INFO - Domain Default found not creating 2025-10-16 09:22:31,499 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54079604 not found, creating it 2025-10-16 09:22:31,948 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54079604, ID : 0c754888-acde-41d0-8e23-4cfad74abb6e 2025-10-16 09:22:33,321 - INFO - ================================================================================ 2025-10-16 09:22:33,321 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 09:22:33,575 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-10-16 09:22:33,576 - INFO - Initial checks done. Running the testcase now 2025-10-16 09:22:33,576 - INFO - 2025-10-16 09:22:33,576 - INFO - ================================================================================ 2025-10-16 09:22:33,576 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-16 09:22:33,576 - 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-16 09:22:33,871 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-10-16 09:22:33,871 - INFO - Initial checks done. Running the testcase now 2025-10-16 09:22:33,871 - INFO - 2025-10-16 09:22:34,212 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54079604:ctest-vn4-40445735, 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-54079604:ctest-vn4-40445735, 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-54079604:ctest-vn4-40445735, 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-54079604:ctest-vn4-40445735, 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-16 09:22:34,715 - DEBUG - Response for create_network : {'network': {'id': 'e2632781-1b23-4efd-a3d0-f12d224374ee', 'name': 'ctest-vn4-40445735', 'tenant_id': '0c754888acde41d08e234cfad74abb6e', 'project_id': '0c754888acde41d08e234cfad74abb6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54079604', 'ctest-vn4-40445735'], 'port_security_enabled': True, 'description': ''}} 2025-10-16 09:22:34,878 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6af9595-cf03-4048-903d-5b62ffca7213', 'name': '', 'tenant_id': '0c754888acde41d08e234cfad74abb6e', 'network_id': 'e2632781-1b23-4efd-a3d0-f12d224374ee', 'ip_version': 4, 'cidr': '135.14.60.192/26', 'allocation_pools': [{'start': '135.14.60.194', 'end': '135.14.60.254'}], 'gateway_ip': '135.14.60.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.14.60.194', 'tags': [], 'project_id': '0c754888acde41d08e234cfad74abb6e'}} 2025-10-16 09:22:35,040 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e0b4ab5-7e30-4969-9ebf-d56a4a38ca65', 'name': '', 'tenant_id': '0c754888acde41d08e234cfad74abb6e', 'network_id': 'e2632781-1b23-4efd-a3d0-f12d224374ee', 'ip_version': 6, 'cidr': '3922:862:3660:4954:860d:f2de::/96', 'allocation_pools': [{'start': '3922:862:3660:4954:860d:f2de:0:2', 'end': '3922:862:3660:4954:860d:f2de:ffff:fffe'}], 'gateway_ip': '3922:862:3660:4954:860d:f2de:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3922:862:3660:4954:860d:f2de:0:2', 'tags': [], 'project_id': '0c754888acde41d08e234cfad74abb6e'}} 2025-10-16 09:22:35,065 - INFO - Created VN ctest-vn4-40445735 2025-10-16 09:22:35,119 - DEBUG - VN ctest-vn4-40445735 UUID is e2632781-1b23-4efd-a3d0-f12d224374ee 2025-10-16 09:22:35,316 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2632781-1b23-4efd-a3d0-f12d224374ee', 'name': 'ctest-vn4-40445735', 'tenant_id': '0c754888acde41d08e234cfad74abb6e', 'project_id': '0c754888acde41d08e234cfad74abb6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6af9595-cf03-4048-903d-5b62ffca7213', '3e0b4ab5-7e30-4969-9ebf-d56a4a38ca65'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54079604', 'ctest-vn4-40445735'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54079604', 'ctest-policy1-39125113']], 'subnet_ipam': [{'subnet_cidr': '135.14.60.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3922:862:3660:4954:860d:f2de::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-16 09:22:35,475 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-16 09:22:35,784 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-16 09:22:35,811 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b53048f0-a7d0-4124-b2a6-87242c09df1e 2025-10-16 09:22:35,822 - DEBUG - Requesting: http://10.0.0.130:8082/project/0c754888-acde-41d0-8e23-4cfad74abb6e 2025-10-16 09:22:35,915 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e2632781-1b23-4efd-a3d0-f12d224374ee 2025-10-16 09:22:35,930 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e2632781-1b23-4efd-a3d0-f12d224374ee 2025-10-16 09:22:35,940 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3c0595cb-d4bb-4bd3-869e-8e341bf84644 2025-10-16 09:22:35,949 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3c0595cb-d4bb-4bd3-869e-8e341bf84644 2025-10-16 09:22:35,957 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f70b62bb-b157-47e7-8d5b-f694277b4d73 2025-10-16 09:22:35,964 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 09:22:35,964 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e2632781-1b23-4efd-a3d0-f12d224374ee 2025-10-16 09:22:35,973 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3c0595cb-d4bb-4bd3-869e-8e341bf84644 2025-10-16 09:22:35,986 - INFO - Verified VN network id 9 for VN e2632781-1b23-4efd-a3d0-f12d224374ee 2025-10-16 09:22:35,986 - INFO - Verifications in API Server for VN ctest-vn4-40445735 passed 2025-10-16 09:22:35,986 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e2632781-1b23-4efd-a3d0-f12d224374ee 2025-10-16 09:22:36,003 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3c0595cb-d4bb-4bd3-869e-8e341bf84644 2025-10-16 09:22:36,010 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3c0595cb-d4bb-4bd3-869e-8e341bf84644 2025-10-16 09:22:36,016 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f70b62bb-b157-47e7-8d5b-f694277b4d73 2025-10-16 09:22:36,031 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54079604:ctest-vn4-40445735', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54079604', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16312925710725631741', 'uuid-lslong': '11804199799488738542'}, 'enable': 'true', 'created': '2025-10-16T09:22:34', 'last-modified': '2025-10-16T09:22:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.743338'} 2025-10-16 09:22:36,038 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-16 09:22:36,038 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40445735 passed 2025-10-16 09:22:36,038 - DEBUG - ====Verifying policy data for ctest-vn4-40445735 in API_Server ====== 2025-10-16 09:22:36,038 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-16 09:22:36,044 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b53048f0-a7d0-4124-b2a6-87242c09df1e 2025-10-16 09:22:36,056 - DEBUG - Requesting: http://10.0.0.130:8082/project/0c754888-acde-41d0-8e23-4cfad74abb6e 2025-10-16 09:22:36,127 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e2632781-1b23-4efd-a3d0-f12d224374ee 2025-10-16 09:22:36,137 - DEBUG - ==>Verifying data for policy with id: 999ceba7-1252-4d8c-9877-d3d954588712, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54079604', 'ctest-policy1-39125113'] 2025-10-16 09:22:36,137 - INFO - VN ctest-vn4-40445735 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-16 09:22:36,137 - DEBUG - Verifying the vn in opserver 2025-10-16 09:22:36,137 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54079604:ctest-vn4-40445735 virtual network link through opserver 10.0.0.130 2025-10-16 09:22:36,137 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-16 09:22:36,437 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-16 09:22:36,487 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54079604:ctest-vn4-40445735', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54079604:ctest-vn4-40445735?flat'} 2025-10-16 09:22:36,487 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54079604:ctest-vn4-40445735 is found in opserver 2025-10-16 09:22:36,496 - DEBUG - Do not have enough data to verify VN in agent 2025-10-16 09:22:36,500 - DEBUG - VRF ids for VN ctest-vn4-40445735: {} 2025-10-16 09:22:36,500 - DEBUG - ====Verifying data for ctest-policy1-39125113 in API_Server ====== 2025-10-16 09:22:36,500 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-16 09:22:36,505 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b53048f0-a7d0-4124-b2a6-87242c09df1e 2025-10-16 09:22:36,515 - DEBUG - Requesting: http://10.0.0.130:8082/project/0c754888-acde-41d0-8e23-4cfad74abb6e 2025-10-16 09:22:36,583 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/999ceba7-1252-4d8c-9877-d3d954588712 2025-10-16 09:22:36,590 - INFO - Verified policy ctest-policy1-39125113 in API Server, Result: True 2025-10-16 09:22:36,591 - INFO - Done with setup and verification, moving onto test .. 2025-10-16 09:22:36,597 - INFO - Deleting VN ctest-vn4-40445735 2025-10-16 09:22:36,702 - DEBUG - Response for deleting network () 2025-10-16 09:22:36,702 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/3c0595cb-d4bb-4bd3-869e-8e341bf84644 2025-10-16 09:22:36,707 - DEBUG - Response Code: 404 2025-10-16 09:22:36,707 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-16 09:22:36,711 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b53048f0-a7d0-4124-b2a6-87242c09df1e 2025-10-16 09:22:36,763 - DEBUG - Requesting: http://10.0.0.130:8082/project/0c754888-acde-41d0-8e23-4cfad74abb6e 2025-10-16 09:22:36,831 - INFO - Validated that VN ctest-vn4-40445735 is not found in API Server 2025-10-16 09:22:36,840 - DEBUG - VN ctest-vn4-40445735 is not present in Agent 10.0.0.130 2025-10-16 09:22:36,840 - INFO - Validated that VN ctest-vn4-40445735 is not in any agent 2025-10-16 09:22:36,852 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40445735 info 2025-10-16 09:22:36,872 - INFO - Deleted policy ctest-policy1-39125113 2025-10-16 09:22:37,034 - DEBUG - policy ctest-policy1-39125113 is not found in API Server 2025-10-16 09:22:37,287 - DEBUG - No XMPP flaps were noticed during the test