2025-07-23 13:06:42,013 - INFO - Domain Default found not creating 2025-07-23 13:06:42,184 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34508284 not found, creating it 2025-07-23 13:06:42,688 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34508284, ID : 7e685198-df0d-4a09-bf67-6aa0cd6c8d41 2025-07-23 13:06:44,166 - INFO - ================================================================================ 2025-07-23 13:06:44,166 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 13:06:44,420 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-07-23 13:06:44,420 - INFO - Initial checks done. Running the testcase now 2025-07-23 13:06:44,420 - INFO - 2025-07-23 13:06:44,420 - INFO - ================================================================================ 2025-07-23 13:06:44,420 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 13:06:44,421 - 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-07-23 13:06:44,712 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-07-23 13:06:44,712 - INFO - Initial checks done. Running the testcase now 2025-07-23 13:06:44,713 - INFO - 2025-07-23 13:06:45,075 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34508284:ctest-vn4-52157307, 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-34508284:ctest-vn4-52157307, 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-34508284:ctest-vn4-52157307, 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-34508284:ctest-vn4-52157307, 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-07-23 13:06:45,615 - DEBUG - Response for create_network : {'network': {'id': '1e2fb55c-1994-4446-ad46-ff73e848bbdc', 'name': 'ctest-vn4-52157307', 'tenant_id': '7e685198df0d4a09bf676aa0cd6c8d41', 'project_id': '7e685198df0d4a09bf676aa0cd6c8d41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34508284', 'ctest-vn4-52157307'], 'port_security_enabled': True, 'description': ''}} 2025-07-23 13:06:45,793 - DEBUG - Response for create_subnet : {'subnet': {'id': '81f45afb-cf0d-4959-aeae-9110dd614ed1', 'name': '', 'tenant_id': '7e685198df0d4a09bf676aa0cd6c8d41', 'network_id': '1e2fb55c-1994-4446-ad46-ff73e848bbdc', 'ip_version': 4, 'cidr': '44.172.201.0/26', 'allocation_pools': [{'start': '44.172.201.2', 'end': '44.172.201.62'}], 'gateway_ip': '44.172.201.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.172.201.2', 'tags': [], 'project_id': '7e685198df0d4a09bf676aa0cd6c8d41'}} 2025-07-23 13:06:45,993 - DEBUG - Response for create_subnet : {'subnet': {'id': '4195fcc1-e7ee-4035-b2ea-e0e31b18572e', 'name': '', 'tenant_id': '7e685198df0d4a09bf676aa0cd6c8d41', 'network_id': '1e2fb55c-1994-4446-ad46-ff73e848bbdc', 'ip_version': 6, 'cidr': '3c4c:8e9b:5cce:ba21:8be3:a869::/96', 'allocation_pools': [{'start': '3c4c:8e9b:5cce:ba21:8be3:a869:0:2', 'end': '3c4c:8e9b:5cce:ba21:8be3:a869:ffff:fffe'}], 'gateway_ip': '3c4c:8e9b:5cce:ba21:8be3:a869:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c4c:8e9b:5cce:ba21:8be3:a869:0:2', 'tags': [], 'project_id': '7e685198df0d4a09bf676aa0cd6c8d41'}} 2025-07-23 13:06:46,014 - INFO - Created VN ctest-vn4-52157307 2025-07-23 13:06:46,074 - DEBUG - VN ctest-vn4-52157307 UUID is 1e2fb55c-1994-4446-ad46-ff73e848bbdc 2025-07-23 13:06:46,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e2fb55c-1994-4446-ad46-ff73e848bbdc', 'name': 'ctest-vn4-52157307', 'tenant_id': '7e685198df0d4a09bf676aa0cd6c8d41', 'project_id': '7e685198df0d4a09bf676aa0cd6c8d41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81f45afb-cf0d-4959-aeae-9110dd614ed1', '4195fcc1-e7ee-4035-b2ea-e0e31b18572e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34508284', 'ctest-vn4-52157307'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34508284', 'ctest-policy1-12728740']], 'subnet_ipam': [{'subnet_cidr': '44.172.201.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c4c:8e9b:5cce:ba21:8be3:a869::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-23 13:06:46,486 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-23 13:06:46,778 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-23 13:06:46,806 - DEBUG - Requesting: http://10.0.0.19:8082/domain/280b301f-15e6-4739-b5a3-0247bb4a39e4 2025-07-23 13:06:46,823 - DEBUG - Requesting: http://10.0.0.19:8082/project/7e685198-df0d-4a09-bf67-6aa0cd6c8d41 2025-07-23 13:06:46,891 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1e2fb55c-1994-4446-ad46-ff73e848bbdc 2025-07-23 13:06:46,910 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1e2fb55c-1994-4446-ad46-ff73e848bbdc 2025-07-23 13:06:46,924 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/813d8c91-3466-4821-ae69-c94eb1b52f52 2025-07-23 13:06:46,933 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/813d8c91-3466-4821-ae69-c94eb1b52f52 2025-07-23 13:06:46,942 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/a3f859dc-c79d-4394-bbc6-0c3054ea7fcc 2025-07-23 13:06:46,950 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 13:06:46,950 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1e2fb55c-1994-4446-ad46-ff73e848bbdc 2025-07-23 13:06:46,963 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/813d8c91-3466-4821-ae69-c94eb1b52f52 2025-07-23 13:06:46,978 - INFO - Verified VN network id 11 for VN 1e2fb55c-1994-4446-ad46-ff73e848bbdc 2025-07-23 13:06:46,979 - INFO - Verifications in API Server for VN ctest-vn4-52157307 passed 2025-07-23 13:06:46,979 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1e2fb55c-1994-4446-ad46-ff73e848bbdc 2025-07-23 13:06:46,989 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/813d8c91-3466-4821-ae69-c94eb1b52f52 2025-07-23 13:06:46,996 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/813d8c91-3466-4821-ae69-c94eb1b52f52 2025-07-23 13:06:47,005 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/a3f859dc-c79d-4394-bbc6-0c3054ea7fcc 2025-07-23 13:06:47,018 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34508284:ctest-vn4-52157307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34508284', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2175156552214004806', 'uuid-lslong': '12485947890214681564'}, 'enable': 'true', 'created': '2025-07-23T13:06:45', 'last-modified': '2025-07-23T13:06:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.746676'} 2025-07-23 13:06:47,024 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 13:06:47,024 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52157307 passed 2025-07-23 13:06:47,024 - DEBUG - ====Verifying policy data for ctest-vn4-52157307 in API_Server ====== 2025-07-23 13:06:47,024 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-23 13:06:47,030 - DEBUG - Requesting: http://10.0.0.19:8082/domain/280b301f-15e6-4739-b5a3-0247bb4a39e4 2025-07-23 13:06:47,043 - DEBUG - Requesting: http://10.0.0.19:8082/project/7e685198-df0d-4a09-bf67-6aa0cd6c8d41 2025-07-23 13:06:47,113 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1e2fb55c-1994-4446-ad46-ff73e848bbdc 2025-07-23 13:06:47,125 - DEBUG - ==>Verifying data for policy with id: 10dc3fd0-a9e5-4c05-88b3-15df34604b21, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34508284', 'ctest-policy1-12728740'] 2025-07-23 13:06:47,125 - INFO - VN ctest-vn4-52157307 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-23 13:06:47,125 - DEBUG - Verifying the vn in opserver 2025-07-23 13:06:47,126 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34508284:ctest-vn4-52157307 virtual network link through opserver 10.0.0.19 2025-07-23 13:06:47,126 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-23 13:06:47,414 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-23 13:06:47,480 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34508284:ctest-vn4-52157307', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34508284:ctest-vn4-52157307?flat'} 2025-07-23 13:06:47,480 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34508284:ctest-vn4-52157307 is found in opserver 2025-07-23 13:06:47,494 - DEBUG - Do not have enough data to verify VN in agent 2025-07-23 13:06:47,500 - DEBUG - VRF ids for VN ctest-vn4-52157307: {} 2025-07-23 13:06:47,500 - DEBUG - ====Verifying data for ctest-policy1-12728740 in API_Server ====== 2025-07-23 13:06:47,500 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-23 13:06:47,506 - DEBUG - Requesting: http://10.0.0.19:8082/domain/280b301f-15e6-4739-b5a3-0247bb4a39e4 2025-07-23 13:06:47,519 - DEBUG - Requesting: http://10.0.0.19:8082/project/7e685198-df0d-4a09-bf67-6aa0cd6c8d41 2025-07-23 13:06:47,595 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/10dc3fd0-a9e5-4c05-88b3-15df34604b21 2025-07-23 13:06:47,608 - INFO - Verified policy ctest-policy1-12728740 in API Server, Result: True 2025-07-23 13:06:47,608 - INFO - Done with setup and verification, moving onto test .. 2025-07-23 13:06:47,618 - INFO - Deleting VN ctest-vn4-52157307 2025-07-23 13:06:47,752 - DEBUG - Response for deleting network () 2025-07-23 13:06:47,753 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/813d8c91-3466-4821-ae69-c94eb1b52f52 2025-07-23 13:06:47,759 - DEBUG - Response Code: 404 2025-07-23 13:06:47,759 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-23 13:06:47,766 - DEBUG - Requesting: http://10.0.0.19:8082/domain/280b301f-15e6-4739-b5a3-0247bb4a39e4 2025-07-23 13:06:47,824 - DEBUG - Requesting: http://10.0.0.19:8082/project/7e685198-df0d-4a09-bf67-6aa0cd6c8d41 2025-07-23 13:06:47,903 - INFO - Validated that VN ctest-vn4-52157307 is not found in API Server 2025-07-23 13:06:47,916 - DEBUG - VN ctest-vn4-52157307 is not present in Agent 10.0.0.19 2025-07-23 13:06:47,916 - INFO - Validated that VN ctest-vn4-52157307 is not in any agent 2025-07-23 13:06:47,941 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52157307 info 2025-07-23 13:06:47,973 - INFO - Deleted policy ctest-policy1-12728740 2025-07-23 13:06:48,146 - DEBUG - policy ctest-policy1-12728740 is not found in API Server 2025-07-23 13:06:48,405 - DEBUG - No XMPP flaps were noticed during the test