2025-11-05 22:32:03,474 - INFO - Domain Default found not creating 2025-11-05 22:32:03,631 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24379097 not found, creating it 2025-11-05 22:32:04,134 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24379097, ID : bbb97f90-5b8f-4f88-b779-821c5c92f9bf 2025-11-05 22:32:05,621 - INFO - ================================================================================ 2025-11-05 22:32:05,621 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 22:32:05,887 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-05 22:32:05,887 - INFO - Initial checks done. Running the testcase now 2025-11-05 22:32:05,888 - INFO - 2025-11-05 22:32:05,888 - INFO - ================================================================================ 2025-11-05 22:32:05,888 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 22:32:05,888 - 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-05 22:32:06,173 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-05 22:32:06,173 - INFO - Initial checks done. Running the testcase now 2025-11-05 22:32:06,173 - INFO - 2025-11-05 22:32:06,537 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24379097:ctest-vn4-01553289, 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-24379097:ctest-vn4-01553289, 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-24379097:ctest-vn4-01553289, 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-24379097:ctest-vn4-01553289, 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-05 22:32:07,063 - DEBUG - Response for create_network : {'network': {'id': '8942488c-529a-48e5-96b6-f03ad75a4f84', 'name': 'ctest-vn4-01553289', 'tenant_id': 'bbb97f905b8f4f88b779821c5c92f9bf', 'project_id': 'bbb97f905b8f4f88b779821c5c92f9bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24379097', 'ctest-vn4-01553289'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 22:32:07,230 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5041e0e-6f47-468b-9c25-f7be8d5570c8', 'name': '', 'tenant_id': 'bbb97f905b8f4f88b779821c5c92f9bf', 'network_id': '8942488c-529a-48e5-96b6-f03ad75a4f84', 'ip_version': 4, 'cidr': '59.87.119.192/26', 'allocation_pools': [{'start': '59.87.119.194', 'end': '59.87.119.254'}], 'gateway_ip': '59.87.119.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.87.119.194', 'tags': [], 'project_id': 'bbb97f905b8f4f88b779821c5c92f9bf'}} 2025-11-05 22:32:07,407 - DEBUG - Response for create_subnet : {'subnet': {'id': 'adfa9089-480e-479e-8463-c0e40e28ad56', 'name': '', 'tenant_id': 'bbb97f905b8f4f88b779821c5c92f9bf', 'network_id': '8942488c-529a-48e5-96b6-f03ad75a4f84', 'ip_version': 6, 'cidr': '3314:c49a:c648:9fa6:6d9e:572::/96', 'allocation_pools': [{'start': '3314:c49a:c648:9fa6:6d9e:572:0:2', 'end': '3314:c49a:c648:9fa6:6d9e:572:ffff:fffe'}], 'gateway_ip': '3314:c49a:c648:9fa6:6d9e:572:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3314:c49a:c648:9fa6:6d9e:572:0:2', 'tags': [], 'project_id': 'bbb97f905b8f4f88b779821c5c92f9bf'}} 2025-11-05 22:32:07,429 - INFO - Created VN ctest-vn4-01553289 2025-11-05 22:32:07,483 - DEBUG - VN ctest-vn4-01553289 UUID is 8942488c-529a-48e5-96b6-f03ad75a4f84 2025-11-05 22:32:07,692 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8942488c-529a-48e5-96b6-f03ad75a4f84', 'name': 'ctest-vn4-01553289', 'tenant_id': 'bbb97f905b8f4f88b779821c5c92f9bf', 'project_id': 'bbb97f905b8f4f88b779821c5c92f9bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5041e0e-6f47-468b-9c25-f7be8d5570c8', 'adfa9089-480e-479e-8463-c0e40e28ad56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24379097', 'ctest-vn4-01553289'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24379097', 'ctest-policy1-91324497']], 'subnet_ipam': [{'subnet_cidr': '59.87.119.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3314:c49a:c648:9fa6:6d9e:572::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 22:32:07,843 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 22:32:08,147 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 22:32:08,176 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c60ecb1-a27f-4635-9b96-6059c81a3aec 2025-11-05 22:32:08,188 - DEBUG - Requesting: http://10.0.0.38:8082/project/bbb97f90-5b8f-4f88-b779-821c5c92f9bf 2025-11-05 22:32:08,261 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8942488c-529a-48e5-96b6-f03ad75a4f84 2025-11-05 22:32:08,274 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8942488c-529a-48e5-96b6-f03ad75a4f84 2025-11-05 22:32:08,283 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/520157b1-40c3-4881-81b8-770d48827e85 2025-11-05 22:32:08,289 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/520157b1-40c3-4881-81b8-770d48827e85 2025-11-05 22:32:08,295 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cf2569b1-d66f-441e-9195-82dc107e972d 2025-11-05 22:32:08,301 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 22:32:08,301 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8942488c-529a-48e5-96b6-f03ad75a4f84 2025-11-05 22:32:08,309 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/520157b1-40c3-4881-81b8-770d48827e85 2025-11-05 22:32:08,323 - INFO - Verified VN network id 11 for VN 8942488c-529a-48e5-96b6-f03ad75a4f84 2025-11-05 22:32:08,323 - INFO - Verifications in API Server for VN ctest-vn4-01553289 passed 2025-11-05 22:32:08,323 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8942488c-529a-48e5-96b6-f03ad75a4f84 2025-11-05 22:32:08,332 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/520157b1-40c3-4881-81b8-770d48827e85 2025-11-05 22:32:08,338 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/520157b1-40c3-4881-81b8-770d48827e85 2025-11-05 22:32:08,343 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cf2569b1-d66f-441e-9195-82dc107e972d 2025-11-05 22:32:08,354 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24379097:ctest-vn4-01553289', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24379097', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9890547499177494757', 'uuid-lslong': '10860131686962319236'}, 'enable': 'true', 'created': '2025-11-05T22:32:07', 'last-modified': '2025-11-05T22:32:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694223'} 2025-11-05 22:32:08,360 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 22:32:08,360 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01553289 passed 2025-11-05 22:32:08,360 - DEBUG - ====Verifying policy data for ctest-vn4-01553289 in API_Server ====== 2025-11-05 22:32:08,360 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 22:32:08,367 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c60ecb1-a27f-4635-9b96-6059c81a3aec 2025-11-05 22:32:08,378 - DEBUG - Requesting: http://10.0.0.38:8082/project/bbb97f90-5b8f-4f88-b779-821c5c92f9bf 2025-11-05 22:32:08,456 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8942488c-529a-48e5-96b6-f03ad75a4f84 2025-11-05 22:32:08,468 - DEBUG - ==>Verifying data for policy with id: fdf44b74-79b7-4368-9e8a-70f9ececd9e5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24379097', 'ctest-policy1-91324497'] 2025-11-05 22:32:08,468 - INFO - VN ctest-vn4-01553289 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 22:32:08,468 - DEBUG - Verifying the vn in opserver 2025-11-05 22:32:08,469 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24379097:ctest-vn4-01553289 virtual network link through opserver 10.0.0.38 2025-11-05 22:32:08,469 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-05 22:32:08,766 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-05 22:32:08,822 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24379097:ctest-vn4-01553289', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24379097:ctest-vn4-01553289?flat'} 2025-11-05 22:32:08,822 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24379097:ctest-vn4-01553289 is found in opserver 2025-11-05 22:32:08,833 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 22:32:08,838 - DEBUG - VRF ids for VN ctest-vn4-01553289: {} 2025-11-05 22:32:08,838 - DEBUG - ====Verifying data for ctest-policy1-91324497 in API_Server ====== 2025-11-05 22:32:08,838 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 22:32:08,843 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c60ecb1-a27f-4635-9b96-6059c81a3aec 2025-11-05 22:32:08,853 - DEBUG - Requesting: http://10.0.0.38:8082/project/bbb97f90-5b8f-4f88-b779-821c5c92f9bf 2025-11-05 22:32:08,923 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/fdf44b74-79b7-4368-9e8a-70f9ececd9e5 2025-11-05 22:32:08,933 - INFO - Verified policy ctest-policy1-91324497 in API Server, Result: True 2025-11-05 22:32:08,934 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 22:32:08,943 - INFO - Deleting VN ctest-vn4-01553289 2025-11-05 22:32:09,057 - DEBUG - Response for deleting network () 2025-11-05 22:32:09,057 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/520157b1-40c3-4881-81b8-770d48827e85 2025-11-05 22:32:09,062 - DEBUG - Response Code: 404 2025-11-05 22:32:09,062 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-05 22:32:09,069 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c60ecb1-a27f-4635-9b96-6059c81a3aec 2025-11-05 22:32:09,124 - DEBUG - Requesting: http://10.0.0.38:8082/project/bbb97f90-5b8f-4f88-b779-821c5c92f9bf 2025-11-05 22:32:09,201 - INFO - Validated that VN ctest-vn4-01553289 is not found in API Server 2025-11-05 22:32:09,212 - DEBUG - VN ctest-vn4-01553289 is not present in Agent 10.0.0.38 2025-11-05 22:32:09,212 - INFO - Validated that VN ctest-vn4-01553289 is not in any agent 2025-11-05 22:32:09,227 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01553289 info 2025-11-05 22:32:09,256 - INFO - Deleted policy ctest-policy1-91324497 2025-11-05 22:32:09,419 - DEBUG - policy ctest-policy1-91324497 is not found in API Server 2025-11-05 22:32:09,673 - DEBUG - No XMPP flaps were noticed during the test