2025-11-01 13:59:02,682 - INFO - Domain Default found not creating 2025-11-01 13:59:02,827 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99916099 not found, creating it 2025-11-01 13:59:03,301 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99916099, ID : d511066a-0fc8-4454-83fc-37abc3cf92f8 2025-11-01 13:59:04,640 - INFO - ================================================================================ 2025-11-01 13:59:04,641 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-01 13:59:04,894 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.129': '0'}} with 2025-11-01 13:59:04,894 - INFO - Initial checks done. Running the testcase now 2025-11-01 13:59:04,894 - INFO - 2025-11-01 13:59:04,894 - INFO - ================================================================================ 2025-11-01 13:59:04,895 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-01 13:59:04,895 - 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-01 13:59:05,189 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.129': '0'}} with 2025-11-01 13:59:05,189 - INFO - Initial checks done. Running the testcase now 2025-11-01 13:59:05,190 - INFO - 2025-11-01 13:59:05,531 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99916099:ctest-vn4-21613846, 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-99916099:ctest-vn4-21613846, 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-99916099:ctest-vn4-21613846, 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-99916099:ctest-vn4-21613846, 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-01 13:59:06,007 - DEBUG - Response for create_network : {'network': {'id': 'efc9ef48-08c2-437d-b241-82172b9c4bf9', 'name': 'ctest-vn4-21613846', 'tenant_id': 'd511066a0fc8445483fc37abc3cf92f8', 'project_id': 'd511066a0fc8445483fc37abc3cf92f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99916099', 'ctest-vn4-21613846'], 'port_security_enabled': True, 'description': ''}} 2025-11-01 13:59:06,182 - DEBUG - Response for create_subnet : {'subnet': {'id': '74b7cee6-2609-4975-9783-91cce392ab3e', 'name': '', 'tenant_id': 'd511066a0fc8445483fc37abc3cf92f8', 'network_id': 'efc9ef48-08c2-437d-b241-82172b9c4bf9', 'ip_version': 4, 'cidr': '178.162.164.64/26', 'allocation_pools': [{'start': '178.162.164.66', 'end': '178.162.164.126'}], 'gateway_ip': '178.162.164.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.162.164.66', 'tags': [], 'project_id': 'd511066a0fc8445483fc37abc3cf92f8'}} 2025-11-01 13:59:06,339 - DEBUG - Response for create_subnet : {'subnet': {'id': '3df24421-f12f-4ec6-a40a-ebd73e4911d0', 'name': '', 'tenant_id': 'd511066a0fc8445483fc37abc3cf92f8', 'network_id': 'efc9ef48-08c2-437d-b241-82172b9c4bf9', 'ip_version': 6, 'cidr': '32da:ca18:5996:19f:800c:f2e5::/96', 'allocation_pools': [{'start': '32da:ca18:5996:19f:800c:f2e5:0:2', 'end': '32da:ca18:5996:19f:800c:f2e5:ffff:fffe'}], 'gateway_ip': '32da:ca18:5996:19f:800c:f2e5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32da:ca18:5996:19f:800c:f2e5:0:2', 'tags': [], 'project_id': 'd511066a0fc8445483fc37abc3cf92f8'}} 2025-11-01 13:59:06,356 - INFO - Created VN ctest-vn4-21613846 2025-11-01 13:59:06,406 - DEBUG - VN ctest-vn4-21613846 UUID is efc9ef48-08c2-437d-b241-82172b9c4bf9 2025-11-01 13:59:06,583 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'efc9ef48-08c2-437d-b241-82172b9c4bf9', 'name': 'ctest-vn4-21613846', 'tenant_id': 'd511066a0fc8445483fc37abc3cf92f8', 'project_id': 'd511066a0fc8445483fc37abc3cf92f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['74b7cee6-2609-4975-9783-91cce392ab3e', '3df24421-f12f-4ec6-a40a-ebd73e4911d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99916099', 'ctest-vn4-21613846'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99916099', 'ctest-policy1-24722394']], 'subnet_ipam': [{'subnet_cidr': '178.162.164.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32da:ca18:5996:19f:800c:f2e5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-01 13:59:06,742 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-01 13:59:07,076 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-01 13:59:07,102 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd496be1-039d-4a04-817e-3af4876ebfbf 2025-11-01 13:59:07,113 - DEBUG - Requesting: http://10.0.0.22:8082/project/d511066a-0fc8-4454-83fc-37abc3cf92f8 2025-11-01 13:59:07,184 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/efc9ef48-08c2-437d-b241-82172b9c4bf9 2025-11-01 13:59:07,196 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/efc9ef48-08c2-437d-b241-82172b9c4bf9 2025-11-01 13:59:07,204 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f5c6fdd5-36a7-4131-99e5-65f6a21a6d0b 2025-11-01 13:59:07,210 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f5c6fdd5-36a7-4131-99e5-65f6a21a6d0b 2025-11-01 13:59:07,216 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cf3c8030-03c9-440b-8b46-fc2ffec7436e 2025-11-01 13:59:07,222 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-01 13:59:07,222 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/efc9ef48-08c2-437d-b241-82172b9c4bf9 2025-11-01 13:59:07,231 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f5c6fdd5-36a7-4131-99e5-65f6a21a6d0b 2025-11-01 13:59:07,243 - INFO - Verified VN network id 12 for VN efc9ef48-08c2-437d-b241-82172b9c4bf9 2025-11-01 13:59:07,243 - INFO - Verifications in API Server for VN ctest-vn4-21613846 passed 2025-11-01 13:59:07,243 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/efc9ef48-08c2-437d-b241-82172b9c4bf9 2025-11-01 13:59:07,254 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f5c6fdd5-36a7-4131-99e5-65f6a21a6d0b 2025-11-01 13:59:07,262 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f5c6fdd5-36a7-4131-99e5-65f6a21a6d0b 2025-11-01 13:59:07,269 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/cf3c8030-03c9-440b-8b46-fc2ffec7436e 2025-11-01 13:59:07,279 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99916099:ctest-vn4-21613846', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99916099', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17278604538047251325', 'uuid-lslong': '12844690648264887289'}, 'enable': 'true', 'created': '2025-11-01T13:59:05', 'last-modified': '2025-11-01T13:59:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.716317'} 2025-11-01 13:59:07,284 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-01 13:59:07,284 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21613846 passed 2025-11-01 13:59:07,285 - DEBUG - ====Verifying policy data for ctest-vn4-21613846 in API_Server ====== 2025-11-01 13:59:07,285 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-01 13:59:07,289 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd496be1-039d-4a04-817e-3af4876ebfbf 2025-11-01 13:59:07,298 - DEBUG - Requesting: http://10.0.0.22:8082/project/d511066a-0fc8-4454-83fc-37abc3cf92f8 2025-11-01 13:59:07,365 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/efc9ef48-08c2-437d-b241-82172b9c4bf9 2025-11-01 13:59:07,374 - DEBUG - ==>Verifying data for policy with id: d370618a-67e3-462d-802a-04e8c4a5f136, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99916099', 'ctest-policy1-24722394'] 2025-11-01 13:59:07,374 - INFO - VN ctest-vn4-21613846 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-01 13:59:07,374 - DEBUG - Verifying the vn in opserver 2025-11-01 13:59:07,374 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99916099:ctest-vn4-21613846 virtual network link through opserver 10.0.0.22 2025-11-01 13:59:07,375 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-01 13:59:07,662 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-01 13:59:07,710 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99916099:ctest-vn4-21613846', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99916099:ctest-vn4-21613846?flat'} 2025-11-01 13:59:07,710 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99916099:ctest-vn4-21613846 is found in opserver 2025-11-01 13:59:07,718 - DEBUG - Do not have enough data to verify VN in agent 2025-11-01 13:59:07,722 - DEBUG - VRF ids for VN ctest-vn4-21613846: {} 2025-11-01 13:59:07,722 - DEBUG - ====Verifying data for ctest-policy1-24722394 in API_Server ====== 2025-11-01 13:59:07,722 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-01 13:59:07,727 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd496be1-039d-4a04-817e-3af4876ebfbf 2025-11-01 13:59:07,736 - DEBUG - Requesting: http://10.0.0.22:8082/project/d511066a-0fc8-4454-83fc-37abc3cf92f8 2025-11-01 13:59:07,799 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/d370618a-67e3-462d-802a-04e8c4a5f136 2025-11-01 13:59:07,808 - INFO - Verified policy ctest-policy1-24722394 in API Server, Result: True 2025-11-01 13:59:07,808 - INFO - Done with setup and verification, moving onto test .. 2025-11-01 13:59:07,815 - INFO - Deleting VN ctest-vn4-21613846 2025-11-01 13:59:07,917 - DEBUG - Response for deleting network () 2025-11-01 13:59:07,917 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f5c6fdd5-36a7-4131-99e5-65f6a21a6d0b 2025-11-01 13:59:07,921 - DEBUG - Response Code: 404 2025-11-01 13:59:07,922 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-01 13:59:07,927 - DEBUG - Requesting: http://10.0.0.22:8082/domain/fd496be1-039d-4a04-817e-3af4876ebfbf 2025-11-01 13:59:07,978 - DEBUG - Requesting: http://10.0.0.22:8082/project/d511066a-0fc8-4454-83fc-37abc3cf92f8 2025-11-01 13:59:08,047 - INFO - Validated that VN ctest-vn4-21613846 is not found in API Server 2025-11-01 13:59:08,056 - DEBUG - VN ctest-vn4-21613846 is not present in Agent 10.0.0.22 2025-11-01 13:59:08,056 - INFO - Validated that VN ctest-vn4-21613846 is not in any agent 2025-11-01 13:59:08,068 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21613846 info 2025-11-01 13:59:08,086 - INFO - Deleted policy ctest-policy1-24722394 2025-11-01 13:59:08,249 - DEBUG - policy ctest-policy1-24722394 is not found in API Server 2025-11-01 13:59:08,507 - DEBUG - No XMPP flaps were noticed during the test