2025-11-10 10:16:19,869 - INFO - Domain Default found not creating 2025-11-10 10:16:20,063 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70673818 not found, creating it 2025-11-10 10:16:20,552 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70673818, ID : da506a04-10a2-4c5a-9b79-9b6d659d01ac 2025-11-10 10:16:22,078 - INFO - ================================================================================ 2025-11-10 10:16:22,079 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 10:16:22,341 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-10 10:16:22,341 - INFO - Initial checks done. Running the testcase now 2025-11-10 10:16:22,341 - INFO - 2025-11-10 10:16:22,341 - INFO - ================================================================================ 2025-11-10 10:16:22,341 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-10 10:16:22,341 - 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-10 10:16:22,633 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-10 10:16:22,633 - INFO - Initial checks done. Running the testcase now 2025-11-10 10:16:22,633 - INFO - 2025-11-10 10:16:23,015 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70673818:ctest-vn4-25588073, 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-70673818:ctest-vn4-25588073, 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-70673818:ctest-vn4-25588073, 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-70673818:ctest-vn4-25588073, 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-10 10:16:23,527 - DEBUG - Response for create_network : {'network': {'id': 'fa2a886b-7ecf-4fd9-9d31-c506ca4988a5', 'name': 'ctest-vn4-25588073', 'tenant_id': 'da506a0410a24c5a9b799b6d659d01ac', 'project_id': 'da506a0410a24c5a9b799b6d659d01ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70673818', 'ctest-vn4-25588073'], 'port_security_enabled': True, 'description': ''}} 2025-11-10 10:16:23,734 - DEBUG - Response for create_subnet : {'subnet': {'id': '073f0755-34a6-422c-8fa8-c834b43d08d1', 'name': '', 'tenant_id': 'da506a0410a24c5a9b799b6d659d01ac', 'network_id': 'fa2a886b-7ecf-4fd9-9d31-c506ca4988a5', 'ip_version': 4, 'cidr': '110.155.14.192/26', 'allocation_pools': [{'start': '110.155.14.194', 'end': '110.155.14.254'}], 'gateway_ip': '110.155.14.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.155.14.194', 'tags': [], 'project_id': 'da506a0410a24c5a9b799b6d659d01ac'}} 2025-11-10 10:16:23,867 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1788d04-71e8-4159-b307-500906618420', 'name': '', 'tenant_id': 'da506a0410a24c5a9b799b6d659d01ac', 'network_id': 'fa2a886b-7ecf-4fd9-9d31-c506ca4988a5', 'ip_version': 6, 'cidr': '2ae1:2117:db9c:2cb6:d1fe:abbf::/96', 'allocation_pools': [{'start': '2ae1:2117:db9c:2cb6:d1fe:abbf:0:2', 'end': '2ae1:2117:db9c:2cb6:d1fe:abbf:ffff:fffe'}], 'gateway_ip': '2ae1:2117:db9c:2cb6:d1fe:abbf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ae1:2117:db9c:2cb6:d1fe:abbf:0:2', 'tags': [], 'project_id': 'da506a0410a24c5a9b799b6d659d01ac'}} 2025-11-10 10:16:23,885 - INFO - Created VN ctest-vn4-25588073 2025-11-10 10:16:23,936 - DEBUG - VN ctest-vn4-25588073 UUID is fa2a886b-7ecf-4fd9-9d31-c506ca4988a5 2025-11-10 10:16:24,117 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa2a886b-7ecf-4fd9-9d31-c506ca4988a5', 'name': 'ctest-vn4-25588073', 'tenant_id': 'da506a0410a24c5a9b799b6d659d01ac', 'project_id': 'da506a0410a24c5a9b799b6d659d01ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['073f0755-34a6-422c-8fa8-c834b43d08d1', 'c1788d04-71e8-4159-b307-500906618420'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70673818', 'ctest-vn4-25588073'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70673818', 'ctest-policy1-03647061']], 'subnet_ipam': [{'subnet_cidr': '110.155.14.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ae1:2117:db9c:2cb6:d1fe:abbf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-10 10:16:24,284 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-10 10:16:24,599 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-10 10:16:24,629 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8d86918c-2e88-44ad-a64b-7253ce0b2e2e 2025-11-10 10:16:24,642 - DEBUG - Requesting: http://10.0.0.50:8082/project/da506a04-10a2-4c5a-9b79-9b6d659d01ac 2025-11-10 10:16:24,711 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa2a886b-7ecf-4fd9-9d31-c506ca4988a5 2025-11-10 10:16:24,723 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa2a886b-7ecf-4fd9-9d31-c506ca4988a5 2025-11-10 10:16:24,732 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c800b94-faa7-4a98-a8fa-226d5fa4896f 2025-11-10 10:16:24,738 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c800b94-faa7-4a98-a8fa-226d5fa4896f 2025-11-10 10:16:24,745 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2a8ea45c-f5e8-40b4-9a3c-73cffbaf052f 2025-11-10 10:16:24,751 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 10:16:24,751 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa2a886b-7ecf-4fd9-9d31-c506ca4988a5 2025-11-10 10:16:24,836 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c800b94-faa7-4a98-a8fa-226d5fa4896f 2025-11-10 10:16:24,851 - INFO - Verified VN network id 11 for VN fa2a886b-7ecf-4fd9-9d31-c506ca4988a5 2025-11-10 10:16:24,851 - INFO - Verifications in API Server for VN ctest-vn4-25588073 passed 2025-11-10 10:16:24,851 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa2a886b-7ecf-4fd9-9d31-c506ca4988a5 2025-11-10 10:16:24,860 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c800b94-faa7-4a98-a8fa-226d5fa4896f 2025-11-10 10:16:24,868 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c800b94-faa7-4a98-a8fa-226d5fa4896f 2025-11-10 10:16:24,875 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2a8ea45c-f5e8-40b4-9a3c-73cffbaf052f 2025-11-10 10:16:24,887 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70673818:ctest-vn4-25588073', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70673818', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18026370453774225369', 'uuid-lslong': '11327051170767800485'}, 'enable': 'true', 'created': '2025-11-10T10:16:23', 'last-modified': '2025-11-10T10:16:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.796895'} 2025-11-10 10:16:24,895 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-10 10:16:24,895 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25588073 passed 2025-11-10 10:16:24,895 - DEBUG - ====Verifying policy data for ctest-vn4-25588073 in API_Server ====== 2025-11-10 10:16:24,895 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-10 10:16:24,901 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8d86918c-2e88-44ad-a64b-7253ce0b2e2e 2025-11-10 10:16:24,913 - DEBUG - Requesting: http://10.0.0.50:8082/project/da506a04-10a2-4c5a-9b79-9b6d659d01ac 2025-11-10 10:16:24,986 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fa2a886b-7ecf-4fd9-9d31-c506ca4988a5 2025-11-10 10:16:24,995 - DEBUG - ==>Verifying data for policy with id: 53f170e1-8e40-459a-ae5d-bfe10d81e73e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70673818', 'ctest-policy1-03647061'] 2025-11-10 10:16:24,995 - INFO - VN ctest-vn4-25588073 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-10 10:16:24,995 - DEBUG - Verifying the vn in opserver 2025-11-10 10:16:24,995 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70673818:ctest-vn4-25588073 virtual network link through opserver 10.0.0.50 2025-11-10 10:16:24,995 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-10 10:16:25,320 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-10 10:16:25,385 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70673818:ctest-vn4-25588073', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70673818:ctest-vn4-25588073?flat'} 2025-11-10 10:16:25,385 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70673818:ctest-vn4-25588073 is found in opserver 2025-11-10 10:16:25,395 - DEBUG - Do not have enough data to verify VN in agent 2025-11-10 10:16:25,399 - DEBUG - VRF ids for VN ctest-vn4-25588073: {} 2025-11-10 10:16:25,400 - DEBUG - ====Verifying data for ctest-policy1-03647061 in API_Server ====== 2025-11-10 10:16:25,400 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-10 10:16:25,406 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8d86918c-2e88-44ad-a64b-7253ce0b2e2e 2025-11-10 10:16:25,416 - DEBUG - Requesting: http://10.0.0.50:8082/project/da506a04-10a2-4c5a-9b79-9b6d659d01ac 2025-11-10 10:16:25,485 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/53f170e1-8e40-459a-ae5d-bfe10d81e73e 2025-11-10 10:16:25,494 - INFO - Verified policy ctest-policy1-03647061 in API Server, Result: True 2025-11-10 10:16:25,494 - INFO - Done with setup and verification, moving onto test .. 2025-11-10 10:16:25,501 - INFO - Deleting VN ctest-vn4-25588073 2025-11-10 10:16:25,618 - DEBUG - Response for deleting network () 2025-11-10 10:16:25,618 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2c800b94-faa7-4a98-a8fa-226d5fa4896f 2025-11-10 10:16:25,624 - DEBUG - Response Code: 404 2025-11-10 10:16:25,624 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-10 10:16:25,630 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8d86918c-2e88-44ad-a64b-7253ce0b2e2e 2025-11-10 10:16:25,682 - DEBUG - Requesting: http://10.0.0.50:8082/project/da506a04-10a2-4c5a-9b79-9b6d659d01ac 2025-11-10 10:16:25,752 - INFO - Validated that VN ctest-vn4-25588073 is not found in API Server 2025-11-10 10:16:25,762 - DEBUG - VN ctest-vn4-25588073 is not present in Agent 10.0.0.50 2025-11-10 10:16:25,762 - INFO - Validated that VN ctest-vn4-25588073 is not in any agent 2025-11-10 10:16:25,775 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25588073 info 2025-11-10 10:16:25,799 - INFO - Deleted policy ctest-policy1-03647061 2025-11-10 10:16:25,960 - DEBUG - policy ctest-policy1-03647061 is not found in API Server 2025-11-10 10:16:26,213 - DEBUG - No XMPP flaps were noticed during the test 2025-11-10 10:16:26,213 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-10 10:16:26,213 - INFO - -------------------------------------------------------------------------------- 2025-11-10 10:16:26,505 - DEBUG - No XMPP flaps were noticed during the test 2025-11-10 10:16:26,505 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-10 10:16:26,505 - INFO - -------------------------------------------------------------------------------- 2025-11-10 10:16:27,197 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-70673818, ID : da506a04-10a2-4c5a-9b79-9b6d659d01ac