2025-12-29 02:13:07,001 - INFO - Domain Default found not creating 2025-12-29 02:13:07,222 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-15004202 not found, creating it 2025-12-29 02:13:07,835 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-15004202, ID : f9ba0143-cf75-499e-ad17-3a2e2256b519 2025-12-29 02:13:09,325 - INFO - ================================================================================ 2025-12-29 02:13:09,326 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-29 02:13:09,584 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.242': '0'}} with 2025-12-29 02:13:09,585 - INFO - Initial checks done. Running the testcase now 2025-12-29 02:13:09,585 - INFO - 2025-12-29 02:13:09,585 - INFO - ================================================================================ 2025-12-29 02:13:09,585 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-29 02:13:09,585 - 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-29 02:13:09,883 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.242': '0'}} with 2025-12-29 02:13:09,883 - INFO - Initial checks done. Running the testcase now 2025-12-29 02:13:09,883 - INFO - 2025-12-29 02:13:10,237 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15004202:ctest-vn4-81996548, 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-15004202:ctest-vn4-81996548, 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-15004202:ctest-vn4-81996548, 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-15004202:ctest-vn4-81996548, 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-29 02:13:10,763 - DEBUG - Response for create_network : {'network': {'id': 'e557b0b9-4f21-4744-8aab-0d10dc4bc447', 'name': 'ctest-vn4-81996548', 'tenant_id': 'f9ba0143cf75499ead173a2e2256b519', 'project_id': 'f9ba0143cf75499ead173a2e2256b519', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15004202', 'ctest-vn4-81996548'], 'port_security_enabled': True, 'description': ''}} 2025-12-29 02:13:10,939 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e07a365e-0a5f-43a0-bbeb-e3d476e5dfd2', 'name': '', 'tenant_id': 'f9ba0143cf75499ead173a2e2256b519', 'network_id': 'e557b0b9-4f21-4744-8aab-0d10dc4bc447', 'ip_version': 4, 'cidr': '216.181.141.128/26', 'allocation_pools': [{'start': '216.181.141.130', 'end': '216.181.141.190'}], 'gateway_ip': '216.181.141.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.181.141.130', 'tags': [], 'project_id': 'f9ba0143cf75499ead173a2e2256b519'}} 2025-12-29 02:13:11,108 - DEBUG - Response for create_subnet : {'subnet': {'id': '8543948a-191f-4015-b62b-1a99ba4359c7', 'name': '', 'tenant_id': 'f9ba0143cf75499ead173a2e2256b519', 'network_id': 'e557b0b9-4f21-4744-8aab-0d10dc4bc447', 'ip_version': 6, 'cidr': '205c:8d5f:f536:4a5c:8f16:fe1a::/96', 'allocation_pools': [{'start': '205c:8d5f:f536:4a5c:8f16:fe1a:0:2', 'end': '205c:8d5f:f536:4a5c:8f16:fe1a:ffff:fffe'}], 'gateway_ip': '205c:8d5f:f536:4a5c:8f16:fe1a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205c:8d5f:f536:4a5c:8f16:fe1a:0:2', 'tags': [], 'project_id': 'f9ba0143cf75499ead173a2e2256b519'}} 2025-12-29 02:13:11,129 - INFO - Created VN ctest-vn4-81996548 2025-12-29 02:13:11,183 - DEBUG - VN ctest-vn4-81996548 UUID is e557b0b9-4f21-4744-8aab-0d10dc4bc447 2025-12-29 02:13:11,399 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e557b0b9-4f21-4744-8aab-0d10dc4bc447', 'name': 'ctest-vn4-81996548', 'tenant_id': 'f9ba0143cf75499ead173a2e2256b519', 'project_id': 'f9ba0143cf75499ead173a2e2256b519', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e07a365e-0a5f-43a0-bbeb-e3d476e5dfd2', '8543948a-191f-4015-b62b-1a99ba4359c7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15004202', 'ctest-vn4-81996548'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15004202', 'ctest-policy1-89508862']], 'subnet_ipam': [{'subnet_cidr': '216.181.141.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '205c:8d5f:f536:4a5c:8f16:fe1a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-29 02:13:11,559 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-29 02:13:11,867 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-29 02:13:11,909 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3fd6e016-3db4-43ff-829c-7c4cfc4af3f5 2025-12-29 02:13:11,920 - DEBUG - Requesting: http://10.0.0.19:8082/project/f9ba0143-cf75-499e-ad17-3a2e2256b519 2025-12-29 02:13:12,000 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e557b0b9-4f21-4744-8aab-0d10dc4bc447 2025-12-29 02:13:12,015 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e557b0b9-4f21-4744-8aab-0d10dc4bc447 2025-12-29 02:13:12,024 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/01e4c3eb-2bb0-42f5-a3e1-b148e70ef08d 2025-12-29 02:13:12,033 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/01e4c3eb-2bb0-42f5-a3e1-b148e70ef08d 2025-12-29 02:13:12,040 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/f6fe7e96-21f7-498a-992a-f6df6aefc9c7 2025-12-29 02:13:12,046 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 02:13:12,046 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e557b0b9-4f21-4744-8aab-0d10dc4bc447 2025-12-29 02:13:12,055 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/01e4c3eb-2bb0-42f5-a3e1-b148e70ef08d 2025-12-29 02:13:12,069 - INFO - Verified VN network id 11 for VN e557b0b9-4f21-4744-8aab-0d10dc4bc447 2025-12-29 02:13:12,069 - INFO - Verifications in API Server for VN ctest-vn4-81996548 passed 2025-12-29 02:13:12,069 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e557b0b9-4f21-4744-8aab-0d10dc4bc447 2025-12-29 02:13:12,080 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/01e4c3eb-2bb0-42f5-a3e1-b148e70ef08d 2025-12-29 02:13:12,087 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/01e4c3eb-2bb0-42f5-a3e1-b148e70ef08d 2025-12-29 02:13:12,095 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/f6fe7e96-21f7-498a-992a-f6df6aefc9c7 2025-12-29 02:13:12,107 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15004202:ctest-vn4-81996548', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15004202', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16525871667602343748', 'uuid-lslong': '9992094564318168135'}, 'enable': 'true', 'created': '2025-12-29T02:13:10', 'last-modified': '2025-12-29T02:13:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.743728'} 2025-12-29 02:13:12,113 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 02:13:12,113 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81996548 passed 2025-12-29 02:13:12,114 - DEBUG - ====Verifying policy data for ctest-vn4-81996548 in API_Server ====== 2025-12-29 02:13:12,114 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-29 02:13:12,120 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3fd6e016-3db4-43ff-829c-7c4cfc4af3f5 2025-12-29 02:13:12,141 - DEBUG - Requesting: http://10.0.0.19:8082/project/f9ba0143-cf75-499e-ad17-3a2e2256b519 2025-12-29 02:13:12,209 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e557b0b9-4f21-4744-8aab-0d10dc4bc447 2025-12-29 02:13:12,218 - DEBUG - ==>Verifying data for policy with id: a90e0d52-0dbc-43eb-a209-514520844632, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15004202', 'ctest-policy1-89508862'] 2025-12-29 02:13:12,219 - INFO - VN ctest-vn4-81996548 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-29 02:13:12,219 - DEBUG - Verifying the vn in opserver 2025-12-29 02:13:12,219 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15004202:ctest-vn4-81996548 virtual network link through opserver 10.0.0.19 2025-12-29 02:13:12,219 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-29 02:13:12,523 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-29 02:13:12,913 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15004202:ctest-vn4-81996548', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15004202:ctest-vn4-81996548?flat'} 2025-12-29 02:13:12,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15004202:ctest-vn4-81996548 is found in opserver 2025-12-29 02:13:12,924 - DEBUG - Do not have enough data to verify VN in agent 2025-12-29 02:13:12,930 - DEBUG - VRF ids for VN ctest-vn4-81996548: {} 2025-12-29 02:13:12,930 - DEBUG - ====Verifying data for ctest-policy1-89508862 in API_Server ====== 2025-12-29 02:13:12,930 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-29 02:13:12,944 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3fd6e016-3db4-43ff-829c-7c4cfc4af3f5 2025-12-29 02:13:12,954 - DEBUG - Requesting: http://10.0.0.19:8082/project/f9ba0143-cf75-499e-ad17-3a2e2256b519 2025-12-29 02:13:13,029 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/a90e0d52-0dbc-43eb-a209-514520844632 2025-12-29 02:13:13,038 - INFO - Verified policy ctest-policy1-89508862 in API Server, Result: True 2025-12-29 02:13:13,038 - INFO - Done with setup and verification, moving onto test .. 2025-12-29 02:13:13,046 - INFO - Deleting VN ctest-vn4-81996548 2025-12-29 02:13:13,175 - DEBUG - Response for deleting network () 2025-12-29 02:13:13,175 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/01e4c3eb-2bb0-42f5-a3e1-b148e70ef08d 2025-12-29 02:13:13,180 - DEBUG - Response Code: 404 2025-12-29 02:13:13,180 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-29 02:13:13,184 - DEBUG - Requesting: http://10.0.0.19:8082/domain/3fd6e016-3db4-43ff-829c-7c4cfc4af3f5 2025-12-29 02:13:13,235 - DEBUG - Requesting: http://10.0.0.19:8082/project/f9ba0143-cf75-499e-ad17-3a2e2256b519 2025-12-29 02:13:13,310 - INFO - Validated that VN ctest-vn4-81996548 is not found in API Server 2025-12-29 02:13:13,320 - DEBUG - VN ctest-vn4-81996548 is not present in Agent 10.0.0.19 2025-12-29 02:13:13,320 - INFO - Validated that VN ctest-vn4-81996548 is not in any agent 2025-12-29 02:13:13,335 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81996548 info 2025-12-29 02:13:13,362 - INFO - Deleted policy ctest-policy1-89508862 2025-12-29 02:13:13,535 - DEBUG - policy ctest-policy1-89508862 is not found in API Server 2025-12-29 02:13:13,791 - DEBUG - No XMPP flaps were noticed during the test