2025-08-29 20:34:19,736 - INFO - Domain Default found not creating 2025-08-29 20:34:19,872 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24477956 not found, creating it 2025-08-29 20:34:20,315 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24477956, ID : b6e40806-ce76-4794-87e6-ff1368e3ab29 2025-08-29 20:34:21,727 - INFO - ================================================================================ 2025-08-29 20:34:21,727 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-29 20:34:21,987 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-29 20:34:21,987 - INFO - Initial checks done. Running the testcase now 2025-08-29 20:34:21,987 - INFO - 2025-08-29 20:34:21,987 - INFO - ================================================================================ 2025-08-29 20:34:21,987 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-29 20:34:21,988 - 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-08-29 20:34:22,284 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-08-29 20:34:22,284 - INFO - Initial checks done. Running the testcase now 2025-08-29 20:34:22,284 - INFO - 2025-08-29 20:34:22,677 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24477956:ctest-vn4-78995236, 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-24477956:ctest-vn4-78995236, 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-24477956:ctest-vn4-78995236, 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-24477956:ctest-vn4-78995236, 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-08-29 20:34:23,201 - DEBUG - Response for create_network : {'network': {'id': 'e0b40aad-c562-4dcb-b96f-ab422edd3370', 'name': 'ctest-vn4-78995236', 'tenant_id': 'b6e40806ce76479487e6ff1368e3ab29', 'project_id': 'b6e40806ce76479487e6ff1368e3ab29', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24477956', 'ctest-vn4-78995236'], 'port_security_enabled': True, 'description': ''}} 2025-08-29 20:34:23,421 - DEBUG - Response for create_subnet : {'subnet': {'id': 'deb11495-c6f5-4be4-aec9-a8b1807623e7', 'name': '', 'tenant_id': 'b6e40806ce76479487e6ff1368e3ab29', 'network_id': 'e0b40aad-c562-4dcb-b96f-ab422edd3370', 'ip_version': 4, 'cidr': '58.131.219.192/26', 'allocation_pools': [{'start': '58.131.219.194', 'end': '58.131.219.254'}], 'gateway_ip': '58.131.219.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.131.219.194', 'tags': [], 'project_id': 'b6e40806ce76479487e6ff1368e3ab29'}} 2025-08-29 20:34:23,614 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7bad465-8e26-41eb-b33f-4db3de78898d', 'name': '', 'tenant_id': 'b6e40806ce76479487e6ff1368e3ab29', 'network_id': 'e0b40aad-c562-4dcb-b96f-ab422edd3370', 'ip_version': 6, 'cidr': '317f:a995:47b5:e26:6f5f:8a9b::/96', 'allocation_pools': [{'start': '317f:a995:47b5:e26:6f5f:8a9b:0:2', 'end': '317f:a995:47b5:e26:6f5f:8a9b:ffff:fffe'}], 'gateway_ip': '317f:a995:47b5:e26:6f5f:8a9b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '317f:a995:47b5:e26:6f5f:8a9b:0:2', 'tags': [], 'project_id': 'b6e40806ce76479487e6ff1368e3ab29'}} 2025-08-29 20:34:23,635 - INFO - Created VN ctest-vn4-78995236 2025-08-29 20:34:23,685 - DEBUG - VN ctest-vn4-78995236 UUID is e0b40aad-c562-4dcb-b96f-ab422edd3370 2025-08-29 20:34:23,870 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e0b40aad-c562-4dcb-b96f-ab422edd3370', 'name': 'ctest-vn4-78995236', 'tenant_id': 'b6e40806ce76479487e6ff1368e3ab29', 'project_id': 'b6e40806ce76479487e6ff1368e3ab29', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['deb11495-c6f5-4be4-aec9-a8b1807623e7', 'a7bad465-8e26-41eb-b33f-4db3de78898d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24477956', 'ctest-vn4-78995236'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24477956', 'ctest-policy1-37562398']], 'subnet_ipam': [{'subnet_cidr': '58.131.219.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '317f:a995:47b5:e26:6f5f:8a9b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-29 20:34:24,038 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-29 20:34:24,329 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-29 20:34:24,361 - DEBUG - Requesting: http://10.0.0.254:8082/domain/27853011-0d06-47ca-b43e-47d64bb5696b 2025-08-29 20:34:24,373 - DEBUG - Requesting: http://10.0.0.254:8082/project/b6e40806-ce76-4794-87e6-ff1368e3ab29 2025-08-29 20:34:24,465 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e0b40aad-c562-4dcb-b96f-ab422edd3370 2025-08-29 20:34:24,476 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e0b40aad-c562-4dcb-b96f-ab422edd3370 2025-08-29 20:34:24,485 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/810ae2ae-fe39-4fa7-a31a-856cb4f1006f 2025-08-29 20:34:24,492 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/810ae2ae-fe39-4fa7-a31a-856cb4f1006f 2025-08-29 20:34:24,498 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/49111cec-e539-4197-9922-23ddf88c4cce 2025-08-29 20:34:24,504 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-29 20:34:24,504 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e0b40aad-c562-4dcb-b96f-ab422edd3370 2025-08-29 20:34:24,517 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/810ae2ae-fe39-4fa7-a31a-856cb4f1006f 2025-08-29 20:34:24,531 - INFO - Verified VN network id 12 for VN e0b40aad-c562-4dcb-b96f-ab422edd3370 2025-08-29 20:34:24,531 - INFO - Verifications in API Server for VN ctest-vn4-78995236 passed 2025-08-29 20:34:24,531 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e0b40aad-c562-4dcb-b96f-ab422edd3370 2025-08-29 20:34:24,539 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/810ae2ae-fe39-4fa7-a31a-856cb4f1006f 2025-08-29 20:34:24,545 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/810ae2ae-fe39-4fa7-a31a-856cb4f1006f 2025-08-29 20:34:24,551 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/49111cec-e539-4197-9922-23ddf88c4cce 2025-08-29 20:34:24,563 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24477956:ctest-vn4-78995236', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24477956', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16191578301760949707', 'uuid-lslong': '13362086920173990768'}, 'enable': 'true', 'created': '2025-08-29T20:34:23', 'last-modified': '2025-08-29T20:34:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.716364'} 2025-08-29 20:34:24,569 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-29 20:34:24,569 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78995236 passed 2025-08-29 20:34:24,569 - DEBUG - ====Verifying policy data for ctest-vn4-78995236 in API_Server ====== 2025-08-29 20:34:24,570 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-29 20:34:24,574 - DEBUG - Requesting: http://10.0.0.254:8082/domain/27853011-0d06-47ca-b43e-47d64bb5696b 2025-08-29 20:34:24,584 - DEBUG - Requesting: http://10.0.0.254:8082/project/b6e40806-ce76-4794-87e6-ff1368e3ab29 2025-08-29 20:34:24,650 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e0b40aad-c562-4dcb-b96f-ab422edd3370 2025-08-29 20:34:24,659 - DEBUG - ==>Verifying data for policy with id: ca4c8383-134d-426f-b2cb-008949cc0eb6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24477956', 'ctest-policy1-37562398'] 2025-08-29 20:34:24,659 - INFO - VN ctest-vn4-78995236 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-29 20:34:24,659 - DEBUG - Verifying the vn in opserver 2025-08-29 20:34:24,659 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24477956:ctest-vn4-78995236 virtual network link through opserver 10.0.0.254 2025-08-29 20:34:24,660 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-29 20:34:24,950 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-29 20:34:25,004 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24477956:ctest-vn4-78995236', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24477956:ctest-vn4-78995236?flat'} 2025-08-29 20:34:25,004 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24477956:ctest-vn4-78995236 is found in opserver 2025-08-29 20:34:25,013 - DEBUG - Do not have enough data to verify VN in agent 2025-08-29 20:34:25,017 - DEBUG - VRF ids for VN ctest-vn4-78995236: {} 2025-08-29 20:34:25,018 - DEBUG - ====Verifying data for ctest-policy1-37562398 in API_Server ====== 2025-08-29 20:34:25,018 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-29 20:34:25,023 - DEBUG - Requesting: http://10.0.0.254:8082/domain/27853011-0d06-47ca-b43e-47d64bb5696b 2025-08-29 20:34:25,033 - DEBUG - Requesting: http://10.0.0.254:8082/project/b6e40806-ce76-4794-87e6-ff1368e3ab29 2025-08-29 20:34:25,102 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/ca4c8383-134d-426f-b2cb-008949cc0eb6 2025-08-29 20:34:25,110 - INFO - Verified policy ctest-policy1-37562398 in API Server, Result: True 2025-08-29 20:34:25,111 - INFO - Done with setup and verification, moving onto test .. 2025-08-29 20:34:25,116 - INFO - Deleting VN ctest-vn4-78995236 2025-08-29 20:34:25,214 - DEBUG - Response for deleting network () 2025-08-29 20:34:25,214 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/810ae2ae-fe39-4fa7-a31a-856cb4f1006f 2025-08-29 20:34:25,219 - DEBUG - Response Code: 404 2025-08-29 20:34:25,219 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-29 20:34:25,223 - DEBUG - Requesting: http://10.0.0.254:8082/domain/27853011-0d06-47ca-b43e-47d64bb5696b 2025-08-29 20:34:25,274 - DEBUG - Requesting: http://10.0.0.254:8082/project/b6e40806-ce76-4794-87e6-ff1368e3ab29 2025-08-29 20:34:25,345 - INFO - Validated that VN ctest-vn4-78995236 is not found in API Server 2025-08-29 20:34:25,358 - DEBUG - VN ctest-vn4-78995236 is not present in Agent 10.0.0.254 2025-08-29 20:34:25,358 - INFO - Validated that VN ctest-vn4-78995236 is not in any agent 2025-08-29 20:34:25,372 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78995236 info 2025-08-29 20:34:25,403 - INFO - Deleted policy ctest-policy1-37562398 2025-08-29 20:34:25,573 - DEBUG - policy ctest-policy1-37562398 is not found in API Server 2025-08-29 20:34:25,826 - DEBUG - No XMPP flaps were noticed during the test