2025-11-04 17:10:47,756 - INFO - Domain Default found not creating 2025-11-04 17:10:47,892 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98716521 not found, creating it 2025-11-04 17:10:48,333 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98716521, ID : 30b6d55d-27f3-4f6d-b9d3-5e28d987513c 2025-11-04 17:10:50,033 - INFO - ================================================================================ 2025-11-04 17:10:50,033 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-04 17:10:50,302 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-04 17:10:50,302 - INFO - Initial checks done. Running the testcase now 2025-11-04 17:10:50,302 - INFO - 2025-11-04 17:10:50,302 - INFO - ================================================================================ 2025-11-04 17:10:50,302 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-04 17:10:50,302 - 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-04 17:10:50,607 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-04 17:10:50,607 - INFO - Initial checks done. Running the testcase now 2025-11-04 17:10:50,607 - INFO - 2025-11-04 17:10:51,031 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98716521:ctest-vn4-66740028, 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-98716521:ctest-vn4-66740028, 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-98716521:ctest-vn4-66740028, 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-98716521:ctest-vn4-66740028, 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-04 17:10:51,542 - DEBUG - Response for create_network : {'network': {'id': 'aab44c4c-7c20-43bf-9502-8bc025cdc7ac', 'name': 'ctest-vn4-66740028', 'tenant_id': '30b6d55d27f34f6db9d35e28d987513c', 'project_id': '30b6d55d27f34f6db9d35e28d987513c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98716521', 'ctest-vn4-66740028'], 'port_security_enabled': True, 'description': ''}} 2025-11-04 17:10:51,748 - DEBUG - Response for create_subnet : {'subnet': {'id': '55f2753a-a130-4729-be3b-4038e40cb736', 'name': '', 'tenant_id': '30b6d55d27f34f6db9d35e28d987513c', 'network_id': 'aab44c4c-7c20-43bf-9502-8bc025cdc7ac', 'ip_version': 4, 'cidr': '90.67.183.64/26', 'allocation_pools': [{'start': '90.67.183.66', 'end': '90.67.183.126'}], 'gateway_ip': '90.67.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.67.183.66', 'tags': [], 'project_id': '30b6d55d27f34f6db9d35e28d987513c'}} 2025-11-04 17:10:51,917 - DEBUG - Response for create_subnet : {'subnet': {'id': '71d08bfd-e354-4675-ad30-e14cc504fa4c', 'name': '', 'tenant_id': '30b6d55d27f34f6db9d35e28d987513c', 'network_id': 'aab44c4c-7c20-43bf-9502-8bc025cdc7ac', 'ip_version': 6, 'cidr': '3979:ef6c:3b56:90e7:a120:f4d5::/96', 'allocation_pools': [{'start': '3979:ef6c:3b56:90e7:a120:f4d5:0:2', 'end': '3979:ef6c:3b56:90e7:a120:f4d5:ffff:fffe'}], 'gateway_ip': '3979:ef6c:3b56:90e7:a120:f4d5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3979:ef6c:3b56:90e7:a120:f4d5:0:2', 'tags': [], 'project_id': '30b6d55d27f34f6db9d35e28d987513c'}} 2025-11-04 17:10:51,939 - INFO - Created VN ctest-vn4-66740028 2025-11-04 17:10:51,990 - DEBUG - VN ctest-vn4-66740028 UUID is aab44c4c-7c20-43bf-9502-8bc025cdc7ac 2025-11-04 17:10:52,270 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aab44c4c-7c20-43bf-9502-8bc025cdc7ac', 'name': 'ctest-vn4-66740028', 'tenant_id': '30b6d55d27f34f6db9d35e28d987513c', 'project_id': '30b6d55d27f34f6db9d35e28d987513c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55f2753a-a130-4729-be3b-4038e40cb736', '71d08bfd-e354-4675-ad30-e14cc504fa4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98716521', 'ctest-vn4-66740028'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98716521', 'ctest-policy1-36118702']], 'subnet_ipam': [{'subnet_cidr': '90.67.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3979:ef6c:3b56:90e7:a120:f4d5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-04 17:10:52,434 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-04 17:10:52,817 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-04 17:10:52,857 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f621e2ac-adf7-47be-9301-a10f72eb5b78 2025-11-04 17:10:52,870 - DEBUG - Requesting: http://10.0.0.50:8082/project/30b6d55d-27f3-4f6d-b9d3-5e28d987513c 2025-11-04 17:10:52,943 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aab44c4c-7c20-43bf-9502-8bc025cdc7ac 2025-11-04 17:10:52,954 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aab44c4c-7c20-43bf-9502-8bc025cdc7ac 2025-11-04 17:10:52,964 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcfbb702-85ea-4f59-a3ca-3bd0ce395c70 2025-11-04 17:10:52,972 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcfbb702-85ea-4f59-a3ca-3bd0ce395c70 2025-11-04 17:10:52,978 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0acead8d-55ef-47e9-8147-84308804b39d 2025-11-04 17:10:52,984 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 17:10:52,984 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aab44c4c-7c20-43bf-9502-8bc025cdc7ac 2025-11-04 17:10:52,995 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcfbb702-85ea-4f59-a3ca-3bd0ce395c70 2025-11-04 17:10:53,012 - INFO - Verified VN network id 11 for VN aab44c4c-7c20-43bf-9502-8bc025cdc7ac 2025-11-04 17:10:53,012 - INFO - Verifications in API Server for VN ctest-vn4-66740028 passed 2025-11-04 17:10:53,012 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aab44c4c-7c20-43bf-9502-8bc025cdc7ac 2025-11-04 17:10:53,022 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcfbb702-85ea-4f59-a3ca-3bd0ce395c70 2025-11-04 17:10:53,029 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcfbb702-85ea-4f59-a3ca-3bd0ce395c70 2025-11-04 17:10:53,035 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0acead8d-55ef-47e9-8147-84308804b39d 2025-11-04 17:10:53,047 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98716521:ctest-vn4-66740028', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98716521', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12300540373639381951', 'uuid-lslong': '10737298118988908460'}, 'enable': 'true', 'created': '2025-11-04T17:10:51', 'last-modified': '2025-11-04T17:10:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.883763'} 2025-11-04 17:10:53,053 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 17:10:53,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66740028 passed 2025-11-04 17:10:53,053 - DEBUG - ====Verifying policy data for ctest-vn4-66740028 in API_Server ====== 2025-11-04 17:10:53,053 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-04 17:10:53,059 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f621e2ac-adf7-47be-9301-a10f72eb5b78 2025-11-04 17:10:53,070 - DEBUG - Requesting: http://10.0.0.50:8082/project/30b6d55d-27f3-4f6d-b9d3-5e28d987513c 2025-11-04 17:10:53,142 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/aab44c4c-7c20-43bf-9502-8bc025cdc7ac 2025-11-04 17:10:53,153 - DEBUG - ==>Verifying data for policy with id: 001318ba-4a87-47c1-84da-691323ff724c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98716521', 'ctest-policy1-36118702'] 2025-11-04 17:10:53,153 - INFO - VN ctest-vn4-66740028 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-04 17:10:53,153 - DEBUG - Verifying the vn in opserver 2025-11-04 17:10:53,153 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98716521:ctest-vn4-66740028 virtual network link through opserver 10.0.0.50 2025-11-04 17:10:53,153 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-04 17:10:53,599 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-04 17:10:53,667 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98716521:ctest-vn4-66740028', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98716521:ctest-vn4-66740028?flat'} 2025-11-04 17:10:53,667 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98716521:ctest-vn4-66740028 is found in opserver 2025-11-04 17:10:53,679 - DEBUG - Do not have enough data to verify VN in agent 2025-11-04 17:10:53,684 - DEBUG - VRF ids for VN ctest-vn4-66740028: {} 2025-11-04 17:10:53,685 - DEBUG - ====Verifying data for ctest-policy1-36118702 in API_Server ====== 2025-11-04 17:10:53,685 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-04 17:10:53,691 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f621e2ac-adf7-47be-9301-a10f72eb5b78 2025-11-04 17:10:53,702 - DEBUG - Requesting: http://10.0.0.50:8082/project/30b6d55d-27f3-4f6d-b9d3-5e28d987513c 2025-11-04 17:10:53,772 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/001318ba-4a87-47c1-84da-691323ff724c 2025-11-04 17:10:53,803 - INFO - Verified policy ctest-policy1-36118702 in API Server, Result: True 2025-11-04 17:10:53,803 - INFO - Done with setup and verification, moving onto test .. 2025-11-04 17:10:53,813 - INFO - Deleting VN ctest-vn4-66740028 2025-11-04 17:10:53,951 - DEBUG - Response for deleting network () 2025-11-04 17:10:53,951 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcfbb702-85ea-4f59-a3ca-3bd0ce395c70 2025-11-04 17:10:53,957 - DEBUG - Response Code: 404 2025-11-04 17:10:53,958 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-04 17:10:53,964 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f621e2ac-adf7-47be-9301-a10f72eb5b78 2025-11-04 17:10:54,020 - DEBUG - Requesting: http://10.0.0.50:8082/project/30b6d55d-27f3-4f6d-b9d3-5e28d987513c 2025-11-04 17:10:54,110 - INFO - Validated that VN ctest-vn4-66740028 is not found in API Server 2025-11-04 17:10:54,121 - DEBUG - VN ctest-vn4-66740028 is not present in Agent 10.0.0.50 2025-11-04 17:10:54,121 - INFO - Validated that VN ctest-vn4-66740028 is not in any agent 2025-11-04 17:10:54,136 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66740028 info 2025-11-04 17:10:54,190 - INFO - Deleted policy ctest-policy1-36118702 2025-11-04 17:10:54,362 - DEBUG - policy ctest-policy1-36118702 is not found in API Server 2025-11-04 17:10:54,620 - DEBUG - No XMPP flaps were noticed during the test