2025-09-12 20:59:05,871 - INFO - Domain Default found not creating 2025-09-12 20:59:06,004 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33935674 not found, creating it 2025-09-12 20:59:06,424 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33935674, ID : 4b7dba35-9885-41e5-ab58-40a4cc518d1a 2025-09-12 20:59:07,768 - INFO - ================================================================================ 2025-09-12 20:59:07,768 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-12 20:59:08,022 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-12 20:59:08,022 - INFO - Initial checks done. Running the testcase now 2025-09-12 20:59:08,022 - INFO - 2025-09-12 20:59:08,022 - INFO - ================================================================================ 2025-09-12 20:59:08,022 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-12 20:59:08,022 - 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-12 20:59:08,314 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-12 20:59:08,314 - INFO - Initial checks done. Running the testcase now 2025-09-12 20:59:08,314 - INFO - 2025-09-12 20:59:08,666 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33935674:ctest-vn4-12420756, 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-33935674:ctest-vn4-12420756, 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-33935674:ctest-vn4-12420756, 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-33935674:ctest-vn4-12420756, 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-12 20:59:09,161 - DEBUG - Response for create_network : {'network': {'id': '96449498-c125-4dc7-b5d1-7e0dc7b4296f', 'name': 'ctest-vn4-12420756', 'tenant_id': '4b7dba35988541e5ab5840a4cc518d1a', 'project_id': '4b7dba35988541e5ab5840a4cc518d1a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33935674', 'ctest-vn4-12420756'], 'port_security_enabled': True, 'description': ''}} 2025-09-12 20:59:09,399 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2f91922-1b65-4592-af6e-2636fdfb3b91', 'name': '', 'tenant_id': '4b7dba35988541e5ab5840a4cc518d1a', 'network_id': '96449498-c125-4dc7-b5d1-7e0dc7b4296f', 'ip_version': 4, 'cidr': '13.234.216.128/26', 'allocation_pools': [{'start': '13.234.216.130', 'end': '13.234.216.190'}], 'gateway_ip': '13.234.216.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.234.216.130', 'tags': [], 'project_id': '4b7dba35988541e5ab5840a4cc518d1a'}} 2025-09-12 20:59:09,603 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f26a873a-a1d4-4810-99c5-ec549fc220ba', 'name': '', 'tenant_id': '4b7dba35988541e5ab5840a4cc518d1a', 'network_id': '96449498-c125-4dc7-b5d1-7e0dc7b4296f', 'ip_version': 6, 'cidr': '2322:84d0:3b02:64dc:1b58:b35a::/96', 'allocation_pools': [{'start': '2322:84d0:3b02:64dc:1b58:b35a:0:2', 'end': '2322:84d0:3b02:64dc:1b58:b35a:ffff:fffe'}], 'gateway_ip': '2322:84d0:3b02:64dc:1b58:b35a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2322:84d0:3b02:64dc:1b58:b35a:0:2', 'tags': [], 'project_id': '4b7dba35988541e5ab5840a4cc518d1a'}} 2025-09-12 20:59:09,620 - INFO - Created VN ctest-vn4-12420756 2025-09-12 20:59:09,674 - DEBUG - VN ctest-vn4-12420756 UUID is 96449498-c125-4dc7-b5d1-7e0dc7b4296f 2025-09-12 20:59:09,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96449498-c125-4dc7-b5d1-7e0dc7b4296f', 'name': 'ctest-vn4-12420756', 'tenant_id': '4b7dba35988541e5ab5840a4cc518d1a', 'project_id': '4b7dba35988541e5ab5840a4cc518d1a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2f91922-1b65-4592-af6e-2636fdfb3b91', 'f26a873a-a1d4-4810-99c5-ec549fc220ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33935674', 'ctest-vn4-12420756'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33935674', 'ctest-policy1-38070567']], 'subnet_ipam': [{'subnet_cidr': '13.234.216.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2322:84d0:3b02:64dc:1b58:b35a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-12 20:59:10,062 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-12 20:59:10,360 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-12 20:59:10,386 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cb1b8ab4-19ec-4ab6-8ad7-acde986b1a60 2025-09-12 20:59:10,397 - DEBUG - Requesting: http://10.0.0.254:8082/project/4b7dba35-9885-41e5-ab58-40a4cc518d1a 2025-09-12 20:59:10,462 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96449498-c125-4dc7-b5d1-7e0dc7b4296f 2025-09-12 20:59:10,472 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96449498-c125-4dc7-b5d1-7e0dc7b4296f 2025-09-12 20:59:10,481 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9940ef26-7e20-4d03-9ebe-077a9dbaac26 2025-09-12 20:59:10,486 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9940ef26-7e20-4d03-9ebe-077a9dbaac26 2025-09-12 20:59:10,492 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/468b2760-5d9a-41b2-a595-99be32e480ac 2025-09-12 20:59:10,497 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-12 20:59:10,497 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96449498-c125-4dc7-b5d1-7e0dc7b4296f 2025-09-12 20:59:10,504 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9940ef26-7e20-4d03-9ebe-077a9dbaac26 2025-09-12 20:59:10,516 - INFO - Verified VN network id 12 for VN 96449498-c125-4dc7-b5d1-7e0dc7b4296f 2025-09-12 20:59:10,516 - INFO - Verifications in API Server for VN ctest-vn4-12420756 passed 2025-09-12 20:59:10,516 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96449498-c125-4dc7-b5d1-7e0dc7b4296f 2025-09-12 20:59:10,523 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9940ef26-7e20-4d03-9ebe-077a9dbaac26 2025-09-12 20:59:10,529 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9940ef26-7e20-4d03-9ebe-077a9dbaac26 2025-09-12 20:59:10,535 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/468b2760-5d9a-41b2-a595-99be32e480ac 2025-09-12 20:59:10,546 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33935674:ctest-vn4-12420756', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33935674', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10827942787901902279', 'uuid-lslong': '13101391388647631215'}, 'enable': 'true', 'created': '2025-09-12T20:59:09', 'last-modified': '2025-09-12T20:59:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.716636'} 2025-09-12 20:59:10,552 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-12 20:59:10,552 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12420756 passed 2025-09-12 20:59:10,552 - DEBUG - ====Verifying policy data for ctest-vn4-12420756 in API_Server ====== 2025-09-12 20:59:10,552 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-12 20:59:10,558 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cb1b8ab4-19ec-4ab6-8ad7-acde986b1a60 2025-09-12 20:59:10,567 - DEBUG - Requesting: http://10.0.0.254:8082/project/4b7dba35-9885-41e5-ab58-40a4cc518d1a 2025-09-12 20:59:10,639 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96449498-c125-4dc7-b5d1-7e0dc7b4296f 2025-09-12 20:59:10,648 - DEBUG - ==>Verifying data for policy with id: 78f8434b-add0-4aae-a215-48006e597e6e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33935674', 'ctest-policy1-38070567'] 2025-09-12 20:59:10,648 - INFO - VN ctest-vn4-12420756 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-12 20:59:10,648 - DEBUG - Verifying the vn in opserver 2025-09-12 20:59:10,648 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33935674:ctest-vn4-12420756 virtual network link through opserver 10.0.0.254 2025-09-12 20:59:10,648 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-12 20:59:10,940 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-12 20:59:10,989 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33935674:ctest-vn4-12420756', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33935674:ctest-vn4-12420756?flat'} 2025-09-12 20:59:10,989 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33935674:ctest-vn4-12420756 is found in opserver 2025-09-12 20:59:10,998 - DEBUG - Do not have enough data to verify VN in agent 2025-09-12 20:59:11,003 - DEBUG - VRF ids for VN ctest-vn4-12420756: {} 2025-09-12 20:59:11,003 - DEBUG - ====Verifying data for ctest-policy1-38070567 in API_Server ====== 2025-09-12 20:59:11,003 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-12 20:59:11,008 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cb1b8ab4-19ec-4ab6-8ad7-acde986b1a60 2025-09-12 20:59:11,017 - DEBUG - Requesting: http://10.0.0.254:8082/project/4b7dba35-9885-41e5-ab58-40a4cc518d1a 2025-09-12 20:59:11,081 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/78f8434b-add0-4aae-a215-48006e597e6e 2025-09-12 20:59:11,089 - INFO - Verified policy ctest-policy1-38070567 in API Server, Result: True 2025-09-12 20:59:11,089 - INFO - Done with setup and verification, moving onto test .. 2025-09-12 20:59:11,095 - INFO - Deleting VN ctest-vn4-12420756 2025-09-12 20:59:11,195 - DEBUG - Response for deleting network () 2025-09-12 20:59:11,195 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9940ef26-7e20-4d03-9ebe-077a9dbaac26 2025-09-12 20:59:11,200 - DEBUG - Response Code: 404 2025-09-12 20:59:11,200 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-12 20:59:11,204 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cb1b8ab4-19ec-4ab6-8ad7-acde986b1a60 2025-09-12 20:59:11,258 - DEBUG - Requesting: http://10.0.0.254:8082/project/4b7dba35-9885-41e5-ab58-40a4cc518d1a 2025-09-12 20:59:11,324 - INFO - Validated that VN ctest-vn4-12420756 is not found in API Server 2025-09-12 20:59:11,333 - DEBUG - VN ctest-vn4-12420756 is not present in Agent 10.0.0.254 2025-09-12 20:59:11,334 - INFO - Validated that VN ctest-vn4-12420756 is not in any agent 2025-09-12 20:59:11,347 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12420756 info 2025-09-12 20:59:11,369 - INFO - Deleted policy ctest-policy1-38070567 2025-09-12 20:59:11,525 - DEBUG - policy ctest-policy1-38070567 is not found in API Server 2025-09-12 20:59:11,790 - DEBUG - No XMPP flaps were noticed during the test
2025-09-12 20:59:11,790 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-09-12 20:59:11,790 - INFO - -------------------------------------------------------------------------------- 2025-09-12 20:59:12,078 - DEBUG - No XMPP flaps were noticed during the test
2025-09-12 20:59:12,078 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-12 20:59:12,078 - INFO - -------------------------------------------------------------------------------- 2025-09-12 20:59:12,736 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33935674, ID : 4b7dba35-9885-41e5-ab58-40a4cc518d1a