2025-12-04 02:22:11,850 - INFO - Domain Default found not creating 2025-12-04 02:22:12,034 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-23040227 not found, creating it 2025-12-04 02:22:12,537 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-23040227, ID : 7fe0817b-0960-497c-8eac-fecbde31e738 2025-12-04 02:22:14,134 - INFO - ================================================================================ 2025-12-04 02:22:14,135 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-04 02:22:14,406 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.129': '0'}} with 2025-12-04 02:22:14,406 - INFO - Initial checks done. Running the testcase now 2025-12-04 02:22:14,406 - INFO - 2025-12-04 02:22:14,406 - INFO - ================================================================================ 2025-12-04 02:22:14,406 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-04 02:22:14,407 - 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-12-04 02:22:14,693 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.129': '0'}} with 2025-12-04 02:22:14,693 - INFO - Initial checks done. Running the testcase now 2025-12-04 02:22:14,693 - INFO - 2025-12-04 02:22:15,077 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23040227:ctest-vn4-45310315, 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-23040227:ctest-vn4-45310315, 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-23040227:ctest-vn4-45310315, 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-23040227:ctest-vn4-45310315, 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-12-04 02:22:15,626 - DEBUG - Response for create_network : {'network': {'id': 'a88b5268-c13c-48ed-86e8-1d3dfb751fd0', 'name': 'ctest-vn4-45310315', 'tenant_id': '7fe0817b0960497c8eacfecbde31e738', 'project_id': '7fe0817b0960497c8eacfecbde31e738', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23040227', 'ctest-vn4-45310315'], 'port_security_enabled': True, 'description': ''}} 2025-12-04 02:22:15,810 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb646621-156a-47aa-92d8-e398fd4af0b0', 'name': '', 'tenant_id': '7fe0817b0960497c8eacfecbde31e738', 'network_id': 'a88b5268-c13c-48ed-86e8-1d3dfb751fd0', 'ip_version': 4, 'cidr': '25.35.163.128/26', 'allocation_pools': [{'start': '25.35.163.130', 'end': '25.35.163.190'}], 'gateway_ip': '25.35.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.35.163.130', 'tags': [], 'project_id': '7fe0817b0960497c8eacfecbde31e738'}} 2025-12-04 02:22:16,004 - DEBUG - Response for create_subnet : {'subnet': {'id': '047d1f21-8111-44e9-8190-2d8c88b856db', 'name': '', 'tenant_id': '7fe0817b0960497c8eacfecbde31e738', 'network_id': 'a88b5268-c13c-48ed-86e8-1d3dfb751fd0', 'ip_version': 6, 'cidr': '2bd3:ec03:bf6d:f7ce:470f:3ce0::/96', 'allocation_pools': [{'start': '2bd3:ec03:bf6d:f7ce:470f:3ce0:0:2', 'end': '2bd3:ec03:bf6d:f7ce:470f:3ce0:ffff:fffe'}], 'gateway_ip': '2bd3:ec03:bf6d:f7ce:470f:3ce0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bd3:ec03:bf6d:f7ce:470f:3ce0:0:2', 'tags': [], 'project_id': '7fe0817b0960497c8eacfecbde31e738'}} 2025-12-04 02:22:16,025 - INFO - Created VN ctest-vn4-45310315 2025-12-04 02:22:16,075 - DEBUG - VN ctest-vn4-45310315 UUID is a88b5268-c13c-48ed-86e8-1d3dfb751fd0 2025-12-04 02:22:16,338 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a88b5268-c13c-48ed-86e8-1d3dfb751fd0', 'name': 'ctest-vn4-45310315', 'tenant_id': '7fe0817b0960497c8eacfecbde31e738', 'project_id': '7fe0817b0960497c8eacfecbde31e738', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb646621-156a-47aa-92d8-e398fd4af0b0', '047d1f21-8111-44e9-8190-2d8c88b856db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23040227', 'ctest-vn4-45310315'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23040227', 'ctest-policy1-67982042']], 'subnet_ipam': [{'subnet_cidr': '25.35.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bd3:ec03:bf6d:f7ce:470f:3ce0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-04 02:22:16,511 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-04 02:22:16,807 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-04 02:22:16,841 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4ab31d1a-963f-4ca3-8cea-f2f2d6aa3fed 2025-12-04 02:22:16,854 - DEBUG - Requesting: http://10.0.0.19:8082/project/7fe0817b-0960-497c-8eac-fecbde31e738 2025-12-04 02:22:16,928 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a88b5268-c13c-48ed-86e8-1d3dfb751fd0 2025-12-04 02:22:16,941 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a88b5268-c13c-48ed-86e8-1d3dfb751fd0 2025-12-04 02:22:16,951 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ccb3b7cf-2b21-4625-bf73-7b1b2bf16edb 2025-12-04 02:22:16,959 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ccb3b7cf-2b21-4625-bf73-7b1b2bf16edb 2025-12-04 02:22:16,968 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/5338eba6-1ae5-4456-9560-4829bcb39441 2025-12-04 02:22:16,976 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 02:22:16,976 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a88b5268-c13c-48ed-86e8-1d3dfb751fd0 2025-12-04 02:22:16,987 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ccb3b7cf-2b21-4625-bf73-7b1b2bf16edb 2025-12-04 02:22:17,006 - INFO - Verified VN network id 11 for VN a88b5268-c13c-48ed-86e8-1d3dfb751fd0 2025-12-04 02:22:17,006 - INFO - Verifications in API Server for VN ctest-vn4-45310315 passed 2025-12-04 02:22:17,006 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a88b5268-c13c-48ed-86e8-1d3dfb751fd0 2025-12-04 02:22:17,018 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ccb3b7cf-2b21-4625-bf73-7b1b2bf16edb 2025-12-04 02:22:17,028 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ccb3b7cf-2b21-4625-bf73-7b1b2bf16edb 2025-12-04 02:22:17,036 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/5338eba6-1ae5-4456-9560-4829bcb39441 2025-12-04 02:22:17,048 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23040227:ctest-vn4-45310315', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23040227', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12144891430006704365', 'uuid-lslong': '9721051947728183248'}, 'enable': 'true', 'created': '2025-12-04T02:22:15', 'last-modified': '2025-12-04T02:22:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.743427'} 2025-12-04 02:22:17,055 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 02:22:17,055 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45310315 passed 2025-12-04 02:22:17,055 - DEBUG - ====Verifying policy data for ctest-vn4-45310315 in API_Server ====== 2025-12-04 02:22:17,055 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-04 02:22:17,061 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4ab31d1a-963f-4ca3-8cea-f2f2d6aa3fed 2025-12-04 02:22:17,075 - DEBUG - Requesting: http://10.0.0.19:8082/project/7fe0817b-0960-497c-8eac-fecbde31e738 2025-12-04 02:22:17,148 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a88b5268-c13c-48ed-86e8-1d3dfb751fd0 2025-12-04 02:22:17,160 - DEBUG - ==>Verifying data for policy with id: b722b88c-95c1-4daa-b6f3-21b4409a2916, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23040227', 'ctest-policy1-67982042'] 2025-12-04 02:22:17,160 - INFO - VN ctest-vn4-45310315 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-04 02:22:17,160 - DEBUG - Verifying the vn in opserver 2025-12-04 02:22:17,160 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23040227:ctest-vn4-45310315 virtual network link through opserver 10.0.0.19 2025-12-04 02:22:17,160 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-04 02:22:17,453 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-04 02:22:17,525 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23040227:ctest-vn4-45310315', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23040227:ctest-vn4-45310315?flat'} 2025-12-04 02:22:17,525 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23040227:ctest-vn4-45310315 is found in opserver 2025-12-04 02:22:17,535 - DEBUG - Do not have enough data to verify VN in agent 2025-12-04 02:22:17,540 - DEBUG - VRF ids for VN ctest-vn4-45310315: {} 2025-12-04 02:22:17,540 - DEBUG - ====Verifying data for ctest-policy1-67982042 in API_Server ====== 2025-12-04 02:22:17,540 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-04 02:22:17,546 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4ab31d1a-963f-4ca3-8cea-f2f2d6aa3fed 2025-12-04 02:22:17,558 - DEBUG - Requesting: http://10.0.0.19:8082/project/7fe0817b-0960-497c-8eac-fecbde31e738 2025-12-04 02:22:17,631 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/b722b88c-95c1-4daa-b6f3-21b4409a2916 2025-12-04 02:22:17,642 - INFO - Verified policy ctest-policy1-67982042 in API Server, Result: True 2025-12-04 02:22:17,642 - INFO - Done with setup and verification, moving onto test .. 2025-12-04 02:22:17,651 - INFO - Deleting VN ctest-vn4-45310315 2025-12-04 02:22:17,787 - DEBUG - Response for deleting network () 2025-12-04 02:22:17,787 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/ccb3b7cf-2b21-4625-bf73-7b1b2bf16edb 2025-12-04 02:22:17,794 - DEBUG - Response Code: 404 2025-12-04 02:22:17,794 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-04 02:22:17,801 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4ab31d1a-963f-4ca3-8cea-f2f2d6aa3fed 2025-12-04 02:22:17,853 - DEBUG - Requesting: http://10.0.0.19:8082/project/7fe0817b-0960-497c-8eac-fecbde31e738 2025-12-04 02:22:17,927 - INFO - Validated that VN ctest-vn4-45310315 is not found in API Server 2025-12-04 02:22:17,938 - DEBUG - VN ctest-vn4-45310315 is not present in Agent 10.0.0.19 2025-12-04 02:22:17,938 - INFO - Validated that VN ctest-vn4-45310315 is not in any agent 2025-12-04 02:22:17,953 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45310315 info 2025-12-04 02:22:17,979 - INFO - Deleted policy ctest-policy1-67982042 2025-12-04 02:22:18,143 - DEBUG - policy ctest-policy1-67982042 is not found in API Server 2025-12-04 02:22:18,397 - DEBUG - No XMPP flaps were noticed during the test 2025-12-04 02:22:18,397 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-04 02:22:18,397 - INFO - -------------------------------------------------------------------------------- 2025-12-04 02:22:18,704 - DEBUG - No XMPP flaps were noticed during the test 2025-12-04 02:22:18,704 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-04 02:22:18,704 - INFO - -------------------------------------------------------------------------------- 2025-12-04 02:22:19,433 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-23040227, ID : 7fe0817b-0960-497c-8eac-fecbde31e738