2025-10-31 10:18:59,070 - INFO - Domain Default found not creating 2025-10-31 10:18:59,231 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22201211 not found, creating it 2025-10-31 10:18:59,699 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22201211, ID : cbc52b82-0118-47dd-9369-af6090d957a4 2025-10-31 10:19:01,259 - INFO - ================================================================================ 2025-10-31 10:19:01,259 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 10:19:01,532 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-10-31 10:19:01,532 - INFO - Initial checks done. Running the testcase now 2025-10-31 10:19:01,532 - INFO - 2025-10-31 10:19:01,533 - INFO - ================================================================================ 2025-10-31 10:19:01,533 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 10:19:01,533 - 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-10-31 10:19:01,811 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-10-31 10:19:01,812 - INFO - Initial checks done. Running the testcase now 2025-10-31 10:19:01,812 - INFO - 2025-10-31 10:19:02,179 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22201211:ctest-vn4-82522366, 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-22201211:ctest-vn4-82522366, 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-22201211:ctest-vn4-82522366, 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-22201211:ctest-vn4-82522366, 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-10-31 10:19:02,722 - DEBUG - Response for create_network : {'network': {'id': 'afb196a4-667c-4639-bc50-43cf5f67f048', 'name': 'ctest-vn4-82522366', 'tenant_id': 'cbc52b82011847dd9369af6090d957a4', 'project_id': 'cbc52b82011847dd9369af6090d957a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22201211', 'ctest-vn4-82522366'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 10:19:02,915 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eeaa82db-67b3-43b0-918d-145b84f886f8', 'name': '', 'tenant_id': 'cbc52b82011847dd9369af6090d957a4', 'network_id': 'afb196a4-667c-4639-bc50-43cf5f67f048', 'ip_version': 4, 'cidr': '206.220.176.0/26', 'allocation_pools': [{'start': '206.220.176.2', 'end': '206.220.176.62'}], 'gateway_ip': '206.220.176.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.220.176.2', 'tags': [], 'project_id': 'cbc52b82011847dd9369af6090d957a4'}} 2025-10-31 10:19:03,081 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0337714-41f5-4cb3-b047-daca7d7f1a9f', 'name': '', 'tenant_id': 'cbc52b82011847dd9369af6090d957a4', 'network_id': 'afb196a4-667c-4639-bc50-43cf5f67f048', 'ip_version': 6, 'cidr': '2dde:4bfb:53a6:558d:bee:10d7::/96', 'allocation_pools': [{'start': '2dde:4bfb:53a6:558d:bee:10d7:0:2', 'end': '2dde:4bfb:53a6:558d:bee:10d7:ffff:fffe'}], 'gateway_ip': '2dde:4bfb:53a6:558d:bee:10d7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2dde:4bfb:53a6:558d:bee:10d7:0:2', 'tags': [], 'project_id': 'cbc52b82011847dd9369af6090d957a4'}} 2025-10-31 10:19:03,104 - INFO - Created VN ctest-vn4-82522366 2025-10-31 10:19:03,155 - DEBUG - VN ctest-vn4-82522366 UUID is afb196a4-667c-4639-bc50-43cf5f67f048 2025-10-31 10:19:03,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afb196a4-667c-4639-bc50-43cf5f67f048', 'name': 'ctest-vn4-82522366', 'tenant_id': 'cbc52b82011847dd9369af6090d957a4', 'project_id': 'cbc52b82011847dd9369af6090d957a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eeaa82db-67b3-43b0-918d-145b84f886f8', 'f0337714-41f5-4cb3-b047-daca7d7f1a9f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22201211', 'ctest-vn4-82522366'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22201211', 'ctest-policy1-12725726']], 'subnet_ipam': [{'subnet_cidr': '206.220.176.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dde:4bfb:53a6:558d:bee:10d7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 10:19:03,599 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 10:19:03,914 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 10:19:03,946 - DEBUG - Requesting: http://10.0.0.254:8082/domain/17fcef7e-59ca-443f-97eb-8682e8663d37 2025-10-31 10:19:03,961 - DEBUG - Requesting: http://10.0.0.254:8082/project/cbc52b82-0118-47dd-9369-af6090d957a4 2025-10-31 10:19:04,036 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/afb196a4-667c-4639-bc50-43cf5f67f048 2025-10-31 10:19:04,048 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/afb196a4-667c-4639-bc50-43cf5f67f048 2025-10-31 10:19:04,061 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/17fcfbf3-eb89-40fd-8d4a-866ed4fc8571 2025-10-31 10:19:04,069 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/17fcfbf3-eb89-40fd-8d4a-866ed4fc8571 2025-10-31 10:19:04,079 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5ffd16a1-0925-493c-89d1-30022dd52fcb 2025-10-31 10:19:04,086 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 10:19:04,086 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/afb196a4-667c-4639-bc50-43cf5f67f048 2025-10-31 10:19:04,097 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/17fcfbf3-eb89-40fd-8d4a-866ed4fc8571 2025-10-31 10:19:04,119 - INFO - Verified VN network id 11 for VN afb196a4-667c-4639-bc50-43cf5f67f048 2025-10-31 10:19:04,119 - INFO - Verifications in API Server for VN ctest-vn4-82522366 passed 2025-10-31 10:19:04,120 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/afb196a4-667c-4639-bc50-43cf5f67f048 2025-10-31 10:19:04,130 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/17fcfbf3-eb89-40fd-8d4a-866ed4fc8571 2025-10-31 10:19:04,138 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/17fcfbf3-eb89-40fd-8d4a-866ed4fc8571 2025-10-31 10:19:04,146 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5ffd16a1-0925-493c-89d1-30022dd52fcb 2025-10-31 10:19:04,160 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22201211:ctest-vn4-82522366', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22201211', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12660065660353398329', 'uuid-lslong': '13569420235205242952'}, 'enable': 'true', 'created': '2025-10-31T10:19:02', 'last-modified': '2025-10-31T10:19:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.814020'} 2025-10-31 10:19:04,167 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 10:19:04,167 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82522366 passed 2025-10-31 10:19:04,168 - DEBUG - ====Verifying policy data for ctest-vn4-82522366 in API_Server ====== 2025-10-31 10:19:04,168 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 10:19:04,174 - DEBUG - Requesting: http://10.0.0.254:8082/domain/17fcef7e-59ca-443f-97eb-8682e8663d37 2025-10-31 10:19:04,186 - DEBUG - Requesting: http://10.0.0.254:8082/project/cbc52b82-0118-47dd-9369-af6090d957a4 2025-10-31 10:19:04,264 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/afb196a4-667c-4639-bc50-43cf5f67f048 2025-10-31 10:19:04,277 - DEBUG - ==>Verifying data for policy with id: 9d8de29d-6f11-4a62-a48d-e1a45305d9ba, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22201211', 'ctest-policy1-12725726'] 2025-10-31 10:19:04,277 - INFO - VN ctest-vn4-82522366 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 10:19:04,277 - DEBUG - Verifying the vn in opserver 2025-10-31 10:19:04,277 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22201211:ctest-vn4-82522366 virtual network link through opserver 10.0.0.254 2025-10-31 10:19:04,277 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 10:19:04,578 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 10:19:04,642 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22201211:ctest-vn4-82522366', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22201211:ctest-vn4-82522366?flat'} 2025-10-31 10:19:04,642 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22201211:ctest-vn4-82522366 is found in opserver 2025-10-31 10:19:04,653 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 10:19:04,659 - DEBUG - VRF ids for VN ctest-vn4-82522366: {} 2025-10-31 10:19:04,659 - DEBUG - ====Verifying data for ctest-policy1-12725726 in API_Server ====== 2025-10-31 10:19:04,660 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 10:19:04,668 - DEBUG - Requesting: http://10.0.0.254:8082/domain/17fcef7e-59ca-443f-97eb-8682e8663d37 2025-10-31 10:19:04,679 - DEBUG - Requesting: http://10.0.0.254:8082/project/cbc52b82-0118-47dd-9369-af6090d957a4 2025-10-31 10:19:04,750 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/9d8de29d-6f11-4a62-a48d-e1a45305d9ba 2025-10-31 10:19:04,761 - INFO - Verified policy ctest-policy1-12725726 in API Server, Result: True 2025-10-31 10:19:04,761 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 10:19:04,770 - INFO - Deleting VN ctest-vn4-82522366 2025-10-31 10:19:04,899 - DEBUG - Response for deleting network () 2025-10-31 10:19:04,899 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/17fcfbf3-eb89-40fd-8d4a-866ed4fc8571 2025-10-31 10:19:04,905 - DEBUG - Response Code: 404 2025-10-31 10:19:04,905 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 10:19:04,913 - DEBUG - Requesting: http://10.0.0.254:8082/domain/17fcef7e-59ca-443f-97eb-8682e8663d37 2025-10-31 10:19:04,969 - DEBUG - Requesting: http://10.0.0.254:8082/project/cbc52b82-0118-47dd-9369-af6090d957a4 2025-10-31 10:19:05,042 - INFO - Validated that VN ctest-vn4-82522366 is not found in API Server 2025-10-31 10:19:05,056 - DEBUG - VN ctest-vn4-82522366 is not present in Agent 10.0.0.254 2025-10-31 10:19:05,056 - INFO - Validated that VN ctest-vn4-82522366 is not in any agent 2025-10-31 10:19:05,073 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82522366 info 2025-10-31 10:19:05,098 - INFO - Deleted policy ctest-policy1-12725726 2025-10-31 10:19:05,266 - DEBUG - policy ctest-policy1-12725726 is not found in API Server 2025-10-31 10:19:05,523 - DEBUG - No XMPP flaps were noticed during the test