2025-11-18 01:05:58,087 - INFO - Domain Default found not creating 2025-11-18 01:05:58,246 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39882728 not found, creating it 2025-11-18 01:05:58,858 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39882728, ID : 0daae608-3ae5-4477-ba01-b3284a6b76ef 2025-11-18 01:06:00,406 - INFO - ================================================================================ 2025-11-18 01:06:00,407 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-18 01:06:00,702 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-18 01:06:00,702 - INFO - Initial checks done. Running the testcase now 2025-11-18 01:06:00,702 - INFO - 2025-11-18 01:06:00,702 - INFO - ================================================================================ 2025-11-18 01:06:00,702 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-18 01:06:00,702 - 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-18 01:06:00,992 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-18 01:06:00,992 - INFO - Initial checks done. Running the testcase now 2025-11-18 01:06:00,993 - INFO - 2025-11-18 01:06:01,355 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39882728:ctest-vn4-78575726, 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-39882728:ctest-vn4-78575726, 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-39882728:ctest-vn4-78575726, 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-39882728:ctest-vn4-78575726, 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-18 01:06:01,886 - DEBUG - Response for create_network : {'network': {'id': '100a8a63-7179-4c34-bef7-35c1fc66747b', 'name': 'ctest-vn4-78575726', 'tenant_id': '0daae6083ae54477ba01b3284a6b76ef', 'project_id': '0daae6083ae54477ba01b3284a6b76ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39882728', 'ctest-vn4-78575726'], 'port_security_enabled': True, 'description': ''}} 2025-11-18 01:06:02,045 - DEBUG - Response for create_subnet : {'subnet': {'id': '206570ea-f5ea-403a-9d16-2b99786e3127', 'name': '', 'tenant_id': '0daae6083ae54477ba01b3284a6b76ef', 'network_id': '100a8a63-7179-4c34-bef7-35c1fc66747b', 'ip_version': 4, 'cidr': '11.232.188.128/26', 'allocation_pools': [{'start': '11.232.188.130', 'end': '11.232.188.190'}], 'gateway_ip': '11.232.188.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.232.188.130', 'tags': [], 'project_id': '0daae6083ae54477ba01b3284a6b76ef'}} 2025-11-18 01:06:02,195 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d9905eb-0b15-4523-9e80-034139be656b', 'name': '', 'tenant_id': '0daae6083ae54477ba01b3284a6b76ef', 'network_id': '100a8a63-7179-4c34-bef7-35c1fc66747b', 'ip_version': 6, 'cidr': '3f44:b09d:748d:c124:8d3:2eff::/96', 'allocation_pools': [{'start': '3f44:b09d:748d:c124:8d3:2eff:0:2', 'end': '3f44:b09d:748d:c124:8d3:2eff:ffff:fffe'}], 'gateway_ip': '3f44:b09d:748d:c124:8d3:2eff:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f44:b09d:748d:c124:8d3:2eff:0:2', 'tags': [], 'project_id': '0daae6083ae54477ba01b3284a6b76ef'}} 2025-11-18 01:06:02,216 - INFO - Created VN ctest-vn4-78575726 2025-11-18 01:06:02,268 - DEBUG - VN ctest-vn4-78575726 UUID is 100a8a63-7179-4c34-bef7-35c1fc66747b 2025-11-18 01:06:02,482 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '100a8a63-7179-4c34-bef7-35c1fc66747b', 'name': 'ctest-vn4-78575726', 'tenant_id': '0daae6083ae54477ba01b3284a6b76ef', 'project_id': '0daae6083ae54477ba01b3284a6b76ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['206570ea-f5ea-403a-9d16-2b99786e3127', '5d9905eb-0b15-4523-9e80-034139be656b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39882728', 'ctest-vn4-78575726'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39882728', 'ctest-policy1-79167664']], 'subnet_ipam': [{'subnet_cidr': '11.232.188.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f44:b09d:748d:c124:8d3:2eff::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-18 01:06:02,656 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-18 01:06:02,947 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-18 01:06:02,977 - DEBUG - Requesting: http://10.0.0.50:8082/domain/91d8b101-eab5-48b5-a8a3-75a505650ca8 2025-11-18 01:06:02,988 - DEBUG - Requesting: http://10.0.0.50:8082/project/0daae608-3ae5-4477-ba01-b3284a6b76ef 2025-11-18 01:06:03,059 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/100a8a63-7179-4c34-bef7-35c1fc66747b 2025-11-18 01:06:03,071 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/100a8a63-7179-4c34-bef7-35c1fc66747b 2025-11-18 01:06:03,080 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1b05296d-b8d1-4494-bce9-fbe212ba6da9 2025-11-18 01:06:03,086 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1b05296d-b8d1-4494-bce9-fbe212ba6da9 2025-11-18 01:06:03,092 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dcd6922a-32fe-46e3-9466-03de980ea892 2025-11-18 01:06:03,099 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-18 01:06:03,099 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/100a8a63-7179-4c34-bef7-35c1fc66747b 2025-11-18 01:06:03,107 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1b05296d-b8d1-4494-bce9-fbe212ba6da9 2025-11-18 01:06:03,120 - INFO - Verified VN network id 11 for VN 100a8a63-7179-4c34-bef7-35c1fc66747b 2025-11-18 01:06:03,120 - INFO - Verifications in API Server for VN ctest-vn4-78575726 passed 2025-11-18 01:06:03,120 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/100a8a63-7179-4c34-bef7-35c1fc66747b 2025-11-18 01:06:03,129 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1b05296d-b8d1-4494-bce9-fbe212ba6da9 2025-11-18 01:06:03,136 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1b05296d-b8d1-4494-bce9-fbe212ba6da9 2025-11-18 01:06:03,143 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dcd6922a-32fe-46e3-9466-03de980ea892 2025-11-18 01:06:03,155 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39882728:ctest-vn4-78575726', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39882728', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1155888414084123700', 'uuid-lslong': '13760526293733373051'}, 'enable': 'true', 'created': '2025-11-18T01:06:01', 'last-modified': '2025-11-18T01:06:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700747'} 2025-11-18 01:06:03,161 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-18 01:06:03,162 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78575726 passed 2025-11-18 01:06:03,162 - DEBUG - ====Verifying policy data for ctest-vn4-78575726 in API_Server ====== 2025-11-18 01:06:03,162 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-18 01:06:03,168 - DEBUG - Requesting: http://10.0.0.50:8082/domain/91d8b101-eab5-48b5-a8a3-75a505650ca8 2025-11-18 01:06:03,178 - DEBUG - Requesting: http://10.0.0.50:8082/project/0daae608-3ae5-4477-ba01-b3284a6b76ef 2025-11-18 01:06:03,249 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/100a8a63-7179-4c34-bef7-35c1fc66747b 2025-11-18 01:06:03,261 - DEBUG - ==>Verifying data for policy with id: dfdaa7d0-9479-47b2-a34f-358abc849358, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39882728', 'ctest-policy1-79167664'] 2025-11-18 01:06:03,261 - INFO - VN ctest-vn4-78575726 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-18 01:06:03,261 - DEBUG - Verifying the vn in opserver 2025-11-18 01:06:03,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39882728:ctest-vn4-78575726 virtual network link through opserver 10.0.0.50 2025-11-18 01:06:03,262 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-18 01:06:03,552 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-18 01:06:03,918 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39882728:ctest-vn4-78575726', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39882728:ctest-vn4-78575726?flat'} 2025-11-18 01:06:03,918 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39882728:ctest-vn4-78575726 is found in opserver 2025-11-18 01:06:03,929 - DEBUG - Do not have enough data to verify VN in agent 2025-11-18 01:06:03,935 - DEBUG - VRF ids for VN ctest-vn4-78575726: {} 2025-11-18 01:06:03,935 - DEBUG - ====Verifying data for ctest-policy1-79167664 in API_Server ====== 2025-11-18 01:06:03,935 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-18 01:06:03,940 - DEBUG - Requesting: http://10.0.0.50:8082/domain/91d8b101-eab5-48b5-a8a3-75a505650ca8 2025-11-18 01:06:03,952 - DEBUG - Requesting: http://10.0.0.50:8082/project/0daae608-3ae5-4477-ba01-b3284a6b76ef 2025-11-18 01:06:04,024 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/dfdaa7d0-9479-47b2-a34f-358abc849358 2025-11-18 01:06:04,035 - INFO - Verified policy ctest-policy1-79167664 in API Server, Result: True 2025-11-18 01:06:04,035 - INFO - Done with setup and verification, moving onto test .. 2025-11-18 01:06:04,043 - INFO - Deleting VN ctest-vn4-78575726 2025-11-18 01:06:04,173 - DEBUG - Response for deleting network () 2025-11-18 01:06:04,173 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1b05296d-b8d1-4494-bce9-fbe212ba6da9 2025-11-18 01:06:04,178 - DEBUG - Response Code: 404 2025-11-18 01:06:04,178 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-18 01:06:04,186 - DEBUG - Requesting: http://10.0.0.50:8082/domain/91d8b101-eab5-48b5-a8a3-75a505650ca8 2025-11-18 01:06:04,237 - DEBUG - Requesting: http://10.0.0.50:8082/project/0daae608-3ae5-4477-ba01-b3284a6b76ef 2025-11-18 01:06:04,316 - INFO - Validated that VN ctest-vn4-78575726 is not found in API Server 2025-11-18 01:06:04,330 - DEBUG - VN ctest-vn4-78575726 is not present in Agent 10.0.0.50 2025-11-18 01:06:04,330 - INFO - Validated that VN ctest-vn4-78575726 is not in any agent 2025-11-18 01:06:04,344 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78575726 info 2025-11-18 01:06:04,372 - INFO - Deleted policy ctest-policy1-79167664 2025-11-18 01:06:04,528 - DEBUG - policy ctest-policy1-79167664 is not found in API Server 2025-11-18 01:06:04,785 - DEBUG - No XMPP flaps were noticed during the test