2025-11-04 08:58:19,593 - INFO - Domain Default found not creating 2025-11-04 08:58:19,744 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-23546221 not found, creating it 2025-11-04 08:58:20,188 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-23546221, ID : abf78e8a-4df7-49d1-857f-f7faa2be1dea 2025-11-04 08:58:21,772 - INFO - ================================================================================ 2025-11-04 08:58:21,773 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-04 08:58:22,028 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-11-04 08:58:22,028 - INFO - Initial checks done. Running the testcase now 2025-11-04 08:58:22,028 - INFO - 2025-11-04 08:58:22,028 - INFO - ================================================================================ 2025-11-04 08:58:22,028 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-04 08:58:22,028 - 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-11-04 08:58:22,316 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-11-04 08:58:22,316 - INFO - Initial checks done. Running the testcase now 2025-11-04 08:58:22,316 - INFO - 2025-11-04 08:58:22,710 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23546221:ctest-vn4-35695344, 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-23546221:ctest-vn4-35695344, 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-23546221:ctest-vn4-35695344, 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-23546221:ctest-vn4-35695344, 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-11-04 08:58:23,231 - DEBUG - Response for create_network : {'network': {'id': 'd44ca2d0-1555-4639-a145-6eefdee20fd1', 'name': 'ctest-vn4-35695344', 'tenant_id': 'abf78e8a4df749d1857ff7faa2be1dea', 'project_id': 'abf78e8a4df749d1857ff7faa2be1dea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23546221', 'ctest-vn4-35695344'], 'port_security_enabled': True, 'description': ''}} 2025-11-04 08:58:23,417 - DEBUG - Response for create_subnet : {'subnet': {'id': '158adb1d-4fad-46f4-9160-45e8b06a776a', 'name': '', 'tenant_id': 'abf78e8a4df749d1857ff7faa2be1dea', 'network_id': 'd44ca2d0-1555-4639-a145-6eefdee20fd1', 'ip_version': 4, 'cidr': '83.166.24.192/26', 'allocation_pools': [{'start': '83.166.24.194', 'end': '83.166.24.254'}], 'gateway_ip': '83.166.24.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.166.24.194', 'tags': [], 'project_id': 'abf78e8a4df749d1857ff7faa2be1dea'}} 2025-11-04 08:58:23,598 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a3270db-51eb-4599-8124-54cc0b93fa32', 'name': '', 'tenant_id': 'abf78e8a4df749d1857ff7faa2be1dea', 'network_id': 'd44ca2d0-1555-4639-a145-6eefdee20fd1', 'ip_version': 6, 'cidr': '2da3:add:3df5:ffbf:efec:7fea::/96', 'allocation_pools': [{'start': '2da3:add:3df5:ffbf:efec:7fea:0:2', 'end': '2da3:add:3df5:ffbf:efec:7fea:ffff:fffe'}], 'gateway_ip': '2da3:add:3df5:ffbf:efec:7fea:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2da3:add:3df5:ffbf:efec:7fea:0:2', 'tags': [], 'project_id': 'abf78e8a4df749d1857ff7faa2be1dea'}} 2025-11-04 08:58:23,618 - INFO - Created VN ctest-vn4-35695344 2025-11-04 08:58:23,671 - DEBUG - VN ctest-vn4-35695344 UUID is d44ca2d0-1555-4639-a145-6eefdee20fd1 2025-11-04 08:58:23,871 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd44ca2d0-1555-4639-a145-6eefdee20fd1', 'name': 'ctest-vn4-35695344', 'tenant_id': 'abf78e8a4df749d1857ff7faa2be1dea', 'project_id': 'abf78e8a4df749d1857ff7faa2be1dea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['158adb1d-4fad-46f4-9160-45e8b06a776a', '9a3270db-51eb-4599-8124-54cc0b93fa32'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23546221', 'ctest-vn4-35695344'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23546221', 'ctest-policy1-02252629']], 'subnet_ipam': [{'subnet_cidr': '83.166.24.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2da3:add:3df5:ffbf:efec:7fea::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-04 08:58:24,031 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-04 08:58:24,361 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-04 08:58:24,452 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6f075c9-7c74-4650-9969-b3f1bf15d236 2025-11-04 08:58:24,463 - DEBUG - Requesting: http://10.0.0.48:8082/project/abf78e8a-4df7-49d1-857f-f7faa2be1dea 2025-11-04 08:58:24,532 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d44ca2d0-1555-4639-a145-6eefdee20fd1 2025-11-04 08:58:24,543 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d44ca2d0-1555-4639-a145-6eefdee20fd1 2025-11-04 08:58:24,552 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/180edd34-6bb7-4e0d-b89b-1f9ab2617c2d 2025-11-04 08:58:24,557 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/180edd34-6bb7-4e0d-b89b-1f9ab2617c2d 2025-11-04 08:58:24,563 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/c421515a-f5b8-47e0-a2f7-88e9f0944da3 2025-11-04 08:58:24,568 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 08:58:24,568 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d44ca2d0-1555-4639-a145-6eefdee20fd1 2025-11-04 08:58:24,576 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/180edd34-6bb7-4e0d-b89b-1f9ab2617c2d 2025-11-04 08:58:24,587 - INFO - Verified VN network id 11 for VN d44ca2d0-1555-4639-a145-6eefdee20fd1 2025-11-04 08:58:24,587 - INFO - Verifications in API Server for VN ctest-vn4-35695344 passed 2025-11-04 08:58:24,587 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d44ca2d0-1555-4639-a145-6eefdee20fd1 2025-11-04 08:58:24,595 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/180edd34-6bb7-4e0d-b89b-1f9ab2617c2d 2025-11-04 08:58:24,600 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/180edd34-6bb7-4e0d-b89b-1f9ab2617c2d 2025-11-04 08:58:24,605 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/c421515a-f5b8-47e0-a2f7-88e9f0944da3 2025-11-04 08:58:24,615 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23546221:ctest-vn4-35695344', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23546221', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15297781048865539641', 'uuid-lslong': '11620816390015029201'}, 'enable': 'true', 'created': '2025-11-04T08:58:23', 'last-modified': '2025-11-04T08:58:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.773286'} 2025-11-04 08:58:24,620 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-04 08:58:24,621 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-35695344 passed 2025-11-04 08:58:24,621 - DEBUG - ====Verifying policy data for ctest-vn4-35695344 in API_Server ====== 2025-11-04 08:58:24,621 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-04 08:58:24,625 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6f075c9-7c74-4650-9969-b3f1bf15d236 2025-11-04 08:58:24,635 - DEBUG - Requesting: http://10.0.0.48:8082/project/abf78e8a-4df7-49d1-857f-f7faa2be1dea 2025-11-04 08:58:24,707 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/d44ca2d0-1555-4639-a145-6eefdee20fd1 2025-11-04 08:58:24,716 - DEBUG - ==>Verifying data for policy with id: e22215d2-ec2a-4499-9f30-4ca67f929b8e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23546221', 'ctest-policy1-02252629'] 2025-11-04 08:58:24,716 - INFO - VN ctest-vn4-35695344 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-04 08:58:24,717 - DEBUG - Verifying the vn in opserver 2025-11-04 08:58:24,717 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23546221:ctest-vn4-35695344 virtual network link through opserver 10.0.0.48 2025-11-04 08:58:24,717 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-11-04 08:58:25,047 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-11-04 08:58:25,102 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23546221:ctest-vn4-35695344', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23546221:ctest-vn4-35695344?flat'} 2025-11-04 08:58:25,102 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23546221:ctest-vn4-35695344 is found in opserver 2025-11-04 08:58:25,111 - DEBUG - Do not have enough data to verify VN in agent 2025-11-04 08:58:25,115 - DEBUG - VRF ids for VN ctest-vn4-35695344: {} 2025-11-04 08:58:25,115 - DEBUG - ====Verifying data for ctest-policy1-02252629 in API_Server ====== 2025-11-04 08:58:25,115 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-04 08:58:25,121 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6f075c9-7c74-4650-9969-b3f1bf15d236 2025-11-04 08:58:25,130 - DEBUG - Requesting: http://10.0.0.48:8082/project/abf78e8a-4df7-49d1-857f-f7faa2be1dea 2025-11-04 08:58:25,202 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/e22215d2-ec2a-4499-9f30-4ca67f929b8e 2025-11-04 08:58:25,214 - INFO - Verified policy ctest-policy1-02252629 in API Server, Result: True 2025-11-04 08:58:25,214 - INFO - Done with setup and verification, moving onto test .. 2025-11-04 08:58:25,224 - INFO - Deleting VN ctest-vn4-35695344 2025-11-04 08:58:25,330 - DEBUG - Response for deleting network () 2025-11-04 08:58:25,330 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/180edd34-6bb7-4e0d-b89b-1f9ab2617c2d 2025-11-04 08:58:25,335 - DEBUG - Response Code: 404 2025-11-04 08:58:25,335 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-11-04 08:58:25,339 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6f075c9-7c74-4650-9969-b3f1bf15d236 2025-11-04 08:58:25,395 - DEBUG - Requesting: http://10.0.0.48:8082/project/abf78e8a-4df7-49d1-857f-f7faa2be1dea 2025-11-04 08:58:25,464 - INFO - Validated that VN ctest-vn4-35695344 is not found in API Server 2025-11-04 08:58:25,474 - DEBUG - VN ctest-vn4-35695344 is not present in Agent 10.0.0.48 2025-11-04 08:58:25,474 - INFO - Validated that VN ctest-vn4-35695344 is not in any agent 2025-11-04 08:58:25,486 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-35695344 info 2025-11-04 08:58:25,508 - INFO - Deleted policy ctest-policy1-02252629 2025-11-04 08:58:25,674 - DEBUG - policy ctest-policy1-02252629 is not found in API Server 2025-11-04 08:58:25,931 - DEBUG - No XMPP flaps were noticed during the test
2025-11-04 08:58:25,931 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-11-04 08:58:25,931 - INFO - -------------------------------------------------------------------------------- 2025-11-04 08:58:26,224 - DEBUG - No XMPP flaps were noticed during the test
2025-11-04 08:58:26,224 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-04 08:58:26,224 - INFO - -------------------------------------------------------------------------------- 2025-11-04 08:58:26,937 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-23546221, ID : abf78e8a-4df7-49d1-857f-f7faa2be1dea