2025-12-25 02:22:31,063 - INFO - Domain Default found not creating 2025-12-25 02:22:31,261 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48303988 not found, creating it 2025-12-25 02:22:31,751 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48303988, ID : a3d5af6d-c3e7-4c4f-900a-c909b136bc1b 2025-12-25 02:22:33,395 - INFO - ================================================================================ 2025-12-25 02:22:33,395 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-25 02:22:33,653 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.129': '0'}} with 2025-12-25 02:22:33,653 - INFO - Initial checks done. Running the testcase now 2025-12-25 02:22:33,653 - INFO - 2025-12-25 02:22:33,653 - INFO - ================================================================================ 2025-12-25 02:22:33,653 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-25 02:22:33,653 - 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-12-25 02:22:33,962 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.129': '0'}} with 2025-12-25 02:22:33,962 - INFO - Initial checks done. Running the testcase now 2025-12-25 02:22:33,962 - INFO - 2025-12-25 02:22:34,380 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48303988:ctest-vn4-23081605, 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-48303988:ctest-vn4-23081605, 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-48303988:ctest-vn4-23081605, 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-48303988:ctest-vn4-23081605, 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-12-25 02:22:34,908 - DEBUG - Response for create_network : {'network': {'id': '616d024a-979b-4904-aeb1-c390fdebf0bf', 'name': 'ctest-vn4-23081605', 'tenant_id': 'a3d5af6dc3e74c4f900ac909b136bc1b', 'project_id': 'a3d5af6dc3e74c4f900ac909b136bc1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48303988', 'ctest-vn4-23081605'], 'port_security_enabled': True, 'description': ''}} 2025-12-25 02:22:35,088 - DEBUG - Response for create_subnet : {'subnet': {'id': 'acdf5f4d-df2e-4340-9aea-56289ae67917', 'name': '', 'tenant_id': 'a3d5af6dc3e74c4f900ac909b136bc1b', 'network_id': '616d024a-979b-4904-aeb1-c390fdebf0bf', 'ip_version': 4, 'cidr': '45.203.61.128/26', 'allocation_pools': [{'start': '45.203.61.130', 'end': '45.203.61.190'}], 'gateway_ip': '45.203.61.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.203.61.130', 'tags': [], 'project_id': 'a3d5af6dc3e74c4f900ac909b136bc1b'}} 2025-12-25 02:22:35,350 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a05f16eb-4d57-44fe-a44a-a615248ffaa7', 'name': '', 'tenant_id': 'a3d5af6dc3e74c4f900ac909b136bc1b', 'network_id': '616d024a-979b-4904-aeb1-c390fdebf0bf', 'ip_version': 6, 'cidr': '2ebf:625f:2219:a70:b11e:f0f2::/96', 'allocation_pools': [{'start': '2ebf:625f:2219:a70:b11e:f0f2:0:2', 'end': '2ebf:625f:2219:a70:b11e:f0f2:ffff:fffe'}], 'gateway_ip': '2ebf:625f:2219:a70:b11e:f0f2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ebf:625f:2219:a70:b11e:f0f2:0:2', 'tags': [], 'project_id': 'a3d5af6dc3e74c4f900ac909b136bc1b'}} 2025-12-25 02:22:35,370 - INFO - Created VN ctest-vn4-23081605 2025-12-25 02:22:35,424 - DEBUG - VN ctest-vn4-23081605 UUID is 616d024a-979b-4904-aeb1-c390fdebf0bf 2025-12-25 02:22:35,644 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '616d024a-979b-4904-aeb1-c390fdebf0bf', 'name': 'ctest-vn4-23081605', 'tenant_id': 'a3d5af6dc3e74c4f900ac909b136bc1b', 'project_id': 'a3d5af6dc3e74c4f900ac909b136bc1b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['acdf5f4d-df2e-4340-9aea-56289ae67917', 'a05f16eb-4d57-44fe-a44a-a615248ffaa7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48303988', 'ctest-vn4-23081605'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48303988', 'ctest-policy1-64444623']], 'subnet_ipam': [{'subnet_cidr': '45.203.61.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ebf:625f:2219:a70:b11e:f0f2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-25 02:22:35,804 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-25 02:22:36,148 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-25 02:22:36,185 - DEBUG - Requesting: http://10.0.0.141:8082/domain/60f31469-0599-4b2a-aaa6-121f81188dcf 2025-12-25 02:22:36,197 - DEBUG - Requesting: http://10.0.0.141:8082/project/a3d5af6d-c3e7-4c4f-900a-c909b136bc1b 2025-12-25 02:22:36,271 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/616d024a-979b-4904-aeb1-c390fdebf0bf 2025-12-25 02:22:36,283 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/616d024a-979b-4904-aeb1-c390fdebf0bf 2025-12-25 02:22:36,295 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/aead9c85-7eca-4293-8a97-dd3a3a8bb1ca 2025-12-25 02:22:36,302 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/aead9c85-7eca-4293-8a97-dd3a3a8bb1ca 2025-12-25 02:22:36,309 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/89c8f665-1d27-465b-8266-eb8f7a768367 2025-12-25 02:22:36,315 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-25 02:22:36,315 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/616d024a-979b-4904-aeb1-c390fdebf0bf 2025-12-25 02:22:36,324 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/aead9c85-7eca-4293-8a97-dd3a3a8bb1ca 2025-12-25 02:22:36,338 - INFO - Verified VN network id 11 for VN 616d024a-979b-4904-aeb1-c390fdebf0bf 2025-12-25 02:22:36,338 - INFO - Verifications in API Server for VN ctest-vn4-23081605 passed 2025-12-25 02:22:36,338 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/616d024a-979b-4904-aeb1-c390fdebf0bf 2025-12-25 02:22:36,347 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/aead9c85-7eca-4293-8a97-dd3a3a8bb1ca 2025-12-25 02:22:36,356 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/aead9c85-7eca-4293-8a97-dd3a3a8bb1ca 2025-12-25 02:22:36,364 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/89c8f665-1d27-465b-8266-eb8f7a768367 2025-12-25 02:22:36,375 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48303988:ctest-vn4-23081605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48303988', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7020269913534843140', 'uuid-lslong': '12588057460980052159'}, 'enable': 'true', 'created': '2025-12-25T02:22:34', 'last-modified': '2025-12-25T02:22:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.760209'} 2025-12-25 02:22:36,382 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-25 02:22:36,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23081605 passed 2025-12-25 02:22:36,382 - DEBUG - ====Verifying policy data for ctest-vn4-23081605 in API_Server ====== 2025-12-25 02:22:36,382 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-25 02:22:36,389 - DEBUG - Requesting: http://10.0.0.141:8082/domain/60f31469-0599-4b2a-aaa6-121f81188dcf 2025-12-25 02:22:36,400 - DEBUG - Requesting: http://10.0.0.141:8082/project/a3d5af6d-c3e7-4c4f-900a-c909b136bc1b 2025-12-25 02:22:36,471 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/616d024a-979b-4904-aeb1-c390fdebf0bf 2025-12-25 02:22:36,481 - DEBUG - ==>Verifying data for policy with id: 9dd97a2f-80a9-4270-9a6d-5afdb5cadb2a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48303988', 'ctest-policy1-64444623'] 2025-12-25 02:22:36,481 - INFO - VN ctest-vn4-23081605 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-25 02:22:36,481 - DEBUG - Verifying the vn in opserver 2025-12-25 02:22:36,481 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48303988:ctest-vn4-23081605 virtual network link through opserver 10.0.0.141 2025-12-25 02:22:36,481 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-25 02:22:36,820 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-25 02:22:36,892 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48303988:ctest-vn4-23081605', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48303988:ctest-vn4-23081605?flat'} 2025-12-25 02:22:36,892 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48303988:ctest-vn4-23081605 is found in opserver 2025-12-25 02:22:36,903 - DEBUG - Do not have enough data to verify VN in agent 2025-12-25 02:22:36,907 - DEBUG - VRF ids for VN ctest-vn4-23081605: {} 2025-12-25 02:22:36,908 - DEBUG - ====Verifying data for ctest-policy1-64444623 in API_Server ====== 2025-12-25 02:22:36,908 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-25 02:22:36,913 - DEBUG - Requesting: http://10.0.0.141:8082/domain/60f31469-0599-4b2a-aaa6-121f81188dcf 2025-12-25 02:22:36,926 - DEBUG - Requesting: http://10.0.0.141:8082/project/a3d5af6d-c3e7-4c4f-900a-c909b136bc1b 2025-12-25 02:22:37,002 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/9dd97a2f-80a9-4270-9a6d-5afdb5cadb2a 2025-12-25 02:22:37,012 - INFO - Verified policy ctest-policy1-64444623 in API Server, Result: True 2025-12-25 02:22:37,012 - INFO - Done with setup and verification, moving onto test .. 2025-12-25 02:22:37,037 - INFO - Deleting VN ctest-vn4-23081605 2025-12-25 02:22:37,169 - DEBUG - Response for deleting network () 2025-12-25 02:22:37,170 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/aead9c85-7eca-4293-8a97-dd3a3a8bb1ca 2025-12-25 02:22:37,175 - DEBUG - Response Code: 404 2025-12-25 02:22:37,175 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-25 02:22:37,180 - DEBUG - Requesting: http://10.0.0.141:8082/domain/60f31469-0599-4b2a-aaa6-121f81188dcf 2025-12-25 02:22:37,233 - DEBUG - Requesting: http://10.0.0.141:8082/project/a3d5af6d-c3e7-4c4f-900a-c909b136bc1b 2025-12-25 02:22:37,303 - INFO - Validated that VN ctest-vn4-23081605 is not found in API Server 2025-12-25 02:22:37,312 - DEBUG - VN ctest-vn4-23081605 is not present in Agent 10.0.0.141 2025-12-25 02:22:37,312 - INFO - Validated that VN ctest-vn4-23081605 is not in any agent 2025-12-25 02:22:37,325 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23081605 info 2025-12-25 02:22:37,348 - INFO - Deleted policy ctest-policy1-64444623 2025-12-25 02:22:37,516 - DEBUG - policy ctest-policy1-64444623 is not found in API Server 2025-12-25 02:22:37,774 - DEBUG - No XMPP flaps were noticed during the test
2025-12-25 02:22:37,774 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-25 02:22:37,774 - INFO - -------------------------------------------------------------------------------- 2025-12-25 02:22:38,069 - DEBUG - No XMPP flaps were noticed during the test
2025-12-25 02:22:38,069 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-25 02:22:38,069 - INFO - -------------------------------------------------------------------------------- 2025-12-25 02:22:38,809 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48303988, ID : a3d5af6d-c3e7-4c4f-900a-c909b136bc1b