2025-08-12 14:43:36,868 - INFO - Domain Default found not creating 2025-08-12 14:43:36,986 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18522948 not found, creating it 2025-08-12 14:43:37,443 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18522948, ID : 9e71fb38-4d1c-4387-9205-e6d12e087220 2025-08-12 14:43:38,723 - INFO - ================================================================================ 2025-08-12 14:43:38,723 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 14:43:38,980 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-12 14:43:38,980 - INFO - Initial checks done. Running the testcase now 2025-08-12 14:43:38,980 - INFO - 2025-08-12 14:43:38,980 - INFO - ================================================================================ 2025-08-12 14:43:38,980 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 14:43:38,980 - 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-12 14:43:39,268 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-12 14:43:39,268 - INFO - Initial checks done. Running the testcase now 2025-08-12 14:43:39,268 - INFO - 2025-08-12 14:43:39,600 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18522948:ctest-vn4-99690071, 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-18522948:ctest-vn4-99690071, 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-18522948:ctest-vn4-99690071, 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-18522948:ctest-vn4-99690071, 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-12 14:43:40,083 - DEBUG - Response for create_network : {'network': {'id': '54087ef9-0101-43f1-aa95-c4aacb2783b1', 'name': 'ctest-vn4-99690071', 'tenant_id': '9e71fb384d1c43879205e6d12e087220', 'project_id': '9e71fb384d1c43879205e6d12e087220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18522948', 'ctest-vn4-99690071'], 'port_security_enabled': True, 'description': ''}} 2025-08-12 14:43:40,290 - DEBUG - Response for create_subnet : {'subnet': {'id': '435914e4-579d-43e8-8d8c-740156588880', 'name': '', 'tenant_id': '9e71fb384d1c43879205e6d12e087220', 'network_id': '54087ef9-0101-43f1-aa95-c4aacb2783b1', 'ip_version': 4, 'cidr': '172.144.146.0/26', 'allocation_pools': [{'start': '172.144.146.2', 'end': '172.144.146.62'}], 'gateway_ip': '172.144.146.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.144.146.2', 'tags': [], 'project_id': '9e71fb384d1c43879205e6d12e087220'}} 2025-08-12 14:43:40,466 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4336b33-cd13-4eab-81ba-1a9c6e5b867d', 'name': '', 'tenant_id': '9e71fb384d1c43879205e6d12e087220', 'network_id': '54087ef9-0101-43f1-aa95-c4aacb2783b1', 'ip_version': 6, 'cidr': '272c:4a24:88fa:b360:f7d7:ff3c::/96', 'allocation_pools': [{'start': '272c:4a24:88fa:b360:f7d7:ff3c:0:2', 'end': '272c:4a24:88fa:b360:f7d7:ff3c:ffff:fffe'}], 'gateway_ip': '272c:4a24:88fa:b360:f7d7:ff3c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '272c:4a24:88fa:b360:f7d7:ff3c:0:2', 'tags': [], 'project_id': '9e71fb384d1c43879205e6d12e087220'}} 2025-08-12 14:43:40,484 - INFO - Created VN ctest-vn4-99690071 2025-08-12 14:43:40,535 - DEBUG - VN ctest-vn4-99690071 UUID is 54087ef9-0101-43f1-aa95-c4aacb2783b1 2025-08-12 14:43:40,719 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54087ef9-0101-43f1-aa95-c4aacb2783b1', 'name': 'ctest-vn4-99690071', 'tenant_id': '9e71fb384d1c43879205e6d12e087220', 'project_id': '9e71fb384d1c43879205e6d12e087220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['435914e4-579d-43e8-8d8c-740156588880', 'c4336b33-cd13-4eab-81ba-1a9c6e5b867d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18522948', 'ctest-vn4-99690071'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18522948', 'ctest-policy1-45259204']], 'subnet_ipam': [{'subnet_cidr': '172.144.146.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '272c:4a24:88fa:b360:f7d7:ff3c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-12 14:43:40,882 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-12 14:43:41,170 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-12 14:43:41,194 - DEBUG - Requesting: http://10.0.0.38:8082/domain/28245a34-8ab3-488f-b660-849aa043eec7 2025-08-12 14:43:41,205 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e71fb38-4d1c-4387-9205-e6d12e087220 2025-08-12 14:43:41,272 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/54087ef9-0101-43f1-aa95-c4aacb2783b1 2025-08-12 14:43:41,283 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/54087ef9-0101-43f1-aa95-c4aacb2783b1 2025-08-12 14:43:41,292 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e16b02e-f6a3-499f-a68e-32427d3908b6 2025-08-12 14:43:41,298 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e16b02e-f6a3-499f-a68e-32427d3908b6 2025-08-12 14:43:41,305 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/70e73c57-b22b-433a-9c5e-8ad30a775c73 2025-08-12 14:43:41,311 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 14:43:41,311 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/54087ef9-0101-43f1-aa95-c4aacb2783b1 2025-08-12 14:43:41,321 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e16b02e-f6a3-499f-a68e-32427d3908b6 2025-08-12 14:43:41,334 - INFO - Verified VN network id 11 for VN 54087ef9-0101-43f1-aa95-c4aacb2783b1 2025-08-12 14:43:41,334 - INFO - Verifications in API Server for VN ctest-vn4-99690071 passed 2025-08-12 14:43:41,334 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/54087ef9-0101-43f1-aa95-c4aacb2783b1 2025-08-12 14:43:41,344 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e16b02e-f6a3-499f-a68e-32427d3908b6 2025-08-12 14:43:41,350 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e16b02e-f6a3-499f-a68e-32427d3908b6 2025-08-12 14:43:41,357 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/70e73c57-b22b-433a-9c5e-8ad30a775c73 2025-08-12 14:43:41,368 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18522948:ctest-vn4-99690071', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18522948', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6055229306928448497', 'uuid-lslong': '12291946995809485745'}, 'enable': 'true', 'created': '2025-08-12T14:43:40', 'last-modified': '2025-08-12T14:43:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682460'} 2025-08-12 14:43:41,375 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 14:43:41,375 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99690071 passed 2025-08-12 14:43:41,375 - DEBUG - ====Verifying policy data for ctest-vn4-99690071 in API_Server ====== 2025-08-12 14:43:41,375 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-12 14:43:41,380 - DEBUG - Requesting: http://10.0.0.38:8082/domain/28245a34-8ab3-488f-b660-849aa043eec7 2025-08-12 14:43:41,390 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e71fb38-4d1c-4387-9205-e6d12e087220 2025-08-12 14:43:41,457 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/54087ef9-0101-43f1-aa95-c4aacb2783b1 2025-08-12 14:43:41,466 - DEBUG - ==>Verifying data for policy with id: 4482e6ed-d335-4e41-99f4-e0900093b95d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18522948', 'ctest-policy1-45259204'] 2025-08-12 14:43:41,466 - INFO - VN ctest-vn4-99690071 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-12 14:43:41,466 - DEBUG - Verifying the vn in opserver 2025-08-12 14:43:41,467 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18522948:ctest-vn4-99690071 virtual network link through opserver 10.0.0.38 2025-08-12 14:43:41,467 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-12 14:43:41,754 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-12 14:43:41,800 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18522948:ctest-vn4-99690071', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18522948:ctest-vn4-99690071?flat'} 2025-08-12 14:43:41,800 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18522948:ctest-vn4-99690071 is found in opserver 2025-08-12 14:43:41,811 - DEBUG - Do not have enough data to verify VN in agent 2025-08-12 14:43:41,816 - DEBUG - VRF ids for VN ctest-vn4-99690071: {} 2025-08-12 14:43:41,816 - DEBUG - ====Verifying data for ctest-policy1-45259204 in API_Server ====== 2025-08-12 14:43:41,817 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-12 14:43:41,821 - DEBUG - Requesting: http://10.0.0.38:8082/domain/28245a34-8ab3-488f-b660-849aa043eec7 2025-08-12 14:43:41,832 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e71fb38-4d1c-4387-9205-e6d12e087220 2025-08-12 14:43:41,907 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4482e6ed-d335-4e41-99f4-e0900093b95d 2025-08-12 14:43:41,917 - INFO - Verified policy ctest-policy1-45259204 in API Server, Result: True 2025-08-12 14:43:41,917 - INFO - Done with setup and verification, moving onto test .. 2025-08-12 14:43:41,924 - INFO - Deleting VN ctest-vn4-99690071 2025-08-12 14:43:42,033 - DEBUG - Response for deleting network () 2025-08-12 14:43:42,033 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e16b02e-f6a3-499f-a68e-32427d3908b6 2025-08-12 14:43:42,037 - DEBUG - Response Code: 404 2025-08-12 14:43:42,038 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-12 14:43:42,042 - DEBUG - Requesting: http://10.0.0.38:8082/domain/28245a34-8ab3-488f-b660-849aa043eec7 2025-08-12 14:43:42,095 - DEBUG - Requesting: http://10.0.0.38:8082/project/9e71fb38-4d1c-4387-9205-e6d12e087220 2025-08-12 14:43:42,161 - INFO - Validated that VN ctest-vn4-99690071 is not found in API Server 2025-08-12 14:43:42,170 - DEBUG - VN ctest-vn4-99690071 is not present in Agent 10.0.0.38 2025-08-12 14:43:42,170 - INFO - Validated that VN ctest-vn4-99690071 is not in any agent 2025-08-12 14:43:42,184 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99690071 info 2025-08-12 14:43:42,207 - INFO - Deleted policy ctest-policy1-45259204 2025-08-12 14:43:42,374 - DEBUG - policy ctest-policy1-45259204 is not found in API Server 2025-08-12 14:43:42,628 - DEBUG - No XMPP flaps were noticed during the test