2025-08-20 18:18:28,197 - INFO - Domain Default found not creating 2025-08-20 18:18:28,349 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43915658 not found, creating it 2025-08-20 18:18:28,807 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43915658, ID : 39621db6-7b27-4243-87dd-32834f13beb3 2025-08-20 18:18:30,380 - INFO - ================================================================================ 2025-08-20 18:18:30,380 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 18:18:30,642 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-08-20 18:18:30,642 - INFO - Initial checks done. Running the testcase now 2025-08-20 18:18:30,642 - INFO - 2025-08-20 18:18:30,642 - INFO - ================================================================================ 2025-08-20 18:18:30,642 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 18:18:30,642 - 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-20 18:18:30,934 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-08-20 18:18:30,934 - INFO - Initial checks done. Running the testcase now 2025-08-20 18:18:30,934 - INFO - 2025-08-20 18:18:31,329 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43915658:ctest-vn4-37432838, 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-43915658:ctest-vn4-37432838, 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-43915658:ctest-vn4-37432838, 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-43915658:ctest-vn4-37432838, 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-20 18:18:31,895 - DEBUG - Response for create_network : {'network': {'id': '2c38e576-996f-4c9d-9daf-ca0e39697fc5', 'name': 'ctest-vn4-37432838', 'tenant_id': '39621db67b27424387dd32834f13beb3', 'project_id': '39621db67b27424387dd32834f13beb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43915658', 'ctest-vn4-37432838'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 18:18:32,124 - DEBUG - Response for create_subnet : {'subnet': {'id': '691be0cd-52cc-4070-9f69-7f3223df27eb', 'name': '', 'tenant_id': '39621db67b27424387dd32834f13beb3', 'network_id': '2c38e576-996f-4c9d-9daf-ca0e39697fc5', 'ip_version': 4, 'cidr': '135.112.34.0/26', 'allocation_pools': [{'start': '135.112.34.2', 'end': '135.112.34.62'}], 'gateway_ip': '135.112.34.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.112.34.2', 'tags': [], 'project_id': '39621db67b27424387dd32834f13beb3'}} 2025-08-20 18:18:32,279 - DEBUG - Response for create_subnet : {'subnet': {'id': '685d506a-73d9-40fb-9c92-7ba30595bf2f', 'name': '', 'tenant_id': '39621db67b27424387dd32834f13beb3', 'network_id': '2c38e576-996f-4c9d-9daf-ca0e39697fc5', 'ip_version': 6, 'cidr': '3c70:8e1e:d87a:a0f5:d41c:9425::/96', 'allocation_pools': [{'start': '3c70:8e1e:d87a:a0f5:d41c:9425:0:2', 'end': '3c70:8e1e:d87a:a0f5:d41c:9425:ffff:fffe'}], 'gateway_ip': '3c70:8e1e:d87a:a0f5:d41c:9425:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c70:8e1e:d87a:a0f5:d41c:9425:0:2', 'tags': [], 'project_id': '39621db67b27424387dd32834f13beb3'}} 2025-08-20 18:18:32,299 - INFO - Created VN ctest-vn4-37432838 2025-08-20 18:18:32,352 - DEBUG - VN ctest-vn4-37432838 UUID is 2c38e576-996f-4c9d-9daf-ca0e39697fc5 2025-08-20 18:18:32,567 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c38e576-996f-4c9d-9daf-ca0e39697fc5', 'name': 'ctest-vn4-37432838', 'tenant_id': '39621db67b27424387dd32834f13beb3', 'project_id': '39621db67b27424387dd32834f13beb3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['691be0cd-52cc-4070-9f69-7f3223df27eb', '685d506a-73d9-40fb-9c92-7ba30595bf2f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43915658', 'ctest-vn4-37432838'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43915658', 'ctest-policy1-36912493']], 'subnet_ipam': [{'subnet_cidr': '135.112.34.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c70:8e1e:d87a:a0f5:d41c:9425::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-20 18:18:32,728 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 18:18:33,063 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 18:18:33,092 - DEBUG - Requesting: http://10.0.0.65:8082/domain/eab089a9-0c4b-4f99-8746-a4187e503a3a 2025-08-20 18:18:33,105 - DEBUG - Requesting: http://10.0.0.65:8082/project/39621db6-7b27-4243-87dd-32834f13beb3 2025-08-20 18:18:33,180 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/2c38e576-996f-4c9d-9daf-ca0e39697fc5 2025-08-20 18:18:33,193 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/2c38e576-996f-4c9d-9daf-ca0e39697fc5 2025-08-20 18:18:33,204 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ad76eefe-de04-4c45-85ce-df05c7d90a9e 2025-08-20 18:18:33,211 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ad76eefe-de04-4c45-85ce-df05c7d90a9e 2025-08-20 18:18:33,217 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/fc46157c-ca5b-4e6d-9221-cdbef9619c26 2025-08-20 18:18:33,224 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 18:18:33,224 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/2c38e576-996f-4c9d-9daf-ca0e39697fc5 2025-08-20 18:18:33,234 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ad76eefe-de04-4c45-85ce-df05c7d90a9e 2025-08-20 18:18:33,248 - INFO - Verified VN network id 11 for VN 2c38e576-996f-4c9d-9daf-ca0e39697fc5 2025-08-20 18:18:33,248 - INFO - Verifications in API Server for VN ctest-vn4-37432838 passed 2025-08-20 18:18:33,248 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/2c38e576-996f-4c9d-9daf-ca0e39697fc5 2025-08-20 18:18:33,260 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ad76eefe-de04-4c45-85ce-df05c7d90a9e 2025-08-20 18:18:33,267 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ad76eefe-de04-4c45-85ce-df05c7d90a9e 2025-08-20 18:18:33,273 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/fc46157c-ca5b-4e6d-9221-cdbef9619c26 2025-08-20 18:18:33,286 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43915658:ctest-vn4-37432838', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43915658', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3186549033907735709', 'uuid-lslong': '11362522547320618949'}, 'enable': 'true', 'created': '2025-08-20T18:18:31', 'last-modified': '2025-08-20T18:18:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.751268'} 2025-08-20 18:18:33,293 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 18:18:33,294 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37432838 passed 2025-08-20 18:18:33,294 - DEBUG - ====Verifying policy data for ctest-vn4-37432838 in API_Server ====== 2025-08-20 18:18:33,294 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 18:18:33,299 - DEBUG - Requesting: http://10.0.0.65:8082/domain/eab089a9-0c4b-4f99-8746-a4187e503a3a 2025-08-20 18:18:33,312 - DEBUG - Requesting: http://10.0.0.65:8082/project/39621db6-7b27-4243-87dd-32834f13beb3 2025-08-20 18:18:33,388 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/2c38e576-996f-4c9d-9daf-ca0e39697fc5 2025-08-20 18:18:33,399 - DEBUG - ==>Verifying data for policy with id: b1ac0d25-989f-4663-a0b8-4958d4c9b6be, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43915658', 'ctest-policy1-36912493'] 2025-08-20 18:18:33,399 - INFO - VN ctest-vn4-37432838 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-20 18:18:33,399 - DEBUG - Verifying the vn in opserver 2025-08-20 18:18:33,399 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43915658:ctest-vn4-37432838 virtual network link through opserver 10.0.0.65 2025-08-20 18:18:33,399 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-20 18:18:33,732 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-20 18:18:33,788 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43915658:ctest-vn4-37432838', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43915658:ctest-vn4-37432838?flat'} 2025-08-20 18:18:33,788 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43915658:ctest-vn4-37432838 is found in opserver 2025-08-20 18:18:33,800 - DEBUG - Do not have enough data to verify VN in agent 2025-08-20 18:18:33,806 - DEBUG - VRF ids for VN ctest-vn4-37432838: {} 2025-08-20 18:18:33,806 - DEBUG - ====Verifying data for ctest-policy1-36912493 in API_Server ====== 2025-08-20 18:18:33,806 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 18:18:33,813 - DEBUG - Requesting: http://10.0.0.65:8082/domain/eab089a9-0c4b-4f99-8746-a4187e503a3a 2025-08-20 18:18:33,826 - DEBUG - Requesting: http://10.0.0.65:8082/project/39621db6-7b27-4243-87dd-32834f13beb3 2025-08-20 18:18:33,899 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/b1ac0d25-989f-4663-a0b8-4958d4c9b6be 2025-08-20 18:18:33,910 - INFO - Verified policy ctest-policy1-36912493 in API Server, Result: True 2025-08-20 18:18:33,910 - INFO - Done with setup and verification, moving onto test .. 2025-08-20 18:18:33,920 - INFO - Deleting VN ctest-vn4-37432838 2025-08-20 18:18:34,054 - DEBUG - Response for deleting network () 2025-08-20 18:18:34,054 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ad76eefe-de04-4c45-85ce-df05c7d90a9e 2025-08-20 18:18:34,060 - DEBUG - Response Code: 404 2025-08-20 18:18:34,060 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 18:18:34,065 - DEBUG - Requesting: http://10.0.0.65:8082/domain/eab089a9-0c4b-4f99-8746-a4187e503a3a 2025-08-20 18:18:34,121 - DEBUG - Requesting: http://10.0.0.65:8082/project/39621db6-7b27-4243-87dd-32834f13beb3 2025-08-20 18:18:34,195 - INFO - Validated that VN ctest-vn4-37432838 is not found in API Server 2025-08-20 18:18:34,207 - DEBUG - VN ctest-vn4-37432838 is not present in Agent 10.0.0.65 2025-08-20 18:18:34,207 - INFO - Validated that VN ctest-vn4-37432838 is not in any agent 2025-08-20 18:18:34,224 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37432838 info 2025-08-20 18:18:34,249 - INFO - Deleted policy ctest-policy1-36912493 2025-08-20 18:18:34,416 - DEBUG - policy ctest-policy1-36912493 is not found in API Server 2025-08-20 18:18:34,674 - DEBUG - No XMPP flaps were noticed during the test
2025-08-20 18:18:34,674 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-20 18:18:34,674 - INFO - -------------------------------------------------------------------------------- 2025-08-20 18:18:34,966 - DEBUG - No XMPP flaps were noticed during the test
2025-08-20 18:18:34,967 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-20 18:18:34,967 - INFO - -------------------------------------------------------------------------------- 2025-08-20 18:18:35,705 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43915658, ID : 39621db6-7b27-4243-87dd-32834f13beb3