2025-10-31 05:31:01,676 - INFO - Domain Default found not creating 2025-10-31 05:31:01,836 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38696259 not found, creating it 2025-10-31 05:31:02,289 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38696259, ID : c7a3b4ff-0a22-4f19-8604-f26a554d4a72 2025-10-31 05:31:03,837 - INFO - ================================================================================ 2025-10-31 05:31:03,837 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 05:31:04,088 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-31 05:31:04,089 - INFO - Initial checks done. Running the testcase now 2025-10-31 05:31:04,089 - INFO - 2025-10-31 05:31:04,089 - INFO - ================================================================================ 2025-10-31 05:31:04,089 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 05:31:04,089 - 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-10-31 05:31:04,376 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-31 05:31:04,377 - INFO - Initial checks done. Running the testcase now 2025-10-31 05:31:04,377 - INFO - 2025-10-31 05:31:04,779 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38696259:ctest-vn4-99836814, 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-38696259:ctest-vn4-99836814, 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-38696259:ctest-vn4-99836814, 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-38696259:ctest-vn4-99836814, 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-10-31 05:31:05,295 - DEBUG - Response for create_network : {'network': {'id': 'f0b8ead1-d2ef-476d-991f-0f3a1285fcad', 'name': 'ctest-vn4-99836814', 'tenant_id': 'c7a3b4ff0a224f198604f26a554d4a72', 'project_id': 'c7a3b4ff0a224f198604f26a554d4a72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38696259', 'ctest-vn4-99836814'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 05:31:05,480 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a74b8815-11f2-41e0-b0a8-a3830e78abce', 'name': '', 'tenant_id': 'c7a3b4ff0a224f198604f26a554d4a72', 'network_id': 'f0b8ead1-d2ef-476d-991f-0f3a1285fcad', 'ip_version': 4, 'cidr': '9.139.204.64/26', 'allocation_pools': [{'start': '9.139.204.66', 'end': '9.139.204.126'}], 'gateway_ip': '9.139.204.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.139.204.66', 'tags': [], 'project_id': 'c7a3b4ff0a224f198604f26a554d4a72'}} 2025-10-31 05:31:05,696 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd37112de-eef8-48d3-8def-6330b551cee4', 'name': '', 'tenant_id': 'c7a3b4ff0a224f198604f26a554d4a72', 'network_id': 'f0b8ead1-d2ef-476d-991f-0f3a1285fcad', 'ip_version': 6, 'cidr': '2aac:e0e8:ccb6:cd44:b892:db5e::/96', 'allocation_pools': [{'start': '2aac:e0e8:ccb6:cd44:b892:db5e:0:2', 'end': '2aac:e0e8:ccb6:cd44:b892:db5e:ffff:fffe'}], 'gateway_ip': '2aac:e0e8:ccb6:cd44:b892:db5e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2aac:e0e8:ccb6:cd44:b892:db5e:0:2', 'tags': [], 'project_id': 'c7a3b4ff0a224f198604f26a554d4a72'}} 2025-10-31 05:31:05,719 - INFO - Created VN ctest-vn4-99836814 2025-10-31 05:31:05,772 - DEBUG - VN ctest-vn4-99836814 UUID is f0b8ead1-d2ef-476d-991f-0f3a1285fcad 2025-10-31 05:31:05,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f0b8ead1-d2ef-476d-991f-0f3a1285fcad', 'name': 'ctest-vn4-99836814', 'tenant_id': 'c7a3b4ff0a224f198604f26a554d4a72', 'project_id': 'c7a3b4ff0a224f198604f26a554d4a72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a74b8815-11f2-41e0-b0a8-a3830e78abce', 'd37112de-eef8-48d3-8def-6330b551cee4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38696259', 'ctest-vn4-99836814'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38696259', 'ctest-policy1-86857545']], 'subnet_ipam': [{'subnet_cidr': '9.139.204.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2aac:e0e8:ccb6:cd44:b892:db5e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 05:31:06,152 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 05:31:06,486 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 05:31:06,514 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c2a0028b-e580-4f6b-9ad2-0a4ba471f8c9 2025-10-31 05:31:06,527 - DEBUG - Requesting: http://10.0.0.254:8082/project/c7a3b4ff-0a22-4f19-8604-f26a554d4a72 2025-10-31 05:31:06,598 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f0b8ead1-d2ef-476d-991f-0f3a1285fcad 2025-10-31 05:31:06,609 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f0b8ead1-d2ef-476d-991f-0f3a1285fcad 2025-10-31 05:31:06,618 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/203b195b-bb35-4a01-8750-bd2037e301c6 2025-10-31 05:31:06,624 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/203b195b-bb35-4a01-8750-bd2037e301c6 2025-10-31 05:31:06,629 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0194f91f-72db-4371-b4d1-f369476b2829 2025-10-31 05:31:06,635 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 05:31:06,635 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f0b8ead1-d2ef-476d-991f-0f3a1285fcad 2025-10-31 05:31:06,644 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/203b195b-bb35-4a01-8750-bd2037e301c6 2025-10-31 05:31:06,658 - INFO - Verified VN network id 11 for VN f0b8ead1-d2ef-476d-991f-0f3a1285fcad 2025-10-31 05:31:06,658 - INFO - Verifications in API Server for VN ctest-vn4-99836814 passed 2025-10-31 05:31:06,658 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f0b8ead1-d2ef-476d-991f-0f3a1285fcad 2025-10-31 05:31:06,668 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/203b195b-bb35-4a01-8750-bd2037e301c6 2025-10-31 05:31:06,674 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/203b195b-bb35-4a01-8750-bd2037e301c6 2025-10-31 05:31:06,681 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0194f91f-72db-4371-b4d1-f369476b2829 2025-10-31 05:31:06,691 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38696259:ctest-vn4-99836814', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38696259', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17345872151725426541', 'uuid-lslong': '11033554354174295213'}, 'enable': 'true', 'created': '2025-10-31T05:31:05', 'last-modified': '2025-10-31T05:31:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733407'} 2025-10-31 05:31:06,697 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 05:31:06,697 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99836814 passed 2025-10-31 05:31:06,697 - DEBUG - ====Verifying policy data for ctest-vn4-99836814 in API_Server ====== 2025-10-31 05:31:06,697 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 05:31:06,702 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c2a0028b-e580-4f6b-9ad2-0a4ba471f8c9 2025-10-31 05:31:06,713 - DEBUG - Requesting: http://10.0.0.254:8082/project/c7a3b4ff-0a22-4f19-8604-f26a554d4a72 2025-10-31 05:31:06,782 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f0b8ead1-d2ef-476d-991f-0f3a1285fcad 2025-10-31 05:31:06,791 - DEBUG - ==>Verifying data for policy with id: 092a1b66-0c51-43f8-b571-8242278f371b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38696259', 'ctest-policy1-86857545'] 2025-10-31 05:31:06,791 - INFO - VN ctest-vn4-99836814 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 05:31:06,791 - DEBUG - Verifying the vn in opserver 2025-10-31 05:31:06,791 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38696259:ctest-vn4-99836814 virtual network link through opserver 10.0.0.254 2025-10-31 05:31:06,791 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 05:31:07,127 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 05:31:07,184 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38696259:ctest-vn4-99836814', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38696259:ctest-vn4-99836814?flat'} 2025-10-31 05:31:07,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38696259:ctest-vn4-99836814 is found in opserver 2025-10-31 05:31:07,194 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 05:31:07,199 - DEBUG - VRF ids for VN ctest-vn4-99836814: {} 2025-10-31 05:31:07,200 - DEBUG - ====Verifying data for ctest-policy1-86857545 in API_Server ====== 2025-10-31 05:31:07,200 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 05:31:07,205 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c2a0028b-e580-4f6b-9ad2-0a4ba471f8c9 2025-10-31 05:31:07,218 - DEBUG - Requesting: http://10.0.0.254:8082/project/c7a3b4ff-0a22-4f19-8604-f26a554d4a72 2025-10-31 05:31:07,288 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/092a1b66-0c51-43f8-b571-8242278f371b 2025-10-31 05:31:07,301 - INFO - Verified policy ctest-policy1-86857545 in API Server, Result: True 2025-10-31 05:31:07,302 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 05:31:07,310 - INFO - Deleting VN ctest-vn4-99836814 2025-10-31 05:31:07,430 - DEBUG - Response for deleting network () 2025-10-31 05:31:07,430 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/203b195b-bb35-4a01-8750-bd2037e301c6 2025-10-31 05:31:07,436 - DEBUG - Response Code: 404 2025-10-31 05:31:07,436 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 05:31:07,443 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c2a0028b-e580-4f6b-9ad2-0a4ba471f8c9 2025-10-31 05:31:07,500 - DEBUG - Requesting: http://10.0.0.254:8082/project/c7a3b4ff-0a22-4f19-8604-f26a554d4a72 2025-10-31 05:31:07,571 - INFO - Validated that VN ctest-vn4-99836814 is not found in API Server 2025-10-31 05:31:07,580 - DEBUG - VN ctest-vn4-99836814 is not present in Agent 10.0.0.254 2025-10-31 05:31:07,580 - INFO - Validated that VN ctest-vn4-99836814 is not in any agent 2025-10-31 05:31:07,594 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99836814 info 2025-10-31 05:31:07,620 - INFO - Deleted policy ctest-policy1-86857545 2025-10-31 05:31:07,783 - DEBUG - policy ctest-policy1-86857545 is not found in API Server 2025-10-31 05:31:08,042 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 05:31:08,042 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-31 05:31:08,042 - INFO - -------------------------------------------------------------------------------- 2025-10-31 05:31:08,329 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 05:31:08,329 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-31 05:31:08,329 - INFO - -------------------------------------------------------------------------------- 2025-10-31 05:31:09,034 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-38696259, ID : c7a3b4ff-0a22-4f19-8604-f26a554d4a72