2025-08-02 08:56:06,745 - INFO - Domain Default found not creating 2025-08-02 08:56:06,893 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-81489054 not found, creating it 2025-08-02 08:56:07,368 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-81489054, ID : 67cdfc0a-ac99-48c1-a6e9-69dd2238a658 2025-08-02 08:56:08,853 - INFO - ================================================================================ 2025-08-02 08:56:08,853 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-02 08:56:09,112 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-02 08:56:09,112 - INFO - Initial checks done. Running the testcase now 2025-08-02 08:56:09,113 - INFO - 2025-08-02 08:56:09,113 - INFO - ================================================================================ 2025-08-02 08:56:09,113 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-02 08:56:09,113 - 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-08-02 08:56:09,409 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-02 08:56:09,409 - INFO - Initial checks done. Running the testcase now 2025-08-02 08:56:09,409 - INFO - 2025-08-02 08:56:09,755 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81489054:ctest-vn4-25756636, 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-81489054:ctest-vn4-25756636, 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-81489054:ctest-vn4-25756636, 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-81489054:ctest-vn4-25756636, 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-08-02 08:56:10,272 - DEBUG - Response for create_network : {'network': {'id': 'af68032c-9524-425a-98bc-0351569c99ab', 'name': 'ctest-vn4-25756636', 'tenant_id': '67cdfc0aac9948c1a6e969dd2238a658', 'project_id': '67cdfc0aac9948c1a6e969dd2238a658', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81489054', 'ctest-vn4-25756636'], 'port_security_enabled': True, 'description': ''}} 2025-08-02 08:56:10,443 - DEBUG - Response for create_subnet : {'subnet': {'id': '0ef02534-c54b-4f30-9ccc-eb89ce64230a', 'name': '', 'tenant_id': '67cdfc0aac9948c1a6e969dd2238a658', 'network_id': 'af68032c-9524-425a-98bc-0351569c99ab', 'ip_version': 4, 'cidr': '179.248.183.64/26', 'allocation_pools': [{'start': '179.248.183.66', 'end': '179.248.183.126'}], 'gateway_ip': '179.248.183.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.248.183.66', 'tags': [], 'project_id': '67cdfc0aac9948c1a6e969dd2238a658'}} 2025-08-02 08:56:10,626 - DEBUG - Response for create_subnet : {'subnet': {'id': '7cca2e06-9adb-4d94-89cf-c9378ead351f', 'name': '', 'tenant_id': '67cdfc0aac9948c1a6e969dd2238a658', 'network_id': 'af68032c-9524-425a-98bc-0351569c99ab', 'ip_version': 6, 'cidr': '3923:8c9d:c046:967b:51ea:74d7::/96', 'allocation_pools': [{'start': '3923:8c9d:c046:967b:51ea:74d7:0:2', 'end': '3923:8c9d:c046:967b:51ea:74d7:ffff:fffe'}], 'gateway_ip': '3923:8c9d:c046:967b:51ea:74d7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3923:8c9d:c046:967b:51ea:74d7:0:2', 'tags': [], 'project_id': '67cdfc0aac9948c1a6e969dd2238a658'}} 2025-08-02 08:56:10,647 - INFO - Created VN ctest-vn4-25756636 2025-08-02 08:56:10,699 - DEBUG - VN ctest-vn4-25756636 UUID is af68032c-9524-425a-98bc-0351569c99ab 2025-08-02 08:56:10,913 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af68032c-9524-425a-98bc-0351569c99ab', 'name': 'ctest-vn4-25756636', 'tenant_id': '67cdfc0aac9948c1a6e969dd2238a658', 'project_id': '67cdfc0aac9948c1a6e969dd2238a658', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0ef02534-c54b-4f30-9ccc-eb89ce64230a', '7cca2e06-9adb-4d94-89cf-c9378ead351f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81489054', 'ctest-vn4-25756636'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81489054', 'ctest-policy1-94939632']], 'subnet_ipam': [{'subnet_cidr': '179.248.183.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3923:8c9d:c046:967b:51ea:74d7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-02 08:56:11,079 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-02 08:56:11,371 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-02 08:56:11,398 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5a77bb52-ee84-4000-a229-eb667bfefb0a 2025-08-02 08:56:11,413 - DEBUG - Requesting: http://10.0.0.254:8082/project/67cdfc0a-ac99-48c1-a6e9-69dd2238a658 2025-08-02 08:56:11,489 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/af68032c-9524-425a-98bc-0351569c99ab 2025-08-02 08:56:11,503 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/af68032c-9524-425a-98bc-0351569c99ab 2025-08-02 08:56:11,515 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6f858b0c-6edf-4a2d-9125-35f2821b2439 2025-08-02 08:56:11,524 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6f858b0c-6edf-4a2d-9125-35f2821b2439 2025-08-02 08:56:11,531 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/41af7b7e-f657-4ae0-aee2-2d49a85c6e36 2025-08-02 08:56:11,539 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-02 08:56:11,539 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/af68032c-9524-425a-98bc-0351569c99ab 2025-08-02 08:56:11,550 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6f858b0c-6edf-4a2d-9125-35f2821b2439 2025-08-02 08:56:11,565 - INFO - Verified VN network id 12 for VN af68032c-9524-425a-98bc-0351569c99ab 2025-08-02 08:56:11,566 - INFO - Verifications in API Server for VN ctest-vn4-25756636 passed 2025-08-02 08:56:11,566 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/af68032c-9524-425a-98bc-0351569c99ab 2025-08-02 08:56:11,577 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6f858b0c-6edf-4a2d-9125-35f2821b2439 2025-08-02 08:56:11,587 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6f858b0c-6edf-4a2d-9125-35f2821b2439 2025-08-02 08:56:11,594 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/41af7b7e-f657-4ae0-aee2-2d49a85c6e36 2025-08-02 08:56:11,608 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81489054:ctest-vn4-25756636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-81489054', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12639355844230922842', 'uuid-lslong': '11005675237266987435'}, 'enable': 'true', 'created': '2025-08-02T08:56:10', 'last-modified': '2025-08-02T08:56:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725363'} 2025-08-02 08:56:11,616 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-02 08:56:11,616 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25756636 passed 2025-08-02 08:56:11,616 - DEBUG - ====Verifying policy data for ctest-vn4-25756636 in API_Server ====== 2025-08-02 08:56:11,616 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-02 08:56:11,623 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5a77bb52-ee84-4000-a229-eb667bfefb0a 2025-08-02 08:56:11,638 - DEBUG - Requesting: http://10.0.0.254:8082/project/67cdfc0a-ac99-48c1-a6e9-69dd2238a658 2025-08-02 08:56:11,709 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/af68032c-9524-425a-98bc-0351569c99ab 2025-08-02 08:56:11,720 - DEBUG - ==>Verifying data for policy with id: 5bbdc27c-f368-4c68-862b-361e70e81667, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81489054', 'ctest-policy1-94939632'] 2025-08-02 08:56:11,720 - INFO - VN ctest-vn4-25756636 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-02 08:56:11,720 - DEBUG - Verifying the vn in opserver 2025-08-02 08:56:11,721 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81489054:ctest-vn4-25756636 virtual network link through opserver 10.0.0.254 2025-08-02 08:56:11,721 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-02 08:56:12,013 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-02 08:56:12,071 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81489054:ctest-vn4-25756636', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81489054:ctest-vn4-25756636?flat'} 2025-08-02 08:56:12,071 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81489054:ctest-vn4-25756636 is found in opserver 2025-08-02 08:56:12,082 - DEBUG - Do not have enough data to verify VN in agent 2025-08-02 08:56:12,088 - DEBUG - VRF ids for VN ctest-vn4-25756636: {} 2025-08-02 08:56:12,088 - DEBUG - ====Verifying data for ctest-policy1-94939632 in API_Server ====== 2025-08-02 08:56:12,088 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-02 08:56:12,095 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5a77bb52-ee84-4000-a229-eb667bfefb0a 2025-08-02 08:56:12,108 - DEBUG - Requesting: http://10.0.0.254:8082/project/67cdfc0a-ac99-48c1-a6e9-69dd2238a658 2025-08-02 08:56:12,182 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/5bbdc27c-f368-4c68-862b-361e70e81667 2025-08-02 08:56:12,194 - INFO - Verified policy ctest-policy1-94939632 in API Server, Result: True 2025-08-02 08:56:12,194 - INFO - Done with setup and verification, moving onto test .. 2025-08-02 08:56:12,202 - INFO - Deleting VN ctest-vn4-25756636 2025-08-02 08:56:12,351 - DEBUG - Response for deleting network () 2025-08-02 08:56:12,351 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6f858b0c-6edf-4a2d-9125-35f2821b2439 2025-08-02 08:56:12,357 - DEBUG - Response Code: 404 2025-08-02 08:56:12,358 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-02 08:56:12,363 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5a77bb52-ee84-4000-a229-eb667bfefb0a 2025-08-02 08:56:12,417 - DEBUG - Requesting: http://10.0.0.254:8082/project/67cdfc0a-ac99-48c1-a6e9-69dd2238a658 2025-08-02 08:56:12,492 - INFO - Validated that VN ctest-vn4-25756636 is not found in API Server 2025-08-02 08:56:12,510 - DEBUG - VN ctest-vn4-25756636 is not present in Agent 10.0.0.254 2025-08-02 08:56:12,510 - INFO - Validated that VN ctest-vn4-25756636 is not in any agent 2025-08-02 08:56:12,532 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25756636 info 2025-08-02 08:56:12,570 - INFO - Deleted policy ctest-policy1-94939632 2025-08-02 08:56:12,739 - DEBUG - policy ctest-policy1-94939632 is not found in API Server 2025-08-02 08:56:12,993 - DEBUG - No XMPP flaps were noticed during the test
2025-08-02 08:56:12,993 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-08-02 08:56:12,993 - INFO - -------------------------------------------------------------------------------- 2025-08-02 08:56:13,285 - DEBUG - No XMPP flaps were noticed during the test
2025-08-02 08:56:13,285 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-02 08:56:13,285 - INFO - -------------------------------------------------------------------------------- 2025-08-02 08:56:13,967 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-81489054, ID : 67cdfc0a-ac99-48c1-a6e9-69dd2238a658