2025-09-27 12:51:59,196 - INFO - Domain Default found not creating 2025-09-27 12:51:59,383 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08076288 not found, creating it 2025-09-27 12:51:59,891 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08076288, ID : 1fc38768-e002-48d3-aced-6be3f933133b 2025-09-27 12:52:01,473 - INFO - ================================================================================ 2025-09-27 12:52:01,473 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-27 12:52:01,744 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-27 12:52:01,745 - INFO - Initial checks done. Running the testcase now 2025-09-27 12:52:01,745 - INFO - 2025-09-27 12:52:01,745 - INFO - ================================================================================ 2025-09-27 12:52:01,745 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-27 12:52:01,745 - 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-09-27 12:52:02,039 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-27 12:52:02,039 - INFO - Initial checks done. Running the testcase now 2025-09-27 12:52:02,039 - INFO - 2025-09-27 12:52:02,470 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08076288:ctest-vn4-26042201, 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-08076288:ctest-vn4-26042201, 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-08076288:ctest-vn4-26042201, 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-08076288:ctest-vn4-26042201, 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-09-27 12:52:03,033 - DEBUG - Response for create_network : {'network': {'id': 'd6725708-f94f-4aca-b6ac-01a40d3d932a', 'name': 'ctest-vn4-26042201', 'tenant_id': '1fc38768e00248d3aced6be3f933133b', 'project_id': '1fc38768e00248d3aced6be3f933133b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08076288', 'ctest-vn4-26042201'], 'port_security_enabled': True, 'description': ''}} 2025-09-27 12:52:03,209 - DEBUG - Response for create_subnet : {'subnet': {'id': '5de54359-5ded-4303-9caa-d7dc1bfbb3a7', 'name': '', 'tenant_id': '1fc38768e00248d3aced6be3f933133b', 'network_id': 'd6725708-f94f-4aca-b6ac-01a40d3d932a', 'ip_version': 4, 'cidr': '74.212.108.192/26', 'allocation_pools': [{'start': '74.212.108.194', 'end': '74.212.108.254'}], 'gateway_ip': '74.212.108.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.212.108.194', 'tags': [], 'project_id': '1fc38768e00248d3aced6be3f933133b'}} 2025-09-27 12:52:03,423 - DEBUG - Response for create_subnet : {'subnet': {'id': '6606092e-50db-46d4-9889-ab076d5515f0', 'name': '', 'tenant_id': '1fc38768e00248d3aced6be3f933133b', 'network_id': 'd6725708-f94f-4aca-b6ac-01a40d3d932a', 'ip_version': 6, 'cidr': '21b1:747d:6133:1007:86c4:fceb::/96', 'allocation_pools': [{'start': '21b1:747d:6133:1007:86c4:fceb:0:2', 'end': '21b1:747d:6133:1007:86c4:fceb:ffff:fffe'}], 'gateway_ip': '21b1:747d:6133:1007:86c4:fceb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21b1:747d:6133:1007:86c4:fceb:0:2', 'tags': [], 'project_id': '1fc38768e00248d3aced6be3f933133b'}} 2025-09-27 12:52:03,446 - INFO - Created VN ctest-vn4-26042201 2025-09-27 12:52:03,498 - DEBUG - VN ctest-vn4-26042201 UUID is d6725708-f94f-4aca-b6ac-01a40d3d932a 2025-09-27 12:52:03,717 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6725708-f94f-4aca-b6ac-01a40d3d932a', 'name': 'ctest-vn4-26042201', 'tenant_id': '1fc38768e00248d3aced6be3f933133b', 'project_id': '1fc38768e00248d3aced6be3f933133b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5de54359-5ded-4303-9caa-d7dc1bfbb3a7', '6606092e-50db-46d4-9889-ab076d5515f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08076288', 'ctest-vn4-26042201'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08076288', 'ctest-policy1-10816297']], 'subnet_ipam': [{'subnet_cidr': '74.212.108.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21b1:747d:6133:1007:86c4:fceb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-27 12:52:03,882 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-27 12:52:04,186 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-27 12:52:04,223 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1a096c02-e82c-407f-ad33-cae666f4f191 2025-09-27 12:52:04,237 - DEBUG - Requesting: http://10.0.0.38:8082/project/1fc38768-e002-48d3-aced-6be3f933133b 2025-09-27 12:52:04,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6725708-f94f-4aca-b6ac-01a40d3d932a 2025-09-27 12:52:04,331 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6725708-f94f-4aca-b6ac-01a40d3d932a 2025-09-27 12:52:04,341 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/78a81973-c522-4e77-a0c7-630a02a8efa6 2025-09-27 12:52:04,350 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/78a81973-c522-4e77-a0c7-630a02a8efa6 2025-09-27 12:52:04,358 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5fcd4e79-6479-4ea2-8ef1-06ce30534ec7 2025-09-27 12:52:04,367 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-27 12:52:04,367 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6725708-f94f-4aca-b6ac-01a40d3d932a 2025-09-27 12:52:04,376 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/78a81973-c522-4e77-a0c7-630a02a8efa6 2025-09-27 12:52:04,395 - INFO - Verified VN network id 11 for VN d6725708-f94f-4aca-b6ac-01a40d3d932a 2025-09-27 12:52:04,395 - INFO - Verifications in API Server for VN ctest-vn4-26042201 passed 2025-09-27 12:52:04,395 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6725708-f94f-4aca-b6ac-01a40d3d932a 2025-09-27 12:52:04,406 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/78a81973-c522-4e77-a0c7-630a02a8efa6 2025-09-27 12:52:04,414 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/78a81973-c522-4e77-a0c7-630a02a8efa6 2025-09-27 12:52:04,423 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5fcd4e79-6479-4ea2-8ef1-06ce30534ec7 2025-09-27 12:52:04,439 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08076288:ctest-vn4-26042201', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08076288', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15452508967515671242', 'uuid-lslong': '13162897615005520682'}, 'enable': 'true', 'created': '2025-09-27T12:52:02', 'last-modified': '2025-09-27T12:52:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.751428'} 2025-09-27 12:52:04,452 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-27 12:52:04,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26042201 passed 2025-09-27 12:52:04,453 - DEBUG - ====Verifying policy data for ctest-vn4-26042201 in API_Server ====== 2025-09-27 12:52:04,453 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-27 12:52:04,461 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1a096c02-e82c-407f-ad33-cae666f4f191 2025-09-27 12:52:04,474 - DEBUG - Requesting: http://10.0.0.38:8082/project/1fc38768-e002-48d3-aced-6be3f933133b 2025-09-27 12:52:04,546 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d6725708-f94f-4aca-b6ac-01a40d3d932a 2025-09-27 12:52:04,558 - DEBUG - ==>Verifying data for policy with id: 92a97334-51b5-40d5-89c5-b2852c77261e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08076288', 'ctest-policy1-10816297'] 2025-09-27 12:52:04,558 - INFO - VN ctest-vn4-26042201 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-27 12:52:04,558 - DEBUG - Verifying the vn in opserver 2025-09-27 12:52:04,558 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08076288:ctest-vn4-26042201 virtual network link through opserver 10.0.0.38 2025-09-27 12:52:04,558 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-27 12:52:04,867 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-27 12:52:04,933 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08076288:ctest-vn4-26042201', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08076288:ctest-vn4-26042201?flat'} 2025-09-27 12:52:04,933 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08076288:ctest-vn4-26042201 is found in opserver 2025-09-27 12:52:04,947 - DEBUG - Do not have enough data to verify VN in agent 2025-09-27 12:52:04,954 - DEBUG - VRF ids for VN ctest-vn4-26042201: {} 2025-09-27 12:52:04,954 - DEBUG - ====Verifying data for ctest-policy1-10816297 in API_Server ====== 2025-09-27 12:52:04,954 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-27 12:52:04,961 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1a096c02-e82c-407f-ad33-cae666f4f191 2025-09-27 12:52:04,973 - DEBUG - Requesting: http://10.0.0.38:8082/project/1fc38768-e002-48d3-aced-6be3f933133b 2025-09-27 12:52:05,044 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/92a97334-51b5-40d5-89c5-b2852c77261e 2025-09-27 12:52:05,054 - INFO - Verified policy ctest-policy1-10816297 in API Server, Result: True 2025-09-27 12:52:05,055 - INFO - Done with setup and verification, moving onto test .. 2025-09-27 12:52:05,064 - INFO - Deleting VN ctest-vn4-26042201 2025-09-27 12:52:05,195 - DEBUG - Response for deleting network () 2025-09-27 12:52:05,195 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/78a81973-c522-4e77-a0c7-630a02a8efa6 2025-09-27 12:52:05,201 - DEBUG - Response Code: 404 2025-09-27 12:52:05,201 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-27 12:52:05,208 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1a096c02-e82c-407f-ad33-cae666f4f191 2025-09-27 12:52:05,265 - DEBUG - Requesting: http://10.0.0.38:8082/project/1fc38768-e002-48d3-aced-6be3f933133b 2025-09-27 12:52:05,339 - INFO - Validated that VN ctest-vn4-26042201 is not found in API Server 2025-09-27 12:52:05,351 - DEBUG - VN ctest-vn4-26042201 is not present in Agent 10.0.0.38 2025-09-27 12:52:05,351 - INFO - Validated that VN ctest-vn4-26042201 is not in any agent 2025-09-27 12:52:05,372 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26042201 info 2025-09-27 12:52:05,403 - INFO - Deleted policy ctest-policy1-10816297 2025-09-27 12:52:05,578 - DEBUG - policy ctest-policy1-10816297 is not found in API Server 2025-09-27 12:52:05,843 - DEBUG - No XMPP flaps were noticed during the test 2025-09-27 12:52:05,843 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-27 12:52:05,843 - INFO - -------------------------------------------------------------------------------- 2025-09-27 12:52:06,139 - DEBUG - No XMPP flaps were noticed during the test 2025-09-27 12:52:06,139 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-09-27 12:52:06,139 - INFO - -------------------------------------------------------------------------------- 2025-09-27 12:52:06,909 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-08076288, ID : 1fc38768-e002-48d3-aced-6be3f933133b