2025-10-29 23:07:57,297 - INFO - Domain Default found not creating 2025-10-29 23:07:57,442 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07176733 not found, creating it 2025-10-29 23:07:57,876 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07176733, ID : 0ca75669-d183-4b04-9857-823b8815cc47 2025-10-29 23:07:59,294 - INFO - ================================================================================ 2025-10-29 23:07:59,294 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 23:07:59,552 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.252': '0'}} with 2025-10-29 23:07:59,552 - INFO - Initial checks done. Running the testcase now 2025-10-29 23:07:59,552 - INFO - 2025-10-29 23:07:59,552 - INFO - ================================================================================ 2025-10-29 23:07:59,552 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 23:07:59,552 - 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-29 23:07:59,845 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.252': '0'}} with 2025-10-29 23:07:59,845 - INFO - Initial checks done. Running the testcase now 2025-10-29 23:07:59,845 - INFO - 2025-10-29 23:08:00,195 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07176733:ctest-vn4-16337100, 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-07176733:ctest-vn4-16337100, 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-07176733:ctest-vn4-16337100, 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-07176733:ctest-vn4-16337100, 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-29 23:08:00,696 - DEBUG - Response for create_network : {'network': {'id': '93af9876-79e8-40d8-8c33-68a67384c95c', 'name': 'ctest-vn4-16337100', 'tenant_id': '0ca75669d1834b049857823b8815cc47', 'project_id': '0ca75669d1834b049857823b8815cc47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07176733', 'ctest-vn4-16337100'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 23:08:00,911 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fae84151-e4ea-4f2e-b675-b5111d733773', 'name': '', 'tenant_id': '0ca75669d1834b049857823b8815cc47', 'network_id': '93af9876-79e8-40d8-8c33-68a67384c95c', 'ip_version': 4, 'cidr': '193.141.150.0/26', 'allocation_pools': [{'start': '193.141.150.2', 'end': '193.141.150.62'}], 'gateway_ip': '193.141.150.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.141.150.2', 'tags': [], 'project_id': '0ca75669d1834b049857823b8815cc47'}} 2025-10-29 23:08:01,050 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a6c9af5-d2cc-404c-9ba4-2089dad7f6e4', 'name': '', 'tenant_id': '0ca75669d1834b049857823b8815cc47', 'network_id': '93af9876-79e8-40d8-8c33-68a67384c95c', 'ip_version': 6, 'cidr': '3860:8973:bc9e:c15b:4847:ec1b::/96', 'allocation_pools': [{'start': '3860:8973:bc9e:c15b:4847:ec1b:0:2', 'end': '3860:8973:bc9e:c15b:4847:ec1b:ffff:fffe'}], 'gateway_ip': '3860:8973:bc9e:c15b:4847:ec1b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3860:8973:bc9e:c15b:4847:ec1b:0:2', 'tags': [], 'project_id': '0ca75669d1834b049857823b8815cc47'}} 2025-10-29 23:08:01,069 - INFO - Created VN ctest-vn4-16337100 2025-10-29 23:08:01,119 - DEBUG - VN ctest-vn4-16337100 UUID is 93af9876-79e8-40d8-8c33-68a67384c95c 2025-10-29 23:08:01,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93af9876-79e8-40d8-8c33-68a67384c95c', 'name': 'ctest-vn4-16337100', 'tenant_id': '0ca75669d1834b049857823b8815cc47', 'project_id': '0ca75669d1834b049857823b8815cc47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fae84151-e4ea-4f2e-b675-b5111d733773', '8a6c9af5-d2cc-404c-9ba4-2089dad7f6e4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07176733', 'ctest-vn4-16337100'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07176733', 'ctest-policy1-11795866']], 'subnet_ipam': [{'subnet_cidr': '193.141.150.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3860:8973:bc9e:c15b:4847:ec1b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 23:08:01,483 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 23:08:01,781 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 23:08:01,808 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ca69f330-13b5-464a-a35b-53285fffc4a3 2025-10-29 23:08:01,820 - DEBUG - Requesting: http://10.0.0.249:8082/project/0ca75669-d183-4b04-9857-823b8815cc47 2025-10-29 23:08:01,894 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/93af9876-79e8-40d8-8c33-68a67384c95c 2025-10-29 23:08:01,904 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/93af9876-79e8-40d8-8c33-68a67384c95c 2025-10-29 23:08:01,912 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d717bf45-a7b2-49ab-8ae3-afb00c03b626 2025-10-29 23:08:01,917 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d717bf45-a7b2-49ab-8ae3-afb00c03b626 2025-10-29 23:08:01,925 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/51b2b13e-e9d0-4dc5-8532-da1137893d1e 2025-10-29 23:08:01,930 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 23:08:01,930 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/93af9876-79e8-40d8-8c33-68a67384c95c 2025-10-29 23:08:01,937 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d717bf45-a7b2-49ab-8ae3-afb00c03b626 2025-10-29 23:08:01,949 - INFO - Verified VN network id 12 for VN 93af9876-79e8-40d8-8c33-68a67384c95c 2025-10-29 23:08:01,950 - INFO - Verifications in API Server for VN ctest-vn4-16337100 passed 2025-10-29 23:08:01,950 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/93af9876-79e8-40d8-8c33-68a67384c95c 2025-10-29 23:08:01,958 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d717bf45-a7b2-49ab-8ae3-afb00c03b626 2025-10-29 23:08:01,964 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d717bf45-a7b2-49ab-8ae3-afb00c03b626 2025-10-29 23:08:01,970 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/51b2b13e-e9d0-4dc5-8532-da1137893d1e 2025-10-29 23:08:01,981 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07176733:ctest-vn4-16337100', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07176733', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10641892079118598360', 'uuid-lslong': '10102533453234096476'}, 'enable': 'true', 'created': '2025-10-29T23:08:00', 'last-modified': '2025-10-29T23:08:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.683563'} 2025-10-29 23:08:01,986 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 23:08:01,986 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16337100 passed 2025-10-29 23:08:01,986 - DEBUG - ====Verifying policy data for ctest-vn4-16337100 in API_Server ====== 2025-10-29 23:08:01,986 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 23:08:01,991 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ca69f330-13b5-464a-a35b-53285fffc4a3 2025-10-29 23:08:02,000 - DEBUG - Requesting: http://10.0.0.249:8082/project/0ca75669-d183-4b04-9857-823b8815cc47 2025-10-29 23:08:02,068 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/93af9876-79e8-40d8-8c33-68a67384c95c 2025-10-29 23:08:02,077 - DEBUG - ==>Verifying data for policy with id: fd7564b1-f674-4226-b7b3-1f3483e78b61, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07176733', 'ctest-policy1-11795866'] 2025-10-29 23:08:02,077 - INFO - VN ctest-vn4-16337100 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 23:08:02,077 - DEBUG - Verifying the vn in opserver 2025-10-29 23:08:02,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07176733:ctest-vn4-16337100 virtual network link through opserver 10.0.0.249 2025-10-29 23:08:02,077 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-29 23:08:02,366 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-29 23:08:02,416 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07176733:ctest-vn4-16337100', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07176733:ctest-vn4-16337100?flat'} 2025-10-29 23:08:02,416 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07176733:ctest-vn4-16337100 is found in opserver 2025-10-29 23:08:02,427 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 23:08:02,432 - DEBUG - VRF ids for VN ctest-vn4-16337100: {} 2025-10-29 23:08:02,433 - DEBUG - ====Verifying data for ctest-policy1-11795866 in API_Server ====== 2025-10-29 23:08:02,433 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 23:08:02,438 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ca69f330-13b5-464a-a35b-53285fffc4a3 2025-10-29 23:08:02,448 - DEBUG - Requesting: http://10.0.0.249:8082/project/0ca75669-d183-4b04-9857-823b8815cc47 2025-10-29 23:08:02,515 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/fd7564b1-f674-4226-b7b3-1f3483e78b61 2025-10-29 23:08:02,525 - INFO - Verified policy ctest-policy1-11795866 in API Server, Result: True 2025-10-29 23:08:02,525 - INFO - Done with setup and verification, moving onto test .. 2025-10-29 23:08:02,531 - INFO - Deleting VN ctest-vn4-16337100 2025-10-29 23:08:02,650 - DEBUG - Response for deleting network () 2025-10-29 23:08:02,650 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/d717bf45-a7b2-49ab-8ae3-afb00c03b626 2025-10-29 23:08:02,654 - DEBUG - Response Code: 404 2025-10-29 23:08:02,654 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-29 23:08:02,659 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ca69f330-13b5-464a-a35b-53285fffc4a3 2025-10-29 23:08:02,711 - DEBUG - Requesting: http://10.0.0.249:8082/project/0ca75669-d183-4b04-9857-823b8815cc47 2025-10-29 23:08:02,782 - INFO - Validated that VN ctest-vn4-16337100 is not found in API Server 2025-10-29 23:08:02,790 - DEBUG - VN ctest-vn4-16337100 is not present in Agent 10.0.0.249 2025-10-29 23:08:02,790 - INFO - Validated that VN ctest-vn4-16337100 is not in any agent 2025-10-29 23:08:02,802 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16337100 info 2025-10-29 23:08:02,833 - INFO - Deleted policy ctest-policy1-11795866 2025-10-29 23:08:02,995 - DEBUG - policy ctest-policy1-11795866 is not found in API Server 2025-10-29 23:08:03,250 - DEBUG - No XMPP flaps were noticed during the test