2025-10-09 21:05:45,715 - INFO - Domain Default found not creating 2025-10-09 21:05:45,869 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83354761 not found, creating it 2025-10-09 21:05:46,324 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83354761, ID : 35192884-7e38-47e4-acf5-92abc4371f0b 2025-10-09 21:05:47,892 - INFO - ================================================================================ 2025-10-09 21:05:47,892 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 21:05:48,148 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.209': '0'}} with 2025-10-09 21:05:48,148 - INFO - Initial checks done. Running the testcase now 2025-10-09 21:05:48,148 - INFO - 2025-10-09 21:05:48,149 - INFO - ================================================================================ 2025-10-09 21:05:48,149 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 21:05:48,149 - 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-09 21:05:48,435 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.209': '0'}} with 2025-10-09 21:05:48,435 - INFO - Initial checks done. Running the testcase now 2025-10-09 21:05:48,435 - INFO - 2025-10-09 21:05:48,831 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83354761:ctest-vn4-09726485, 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-83354761:ctest-vn4-09726485, 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-83354761:ctest-vn4-09726485, 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-83354761:ctest-vn4-09726485, 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-09 21:05:49,383 - DEBUG - Response for create_network : {'network': {'id': '84050cba-56e7-4719-8d82-2993abaeabbd', 'name': 'ctest-vn4-09726485', 'tenant_id': '351928847e3847e4acf592abc4371f0b', 'project_id': '351928847e3847e4acf592abc4371f0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83354761', 'ctest-vn4-09726485'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 21:05:49,615 - DEBUG - Response for create_subnet : {'subnet': {'id': '26d4955d-968e-4219-9096-fa3d0dd10fe8', 'name': '', 'tenant_id': '351928847e3847e4acf592abc4371f0b', 'network_id': '84050cba-56e7-4719-8d82-2993abaeabbd', 'ip_version': 4, 'cidr': '128.131.212.64/26', 'allocation_pools': [{'start': '128.131.212.66', 'end': '128.131.212.126'}], 'gateway_ip': '128.131.212.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.131.212.66', 'tags': [], 'project_id': '351928847e3847e4acf592abc4371f0b'}} 2025-10-09 21:05:49,792 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5b2d064-c21c-4a17-b24c-6acb0bafdaba', 'name': '', 'tenant_id': '351928847e3847e4acf592abc4371f0b', 'network_id': '84050cba-56e7-4719-8d82-2993abaeabbd', 'ip_version': 6, 'cidr': '30ce:465d:77f6:61fb:3063:59fe::/96', 'allocation_pools': [{'start': '30ce:465d:77f6:61fb:3063:59fe:0:2', 'end': '30ce:465d:77f6:61fb:3063:59fe:ffff:fffe'}], 'gateway_ip': '30ce:465d:77f6:61fb:3063:59fe:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30ce:465d:77f6:61fb:3063:59fe:0:2', 'tags': [], 'project_id': '351928847e3847e4acf592abc4371f0b'}} 2025-10-09 21:05:49,814 - INFO - Created VN ctest-vn4-09726485 2025-10-09 21:05:49,865 - DEBUG - VN ctest-vn4-09726485 UUID is 84050cba-56e7-4719-8d82-2993abaeabbd 2025-10-09 21:05:50,070 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84050cba-56e7-4719-8d82-2993abaeabbd', 'name': 'ctest-vn4-09726485', 'tenant_id': '351928847e3847e4acf592abc4371f0b', 'project_id': '351928847e3847e4acf592abc4371f0b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['26d4955d-968e-4219-9096-fa3d0dd10fe8', 'd5b2d064-c21c-4a17-b24c-6acb0bafdaba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83354761', 'ctest-vn4-09726485'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83354761', 'ctest-policy1-13049952']], 'subnet_ipam': [{'subnet_cidr': '128.131.212.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30ce:465d:77f6:61fb:3063:59fe::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 21:05:50,225 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 21:05:50,559 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 21:05:50,589 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0952912c-19c0-4d73-b6ef-89bdd231f150 2025-10-09 21:05:50,601 - DEBUG - Requesting: http://10.0.0.33:8082/project/35192884-7e38-47e4-acf5-92abc4371f0b 2025-10-09 21:05:50,676 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/84050cba-56e7-4719-8d82-2993abaeabbd 2025-10-09 21:05:50,688 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/84050cba-56e7-4719-8d82-2993abaeabbd 2025-10-09 21:05:50,699 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/33ecae5e-94e6-4741-b196-374008da780d 2025-10-09 21:05:50,706 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/33ecae5e-94e6-4741-b196-374008da780d 2025-10-09 21:05:50,713 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d37a33d7-5f3a-473c-8cb6-472617f88d0a 2025-10-09 21:05:50,719 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 21:05:50,719 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/84050cba-56e7-4719-8d82-2993abaeabbd 2025-10-09 21:05:50,728 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/33ecae5e-94e6-4741-b196-374008da780d 2025-10-09 21:05:50,742 - INFO - Verified VN network id 11 for VN 84050cba-56e7-4719-8d82-2993abaeabbd 2025-10-09 21:05:50,742 - INFO - Verifications in API Server for VN ctest-vn4-09726485 passed 2025-10-09 21:05:50,742 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/84050cba-56e7-4719-8d82-2993abaeabbd 2025-10-09 21:05:50,751 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/33ecae5e-94e6-4741-b196-374008da780d 2025-10-09 21:05:50,758 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/33ecae5e-94e6-4741-b196-374008da780d 2025-10-09 21:05:50,765 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d37a33d7-5f3a-473c-8cb6-472617f88d0a 2025-10-09 21:05:50,777 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83354761:ctest-vn4-09726485', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83354761', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9513023782351488793', 'uuid-lslong': '10196758220537506749'}, 'enable': 'true', 'created': '2025-10-09T21:05:49', 'last-modified': '2025-10-09T21:05:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.736235'} 2025-10-09 21:05:50,784 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 21:05:50,784 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09726485 passed 2025-10-09 21:05:50,784 - DEBUG - ====Verifying policy data for ctest-vn4-09726485 in API_Server ====== 2025-10-09 21:05:50,784 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 21:05:50,790 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0952912c-19c0-4d73-b6ef-89bdd231f150 2025-10-09 21:05:50,801 - DEBUG - Requesting: http://10.0.0.33:8082/project/35192884-7e38-47e4-acf5-92abc4371f0b 2025-10-09 21:05:50,870 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/84050cba-56e7-4719-8d82-2993abaeabbd 2025-10-09 21:05:50,882 - DEBUG - ==>Verifying data for policy with id: 2d65a6c3-6c1d-47a8-8220-0040f36f0954, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83354761', 'ctest-policy1-13049952'] 2025-10-09 21:05:50,882 - INFO - VN ctest-vn4-09726485 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 21:05:50,882 - DEBUG - Verifying the vn in opserver 2025-10-09 21:05:50,882 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83354761:ctest-vn4-09726485 virtual network link through opserver 10.0.0.33 2025-10-09 21:05:50,883 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 21:05:51,216 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 21:05:51,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83354761:ctest-vn4-09726485', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83354761:ctest-vn4-09726485?flat'} 2025-10-09 21:05:51,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83354761:ctest-vn4-09726485 is found in opserver 2025-10-09 21:05:51,282 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 21:05:51,287 - DEBUG - VRF ids for VN ctest-vn4-09726485: {} 2025-10-09 21:05:51,287 - DEBUG - ====Verifying data for ctest-policy1-13049952 in API_Server ====== 2025-10-09 21:05:51,287 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 21:05:51,292 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0952912c-19c0-4d73-b6ef-89bdd231f150 2025-10-09 21:05:51,304 - DEBUG - Requesting: http://10.0.0.33:8082/project/35192884-7e38-47e4-acf5-92abc4371f0b 2025-10-09 21:05:51,373 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/2d65a6c3-6c1d-47a8-8220-0040f36f0954 2025-10-09 21:05:51,382 - INFO - Verified policy ctest-policy1-13049952 in API Server, Result: True 2025-10-09 21:05:51,382 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 21:05:51,389 - INFO - Deleting VN ctest-vn4-09726485 2025-10-09 21:05:51,577 - DEBUG - Response for deleting network () 2025-10-09 21:05:51,577 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/33ecae5e-94e6-4741-b196-374008da780d 2025-10-09 21:05:51,582 - DEBUG - Response Code: 404 2025-10-09 21:05:51,582 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 21:05:51,587 - DEBUG - Requesting: http://10.0.0.33:8082/domain/0952912c-19c0-4d73-b6ef-89bdd231f150 2025-10-09 21:05:51,638 - DEBUG - Requesting: http://10.0.0.33:8082/project/35192884-7e38-47e4-acf5-92abc4371f0b 2025-10-09 21:05:51,710 - INFO - Validated that VN ctest-vn4-09726485 is not found in API Server 2025-10-09 21:05:51,721 - DEBUG - VN ctest-vn4-09726485 is not present in Agent 10.0.0.33 2025-10-09 21:05:51,721 - INFO - Validated that VN ctest-vn4-09726485 is not in any agent 2025-10-09 21:05:51,736 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09726485 info 2025-10-09 21:05:51,762 - INFO - Deleted policy ctest-policy1-13049952 2025-10-09 21:05:51,929 - DEBUG - policy ctest-policy1-13049952 is not found in API Server 2025-10-09 21:05:52,182 - DEBUG - No XMPP flaps were noticed during the test