2025-12-08 19:42:12,361 - INFO - Domain Default found not creating 2025-12-08 19:42:12,537 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82558007 not found, creating it 2025-12-08 19:42:13,019 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82558007, ID : 5a8538b8-4c2e-47e6-a79d-d3906db16a17 2025-12-08 19:42:14,584 - INFO - ================================================================================ 2025-12-08 19:42:14,584 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 19:42:14,844 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0'}} with 2025-12-08 19:42:14,844 - INFO - Initial checks done. Running the testcase now 2025-12-08 19:42:14,844 - INFO - 2025-12-08 19:42:14,844 - INFO - ================================================================================ 2025-12-08 19:42:14,844 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 19:42:14,844 - 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-12-08 19:42:15,130 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0'}} with 2025-12-08 19:42:15,130 - INFO - Initial checks done. Running the testcase now 2025-12-08 19:42:15,130 - INFO - 2025-12-08 19:42:15,506 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82558007:ctest-vn4-31906592, 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-82558007:ctest-vn4-31906592, 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-82558007:ctest-vn4-31906592, 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-82558007:ctest-vn4-31906592, 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-12-08 19:42:16,035 - DEBUG - Response for create_network : {'network': {'id': '763bea7e-0651-45da-bf43-b462654da3a1', 'name': 'ctest-vn4-31906592', 'tenant_id': '5a8538b84c2e47e6a79dd3906db16a17', 'project_id': '5a8538b84c2e47e6a79dd3906db16a17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82558007', 'ctest-vn4-31906592'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 19:42:16,234 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a4bd0a4-9458-4c2e-8631-07f30a4eb248', 'name': '', 'tenant_id': '5a8538b84c2e47e6a79dd3906db16a17', 'network_id': '763bea7e-0651-45da-bf43-b462654da3a1', 'ip_version': 4, 'cidr': '126.175.189.0/26', 'allocation_pools': [{'start': '126.175.189.2', 'end': '126.175.189.62'}], 'gateway_ip': '126.175.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.175.189.2', 'tags': [], 'project_id': '5a8538b84c2e47e6a79dd3906db16a17'}} 2025-12-08 19:42:16,533 - DEBUG - Response for create_subnet : {'subnet': {'id': '0537476f-12e2-4580-92c8-b99c26f49a79', 'name': '', 'tenant_id': '5a8538b84c2e47e6a79dd3906db16a17', 'network_id': '763bea7e-0651-45da-bf43-b462654da3a1', 'ip_version': 6, 'cidr': '2a05:85b4:2f4f:9817:a5f:33f6::/96', 'allocation_pools': [{'start': '2a05:85b4:2f4f:9817:a5f:33f6:0:2', 'end': '2a05:85b4:2f4f:9817:a5f:33f6:ffff:fffe'}], 'gateway_ip': '2a05:85b4:2f4f:9817:a5f:33f6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a05:85b4:2f4f:9817:a5f:33f6:0:2', 'tags': [], 'project_id': '5a8538b84c2e47e6a79dd3906db16a17'}} 2025-12-08 19:42:16,552 - INFO - Created VN ctest-vn4-31906592 2025-12-08 19:42:16,605 - DEBUG - VN ctest-vn4-31906592 UUID is 763bea7e-0651-45da-bf43-b462654da3a1 2025-12-08 19:42:16,826 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '763bea7e-0651-45da-bf43-b462654da3a1', 'name': 'ctest-vn4-31906592', 'tenant_id': '5a8538b84c2e47e6a79dd3906db16a17', 'project_id': '5a8538b84c2e47e6a79dd3906db16a17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a4bd0a4-9458-4c2e-8631-07f30a4eb248', '0537476f-12e2-4580-92c8-b99c26f49a79'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82558007', 'ctest-vn4-31906592'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82558007', 'ctest-policy1-41665777']], 'subnet_ipam': [{'subnet_cidr': '126.175.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a05:85b4:2f4f:9817:a5f:33f6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-08 19:42:16,993 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-08 19:42:17,298 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-08 19:42:17,333 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d4e20ce0-2b09-40cd-a5a1-5dc2b5c5efe5 2025-12-08 19:42:17,348 - DEBUG - Requesting: http://10.0.0.19:8082/project/5a8538b8-4c2e-47e6-a79d-d3906db16a17 2025-12-08 19:42:17,426 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/763bea7e-0651-45da-bf43-b462654da3a1 2025-12-08 19:42:17,439 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/763bea7e-0651-45da-bf43-b462654da3a1 2025-12-08 19:42:17,452 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/7ca8da8b-6c20-4af3-b067-124ada5e933d 2025-12-08 19:42:17,459 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/7ca8da8b-6c20-4af3-b067-124ada5e933d 2025-12-08 19:42:17,469 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/7c3c936a-3eeb-4f05-8fc1-c59f4cea0957 2025-12-08 19:42:17,477 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 19:42:17,477 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/763bea7e-0651-45da-bf43-b462654da3a1 2025-12-08 19:42:17,488 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/7ca8da8b-6c20-4af3-b067-124ada5e933d 2025-12-08 19:42:17,507 - INFO - Verified VN network id 11 for VN 763bea7e-0651-45da-bf43-b462654da3a1 2025-12-08 19:42:17,507 - INFO - Verifications in API Server for VN ctest-vn4-31906592 passed 2025-12-08 19:42:17,507 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/763bea7e-0651-45da-bf43-b462654da3a1 2025-12-08 19:42:17,524 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/7ca8da8b-6c20-4af3-b067-124ada5e933d 2025-12-08 19:42:17,532 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/7ca8da8b-6c20-4af3-b067-124ada5e933d 2025-12-08 19:42:17,539 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/7c3c936a-3eeb-4f05-8fc1-c59f4cea0957 2025-12-08 19:42:17,552 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82558007:ctest-vn4-31906592', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82558007', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8519660947094193626', 'uuid-lslong': '13782057619383231393'}, 'enable': 'true', 'created': '2025-12-08T19:42:16', 'last-modified': '2025-12-08T19:42:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.756336'} 2025-12-08 19:42:17,561 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 19:42:17,561 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31906592 passed 2025-12-08 19:42:17,561 - DEBUG - ====Verifying policy data for ctest-vn4-31906592 in API_Server ====== 2025-12-08 19:42:17,561 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-08 19:42:17,568 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d4e20ce0-2b09-40cd-a5a1-5dc2b5c5efe5 2025-12-08 19:42:17,579 - DEBUG - Requesting: http://10.0.0.19:8082/project/5a8538b8-4c2e-47e6-a79d-d3906db16a17 2025-12-08 19:42:17,653 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/763bea7e-0651-45da-bf43-b462654da3a1 2025-12-08 19:42:17,663 - DEBUG - ==>Verifying data for policy with id: 484ec0f2-39da-4c4c-817e-e47e45015bd0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82558007', 'ctest-policy1-41665777'] 2025-12-08 19:42:17,663 - INFO - VN ctest-vn4-31906592 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-08 19:42:17,663 - DEBUG - Verifying the vn in opserver 2025-12-08 19:42:17,663 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82558007:ctest-vn4-31906592 virtual network link through opserver 10.0.0.19 2025-12-08 19:42:17,663 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-08 19:42:17,962 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-08 19:42:18,035 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82558007:ctest-vn4-31906592', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82558007:ctest-vn4-31906592?flat'} 2025-12-08 19:42:18,035 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82558007:ctest-vn4-31906592 is found in opserver 2025-12-08 19:42:18,045 - DEBUG - Do not have enough data to verify VN in agent 2025-12-08 19:42:18,049 - DEBUG - VRF ids for VN ctest-vn4-31906592: {} 2025-12-08 19:42:18,050 - DEBUG - ====Verifying data for ctest-policy1-41665777 in API_Server ====== 2025-12-08 19:42:18,050 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-08 19:42:18,057 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d4e20ce0-2b09-40cd-a5a1-5dc2b5c5efe5 2025-12-08 19:42:18,070 - DEBUG - Requesting: http://10.0.0.19:8082/project/5a8538b8-4c2e-47e6-a79d-d3906db16a17 2025-12-08 19:42:18,145 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/484ec0f2-39da-4c4c-817e-e47e45015bd0 2025-12-08 19:42:18,156 - INFO - Verified policy ctest-policy1-41665777 in API Server, Result: True 2025-12-08 19:42:18,156 - INFO - Done with setup and verification, moving onto test .. 2025-12-08 19:42:18,166 - INFO - Deleting VN ctest-vn4-31906592 2025-12-08 19:42:18,325 - DEBUG - Response for deleting network () 2025-12-08 19:42:18,325 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/7ca8da8b-6c20-4af3-b067-124ada5e933d 2025-12-08 19:42:18,331 - DEBUG - Response Code: 404 2025-12-08 19:42:18,331 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-08 19:42:18,336 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d4e20ce0-2b09-40cd-a5a1-5dc2b5c5efe5 2025-12-08 19:42:18,389 - DEBUG - Requesting: http://10.0.0.19:8082/project/5a8538b8-4c2e-47e6-a79d-d3906db16a17 2025-12-08 19:42:18,462 - INFO - Validated that VN ctest-vn4-31906592 is not found in API Server 2025-12-08 19:42:18,472 - DEBUG - VN ctest-vn4-31906592 is not present in Agent 10.0.0.19 2025-12-08 19:42:18,472 - INFO - Validated that VN ctest-vn4-31906592 is not in any agent 2025-12-08 19:42:18,486 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31906592 info 2025-12-08 19:42:18,509 - INFO - Deleted policy ctest-policy1-41665777 2025-12-08 19:42:18,684 - DEBUG - policy ctest-policy1-41665777 is not found in API Server 2025-12-08 19:42:18,957 - DEBUG - No XMPP flaps were noticed during the test
2025-12-08 19:42:18,957 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-08 19:42:18,957 - INFO - -------------------------------------------------------------------------------- 2025-12-08 19:42:19,238 - DEBUG - No XMPP flaps were noticed during the test
2025-12-08 19:42:19,238 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-08 19:42:19,239 - INFO - -------------------------------------------------------------------------------- 2025-12-08 19:42:19,979 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-82558007, ID : 5a8538b8-4c2e-47e6-a79d-d3906db16a17