2025-09-16 11:41:00,479 - INFO - Domain Default found not creating 2025-09-16 11:41:00,624 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31895471 not found, creating it 2025-09-16 11:41:01,073 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31895471, ID : 5ac7e510-dabd-4d07-aeed-9c3b10a0f1b0 2025-09-16 11:41:02,477 - INFO - ================================================================================ 2025-09-16 11:41:02,478 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-16 11:41:02,733 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-16 11:41:02,733 - INFO - Initial checks done. Running the testcase now 2025-09-16 11:41:02,733 - INFO - 2025-09-16 11:41:02,733 - INFO - ================================================================================ 2025-09-16 11:41:02,733 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-16 11:41:02,733 - 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-09-16 11:41:03,022 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-16 11:41:03,022 - INFO - Initial checks done. Running the testcase now 2025-09-16 11:41:03,022 - INFO - 2025-09-16 11:41:03,366 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31895471:ctest-vn4-91361467, 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-31895471:ctest-vn4-91361467, 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-31895471:ctest-vn4-91361467, 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-31895471:ctest-vn4-91361467, 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-09-16 11:41:03,887 - DEBUG - Response for create_network : {'network': {'id': '4a981258-56ac-4876-b610-49955ea243f3', 'name': 'ctest-vn4-91361467', 'tenant_id': '5ac7e510dabd4d07aeed9c3b10a0f1b0', 'project_id': '5ac7e510dabd4d07aeed9c3b10a0f1b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31895471', 'ctest-vn4-91361467'], 'port_security_enabled': True, 'description': ''}} 2025-09-16 11:41:04,057 - DEBUG - Response for create_subnet : {'subnet': {'id': '8cb33a31-927b-48de-acb1-43436ed54266', 'name': '', 'tenant_id': '5ac7e510dabd4d07aeed9c3b10a0f1b0', 'network_id': '4a981258-56ac-4876-b610-49955ea243f3', 'ip_version': 4, 'cidr': '86.119.113.0/26', 'allocation_pools': [{'start': '86.119.113.2', 'end': '86.119.113.62'}], 'gateway_ip': '86.119.113.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.119.113.2', 'tags': [], 'project_id': '5ac7e510dabd4d07aeed9c3b10a0f1b0'}} 2025-09-16 11:41:04,217 - DEBUG - Response for create_subnet : {'subnet': {'id': '694e495f-6950-4fcb-9ed6-053b4a74d224', 'name': '', 'tenant_id': '5ac7e510dabd4d07aeed9c3b10a0f1b0', 'network_id': '4a981258-56ac-4876-b610-49955ea243f3', 'ip_version': 6, 'cidr': '2107:f28b:238d:70ba:b0f9:b3cb::/96', 'allocation_pools': [{'start': '2107:f28b:238d:70ba:b0f9:b3cb:0:2', 'end': '2107:f28b:238d:70ba:b0f9:b3cb:ffff:fffe'}], 'gateway_ip': '2107:f28b:238d:70ba:b0f9:b3cb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2107:f28b:238d:70ba:b0f9:b3cb:0:2', 'tags': [], 'project_id': '5ac7e510dabd4d07aeed9c3b10a0f1b0'}} 2025-09-16 11:41:04,238 - INFO - Created VN ctest-vn4-91361467 2025-09-16 11:41:04,290 - DEBUG - VN ctest-vn4-91361467 UUID is 4a981258-56ac-4876-b610-49955ea243f3 2025-09-16 11:41:04,511 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a981258-56ac-4876-b610-49955ea243f3', 'name': 'ctest-vn4-91361467', 'tenant_id': '5ac7e510dabd4d07aeed9c3b10a0f1b0', 'project_id': '5ac7e510dabd4d07aeed9c3b10a0f1b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8cb33a31-927b-48de-acb1-43436ed54266', '694e495f-6950-4fcb-9ed6-053b4a74d224'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31895471', 'ctest-vn4-91361467'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31895471', 'ctest-policy1-03838575']], 'subnet_ipam': [{'subnet_cidr': '86.119.113.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2107:f28b:238d:70ba:b0f9:b3cb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-16 11:41:04,678 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-16 11:41:04,973 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-16 11:41:05,001 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d8e99ed6-e77a-4092-9c7e-98035934e7ea 2025-09-16 11:41:05,013 - DEBUG - Requesting: http://10.0.0.38:8082/project/5ac7e510-dabd-4d07-aeed-9c3b10a0f1b0 2025-09-16 11:41:05,090 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a981258-56ac-4876-b610-49955ea243f3 2025-09-16 11:41:05,106 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a981258-56ac-4876-b610-49955ea243f3 2025-09-16 11:41:05,118 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec4b1600-4565-48b8-9d25-00e5437f7e34 2025-09-16 11:41:05,126 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec4b1600-4565-48b8-9d25-00e5437f7e34 2025-09-16 11:41:05,135 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/13363dd5-fc45-4c4e-8acc-ec244dd2c7ba 2025-09-16 11:41:05,142 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-16 11:41:05,142 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a981258-56ac-4876-b610-49955ea243f3 2025-09-16 11:41:05,154 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec4b1600-4565-48b8-9d25-00e5437f7e34 2025-09-16 11:41:05,182 - INFO - Verified VN network id 11 for VN 4a981258-56ac-4876-b610-49955ea243f3 2025-09-16 11:41:05,183 - INFO - Verifications in API Server for VN ctest-vn4-91361467 passed 2025-09-16 11:41:05,183 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a981258-56ac-4876-b610-49955ea243f3 2025-09-16 11:41:05,195 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec4b1600-4565-48b8-9d25-00e5437f7e34 2025-09-16 11:41:05,204 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec4b1600-4565-48b8-9d25-00e5437f7e34 2025-09-16 11:41:05,213 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/13363dd5-fc45-4c4e-8acc-ec244dd2c7ba 2025-09-16 11:41:05,227 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31895471:ctest-vn4-91361467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31895471', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5375066325887240310', 'uuid-lslong': '13119066620416902131'}, 'enable': 'true', 'created': '2025-09-16T11:41:03', 'last-modified': '2025-09-16T11:41:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747850'} 2025-09-16 11:41:05,235 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-16 11:41:05,235 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-91361467 passed 2025-09-16 11:41:05,235 - DEBUG - ====Verifying policy data for ctest-vn4-91361467 in API_Server ====== 2025-09-16 11:41:05,235 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-16 11:41:05,241 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d8e99ed6-e77a-4092-9c7e-98035934e7ea 2025-09-16 11:41:05,255 - DEBUG - Requesting: http://10.0.0.38:8082/project/5ac7e510-dabd-4d07-aeed-9c3b10a0f1b0 2025-09-16 11:41:05,331 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a981258-56ac-4876-b610-49955ea243f3 2025-09-16 11:41:05,341 - DEBUG - ==>Verifying data for policy with id: 53eb9b07-49dc-45ec-a4b2-6097e397c01d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31895471', 'ctest-policy1-03838575'] 2025-09-16 11:41:05,341 - INFO - VN ctest-vn4-91361467 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-16 11:41:05,341 - DEBUG - Verifying the vn in opserver 2025-09-16 11:41:05,341 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31895471:ctest-vn4-91361467 virtual network link through opserver 10.0.0.38 2025-09-16 11:41:05,341 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-16 11:41:05,631 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-16 11:41:05,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31895471:ctest-vn4-91361467', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31895471:ctest-vn4-91361467?flat'} 2025-09-16 11:41:05,685 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31895471:ctest-vn4-91361467 is found in opserver 2025-09-16 11:41:05,695 - DEBUG - Do not have enough data to verify VN in agent 2025-09-16 11:41:05,699 - DEBUG - VRF ids for VN ctest-vn4-91361467: {} 2025-09-16 11:41:05,700 - DEBUG - ====Verifying data for ctest-policy1-03838575 in API_Server ====== 2025-09-16 11:41:05,700 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-16 11:41:05,705 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d8e99ed6-e77a-4092-9c7e-98035934e7ea 2025-09-16 11:41:05,717 - DEBUG - Requesting: http://10.0.0.38:8082/project/5ac7e510-dabd-4d07-aeed-9c3b10a0f1b0 2025-09-16 11:41:05,789 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/53eb9b07-49dc-45ec-a4b2-6097e397c01d 2025-09-16 11:41:05,798 - INFO - Verified policy ctest-policy1-03838575 in API Server, Result: True 2025-09-16 11:41:05,798 - INFO - Done with setup and verification, moving onto test .. 2025-09-16 11:41:05,806 - INFO - Deleting VN ctest-vn4-91361467 2025-09-16 11:41:05,918 - DEBUG - Response for deleting network () 2025-09-16 11:41:05,919 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec4b1600-4565-48b8-9d25-00e5437f7e34 2025-09-16 11:41:05,924 - DEBUG - Response Code: 404 2025-09-16 11:41:05,924 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-16 11:41:05,930 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d8e99ed6-e77a-4092-9c7e-98035934e7ea 2025-09-16 11:41:05,984 - DEBUG - Requesting: http://10.0.0.38:8082/project/5ac7e510-dabd-4d07-aeed-9c3b10a0f1b0 2025-09-16 11:41:06,063 - INFO - Validated that VN ctest-vn4-91361467 is not found in API Server 2025-09-16 11:41:06,072 - DEBUG - VN ctest-vn4-91361467 is not present in Agent 10.0.0.38 2025-09-16 11:41:06,072 - INFO - Validated that VN ctest-vn4-91361467 is not in any agent 2025-09-16 11:41:06,086 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-91361467 info 2025-09-16 11:41:06,113 - INFO - Deleted policy ctest-policy1-03838575 2025-09-16 11:41:06,290 - DEBUG - policy ctest-policy1-03838575 is not found in API Server 2025-09-16 11:41:06,544 - DEBUG - No XMPP flaps were noticed during the test
2025-09-16 11:41:06,544 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-16 11:41:06,544 - INFO - -------------------------------------------------------------------------------- 2025-09-16 11:41:06,831 - DEBUG - No XMPP flaps were noticed during the test
2025-09-16 11:41:06,831 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-16 11:41:06,831 - INFO - -------------------------------------------------------------------------------- 2025-09-16 11:41:07,497 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-31895471, ID : 5ac7e510-dabd-4d07-aeed-9c3b10a0f1b0