2025-08-28 17:56:55,637 - INFO - Domain Default found not creating 2025-08-28 17:56:56,005 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08728507 not found, creating it 2025-08-28 17:56:56,805 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08728507, ID : 504e4e89-6bbe-43a4-8368-2d49c7c85564 2025-08-28 17:56:58,919 - INFO - ================================================================================ 2025-08-28 17:56:58,920 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 17:56:59,244 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-08-28 17:56:59,245 - INFO - Initial checks done. Running the testcase now 2025-08-28 17:56:59,245 - INFO - 2025-08-28 17:56:59,245 - INFO - ================================================================================ 2025-08-28 17:56:59,245 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 17:56:59,245 - 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-28 17:56:59,589 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-08-28 17:56:59,589 - INFO - Initial checks done. Running the testcase now 2025-08-28 17:56:59,589 - INFO - 2025-08-28 17:57:00,102 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08728507:ctest-vn4-51119377, 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-08728507:ctest-vn4-51119377, 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-08728507:ctest-vn4-51119377, 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-08728507:ctest-vn4-51119377, 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-28 17:57:00,770 - DEBUG - Response for create_network : {'network': {'id': 'd2234fa8-39f0-48a8-b817-f36d826df76f', 'name': 'ctest-vn4-51119377', 'tenant_id': '504e4e896bbe43a483682d49c7c85564', 'project_id': '504e4e896bbe43a483682d49c7c85564', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08728507', 'ctest-vn4-51119377'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 17:57:00,939 - DEBUG - Response for create_subnet : {'subnet': {'id': '683017b9-70bc-48f2-bb17-f85350cc81d9', 'name': '', 'tenant_id': '504e4e896bbe43a483682d49c7c85564', 'network_id': 'd2234fa8-39f0-48a8-b817-f36d826df76f', 'ip_version': 4, 'cidr': '108.222.88.64/26', 'allocation_pools': [{'start': '108.222.88.66', 'end': '108.222.88.126'}], 'gateway_ip': '108.222.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.222.88.66', 'tags': [], 'project_id': '504e4e896bbe43a483682d49c7c85564'}} 2025-08-28 17:57:01,116 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c37d2424-a407-4bae-8700-95ad336b0c5b', 'name': '', 'tenant_id': '504e4e896bbe43a483682d49c7c85564', 'network_id': 'd2234fa8-39f0-48a8-b817-f36d826df76f', 'ip_version': 6, 'cidr': '3b78:1af1:a285:9e5:9f09:af23::/96', 'allocation_pools': [{'start': '3b78:1af1:a285:9e5:9f09:af23:0:2', 'end': '3b78:1af1:a285:9e5:9f09:af23:ffff:fffe'}], 'gateway_ip': '3b78:1af1:a285:9e5:9f09:af23:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b78:1af1:a285:9e5:9f09:af23:0:2', 'tags': [], 'project_id': '504e4e896bbe43a483682d49c7c85564'}} 2025-08-28 17:57:01,142 - INFO - Created VN ctest-vn4-51119377 2025-08-28 17:57:01,201 - DEBUG - VN ctest-vn4-51119377 UUID is d2234fa8-39f0-48a8-b817-f36d826df76f 2025-08-28 17:57:01,571 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2234fa8-39f0-48a8-b817-f36d826df76f', 'name': 'ctest-vn4-51119377', 'tenant_id': '504e4e896bbe43a483682d49c7c85564', 'project_id': '504e4e896bbe43a483682d49c7c85564', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['683017b9-70bc-48f2-bb17-f85350cc81d9', 'c37d2424-a407-4bae-8700-95ad336b0c5b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08728507', 'ctest-vn4-51119377'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08728507', 'ctest-policy1-77816448']], 'subnet_ipam': [{'subnet_cidr': '108.222.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b78:1af1:a285:9e5:9f09:af23::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 17:57:01,732 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-08-28 17:57:02,045 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-08-28 17:57:02,086 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ee867886-2840-4fef-bf1f-acee1c8118fb 2025-08-28 17:57:02,106 - DEBUG - Requesting: http://10.0.0.141:8082/project/504e4e89-6bbe-43a4-8368-2d49c7c85564 2025-08-28 17:57:02,209 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d2234fa8-39f0-48a8-b817-f36d826df76f 2025-08-28 17:57:02,234 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d2234fa8-39f0-48a8-b817-f36d826df76f 2025-08-28 17:57:02,253 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9508952-5eb6-49aa-a3f3-866b1af18617 2025-08-28 17:57:02,268 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9508952-5eb6-49aa-a3f3-866b1af18617 2025-08-28 17:57:02,280 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/67ad1b30-ece1-4d1b-b48c-1c3fbefbfd2e 2025-08-28 17:57:02,290 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 17:57:02,290 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d2234fa8-39f0-48a8-b817-f36d826df76f 2025-08-28 17:57:02,308 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9508952-5eb6-49aa-a3f3-866b1af18617 2025-08-28 17:57:02,329 - INFO - Verified VN network id 10 for VN d2234fa8-39f0-48a8-b817-f36d826df76f 2025-08-28 17:57:02,329 - INFO - Verifications in API Server for VN ctest-vn4-51119377 passed 2025-08-28 17:57:02,329 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d2234fa8-39f0-48a8-b817-f36d826df76f 2025-08-28 17:57:02,342 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9508952-5eb6-49aa-a3f3-866b1af18617 2025-08-28 17:57:02,352 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9508952-5eb6-49aa-a3f3-866b1af18617 2025-08-28 17:57:02,362 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/67ad1b30-ece1-4d1b-b48c-1c3fbefbfd2e 2025-08-28 17:57:02,378 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08728507:ctest-vn4-51119377', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08728507', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15142033956094888104', 'uuid-lslong': '13265338879108314991'}, 'enable': 'true', 'created': '2025-08-28T17:57:00', 'last-modified': '2025-08-28T17:57:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.855088'} 2025-08-28 17:57:02,386 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 17:57:02,386 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51119377 passed 2025-08-28 17:57:02,386 - DEBUG - ====Verifying policy data for ctest-vn4-51119377 in API_Server ====== 2025-08-28 17:57:02,386 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-08-28 17:57:02,393 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ee867886-2840-4fef-bf1f-acee1c8118fb 2025-08-28 17:57:02,409 - DEBUG - Requesting: http://10.0.0.141:8082/project/504e4e89-6bbe-43a4-8368-2d49c7c85564 2025-08-28 17:57:02,502 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/d2234fa8-39f0-48a8-b817-f36d826df76f 2025-08-28 17:57:02,517 - DEBUG - ==>Verifying data for policy with id: d3ea1479-11cf-437e-bdef-e3cbe5897fe5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08728507', 'ctest-policy1-77816448'] 2025-08-28 17:57:02,518 - INFO - VN ctest-vn4-51119377 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 17:57:02,518 - DEBUG - Verifying the vn in opserver 2025-08-28 17:57:02,518 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08728507:ctest-vn4-51119377 virtual network link through opserver 10.0.0.141 2025-08-28 17:57:02,518 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-08-28 17:57:02,829 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-08-28 17:57:02,920 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08728507:ctest-vn4-51119377', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08728507:ctest-vn4-51119377?flat'} 2025-08-28 17:57:02,920 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08728507:ctest-vn4-51119377 is found in opserver 2025-08-28 17:57:02,941 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 17:57:02,950 - DEBUG - VRF ids for VN ctest-vn4-51119377: {} 2025-08-28 17:57:02,951 - DEBUG - ====Verifying data for ctest-policy1-77816448 in API_Server ====== 2025-08-28 17:57:02,951 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-08-28 17:57:02,961 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ee867886-2840-4fef-bf1f-acee1c8118fb 2025-08-28 17:57:02,975 - DEBUG - Requesting: http://10.0.0.141:8082/project/504e4e89-6bbe-43a4-8368-2d49c7c85564 2025-08-28 17:57:03,080 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/d3ea1479-11cf-437e-bdef-e3cbe5897fe5 2025-08-28 17:57:03,102 - INFO - Verified policy ctest-policy1-77816448 in API Server, Result: True 2025-08-28 17:57:03,103 - INFO - Done with setup and verification, moving onto test .. 2025-08-28 17:57:03,115 - INFO - Deleting VN ctest-vn4-51119377 2025-08-28 17:57:03,308 - DEBUG - Response for deleting network () 2025-08-28 17:57:03,308 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9508952-5eb6-49aa-a3f3-866b1af18617 2025-08-28 17:57:03,314 - DEBUG - Response Code: 404 2025-08-28 17:57:03,315 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-08-28 17:57:03,323 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ee867886-2840-4fef-bf1f-acee1c8118fb 2025-08-28 17:57:03,382 - DEBUG - Requesting: http://10.0.0.141:8082/project/504e4e89-6bbe-43a4-8368-2d49c7c85564 2025-08-28 17:57:03,486 - INFO - Validated that VN ctest-vn4-51119377 is not found in API Server 2025-08-28 17:57:03,508 - DEBUG - VN ctest-vn4-51119377 is not present in Agent 10.0.0.141 2025-08-28 17:57:03,508 - INFO - Validated that VN ctest-vn4-51119377 is not in any agent 2025-08-28 17:57:03,544 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51119377 info 2025-08-28 17:57:03,600 - INFO - Deleted policy ctest-policy1-77816448 2025-08-28 17:57:03,816 - DEBUG - policy ctest-policy1-77816448 is not found in API Server 2025-08-28 17:57:04,118 - DEBUG - No XMPP flaps were noticed during the test