2025-08-12 13:13:05,612 - INFO - Domain Default found not creating 2025-08-12 13:13:05,727 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47558506 not found, creating it 2025-08-12 13:13:06,190 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47558506, ID : 1c974428-bb5d-4625-9c64-c83533b762a4 2025-08-12 13:13:07,504 - INFO - ================================================================================ 2025-08-12 13:13:07,504 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 13:13:07,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-08-12 13:13:07,758 - INFO - Initial checks done. Running the testcase now 2025-08-12 13:13:07,758 - INFO - 2025-08-12 13:13:07,758 - INFO - ================================================================================ 2025-08-12 13:13:07,758 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 13:13:07,758 - 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-12 13:13:08,045 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-08-12 13:13:08,046 - INFO - Initial checks done. Running the testcase now 2025-08-12 13:13:08,046 - INFO - 2025-08-12 13:13:08,384 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47558506:ctest-vn4-00991591, 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-47558506:ctest-vn4-00991591, 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-47558506:ctest-vn4-00991591, 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-47558506:ctest-vn4-00991591, 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-12 13:13:08,887 - DEBUG - Response for create_network : {'network': {'id': '8f4425ec-7310-4ec1-bd78-853787a701f8', 'name': 'ctest-vn4-00991591', 'tenant_id': '1c974428bb5d46259c64c83533b762a4', 'project_id': '1c974428bb5d46259c64c83533b762a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47558506', 'ctest-vn4-00991591'], 'port_security_enabled': True, 'description': ''}} 2025-08-12 13:13:09,047 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b35bfddc-7347-4cdf-bcc6-d4f27c7e3c2a', 'name': '', 'tenant_id': '1c974428bb5d46259c64c83533b762a4', 'network_id': '8f4425ec-7310-4ec1-bd78-853787a701f8', 'ip_version': 4, 'cidr': '194.12.12.128/26', 'allocation_pools': [{'start': '194.12.12.130', 'end': '194.12.12.190'}], 'gateway_ip': '194.12.12.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.12.12.130', 'tags': [], 'project_id': '1c974428bb5d46259c64c83533b762a4'}} 2025-08-12 13:13:09,240 - DEBUG - Response for create_subnet : {'subnet': {'id': '52165baa-a5cd-4e5e-a582-787b11b5326b', 'name': '', 'tenant_id': '1c974428bb5d46259c64c83533b762a4', 'network_id': '8f4425ec-7310-4ec1-bd78-853787a701f8', 'ip_version': 6, 'cidr': '346e:dff5:265b:90a9:9c13:5eb::/96', 'allocation_pools': [{'start': '346e:dff5:265b:90a9:9c13:5eb:0:2', 'end': '346e:dff5:265b:90a9:9c13:5eb:ffff:fffe'}], 'gateway_ip': '346e:dff5:265b:90a9:9c13:5eb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '346e:dff5:265b:90a9:9c13:5eb:0:2', 'tags': [], 'project_id': '1c974428bb5d46259c64c83533b762a4'}} 2025-08-12 13:13:09,259 - INFO - Created VN ctest-vn4-00991591 2025-08-12 13:13:09,316 - DEBUG - VN ctest-vn4-00991591 UUID is 8f4425ec-7310-4ec1-bd78-853787a701f8 2025-08-12 13:13:09,500 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8f4425ec-7310-4ec1-bd78-853787a701f8', 'name': 'ctest-vn4-00991591', 'tenant_id': '1c974428bb5d46259c64c83533b762a4', 'project_id': '1c974428bb5d46259c64c83533b762a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b35bfddc-7347-4cdf-bcc6-d4f27c7e3c2a', '52165baa-a5cd-4e5e-a582-787b11b5326b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47558506', 'ctest-vn4-00991591'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47558506', 'ctest-policy1-96159142']], 'subnet_ipam': [{'subnet_cidr': '194.12.12.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '346e:dff5:265b:90a9:9c13:5eb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-12 13:13:09,668 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-12 13:13:09,956 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-12 13:13:09,980 - DEBUG - Requesting: http://10.0.0.33:8082/domain/852c61ce-0e88-4968-8901-2f234e599eae 2025-08-12 13:13:09,992 - DEBUG - Requesting: http://10.0.0.33:8082/project/1c974428-bb5d-4625-9c64-c83533b762a4 2025-08-12 13:13:10,068 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8f4425ec-7310-4ec1-bd78-853787a701f8 2025-08-12 13:13:10,080 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8f4425ec-7310-4ec1-bd78-853787a701f8 2025-08-12 13:13:10,093 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/119dfb89-7b08-43cf-b00f-d5631deb0ee3 2025-08-12 13:13:10,101 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/119dfb89-7b08-43cf-b00f-d5631deb0ee3 2025-08-12 13:13:10,109 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/feab6378-69b8-4858-abb1-52246e6c2621 2025-08-12 13:13:10,116 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 13:13:10,116 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8f4425ec-7310-4ec1-bd78-853787a701f8 2025-08-12 13:13:10,126 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/119dfb89-7b08-43cf-b00f-d5631deb0ee3 2025-08-12 13:13:10,138 - INFO - Verified VN network id 12 for VN 8f4425ec-7310-4ec1-bd78-853787a701f8 2025-08-12 13:13:10,138 - INFO - Verifications in API Server for VN ctest-vn4-00991591 passed 2025-08-12 13:13:10,138 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8f4425ec-7310-4ec1-bd78-853787a701f8 2025-08-12 13:13:10,147 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/119dfb89-7b08-43cf-b00f-d5631deb0ee3 2025-08-12 13:13:10,153 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/119dfb89-7b08-43cf-b00f-d5631deb0ee3 2025-08-12 13:13:10,159 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/feab6378-69b8-4858-abb1-52246e6c2621 2025-08-12 13:13:10,170 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47558506:ctest-vn4-00991591', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47558506', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10323417943312977601', 'uuid-lslong': '13652808743919223288'}, 'enable': 'true', 'created': '2025-08-12T13:13:08', 'last-modified': '2025-08-12T13:13:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.702245'} 2025-08-12 13:13:10,176 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 13:13:10,176 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00991591 passed 2025-08-12 13:13:10,176 - DEBUG - ====Verifying policy data for ctest-vn4-00991591 in API_Server ====== 2025-08-12 13:13:10,176 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-12 13:13:10,180 - DEBUG - Requesting: http://10.0.0.33:8082/domain/852c61ce-0e88-4968-8901-2f234e599eae 2025-08-12 13:13:10,190 - DEBUG - Requesting: http://10.0.0.33:8082/project/1c974428-bb5d-4625-9c64-c83533b762a4 2025-08-12 13:13:10,259 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8f4425ec-7310-4ec1-bd78-853787a701f8 2025-08-12 13:13:10,269 - DEBUG - ==>Verifying data for policy with id: 87a617fb-a52b-486a-99f3-4bdeb69bb137, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47558506', 'ctest-policy1-96159142'] 2025-08-12 13:13:10,269 - INFO - VN ctest-vn4-00991591 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-12 13:13:10,269 - DEBUG - Verifying the vn in opserver 2025-08-12 13:13:10,269 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47558506:ctest-vn4-00991591 virtual network link through opserver 10.0.0.33 2025-08-12 13:13:10,269 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-12 13:13:10,556 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-12 13:13:10,604 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47558506:ctest-vn4-00991591', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47558506:ctest-vn4-00991591?flat'} 2025-08-12 13:13:10,605 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47558506:ctest-vn4-00991591 is found in opserver 2025-08-12 13:13:10,615 - DEBUG - Do not have enough data to verify VN in agent 2025-08-12 13:13:10,619 - DEBUG - VRF ids for VN ctest-vn4-00991591: {} 2025-08-12 13:13:10,620 - DEBUG - ====Verifying data for ctest-policy1-96159142 in API_Server ====== 2025-08-12 13:13:10,620 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-12 13:13:10,625 - DEBUG - Requesting: http://10.0.0.33:8082/domain/852c61ce-0e88-4968-8901-2f234e599eae 2025-08-12 13:13:10,635 - DEBUG - Requesting: http://10.0.0.33:8082/project/1c974428-bb5d-4625-9c64-c83533b762a4 2025-08-12 13:13:10,705 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/87a617fb-a52b-486a-99f3-4bdeb69bb137 2025-08-12 13:13:10,714 - INFO - Verified policy ctest-policy1-96159142 in API Server, Result: True 2025-08-12 13:13:10,715 - INFO - Done with setup and verification, moving onto test .. 2025-08-12 13:13:10,721 - INFO - Deleting VN ctest-vn4-00991591 2025-08-12 13:13:10,825 - DEBUG - Response for deleting network () 2025-08-12 13:13:10,825 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/119dfb89-7b08-43cf-b00f-d5631deb0ee3 2025-08-12 13:13:10,829 - DEBUG - Response Code: 404 2025-08-12 13:13:10,829 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-12 13:13:10,833 - DEBUG - Requesting: http://10.0.0.33:8082/domain/852c61ce-0e88-4968-8901-2f234e599eae 2025-08-12 13:13:10,885 - DEBUG - Requesting: http://10.0.0.33:8082/project/1c974428-bb5d-4625-9c64-c83533b762a4 2025-08-12 13:13:10,955 - INFO - Validated that VN ctest-vn4-00991591 is not found in API Server 2025-08-12 13:13:10,965 - DEBUG - VN ctest-vn4-00991591 is not present in Agent 10.0.0.33 2025-08-12 13:13:10,965 - INFO - Validated that VN ctest-vn4-00991591 is not in any agent 2025-08-12 13:13:10,979 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00991591 info 2025-08-12 13:13:10,999 - INFO - Deleted policy ctest-policy1-96159142 2025-08-12 13:13:11,164 - DEBUG - policy ctest-policy1-96159142 is not found in API Server 2025-08-12 13:13:11,417 - DEBUG - No XMPP flaps were noticed during the test
2025-08-12 13:13:11,417 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-12 13:13:11,417 - INFO - -------------------------------------------------------------------------------- 2025-08-12 13:13:11,709 - DEBUG - No XMPP flaps were noticed during the test
2025-08-12 13:13:11,709 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-12 13:13:11,709 - INFO - -------------------------------------------------------------------------------- 2025-08-12 13:13:12,340 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-47558506, ID : 1c974428-bb5d-4625-9c64-c83533b762a4