2025-10-15 10:46:44,481 - INFO - Domain Default found not creating 2025-10-15 10:46:44,632 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57358837 not found, creating it 2025-10-15 10:46:45,087 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57358837, ID : 174c2627-78c1-441c-86fe-2e83de2f6372 2025-10-15 10:46:46,525 - INFO - ================================================================================ 2025-10-15 10:46:46,525 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-15 10:46:46,778 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.145': '0'}} with 2025-10-15 10:46:46,778 - INFO - Initial checks done. Running the testcase now 2025-10-15 10:46:46,778 - INFO - 2025-10-15 10:46:46,778 - INFO - ================================================================================ 2025-10-15 10:46:46,778 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-15 10:46:46,778 - 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-15 10:46:47,065 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.145': '0'}} with 2025-10-15 10:46:47,065 - INFO - Initial checks done. Running the testcase now 2025-10-15 10:46:47,065 - INFO - 2025-10-15 10:46:47,418 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57358837:ctest-vn4-80689395, 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-57358837:ctest-vn4-80689395, 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-57358837:ctest-vn4-80689395, 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-57358837:ctest-vn4-80689395, 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-15 10:46:47,957 - DEBUG - Response for create_network : {'network': {'id': '4ad9a86b-fa53-4618-b7f6-6ca544734d97', 'name': 'ctest-vn4-80689395', 'tenant_id': '174c262778c1441c86fe2e83de2f6372', 'project_id': '174c262778c1441c86fe2e83de2f6372', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57358837', 'ctest-vn4-80689395'], 'port_security_enabled': True, 'description': ''}} 2025-10-15 10:46:48,120 - DEBUG - Response for create_subnet : {'subnet': {'id': '65f7d23f-3494-4bcb-bc59-af5852481437', 'name': '', 'tenant_id': '174c262778c1441c86fe2e83de2f6372', 'network_id': '4ad9a86b-fa53-4618-b7f6-6ca544734d97', 'ip_version': 4, 'cidr': '9.167.68.0/26', 'allocation_pools': [{'start': '9.167.68.2', 'end': '9.167.68.62'}], 'gateway_ip': '9.167.68.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.167.68.2', 'tags': [], 'project_id': '174c262778c1441c86fe2e83de2f6372'}} 2025-10-15 10:46:48,288 - DEBUG - Response for create_subnet : {'subnet': {'id': '2608329f-242a-4d8c-9a89-e19e682f7b29', 'name': '', 'tenant_id': '174c262778c1441c86fe2e83de2f6372', 'network_id': '4ad9a86b-fa53-4618-b7f6-6ca544734d97', 'ip_version': 6, 'cidr': '282a:4a94:ed8a:3aba:e1ba:1e86::/96', 'allocation_pools': [{'start': '282a:4a94:ed8a:3aba:e1ba:1e86:0:2', 'end': '282a:4a94:ed8a:3aba:e1ba:1e86:ffff:fffe'}], 'gateway_ip': '282a:4a94:ed8a:3aba:e1ba:1e86:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '282a:4a94:ed8a:3aba:e1ba:1e86:0:2', 'tags': [], 'project_id': '174c262778c1441c86fe2e83de2f6372'}} 2025-10-15 10:46:48,374 - INFO - Created VN ctest-vn4-80689395 2025-10-15 10:46:48,428 - DEBUG - VN ctest-vn4-80689395 UUID is 4ad9a86b-fa53-4618-b7f6-6ca544734d97 2025-10-15 10:46:48,631 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ad9a86b-fa53-4618-b7f6-6ca544734d97', 'name': 'ctest-vn4-80689395', 'tenant_id': '174c262778c1441c86fe2e83de2f6372', 'project_id': '174c262778c1441c86fe2e83de2f6372', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65f7d23f-3494-4bcb-bc59-af5852481437', '2608329f-242a-4d8c-9a89-e19e682f7b29'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57358837', 'ctest-vn4-80689395'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57358837', 'ctest-policy1-28679185']], 'subnet_ipam': [{'subnet_cidr': '9.167.68.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '282a:4a94:ed8a:3aba:e1ba:1e86::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-15 10:46:48,796 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-15 10:46:49,086 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-15 10:46:49,115 - DEBUG - Requesting: http://10.0.0.241:8082/domain/58e85365-4abb-4301-b346-bf3f20865322 2025-10-15 10:46:49,128 - DEBUG - Requesting: http://10.0.0.241:8082/project/174c2627-78c1-441c-86fe-2e83de2f6372 2025-10-15 10:46:49,199 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4ad9a86b-fa53-4618-b7f6-6ca544734d97 2025-10-15 10:46:49,211 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4ad9a86b-fa53-4618-b7f6-6ca544734d97 2025-10-15 10:46:49,221 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/5e696f0c-ad20-45e2-8894-b9235a452c95 2025-10-15 10:46:49,228 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/5e696f0c-ad20-45e2-8894-b9235a452c95 2025-10-15 10:46:49,235 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/79ccd906-9ea6-4ed0-a95d-bf94e3ac4c76 2025-10-15 10:46:49,244 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 10:46:49,244 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4ad9a86b-fa53-4618-b7f6-6ca544734d97 2025-10-15 10:46:49,254 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/5e696f0c-ad20-45e2-8894-b9235a452c95 2025-10-15 10:46:49,269 - INFO - Verified VN network id 11 for VN 4ad9a86b-fa53-4618-b7f6-6ca544734d97 2025-10-15 10:46:49,269 - INFO - Verifications in API Server for VN ctest-vn4-80689395 passed 2025-10-15 10:46:49,269 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4ad9a86b-fa53-4618-b7f6-6ca544734d97 2025-10-15 10:46:49,279 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/5e696f0c-ad20-45e2-8894-b9235a452c95 2025-10-15 10:46:49,286 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/5e696f0c-ad20-45e2-8894-b9235a452c95 2025-10-15 10:46:49,293 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/79ccd906-9ea6-4ed0-a95d-bf94e3ac4c76 2025-10-15 10:46:49,306 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57358837:ctest-vn4-80689395', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57358837', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5393527210467608088', 'uuid-lslong': '13255902010285444503'}, 'enable': 'true', 'created': '2025-10-15T10:46:47', 'last-modified': '2025-10-15T10:46:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.699574'} 2025-10-15 10:46:49,311 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-15 10:46:49,312 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-80689395 passed 2025-10-15 10:46:49,312 - DEBUG - ====Verifying policy data for ctest-vn4-80689395 in API_Server ====== 2025-10-15 10:46:49,312 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-15 10:46:49,319 - DEBUG - Requesting: http://10.0.0.241:8082/domain/58e85365-4abb-4301-b346-bf3f20865322 2025-10-15 10:46:49,330 - DEBUG - Requesting: http://10.0.0.241:8082/project/174c2627-78c1-441c-86fe-2e83de2f6372 2025-10-15 10:46:49,404 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4ad9a86b-fa53-4618-b7f6-6ca544734d97 2025-10-15 10:46:49,415 - DEBUG - ==>Verifying data for policy with id: 2151587a-5256-426d-89bb-37d743bf9c50, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57358837', 'ctest-policy1-28679185'] 2025-10-15 10:46:49,415 - INFO - VN ctest-vn4-80689395 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-15 10:46:49,415 - DEBUG - Verifying the vn in opserver 2025-10-15 10:46:49,415 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57358837:ctest-vn4-80689395 virtual network link through opserver 10.0.0.241 2025-10-15 10:46:49,415 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-15 10:46:49,704 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-10-15 10:46:49,764 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57358837:ctest-vn4-80689395', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57358837:ctest-vn4-80689395?flat'} 2025-10-15 10:46:49,764 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57358837:ctest-vn4-80689395 is found in opserver 2025-10-15 10:46:49,773 - DEBUG - Do not have enough data to verify VN in agent 2025-10-15 10:46:49,778 - DEBUG - VRF ids for VN ctest-vn4-80689395: {} 2025-10-15 10:46:49,778 - DEBUG - ====Verifying data for ctest-policy1-28679185 in API_Server ====== 2025-10-15 10:46:49,779 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-15 10:46:49,784 - DEBUG - Requesting: http://10.0.0.241:8082/domain/58e85365-4abb-4301-b346-bf3f20865322 2025-10-15 10:46:49,795 - DEBUG - Requesting: http://10.0.0.241:8082/project/174c2627-78c1-441c-86fe-2e83de2f6372 2025-10-15 10:46:49,865 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/2151587a-5256-426d-89bb-37d743bf9c50 2025-10-15 10:46:49,874 - INFO - Verified policy ctest-policy1-28679185 in API Server, Result: True 2025-10-15 10:46:49,874 - INFO - Done with setup and verification, moving onto test .. 2025-10-15 10:46:49,882 - INFO - Deleting VN ctest-vn4-80689395 2025-10-15 10:46:49,989 - DEBUG - Response for deleting network () 2025-10-15 10:46:49,989 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/5e696f0c-ad20-45e2-8894-b9235a452c95 2025-10-15 10:46:49,995 - DEBUG - Response Code: 404 2025-10-15 10:46:49,995 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-10-15 10:46:50,000 - DEBUG - Requesting: http://10.0.0.241:8082/domain/58e85365-4abb-4301-b346-bf3f20865322 2025-10-15 10:46:50,053 - DEBUG - Requesting: http://10.0.0.241:8082/project/174c2627-78c1-441c-86fe-2e83de2f6372 2025-10-15 10:46:50,125 - INFO - Validated that VN ctest-vn4-80689395 is not found in API Server 2025-10-15 10:46:50,135 - DEBUG - VN ctest-vn4-80689395 is not present in Agent 10.0.0.241 2025-10-15 10:46:50,135 - INFO - Validated that VN ctest-vn4-80689395 is not in any agent 2025-10-15 10:46:50,148 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-80689395 info 2025-10-15 10:46:50,182 - INFO - Deleted policy ctest-policy1-28679185 2025-10-15 10:46:50,356 - DEBUG - policy ctest-policy1-28679185 is not found in API Server 2025-10-15 10:46:50,610 - DEBUG - No XMPP flaps were noticed during the test 2025-10-15 10:46:50,610 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-15 10:46:50,610 - INFO - -------------------------------------------------------------------------------- 2025-10-15 10:46:50,898 - DEBUG - No XMPP flaps were noticed during the test 2025-10-15 10:46:50,898 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-15 10:46:50,898 - INFO - -------------------------------------------------------------------------------- 2025-10-15 10:46:51,619 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-57358837, ID : 174c2627-78c1-441c-86fe-2e83de2f6372