2025-11-04 18:08:09,443 - INFO - Domain Default found not creating 2025-11-04 18:08:09,585 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35338675 not found, creating it 2025-11-04 18:08:10,021 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35338675, ID : fcada9de-ad56-4816-8eff-bfae01bff7c1 2025-11-04 18:08:11,397 - INFO - ================================================================================ 2025-11-04 18:08:11,397 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-04 18:08:11,657 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with 2025-11-04 18:08:11,657 - INFO - Initial checks done. Running the testcase now 2025-11-04 18:08:11,657 - INFO - 2025-11-04 18:08:11,657 - INFO - ================================================================================ 2025-11-04 18:08:11,657 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-04 18:08:11,657 - 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 18:08:11,944 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with 2025-11-04 18:08:11,944 - INFO - Initial checks done. Running the testcase now 2025-11-04 18:08:11,945 - INFO - 2025-11-04 18:08:12,289 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35338675:ctest-vn4-71530209, 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-35338675:ctest-vn4-71530209, 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-35338675:ctest-vn4-71530209, 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-35338675:ctest-vn4-71530209, 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 18:08:12,966 - DEBUG - Response for create_network : {'network': {'id': '0766933a-b176-43de-8abf-1f900de6de10', 'name': 'ctest-vn4-71530209', 'tenant_id': 'fcada9dead5648168effbfae01bff7c1', 'project_id': 'fcada9dead5648168effbfae01bff7c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35338675', 'ctest-vn4-71530209'], 'port_security_enabled': True, 'description': ''}} 2025-11-04 18:08:13,167 - DEBUG - Response for create_subnet : {'subnet': {'id': '435f327a-4e66-49c3-953a-40c3e20be62e', 'name': '', 'tenant_id': 'fcada9dead5648168effbfae01bff7c1', 'network_id': '0766933a-b176-43de-8abf-1f900de6de10', 'ip_version': 4, 'cidr': '71.5.66.64/26', 'allocation_pools': [{'start': '71.5.66.66', 'end': '71.5.66.126'}], 'gateway_ip': '71.5.66.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.5.66.66', 'tags': [], 'project_id': 'fcada9dead5648168effbfae01bff7c1'}} 2025-11-04 18:08:13,354 - DEBUG - Response for create_subnet : {'subnet': {'id': '5016e177-b9fd-40d7-879c-d08901076e85', 'name': '', 'tenant_id': 'fcada9dead5648168effbfae01bff7c1', 'network_id': '0766933a-b176-43de-8abf-1f900de6de10', 'ip_version': 6, 'cidr': '2a9f:4d4e:26c2:386a:df5b:32d9::/96', 'allocation_pools': [{'start': '2a9f:4d4e:26c2:386a:df5b:32d9:0:2', 'end': '2a9f:4d4e:26c2:386a:df5b:32d9:ffff:fffe'}], 'gateway_ip': '2a9f:4d4e:26c2:386a:df5b:32d9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a9f:4d4e:26c2:386a:df5b:32d9:0:2', 'tags': [], 'project_id': 'fcada9dead5648168effbfae01bff7c1'}} 2025-11-04 18:08:13,377 - INFO - Created VN ctest-vn4-71530209 2025-11-04 18:08:13,427 - DEBUG - VN ctest-vn4-71530209 UUID is 0766933a-b176-43de-8abf-1f900de6de10 2025-11-04 18:08:13,680 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0766933a-b176-43de-8abf-1f900de6de10', 'name': 'ctest-vn4-71530209', 'tenant_id': 'fcada9dead5648168effbfae01bff7c1', 'project_id': 'fcada9dead5648168effbfae01bff7c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['435f327a-4e66-49c3-953a-40c3e20be62e', '5016e177-b9fd-40d7-879c-d08901076e85'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35338675', 'ctest-vn4-71530209'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35338675', 'ctest-policy1-31361043']], 'subnet_ipam': [{'subnet_cidr': '71.5.66.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a9f:4d4e:26c2:386a:df5b:32d9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-04 18:08:13,839 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-04 18:08:14,128 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-04 18:08:14,154 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b7faeeb1-f827-4283-931f-654feb0d6647 2025-11-04 18:08:14,164 - DEBUG - Requesting: http://10.0.0.49:8082/project/fcada9de-ad56-4816-8eff-bfae01bff7c1 2025-11-04 18:08:14,232 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0766933a-b176-43de-8abf-1f900de6de10 2025-11-04 18:08:14,243 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0766933a-b176-43de-8abf-1f900de6de10 2025-11-04 18:08:14,251 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d7e1638c-6a9f-481a-8a89-7347ed1996d8 2025-11-04 18:08:14,257 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d7e1638c-6a9f-481a-8a89-7347ed1996d8 2025-11-04 18:08:14,263 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/6a53f36a-c9ba-405a-9d9d-11811923998b 2025-11-04 18:08:14,268 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 18:08:14,268 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0766933a-b176-43de-8abf-1f900de6de10 2025-11-04 18:08:14,276 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d7e1638c-6a9f-481a-8a89-7347ed1996d8 2025-11-04 18:08:14,287 - INFO - Verified VN network id 10 for VN 0766933a-b176-43de-8abf-1f900de6de10 2025-11-04 18:08:14,287 - INFO - Verifications in API Server for VN ctest-vn4-71530209 passed 2025-11-04 18:08:14,288 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0766933a-b176-43de-8abf-1f900de6de10 2025-11-04 18:08:14,295 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d7e1638c-6a9f-481a-8a89-7347ed1996d8 2025-11-04 18:08:14,300 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d7e1638c-6a9f-481a-8a89-7347ed1996d8 2025-11-04 18:08:14,305 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/6a53f36a-c9ba-405a-9d9d-11811923998b 2025-11-04 18:08:14,315 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35338675:ctest-vn4-71530209', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35338675', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '533275486184686558', 'uuid-lslong': '9997744401354776080'}, 'enable': 'true', 'created': '2025-11-04T18:08:12', 'last-modified': '2025-11-04T18:08:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714744'} 2025-11-04 18:08:14,320 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 18:08:14,320 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-71530209 passed 2025-11-04 18:08:14,320 - DEBUG - ====Verifying policy data for ctest-vn4-71530209 in API_Server ====== 2025-11-04 18:08:14,320 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-04 18:08:14,325 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b7faeeb1-f827-4283-931f-654feb0d6647 2025-11-04 18:08:14,335 - DEBUG - Requesting: http://10.0.0.49:8082/project/fcada9de-ad56-4816-8eff-bfae01bff7c1 2025-11-04 18:08:14,404 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0766933a-b176-43de-8abf-1f900de6de10 2025-11-04 18:08:14,412 - DEBUG - ==>Verifying data for policy with id: 32e213c0-08af-423c-8ce8-39c1aa3a85e8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35338675', 'ctest-policy1-31361043'] 2025-11-04 18:08:14,412 - INFO - VN ctest-vn4-71530209 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-04 18:08:14,412 - DEBUG - Verifying the vn in opserver 2025-11-04 18:08:14,412 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35338675:ctest-vn4-71530209 virtual network link through opserver 10.0.0.49 2025-11-04 18:08:14,412 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-11-04 18:08:14,705 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-11-04 18:08:14,752 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35338675:ctest-vn4-71530209', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35338675:ctest-vn4-71530209?flat'} 2025-11-04 18:08:14,752 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35338675:ctest-vn4-71530209 is found in opserver 2025-11-04 18:08:14,760 - DEBUG - Do not have enough data to verify VN in agent 2025-11-04 18:08:14,764 - DEBUG - VRF ids for VN ctest-vn4-71530209: {} 2025-11-04 18:08:14,764 - DEBUG - ====Verifying data for ctest-policy1-31361043 in API_Server ====== 2025-11-04 18:08:14,764 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-04 18:08:14,769 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b7faeeb1-f827-4283-931f-654feb0d6647 2025-11-04 18:08:14,778 - DEBUG - Requesting: http://10.0.0.49:8082/project/fcada9de-ad56-4816-8eff-bfae01bff7c1 2025-11-04 18:08:14,844 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/32e213c0-08af-423c-8ce8-39c1aa3a85e8 2025-11-04 18:08:14,853 - INFO - Verified policy ctest-policy1-31361043 in API Server, Result: True 2025-11-04 18:08:14,853 - INFO - Done with setup and verification, moving onto test .. 2025-11-04 18:08:14,860 - INFO - Deleting VN ctest-vn4-71530209 2025-11-04 18:08:14,964 - DEBUG - Response for deleting network () 2025-11-04 18:08:14,964 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d7e1638c-6a9f-481a-8a89-7347ed1996d8 2025-11-04 18:08:14,969 - DEBUG - Response Code: 404 2025-11-04 18:08:14,969 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-11-04 18:08:14,973 - DEBUG - Requesting: http://10.0.0.49:8082/domain/b7faeeb1-f827-4283-931f-654feb0d6647 2025-11-04 18:08:15,023 - DEBUG - Requesting: http://10.0.0.49:8082/project/fcada9de-ad56-4816-8eff-bfae01bff7c1 2025-11-04 18:08:15,089 - INFO - Validated that VN ctest-vn4-71530209 is not found in API Server 2025-11-04 18:08:15,100 - DEBUG - VN ctest-vn4-71530209 is not present in Agent 10.0.0.49 2025-11-04 18:08:15,100 - INFO - Validated that VN ctest-vn4-71530209 is not in any agent 2025-11-04 18:08:15,112 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-71530209 info 2025-11-04 18:08:15,134 - INFO - Deleted policy ctest-policy1-31361043 2025-11-04 18:08:15,290 - DEBUG - policy ctest-policy1-31361043 is not found in API Server 2025-11-04 18:08:15,543 - DEBUG - No XMPP flaps were noticed during the test