2025-10-28 18:28:00,321 - INFO - Domain Default found not creating 2025-10-28 18:28:00,488 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-97839001 not found, creating it 2025-10-28 18:28:00,961 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-97839001, ID : 9b825777-8237-4df7-abfd-a5ea1bbda5fd 2025-10-28 18:28:02,520 - INFO - ================================================================================ 2025-10-28 18:28:02,520 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-28 18:28:02,779 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-28 18:28:02,779 - INFO - Initial checks done. Running the testcase now 2025-10-28 18:28:02,779 - INFO - 2025-10-28 18:28:02,779 - INFO - ================================================================================ 2025-10-28 18:28:02,779 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-28 18:28:02,779 - 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-10-28 18:28:03,084 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-28 18:28:03,085 - INFO - Initial checks done. Running the testcase now 2025-10-28 18:28:03,085 - INFO - 2025-10-28 18:28:03,444 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97839001:ctest-vn4-80646003, 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-97839001:ctest-vn4-80646003, 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-97839001:ctest-vn4-80646003, 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-97839001:ctest-vn4-80646003, 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-10-28 18:28:03,958 - DEBUG - Response for create_network : {'network': {'id': '0acb8e90-8669-4f87-8231-98372977217c', 'name': 'ctest-vn4-80646003', 'tenant_id': '9b82577782374df7abfda5ea1bbda5fd', 'project_id': '9b82577782374df7abfda5ea1bbda5fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97839001', 'ctest-vn4-80646003'], 'port_security_enabled': True, 'description': ''}} 2025-10-28 18:28:04,129 - DEBUG - Response for create_subnet : {'subnet': {'id': '9dc43df1-7321-4c5d-bc52-2835e598da9a', 'name': '', 'tenant_id': '9b82577782374df7abfda5ea1bbda5fd', 'network_id': '0acb8e90-8669-4f87-8231-98372977217c', 'ip_version': 4, 'cidr': '183.174.149.128/26', 'allocation_pools': [{'start': '183.174.149.130', 'end': '183.174.149.190'}], 'gateway_ip': '183.174.149.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.174.149.130', 'tags': [], 'project_id': '9b82577782374df7abfda5ea1bbda5fd'}} 2025-10-28 18:28:04,270 - DEBUG - Response for create_subnet : {'subnet': {'id': '1928a5f1-6fad-4de5-8b1b-2762d32513fe', 'name': '', 'tenant_id': '9b82577782374df7abfda5ea1bbda5fd', 'network_id': '0acb8e90-8669-4f87-8231-98372977217c', 'ip_version': 6, 'cidr': '3520:9a11:ec1c:2a2f:9dc8:20f::/96', 'allocation_pools': [{'start': '3520:9a11:ec1c:2a2f:9dc8:20f:0:2', 'end': '3520:9a11:ec1c:2a2f:9dc8:20f:ffff:fffe'}], 'gateway_ip': '3520:9a11:ec1c:2a2f:9dc8:20f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3520:9a11:ec1c:2a2f:9dc8:20f:0:2', 'tags': [], 'project_id': '9b82577782374df7abfda5ea1bbda5fd'}} 2025-10-28 18:28:04,295 - INFO - Created VN ctest-vn4-80646003 2025-10-28 18:28:04,349 - DEBUG - VN ctest-vn4-80646003 UUID is 0acb8e90-8669-4f87-8231-98372977217c 2025-10-28 18:28:04,640 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0acb8e90-8669-4f87-8231-98372977217c', 'name': 'ctest-vn4-80646003', 'tenant_id': '9b82577782374df7abfda5ea1bbda5fd', 'project_id': '9b82577782374df7abfda5ea1bbda5fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9dc43df1-7321-4c5d-bc52-2835e598da9a', '1928a5f1-6fad-4de5-8b1b-2762d32513fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97839001', 'ctest-vn4-80646003'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97839001', 'ctest-policy1-04963840']], 'subnet_ipam': [{'subnet_cidr': '183.174.149.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3520:9a11:ec1c:2a2f:9dc8:20f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-28 18:28:04,797 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-28 18:28:05,110 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-28 18:28:05,145 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d7772d53-6fba-44bd-a907-4cd7b879fc53 2025-10-28 18:28:05,157 - DEBUG - Requesting: http://10.0.0.242:8082/project/9b825777-8237-4df7-abfd-a5ea1bbda5fd 2025-10-28 18:28:05,232 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0acb8e90-8669-4f87-8231-98372977217c 2025-10-28 18:28:05,243 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0acb8e90-8669-4f87-8231-98372977217c 2025-10-28 18:28:05,253 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cb4d2c50-250e-41d5-9059-ff502a4900fe 2025-10-28 18:28:05,260 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cb4d2c50-250e-41d5-9059-ff502a4900fe 2025-10-28 18:28:05,268 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e2dc28fc-d347-4492-b3af-6161990ec9ce 2025-10-28 18:28:05,275 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-28 18:28:05,275 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0acb8e90-8669-4f87-8231-98372977217c 2025-10-28 18:28:05,284 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cb4d2c50-250e-41d5-9059-ff502a4900fe 2025-10-28 18:28:05,298 - INFO - Verified VN network id 11 for VN 0acb8e90-8669-4f87-8231-98372977217c 2025-10-28 18:28:05,298 - INFO - Verifications in API Server for VN ctest-vn4-80646003 passed 2025-10-28 18:28:05,298 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0acb8e90-8669-4f87-8231-98372977217c 2025-10-28 18:28:05,308 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cb4d2c50-250e-41d5-9059-ff502a4900fe 2025-10-28 18:28:05,316 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cb4d2c50-250e-41d5-9059-ff502a4900fe 2025-10-28 18:28:05,323 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e2dc28fc-d347-4492-b3af-6161990ec9ce 2025-10-28 18:28:05,334 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97839001:ctest-vn4-80646003', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-97839001', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '777872112033025927', 'uuid-lslong': '9381446861475750268'}, 'enable': 'true', 'created': '2025-10-28T18:28:03', 'last-modified': '2025-10-28T18:28:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725664'} 2025-10-28 18:28:05,340 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-28 18:28:05,340 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-80646003 passed 2025-10-28 18:28:05,340 - DEBUG - ====Verifying policy data for ctest-vn4-80646003 in API_Server ====== 2025-10-28 18:28:05,340 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-28 18:28:05,346 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d7772d53-6fba-44bd-a907-4cd7b879fc53 2025-10-28 18:28:05,357 - DEBUG - Requesting: http://10.0.0.242:8082/project/9b825777-8237-4df7-abfd-a5ea1bbda5fd 2025-10-28 18:28:05,431 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/0acb8e90-8669-4f87-8231-98372977217c 2025-10-28 18:28:05,441 - DEBUG - ==>Verifying data for policy with id: 4cdceb39-944b-4c38-930b-fd40058861d1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97839001', 'ctest-policy1-04963840'] 2025-10-28 18:28:05,441 - INFO - VN ctest-vn4-80646003 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-28 18:28:05,441 - DEBUG - Verifying the vn in opserver 2025-10-28 18:28:05,442 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97839001:ctest-vn4-80646003 virtual network link through opserver 10.0.0.242 2025-10-28 18:28:05,442 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-28 18:28:05,733 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-28 18:28:05,797 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97839001:ctest-vn4-80646003', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97839001:ctest-vn4-80646003?flat'} 2025-10-28 18:28:05,797 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97839001:ctest-vn4-80646003 is found in opserver 2025-10-28 18:28:05,807 - DEBUG - Do not have enough data to verify VN in agent 2025-10-28 18:28:05,813 - DEBUG - VRF ids for VN ctest-vn4-80646003: {} 2025-10-28 18:28:05,813 - DEBUG - ====Verifying data for ctest-policy1-04963840 in API_Server ====== 2025-10-28 18:28:05,813 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-28 18:28:05,820 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d7772d53-6fba-44bd-a907-4cd7b879fc53 2025-10-28 18:28:05,831 - DEBUG - Requesting: http://10.0.0.242:8082/project/9b825777-8237-4df7-abfd-a5ea1bbda5fd 2025-10-28 18:28:05,901 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/4cdceb39-944b-4c38-930b-fd40058861d1 2025-10-28 18:28:05,914 - INFO - Verified policy ctest-policy1-04963840 in API Server, Result: True 2025-10-28 18:28:05,914 - INFO - Done with setup and verification, moving onto test .. 2025-10-28 18:28:05,926 - INFO - Deleting VN ctest-vn4-80646003 2025-10-28 18:28:06,049 - DEBUG - Response for deleting network () 2025-10-28 18:28:06,050 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cb4d2c50-250e-41d5-9059-ff502a4900fe 2025-10-28 18:28:06,055 - DEBUG - Response Code: 404 2025-10-28 18:28:06,055 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-28 18:28:06,061 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d7772d53-6fba-44bd-a907-4cd7b879fc53 2025-10-28 18:28:06,118 - DEBUG - Requesting: http://10.0.0.242:8082/project/9b825777-8237-4df7-abfd-a5ea1bbda5fd 2025-10-28 18:28:06,191 - INFO - Validated that VN ctest-vn4-80646003 is not found in API Server 2025-10-28 18:28:06,203 - DEBUG - VN ctest-vn4-80646003 is not present in Agent 10.0.0.242 2025-10-28 18:28:06,203 - INFO - Validated that VN ctest-vn4-80646003 is not in any agent 2025-10-28 18:28:06,219 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-80646003 info 2025-10-28 18:28:06,244 - INFO - Deleted policy ctest-policy1-04963840 2025-10-28 18:28:06,421 - DEBUG - policy ctest-policy1-04963840 is not found in API Server 2025-10-28 18:28:06,673 - DEBUG - No XMPP flaps were noticed during the test
2025-10-28 18:28:06,673 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-28 18:28:06,673 - INFO - -------------------------------------------------------------------------------- 2025-10-28 18:28:06,961 - DEBUG - No XMPP flaps were noticed during the test
2025-10-28 18:28:06,961 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-28 18:28:06,962 - INFO - -------------------------------------------------------------------------------- 2025-10-28 18:28:07,656 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-97839001, ID : 9b825777-8237-4df7-abfd-a5ea1bbda5fd