2025-08-04 02:23:27,795 - INFO - Domain Default found not creating 2025-08-04 02:23:27,957 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98978517 not found, creating it 2025-08-04 02:23:28,537 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98978517, ID : 88419b22-87be-4f9a-9541-c4e3965ee01c 2025-08-04 02:23:30,008 - INFO - ================================================================================ 2025-08-04 02:23:30,008 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-04 02:23:30,271 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-08-04 02:23:30,272 - INFO - Initial checks done. Running the testcase now 2025-08-04 02:23:30,272 - INFO - 2025-08-04 02:23:30,272 - INFO - ================================================================================ 2025-08-04 02:23:30,272 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-04 02:23:30,272 - 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-04 02:23:30,566 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-08-04 02:23:30,566 - INFO - Initial checks done. Running the testcase now 2025-08-04 02:23:30,566 - INFO - 2025-08-04 02:23:30,995 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98978517:ctest-vn4-69928636, 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-98978517:ctest-vn4-69928636, 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-98978517:ctest-vn4-69928636, 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-98978517:ctest-vn4-69928636, 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-04 02:23:31,557 - DEBUG - Response for create_network : {'network': {'id': '800cc074-2437-43c8-af1d-f2c5c3f0b172', 'name': 'ctest-vn4-69928636', 'tenant_id': '88419b2287be4f9a9541c4e3965ee01c', 'project_id': '88419b2287be4f9a9541c4e3965ee01c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98978517', 'ctest-vn4-69928636'], 'port_security_enabled': True, 'description': ''}} 2025-08-04 02:23:31,791 - DEBUG - Response for create_subnet : {'subnet': {'id': '25d931c8-2af1-4291-9804-180c27719f2b', 'name': '', 'tenant_id': '88419b2287be4f9a9541c4e3965ee01c', 'network_id': '800cc074-2437-43c8-af1d-f2c5c3f0b172', 'ip_version': 4, 'cidr': '25.167.6.128/26', 'allocation_pools': [{'start': '25.167.6.130', 'end': '25.167.6.190'}], 'gateway_ip': '25.167.6.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.167.6.130', 'tags': [], 'project_id': '88419b2287be4f9a9541c4e3965ee01c'}} 2025-08-04 02:23:32,009 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f3fd318-4f1a-4afd-9335-4aca87936182', 'name': '', 'tenant_id': '88419b2287be4f9a9541c4e3965ee01c', 'network_id': '800cc074-2437-43c8-af1d-f2c5c3f0b172', 'ip_version': 6, 'cidr': '3b65:7dc8:f1ae:9f22:ef6b:a894::/96', 'allocation_pools': [{'start': '3b65:7dc8:f1ae:9f22:ef6b:a894:0:2', 'end': '3b65:7dc8:f1ae:9f22:ef6b:a894:ffff:fffe'}], 'gateway_ip': '3b65:7dc8:f1ae:9f22:ef6b:a894:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b65:7dc8:f1ae:9f22:ef6b:a894:0:2', 'tags': [], 'project_id': '88419b2287be4f9a9541c4e3965ee01c'}} 2025-08-04 02:23:32,034 - INFO - Created VN ctest-vn4-69928636 2025-08-04 02:23:32,087 - DEBUG - VN ctest-vn4-69928636 UUID is 800cc074-2437-43c8-af1d-f2c5c3f0b172 2025-08-04 02:23:32,304 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '800cc074-2437-43c8-af1d-f2c5c3f0b172', 'name': 'ctest-vn4-69928636', 'tenant_id': '88419b2287be4f9a9541c4e3965ee01c', 'project_id': '88419b2287be4f9a9541c4e3965ee01c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['25d931c8-2af1-4291-9804-180c27719f2b', '1f3fd318-4f1a-4afd-9335-4aca87936182'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98978517', 'ctest-vn4-69928636'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98978517', 'ctest-policy1-66895304']], 'subnet_ipam': [{'subnet_cidr': '25.167.6.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b65:7dc8:f1ae:9f22:ef6b:a894::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-04 02:23:32,475 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-04 02:23:32,796 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-04 02:23:32,829 - DEBUG - Requesting: http://10.0.0.50:8082/domain/24f65d5f-50c0-4485-879b-6ea068bf951d 2025-08-04 02:23:32,843 - DEBUG - Requesting: http://10.0.0.50:8082/project/88419b22-87be-4f9a-9541-c4e3965ee01c 2025-08-04 02:23:32,917 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/800cc074-2437-43c8-af1d-f2c5c3f0b172 2025-08-04 02:23:32,932 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/800cc074-2437-43c8-af1d-f2c5c3f0b172 2025-08-04 02:23:32,945 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/818249db-a0d8-4e7a-8cdd-7ac1afc5c1ae 2025-08-04 02:23:32,955 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/818249db-a0d8-4e7a-8cdd-7ac1afc5c1ae 2025-08-04 02:23:32,963 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ce9cec14-c533-4383-b9cb-02b5acb4e589 2025-08-04 02:23:32,971 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 02:23:32,971 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/800cc074-2437-43c8-af1d-f2c5c3f0b172 2025-08-04 02:23:32,982 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/818249db-a0d8-4e7a-8cdd-7ac1afc5c1ae 2025-08-04 02:23:32,997 - INFO - Verified VN network id 9 for VN 800cc074-2437-43c8-af1d-f2c5c3f0b172 2025-08-04 02:23:32,997 - INFO - Verifications in API Server for VN ctest-vn4-69928636 passed 2025-08-04 02:23:32,997 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/800cc074-2437-43c8-af1d-f2c5c3f0b172 2025-08-04 02:23:33,008 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/818249db-a0d8-4e7a-8cdd-7ac1afc5c1ae 2025-08-04 02:23:33,017 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/818249db-a0d8-4e7a-8cdd-7ac1afc5c1ae 2025-08-04 02:23:33,025 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ce9cec14-c533-4383-b9cb-02b5acb4e589 2025-08-04 02:23:33,039 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98978517:ctest-vn4-69928636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98978517', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9226961341631644616', 'uuid-lslong': '12618508662171808114'}, 'enable': 'true', 'created': '2025-08-04T02:23:31', 'last-modified': '2025-08-04T02:23:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.766272'} 2025-08-04 02:23:33,046 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 02:23:33,046 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69928636 passed 2025-08-04 02:23:33,046 - DEBUG - ====Verifying policy data for ctest-vn4-69928636 in API_Server ====== 2025-08-04 02:23:33,047 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-04 02:23:33,053 - DEBUG - Requesting: http://10.0.0.50:8082/domain/24f65d5f-50c0-4485-879b-6ea068bf951d 2025-08-04 02:23:33,067 - DEBUG - Requesting: http://10.0.0.50:8082/project/88419b22-87be-4f9a-9541-c4e3965ee01c 2025-08-04 02:23:33,143 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/800cc074-2437-43c8-af1d-f2c5c3f0b172 2025-08-04 02:23:33,157 - DEBUG - ==>Verifying data for policy with id: 696bfaa0-79f1-4908-8a2a-ddc46683d5e9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98978517', 'ctest-policy1-66895304'] 2025-08-04 02:23:33,157 - INFO - VN ctest-vn4-69928636 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-04 02:23:33,157 - DEBUG - Verifying the vn in opserver 2025-08-04 02:23:33,157 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98978517:ctest-vn4-69928636 virtual network link through opserver 10.0.0.50 2025-08-04 02:23:33,157 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-04 02:23:33,461 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-04 02:23:33,525 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98978517:ctest-vn4-69928636', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98978517:ctest-vn4-69928636?flat'} 2025-08-04 02:23:33,525 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98978517:ctest-vn4-69928636 is found in opserver 2025-08-04 02:23:33,538 - DEBUG - Do not have enough data to verify VN in agent 2025-08-04 02:23:33,544 - DEBUG - VRF ids for VN ctest-vn4-69928636: {} 2025-08-04 02:23:33,545 - DEBUG - ====Verifying data for ctest-policy1-66895304 in API_Server ====== 2025-08-04 02:23:33,545 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-04 02:23:33,552 - DEBUG - Requesting: http://10.0.0.50:8082/domain/24f65d5f-50c0-4485-879b-6ea068bf951d 2025-08-04 02:23:33,566 - DEBUG - Requesting: http://10.0.0.50:8082/project/88419b22-87be-4f9a-9541-c4e3965ee01c 2025-08-04 02:23:33,645 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/696bfaa0-79f1-4908-8a2a-ddc46683d5e9 2025-08-04 02:23:33,658 - INFO - Verified policy ctest-policy1-66895304 in API Server, Result: True 2025-08-04 02:23:33,658 - INFO - Done with setup and verification, moving onto test .. 2025-08-04 02:23:33,669 - INFO - Deleting VN ctest-vn4-69928636 2025-08-04 02:23:33,826 - DEBUG - Response for deleting network () 2025-08-04 02:23:33,826 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/818249db-a0d8-4e7a-8cdd-7ac1afc5c1ae 2025-08-04 02:23:33,834 - DEBUG - Response Code: 404 2025-08-04 02:23:33,834 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-04 02:23:33,840 - DEBUG - Requesting: http://10.0.0.50:8082/domain/24f65d5f-50c0-4485-879b-6ea068bf951d 2025-08-04 02:23:33,899 - DEBUG - Requesting: http://10.0.0.50:8082/project/88419b22-87be-4f9a-9541-c4e3965ee01c 2025-08-04 02:23:33,976 - INFO - Validated that VN ctest-vn4-69928636 is not found in API Server 2025-08-04 02:23:33,988 - DEBUG - VN ctest-vn4-69928636 is not present in Agent 10.0.0.50 2025-08-04 02:23:33,988 - INFO - Validated that VN ctest-vn4-69928636 is not in any agent 2025-08-04 02:23:34,007 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69928636 info 2025-08-04 02:23:34,031 - INFO - Deleted policy ctest-policy1-66895304 2025-08-04 02:23:34,207 - DEBUG - policy ctest-policy1-66895304 is not found in API Server 2025-08-04 02:23:34,474 - DEBUG - No XMPP flaps were noticed during the test