2025-08-28 14:19:47,372 - INFO - Domain Default found not creating 2025-08-28 14:19:47,514 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95393373 not found, creating it 2025-08-28 14:19:47,958 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95393373, ID : a3edacdf-4963-4268-ba6b-be277834ff4e 2025-08-28 14:19:49,437 - INFO - ================================================================================ 2025-08-28 14:19:49,437 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 14:19:49,693 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-08-28 14:19:49,693 - INFO - Initial checks done. Running the testcase now 2025-08-28 14:19:49,693 - INFO - 2025-08-28 14:19:49,693 - INFO - ================================================================================ 2025-08-28 14:19:49,693 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-28 14:19:49,693 - 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-28 14:19:49,980 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2025-08-28 14:19:49,980 - INFO - Initial checks done. Running the testcase now 2025-08-28 14:19:49,980 - INFO - 2025-08-28 14:19:50,365 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95393373:ctest-vn4-99733839, 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-95393373:ctest-vn4-99733839, 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-95393373:ctest-vn4-99733839, 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-95393373:ctest-vn4-99733839, 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-28 14:19:50,856 - DEBUG - Response for create_network : {'network': {'id': '0d63cccc-e53f-4b05-8749-64d8533d199f', 'name': 'ctest-vn4-99733839', 'tenant_id': 'a3edacdf49634268ba6bbe277834ff4e', 'project_id': 'a3edacdf49634268ba6bbe277834ff4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95393373', 'ctest-vn4-99733839'], 'port_security_enabled': True, 'description': ''}} 2025-08-28 14:19:51,014 - DEBUG - Response for create_subnet : {'subnet': {'id': '19cac3e1-9c0f-47f6-a50d-93454ce106c0', 'name': '', 'tenant_id': 'a3edacdf49634268ba6bbe277834ff4e', 'network_id': '0d63cccc-e53f-4b05-8749-64d8533d199f', 'ip_version': 4, 'cidr': '26.80.220.0/26', 'allocation_pools': [{'start': '26.80.220.2', 'end': '26.80.220.62'}], 'gateway_ip': '26.80.220.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26.80.220.2', 'tags': [], 'project_id': 'a3edacdf49634268ba6bbe277834ff4e'}} 2025-08-28 14:19:51,217 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da5fd684-7fff-4a36-930a-990e19031de7', 'name': '', 'tenant_id': 'a3edacdf49634268ba6bbe277834ff4e', 'network_id': '0d63cccc-e53f-4b05-8749-64d8533d199f', 'ip_version': 6, 'cidr': '23fc:179e:707d:4e90:d30:5665::/96', 'allocation_pools': [{'start': '23fc:179e:707d:4e90:d30:5665:0:2', 'end': '23fc:179e:707d:4e90:d30:5665:ffff:fffe'}], 'gateway_ip': '23fc:179e:707d:4e90:d30:5665:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23fc:179e:707d:4e90:d30:5665:0:2', 'tags': [], 'project_id': 'a3edacdf49634268ba6bbe277834ff4e'}} 2025-08-28 14:19:51,236 - INFO - Created VN ctest-vn4-99733839 2025-08-28 14:19:51,288 - DEBUG - VN ctest-vn4-99733839 UUID is 0d63cccc-e53f-4b05-8749-64d8533d199f 2025-08-28 14:19:51,471 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d63cccc-e53f-4b05-8749-64d8533d199f', 'name': 'ctest-vn4-99733839', 'tenant_id': 'a3edacdf49634268ba6bbe277834ff4e', 'project_id': 'a3edacdf49634268ba6bbe277834ff4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19cac3e1-9c0f-47f6-a50d-93454ce106c0', 'da5fd684-7fff-4a36-930a-990e19031de7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95393373', 'ctest-vn4-99733839'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95393373', 'ctest-policy1-44902291']], 'subnet_ipam': [{'subnet_cidr': '26.80.220.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23fc:179e:707d:4e90:d30:5665::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-28 14:19:51,632 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 14:19:51,961 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 14:19:51,986 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381 2025-08-28 14:19:52,000 - DEBUG - Requesting: http://10.0.0.249:8082/project/a3edacdf-4963-4268-ba6b-be277834ff4e 2025-08-28 14:19:52,071 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0d63cccc-e53f-4b05-8749-64d8533d199f 2025-08-28 14:19:52,082 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0d63cccc-e53f-4b05-8749-64d8533d199f 2025-08-28 14:19:52,091 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ad363a08-f946-44e5-a818-48e39bc83e9f 2025-08-28 14:19:52,097 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ad363a08-f946-44e5-a818-48e39bc83e9f 2025-08-28 14:19:52,102 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d380f3c6-8bf2-4a6e-b49b-abebb6473906 2025-08-28 14:19:52,107 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 14:19:52,107 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0d63cccc-e53f-4b05-8749-64d8533d199f 2025-08-28 14:19:52,115 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ad363a08-f946-44e5-a818-48e39bc83e9f 2025-08-28 14:19:52,127 - INFO - Verified VN network id 11 for VN 0d63cccc-e53f-4b05-8749-64d8533d199f 2025-08-28 14:19:52,127 - INFO - Verifications in API Server for VN ctest-vn4-99733839 passed 2025-08-28 14:19:52,127 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0d63cccc-e53f-4b05-8749-64d8533d199f 2025-08-28 14:19:52,136 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ad363a08-f946-44e5-a818-48e39bc83e9f 2025-08-28 14:19:52,141 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ad363a08-f946-44e5-a818-48e39bc83e9f 2025-08-28 14:19:52,147 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d380f3c6-8bf2-4a6e-b49b-abebb6473906 2025-08-28 14:19:52,156 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95393373:ctest-vn4-99733839', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95393373', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '964839925578943237', 'uuid-lslong': '9748433748692375967'}, 'enable': 'true', 'created': '2025-08-28T14:19:50', 'last-modified': '2025-08-28T14:19:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.713526'} 2025-08-28 14:19:52,162 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-28 14:19:52,162 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99733839 passed 2025-08-28 14:19:52,162 - DEBUG - ====Verifying policy data for ctest-vn4-99733839 in API_Server ====== 2025-08-28 14:19:52,162 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 14:19:52,168 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381 2025-08-28 14:19:52,177 - DEBUG - Requesting: http://10.0.0.249:8082/project/a3edacdf-4963-4268-ba6b-be277834ff4e 2025-08-28 14:19:52,245 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0d63cccc-e53f-4b05-8749-64d8533d199f 2025-08-28 14:19:52,256 - DEBUG - ==>Verifying data for policy with id: 52cb52a0-94e1-4c1e-8a8e-28d3279188db, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95393373', 'ctest-policy1-44902291'] 2025-08-28 14:19:52,256 - INFO - VN ctest-vn4-99733839 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-28 14:19:52,256 - DEBUG - Verifying the vn in opserver 2025-08-28 14:19:52,256 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95393373:ctest-vn4-99733839 virtual network link through opserver 10.0.0.249 2025-08-28 14:19:52,257 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-28 14:19:52,594 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-08-28 14:19:52,649 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95393373:ctest-vn4-99733839', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95393373:ctest-vn4-99733839?flat'} 2025-08-28 14:19:52,649 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95393373:ctest-vn4-99733839 is found in opserver 2025-08-28 14:19:52,658 - DEBUG - Do not have enough data to verify VN in agent 2025-08-28 14:19:52,662 - DEBUG - VRF ids for VN ctest-vn4-99733839: {} 2025-08-28 14:19:52,663 - DEBUG - ====Verifying data for ctest-policy1-44902291 in API_Server ====== 2025-08-28 14:19:52,663 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 14:19:52,668 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381 2025-08-28 14:19:52,677 - DEBUG - Requesting: http://10.0.0.249:8082/project/a3edacdf-4963-4268-ba6b-be277834ff4e 2025-08-28 14:19:52,744 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/52cb52a0-94e1-4c1e-8a8e-28d3279188db 2025-08-28 14:19:52,753 - INFO - Verified policy ctest-policy1-44902291 in API Server, Result: True 2025-08-28 14:19:52,753 - INFO - Done with setup and verification, moving onto test .. 2025-08-28 14:19:52,760 - INFO - Deleting VN ctest-vn4-99733839 2025-08-28 14:19:52,873 - DEBUG - Response for deleting network () 2025-08-28 14:19:52,873 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ad363a08-f946-44e5-a818-48e39bc83e9f 2025-08-28 14:19:52,877 - DEBUG - Response Code: 404 2025-08-28 14:19:52,877 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-08-28 14:19:52,882 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5d03df05-e0d5-4270-9076-958063a7f381 2025-08-28 14:19:52,936 - DEBUG - Requesting: http://10.0.0.249:8082/project/a3edacdf-4963-4268-ba6b-be277834ff4e 2025-08-28 14:19:53,008 - INFO - Validated that VN ctest-vn4-99733839 is not found in API Server 2025-08-28 14:19:53,017 - DEBUG - VN ctest-vn4-99733839 is not present in Agent 10.0.0.249 2025-08-28 14:19:53,018 - INFO - Validated that VN ctest-vn4-99733839 is not in any agent 2025-08-28 14:19:53,030 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99733839 info 2025-08-28 14:19:53,051 - INFO - Deleted policy ctest-policy1-44902291 2025-08-28 14:19:53,219 - DEBUG - policy ctest-policy1-44902291 is not found in API Server 2025-08-28 14:19:53,472 - DEBUG - No XMPP flaps were noticed during the test