2025-10-08 22:36:23,909 - INFO - Domain Default found not creating 2025-10-08 22:36:24,044 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-13635537 not found, creating it 2025-10-08 22:36:24,462 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-13635537, ID : 16993174-3ff9-4de3-b854-4d7dfaca4279 2025-10-08 22:36:25,826 - INFO - ================================================================================ 2025-10-08 22:36:25,827 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 22:36:26,087 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-10-08 22:36:26,087 - INFO - Initial checks done. Running the testcase now 2025-10-08 22:36:26,087 - INFO - 2025-10-08 22:36:26,087 - INFO - ================================================================================ 2025-10-08 22:36:26,087 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 22:36:26,087 - 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-08 22:36:26,373 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-10-08 22:36:26,373 - INFO - Initial checks done. Running the testcase now 2025-10-08 22:36:26,373 - INFO - 2025-10-08 22:36:26,717 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13635537:ctest-vn4-33111194, 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-13635537:ctest-vn4-33111194, 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-13635537:ctest-vn4-33111194, 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-13635537:ctest-vn4-33111194, 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-08 22:36:27,219 - DEBUG - Response for create_network : {'network': {'id': '1e8bdcb2-3474-4868-9ffd-1fdc555bce5c', 'name': 'ctest-vn4-33111194', 'tenant_id': '169931743ff94de3b8544d7dfaca4279', 'project_id': '169931743ff94de3b8544d7dfaca4279', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13635537', 'ctest-vn4-33111194'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 22:36:27,402 - DEBUG - Response for create_subnet : {'subnet': {'id': '41784de9-a306-4ec3-98d2-75037f84dd14', 'name': '', 'tenant_id': '169931743ff94de3b8544d7dfaca4279', 'network_id': '1e8bdcb2-3474-4868-9ffd-1fdc555bce5c', 'ip_version': 4, 'cidr': '158.96.199.128/26', 'allocation_pools': [{'start': '158.96.199.130', 'end': '158.96.199.190'}], 'gateway_ip': '158.96.199.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.96.199.130', 'tags': [], 'project_id': '169931743ff94de3b8544d7dfaca4279'}} 2025-10-08 22:36:27,548 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e890e9ce-09d2-42c3-b28e-af6661c29c38', 'name': '', 'tenant_id': '169931743ff94de3b8544d7dfaca4279', 'network_id': '1e8bdcb2-3474-4868-9ffd-1fdc555bce5c', 'ip_version': 6, 'cidr': '35d9:4b16:76a6:45e8:b7cf:c746::/96', 'allocation_pools': [{'start': '35d9:4b16:76a6:45e8:b7cf:c746:0:2', 'end': '35d9:4b16:76a6:45e8:b7cf:c746:ffff:fffe'}], 'gateway_ip': '35d9:4b16:76a6:45e8:b7cf:c746:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35d9:4b16:76a6:45e8:b7cf:c746:0:2', 'tags': [], 'project_id': '169931743ff94de3b8544d7dfaca4279'}} 2025-10-08 22:36:27,564 - INFO - Created VN ctest-vn4-33111194 2025-10-08 22:36:27,613 - DEBUG - VN ctest-vn4-33111194 UUID is 1e8bdcb2-3474-4868-9ffd-1fdc555bce5c 2025-10-08 22:36:27,798 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e8bdcb2-3474-4868-9ffd-1fdc555bce5c', 'name': 'ctest-vn4-33111194', 'tenant_id': '169931743ff94de3b8544d7dfaca4279', 'project_id': '169931743ff94de3b8544d7dfaca4279', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41784de9-a306-4ec3-98d2-75037f84dd14', 'e890e9ce-09d2-42c3-b28e-af6661c29c38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13635537', 'ctest-vn4-33111194'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13635537', 'ctest-policy1-51046431']], 'subnet_ipam': [{'subnet_cidr': '158.96.199.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35d9:4b16:76a6:45e8:b7cf:c746::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 22:36:27,961 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-08 22:36:28,252 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-08 22:36:28,276 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55 2025-10-08 22:36:28,286 - DEBUG - Requesting: http://10.0.0.50:8082/project/16993174-3ff9-4de3-b854-4d7dfaca4279 2025-10-08 22:36:28,355 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1e8bdcb2-3474-4868-9ffd-1fdc555bce5c 2025-10-08 22:36:28,365 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1e8bdcb2-3474-4868-9ffd-1fdc555bce5c 2025-10-08 22:36:28,372 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8fb2a880-d94a-4465-96f1-c1169a202dca 2025-10-08 22:36:28,377 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8fb2a880-d94a-4465-96f1-c1169a202dca 2025-10-08 22:36:28,382 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cc72c19b-6deb-4e40-9e27-6bd85d6a6f24 2025-10-08 22:36:28,386 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 22:36:28,386 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1e8bdcb2-3474-4868-9ffd-1fdc555bce5c 2025-10-08 22:36:28,393 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8fb2a880-d94a-4465-96f1-c1169a202dca 2025-10-08 22:36:28,403 - INFO - Verified VN network id 12 for VN 1e8bdcb2-3474-4868-9ffd-1fdc555bce5c 2025-10-08 22:36:28,403 - INFO - Verifications in API Server for VN ctest-vn4-33111194 passed 2025-10-08 22:36:28,404 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1e8bdcb2-3474-4868-9ffd-1fdc555bce5c 2025-10-08 22:36:28,410 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8fb2a880-d94a-4465-96f1-c1169a202dca 2025-10-08 22:36:28,415 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8fb2a880-d94a-4465-96f1-c1169a202dca 2025-10-08 22:36:28,420 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cc72c19b-6deb-4e40-9e27-6bd85d6a6f24 2025-10-08 22:36:28,428 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13635537:ctest-vn4-33111194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-13635537', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2201095500842944616', 'uuid-lslong': '11528405652323683932'}, 'enable': 'true', 'created': '2025-10-08T22:36:27', 'last-modified': '2025-10-08T22:36:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.649291'} 2025-10-08 22:36:28,433 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 22:36:28,434 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33111194 passed 2025-10-08 22:36:28,434 - DEBUG - ====Verifying policy data for ctest-vn4-33111194 in API_Server ====== 2025-10-08 22:36:28,434 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-08 22:36:28,437 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55 2025-10-08 22:36:28,445 - DEBUG - Requesting: http://10.0.0.50:8082/project/16993174-3ff9-4de3-b854-4d7dfaca4279 2025-10-08 22:36:28,516 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1e8bdcb2-3474-4868-9ffd-1fdc555bce5c 2025-10-08 22:36:28,524 - DEBUG - ==>Verifying data for policy with id: b0c7b65e-f0d5-4883-be74-fd98313ee2ba, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13635537', 'ctest-policy1-51046431'] 2025-10-08 22:36:28,524 - INFO - VN ctest-vn4-33111194 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 22:36:28,524 - DEBUG - Verifying the vn in opserver 2025-10-08 22:36:28,524 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13635537:ctest-vn4-33111194 virtual network link through opserver 10.0.0.50 2025-10-08 22:36:28,524 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-08 22:36:28,813 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-10-08 22:36:28,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13635537:ctest-vn4-33111194', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13635537:ctest-vn4-33111194?flat'} 2025-10-08 22:36:28,860 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13635537:ctest-vn4-33111194 is found in opserver 2025-10-08 22:36:28,868 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 22:36:28,872 - DEBUG - VRF ids for VN ctest-vn4-33111194: {} 2025-10-08 22:36:28,872 - DEBUG - ====Verifying data for ctest-policy1-51046431 in API_Server ====== 2025-10-08 22:36:28,872 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-08 22:36:28,877 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55 2025-10-08 22:36:28,886 - DEBUG - Requesting: http://10.0.0.50:8082/project/16993174-3ff9-4de3-b854-4d7dfaca4279 2025-10-08 22:36:28,956 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/b0c7b65e-f0d5-4883-be74-fd98313ee2ba 2025-10-08 22:36:28,964 - INFO - Verified policy ctest-policy1-51046431 in API Server, Result: True 2025-10-08 22:36:28,964 - INFO - Done with setup and verification, moving onto test .. 2025-10-08 22:36:28,970 - INFO - Deleting VN ctest-vn4-33111194 2025-10-08 22:36:29,069 - DEBUG - Response for deleting network () 2025-10-08 22:36:29,069 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8fb2a880-d94a-4465-96f1-c1169a202dca 2025-10-08 22:36:29,073 - DEBUG - Response Code: 404 2025-10-08 22:36:29,073 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-10-08 22:36:29,077 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b5fb17a3-0b13-444d-babb-dd946baa2c55 2025-10-08 22:36:29,129 - DEBUG - Requesting: http://10.0.0.50:8082/project/16993174-3ff9-4de3-b854-4d7dfaca4279 2025-10-08 22:36:29,195 - INFO - Validated that VN ctest-vn4-33111194 is not found in API Server 2025-10-08 22:36:29,204 - DEBUG - VN ctest-vn4-33111194 is not present in Agent 10.0.0.50 2025-10-08 22:36:29,204 - INFO - Validated that VN ctest-vn4-33111194 is not in any agent 2025-10-08 22:36:29,215 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33111194 info 2025-10-08 22:36:29,238 - INFO - Deleted policy ctest-policy1-51046431 2025-10-08 22:36:29,397 - DEBUG - policy ctest-policy1-51046431 is not found in API Server 2025-10-08 22:36:29,651 - DEBUG - No XMPP flaps were noticed during the test