2025-10-21 21:02:02,834 - INFO - Domain Default found not creating 2025-10-21 21:02:02,992 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49058493 not found, creating it 2025-10-21 21:02:03,467 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49058493, ID : 188cc7ad-e3c4-44c9-a1c4-bcaff44c9793 2025-10-21 21:02:04,914 - INFO - ================================================================================ 2025-10-21 21:02:04,914 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 21:02:05,171 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-21 21:02:05,171 - INFO - Initial checks done. Running the testcase now 2025-10-21 21:02:05,171 - INFO - 2025-10-21 21:02:05,171 - INFO - ================================================================================ 2025-10-21 21:02:05,171 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 21:02:05,171 - 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-21 21:02:05,458 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-10-21 21:02:05,458 - INFO - Initial checks done. Running the testcase now 2025-10-21 21:02:05,459 - INFO - 2025-10-21 21:02:05,853 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49058493:ctest-vn4-73970158, 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-49058493:ctest-vn4-73970158, 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-49058493:ctest-vn4-73970158, 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-49058493:ctest-vn4-73970158, 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-21 21:02:06,372 - DEBUG - Response for create_network : {'network': {'id': '5bb9d31b-3cc1-40e5-97e0-c547068b4d1a', 'name': 'ctest-vn4-73970158', 'tenant_id': '188cc7ade3c444c9a1c4bcaff44c9793', 'project_id': '188cc7ade3c444c9a1c4bcaff44c9793', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49058493', 'ctest-vn4-73970158'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 21:02:06,595 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a5e9cb67-f715-4de5-895b-4979f68bf255', 'name': '', 'tenant_id': '188cc7ade3c444c9a1c4bcaff44c9793', 'network_id': '5bb9d31b-3cc1-40e5-97e0-c547068b4d1a', 'ip_version': 4, 'cidr': '199.141.165.64/26', 'allocation_pools': [{'start': '199.141.165.66', 'end': '199.141.165.126'}], 'gateway_ip': '199.141.165.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.141.165.66', 'tags': [], 'project_id': '188cc7ade3c444c9a1c4bcaff44c9793'}} 2025-10-21 21:02:06,741 - DEBUG - Response for create_subnet : {'subnet': {'id': '37ee1025-3bd4-4e22-b877-359b4f423898', 'name': '', 'tenant_id': '188cc7ade3c444c9a1c4bcaff44c9793', 'network_id': '5bb9d31b-3cc1-40e5-97e0-c547068b4d1a', 'ip_version': 6, 'cidr': '21c0:424c:595b:fc2b:a116:893c::/96', 'allocation_pools': [{'start': '21c0:424c:595b:fc2b:a116:893c:0:2', 'end': '21c0:424c:595b:fc2b:a116:893c:ffff:fffe'}], 'gateway_ip': '21c0:424c:595b:fc2b:a116:893c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21c0:424c:595b:fc2b:a116:893c:0:2', 'tags': [], 'project_id': '188cc7ade3c444c9a1c4bcaff44c9793'}} 2025-10-21 21:02:06,760 - INFO - Created VN ctest-vn4-73970158 2025-10-21 21:02:06,813 - DEBUG - VN ctest-vn4-73970158 UUID is 5bb9d31b-3cc1-40e5-97e0-c547068b4d1a 2025-10-21 21:02:07,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5bb9d31b-3cc1-40e5-97e0-c547068b4d1a', 'name': 'ctest-vn4-73970158', 'tenant_id': '188cc7ade3c444c9a1c4bcaff44c9793', 'project_id': '188cc7ade3c444c9a1c4bcaff44c9793', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a5e9cb67-f715-4de5-895b-4979f68bf255', '37ee1025-3bd4-4e22-b877-359b4f423898'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49058493', 'ctest-vn4-73970158'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49058493', 'ctest-policy1-87668535']], 'subnet_ipam': [{'subnet_cidr': '199.141.165.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21c0:424c:595b:fc2b:a116:893c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 21:02:07,213 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 21:02:07,504 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 21:02:07,535 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc 2025-10-21 21:02:07,547 - DEBUG - Requesting: http://10.0.0.141:8082/project/188cc7ad-e3c4-44c9-a1c4-bcaff44c9793 2025-10-21 21:02:07,632 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5bb9d31b-3cc1-40e5-97e0-c547068b4d1a 2025-10-21 21:02:07,644 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5bb9d31b-3cc1-40e5-97e0-c547068b4d1a 2025-10-21 21:02:07,653 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/beefae05-d77d-42fc-adc3-41f1172fb3ba 2025-10-21 21:02:07,660 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/beefae05-d77d-42fc-adc3-41f1172fb3ba 2025-10-21 21:02:07,666 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e27f5811-d7a7-4832-a7b3-5f943af2383e 2025-10-21 21:02:07,671 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 21:02:07,672 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5bb9d31b-3cc1-40e5-97e0-c547068b4d1a 2025-10-21 21:02:07,680 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/beefae05-d77d-42fc-adc3-41f1172fb3ba 2025-10-21 21:02:07,694 - INFO - Verified VN network id 11 for VN 5bb9d31b-3cc1-40e5-97e0-c547068b4d1a 2025-10-21 21:02:07,695 - INFO - Verifications in API Server for VN ctest-vn4-73970158 passed 2025-10-21 21:02:07,695 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5bb9d31b-3cc1-40e5-97e0-c547068b4d1a 2025-10-21 21:02:07,706 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/beefae05-d77d-42fc-adc3-41f1172fb3ba 2025-10-21 21:02:07,715 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/beefae05-d77d-42fc-adc3-41f1172fb3ba 2025-10-21 21:02:07,723 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e27f5811-d7a7-4832-a7b3-5f943af2383e 2025-10-21 21:02:07,737 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49058493:ctest-vn4-73970158', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49058493', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6609546042079789285', 'uuid-lslong': '10943964003353447706'}, 'enable': 'true', 'created': '2025-10-21T21:02:06', 'last-modified': '2025-10-21T21:02:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.723335'} 2025-10-21 21:02:07,743 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 21:02:07,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-73970158 passed 2025-10-21 21:02:07,743 - DEBUG - ====Verifying policy data for ctest-vn4-73970158 in API_Server ====== 2025-10-21 21:02:07,744 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 21:02:07,749 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc 2025-10-21 21:02:07,759 - DEBUG - Requesting: http://10.0.0.141:8082/project/188cc7ad-e3c4-44c9-a1c4-bcaff44c9793 2025-10-21 21:02:07,830 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5bb9d31b-3cc1-40e5-97e0-c547068b4d1a 2025-10-21 21:02:07,840 - DEBUG - ==>Verifying data for policy with id: 827804a8-b3aa-4255-ac2e-258da76cc0f8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49058493', 'ctest-policy1-87668535'] 2025-10-21 21:02:07,840 - INFO - VN ctest-vn4-73970158 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 21:02:07,840 - DEBUG - Verifying the vn in opserver 2025-10-21 21:02:07,840 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49058493:ctest-vn4-73970158 virtual network link through opserver 10.0.0.141 2025-10-21 21:02:07,841 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-21 21:02:08,138 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-21 21:02:08,192 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49058493:ctest-vn4-73970158', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49058493:ctest-vn4-73970158?flat'} 2025-10-21 21:02:08,192 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49058493:ctest-vn4-73970158 is found in opserver 2025-10-21 21:02:08,202 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 21:02:08,209 - DEBUG - VRF ids for VN ctest-vn4-73970158: {} 2025-10-21 21:02:08,209 - DEBUG - ====Verifying data for ctest-policy1-87668535 in API_Server ====== 2025-10-21 21:02:08,209 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 21:02:08,215 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc 2025-10-21 21:02:08,225 - DEBUG - Requesting: http://10.0.0.141:8082/project/188cc7ad-e3c4-44c9-a1c4-bcaff44c9793 2025-10-21 21:02:08,295 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/827804a8-b3aa-4255-ac2e-258da76cc0f8 2025-10-21 21:02:08,303 - INFO - Verified policy ctest-policy1-87668535 in API Server, Result: True 2025-10-21 21:02:08,303 - INFO - Done with setup and verification, moving onto test .. 2025-10-21 21:02:08,310 - INFO - Deleting VN ctest-vn4-73970158 2025-10-21 21:02:08,435 - DEBUG - Response for deleting network () 2025-10-21 21:02:08,436 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/beefae05-d77d-42fc-adc3-41f1172fb3ba 2025-10-21 21:02:08,441 - DEBUG - Response Code: 404 2025-10-21 21:02:08,441 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-21 21:02:08,445 - DEBUG - Requesting: http://10.0.0.141:8082/domain/179bd52d-2034-4d6f-825f-d0f81a91e0fc 2025-10-21 21:02:08,498 - DEBUG - Requesting: http://10.0.0.141:8082/project/188cc7ad-e3c4-44c9-a1c4-bcaff44c9793 2025-10-21 21:02:08,572 - INFO - Validated that VN ctest-vn4-73970158 is not found in API Server 2025-10-21 21:02:08,581 - DEBUG - VN ctest-vn4-73970158 is not present in Agent 10.0.0.141 2025-10-21 21:02:08,582 - INFO - Validated that VN ctest-vn4-73970158 is not in any agent 2025-10-21 21:02:08,593 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-73970158 info 2025-10-21 21:02:08,617 - INFO - Deleted policy ctest-policy1-87668535 2025-10-21 21:02:08,785 - DEBUG - policy ctest-policy1-87668535 is not found in API Server 2025-10-21 21:02:09,057 - DEBUG - No XMPP flaps were noticed during the test
2025-10-21 21:02:09,058 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-21 21:02:09,058 - INFO - -------------------------------------------------------------------------------- 2025-10-21 21:02:09,347 - DEBUG - No XMPP flaps were noticed during the test
2025-10-21 21:02:09,347 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-21 21:02:09,347 - INFO - -------------------------------------------------------------------------------- 2025-10-21 21:02:10,046 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-49058493, ID : 188cc7ad-e3c4-44c9-a1c4-bcaff44c9793