2025-09-23 22:49:28,912 - INFO - Domain Default found not creating 2025-09-23 22:49:29,043 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43211672 not found, creating it 2025-09-23 22:49:29,464 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43211672, ID : ed8992b5-da14-442f-bc79-9631ff340eef 2025-09-23 22:49:30,821 - INFO - ================================================================================ 2025-09-23 22:49:30,821 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-23 22:49:31,077 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-09-23 22:49:31,077 - INFO - Initial checks done. Running the testcase now 2025-09-23 22:49:31,077 - INFO - 2025-09-23 22:49:31,077 - INFO - ================================================================================ 2025-09-23 22:49:31,077 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-23 22:49:31,077 - 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-09-23 22:49:31,367 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with 2025-09-23 22:49:31,367 - INFO - Initial checks done. Running the testcase now 2025-09-23 22:49:31,367 - INFO - 2025-09-23 22:49:31,710 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43211672:ctest-vn4-32369772, 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-43211672:ctest-vn4-32369772, 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-43211672:ctest-vn4-32369772, 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-43211672:ctest-vn4-32369772, 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-09-23 22:49:32,210 - DEBUG - Response for create_network : {'network': {'id': 'd32c0dd5-b032-4428-bc8c-014da038086f', 'name': 'ctest-vn4-32369772', 'tenant_id': 'ed8992b5da14442fbc799631ff340eef', 'project_id': 'ed8992b5da14442fbc799631ff340eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43211672', 'ctest-vn4-32369772'], 'port_security_enabled': True, 'description': ''}} 2025-09-23 22:49:32,388 - DEBUG - Response for create_subnet : {'subnet': {'id': '655a2502-d10d-430c-92a6-9f934a72b2cd', 'name': '', 'tenant_id': 'ed8992b5da14442fbc799631ff340eef', 'network_id': 'd32c0dd5-b032-4428-bc8c-014da038086f', 'ip_version': 4, 'cidr': '6.92.233.0/26', 'allocation_pools': [{'start': '6.92.233.2', 'end': '6.92.233.62'}], 'gateway_ip': '6.92.233.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.92.233.2', 'tags': [], 'project_id': 'ed8992b5da14442fbc799631ff340eef'}} 2025-09-23 22:49:32,557 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce344c98-e2b2-464c-ae37-eb239703baab', 'name': '', 'tenant_id': 'ed8992b5da14442fbc799631ff340eef', 'network_id': 'd32c0dd5-b032-4428-bc8c-014da038086f', 'ip_version': 6, 'cidr': '3dd1:4655:cbaa:cb2:eed:46a1::/96', 'allocation_pools': [{'start': '3dd1:4655:cbaa:cb2:eed:46a1:0:2', 'end': '3dd1:4655:cbaa:cb2:eed:46a1:ffff:fffe'}], 'gateway_ip': '3dd1:4655:cbaa:cb2:eed:46a1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3dd1:4655:cbaa:cb2:eed:46a1:0:2', 'tags': [], 'project_id': 'ed8992b5da14442fbc799631ff340eef'}} 2025-09-23 22:49:32,575 - INFO - Created VN ctest-vn4-32369772 2025-09-23 22:49:32,626 - DEBUG - VN ctest-vn4-32369772 UUID is d32c0dd5-b032-4428-bc8c-014da038086f 2025-09-23 22:49:32,974 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd32c0dd5-b032-4428-bc8c-014da038086f', 'name': 'ctest-vn4-32369772', 'tenant_id': 'ed8992b5da14442fbc799631ff340eef', 'project_id': 'ed8992b5da14442fbc799631ff340eef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['655a2502-d10d-430c-92a6-9f934a72b2cd', 'ce344c98-e2b2-464c-ae37-eb239703baab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43211672', 'ctest-vn4-32369772'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43211672', 'ctest-policy1-39689605']], 'subnet_ipam': [{'subnet_cidr': '6.92.233.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3dd1:4655:cbaa:cb2:eed:46a1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-23 22:49:33,150 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-23 22:49:33,479 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-23 22:49:33,503 - DEBUG - Requesting: http://10.0.0.57:8082/domain/56cd4594-9fee-41ac-90cd-8796d0805d0d 2025-09-23 22:49:33,514 - DEBUG - Requesting: http://10.0.0.57:8082/project/ed8992b5-da14-442f-bc79-9631ff340eef 2025-09-23 22:49:33,587 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d32c0dd5-b032-4428-bc8c-014da038086f 2025-09-23 22:49:33,597 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d32c0dd5-b032-4428-bc8c-014da038086f 2025-09-23 22:49:33,605 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/438ec261-610e-42c7-ba89-5429c5d0a207 2025-09-23 22:49:33,611 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/438ec261-610e-42c7-ba89-5429c5d0a207 2025-09-23 22:49:33,616 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/e0fb047d-3788-4c74-b2c4-a876e500a7c8 2025-09-23 22:49:33,621 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-23 22:49:33,621 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d32c0dd5-b032-4428-bc8c-014da038086f 2025-09-23 22:49:33,629 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/438ec261-610e-42c7-ba89-5429c5d0a207 2025-09-23 22:49:33,641 - INFO - Verified VN network id 11 for VN d32c0dd5-b032-4428-bc8c-014da038086f 2025-09-23 22:49:33,641 - INFO - Verifications in API Server for VN ctest-vn4-32369772 passed 2025-09-23 22:49:33,641 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d32c0dd5-b032-4428-bc8c-014da038086f 2025-09-23 22:49:33,649 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/438ec261-610e-42c7-ba89-5429c5d0a207 2025-09-23 22:49:33,654 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/438ec261-610e-42c7-ba89-5429c5d0a207 2025-09-23 22:49:33,659 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/e0fb047d-3788-4c74-b2c4-a876e500a7c8 2025-09-23 22:49:33,668 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43211672:ctest-vn4-32369772', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43211672', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15216552452413342760', 'uuid-lslong': '13586235608782080111'}, 'enable': 'true', 'created': '2025-09-23T22:49:32', 'last-modified': '2025-09-23T22:49:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741066'} 2025-09-23 22:49:33,673 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-23 22:49:33,673 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32369772 passed 2025-09-23 22:49:33,673 - DEBUG - ====Verifying policy data for ctest-vn4-32369772 in API_Server ====== 2025-09-23 22:49:33,673 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-23 22:49:33,678 - DEBUG - Requesting: http://10.0.0.57:8082/domain/56cd4594-9fee-41ac-90cd-8796d0805d0d 2025-09-23 22:49:33,688 - DEBUG - Requesting: http://10.0.0.57:8082/project/ed8992b5-da14-442f-bc79-9631ff340eef 2025-09-23 22:49:33,754 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/d32c0dd5-b032-4428-bc8c-014da038086f 2025-09-23 22:49:33,763 - DEBUG - ==>Verifying data for policy with id: 7e7d74c5-48d2-4003-9b20-f5d556c84e9f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43211672', 'ctest-policy1-39689605'] 2025-09-23 22:49:33,763 - INFO - VN ctest-vn4-32369772 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-23 22:49:33,763 - DEBUG - Verifying the vn in opserver 2025-09-23 22:49:33,763 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43211672:ctest-vn4-32369772 virtual network link through opserver 10.0.0.57 2025-09-23 22:49:33,763 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-23 22:49:34,053 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-09-23 22:49:34,103 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43211672:ctest-vn4-32369772', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43211672:ctest-vn4-32369772?flat'} 2025-09-23 22:49:34,103 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43211672:ctest-vn4-32369772 is found in opserver 2025-09-23 22:49:34,112 - DEBUG - Do not have enough data to verify VN in agent 2025-09-23 22:49:34,116 - DEBUG - VRF ids for VN ctest-vn4-32369772: {} 2025-09-23 22:49:34,117 - DEBUG - ====Verifying data for ctest-policy1-39689605 in API_Server ====== 2025-09-23 22:49:34,117 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-23 22:49:34,122 - DEBUG - Requesting: http://10.0.0.57:8082/domain/56cd4594-9fee-41ac-90cd-8796d0805d0d 2025-09-23 22:49:34,204 - DEBUG - Requesting: http://10.0.0.57:8082/project/ed8992b5-da14-442f-bc79-9631ff340eef 2025-09-23 22:49:34,279 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/7e7d74c5-48d2-4003-9b20-f5d556c84e9f 2025-09-23 22:49:34,290 - INFO - Verified policy ctest-policy1-39689605 in API Server, Result: True 2025-09-23 22:49:34,290 - INFO - Done with setup and verification, moving onto test .. 2025-09-23 22:49:34,298 - INFO - Deleting VN ctest-vn4-32369772 2025-09-23 22:49:34,421 - DEBUG - Response for deleting network () 2025-09-23 22:49:34,421 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/438ec261-610e-42c7-ba89-5429c5d0a207 2025-09-23 22:49:34,426 - DEBUG - Response Code: 404 2025-09-23 22:49:34,426 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-09-23 22:49:34,430 - DEBUG - Requesting: http://10.0.0.57:8082/domain/56cd4594-9fee-41ac-90cd-8796d0805d0d 2025-09-23 22:49:34,483 - DEBUG - Requesting: http://10.0.0.57:8082/project/ed8992b5-da14-442f-bc79-9631ff340eef 2025-09-23 22:49:34,549 - INFO - Validated that VN ctest-vn4-32369772 is not found in API Server 2025-09-23 22:49:34,557 - DEBUG - VN ctest-vn4-32369772 is not present in Agent 10.0.0.57 2025-09-23 22:49:34,557 - INFO - Validated that VN ctest-vn4-32369772 is not in any agent 2025-09-23 22:49:34,569 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32369772 info 2025-09-23 22:49:34,593 - INFO - Deleted policy ctest-policy1-39689605 2025-09-23 22:49:34,754 - DEBUG - policy ctest-policy1-39689605 is not found in API Server 2025-09-23 22:49:35,007 - DEBUG - No XMPP flaps were noticed during the test
2025-09-23 22:49:35,007 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-23 22:49:35,007 - INFO - -------------------------------------------------------------------------------- 2025-09-23 22:49:35,295 - DEBUG - No XMPP flaps were noticed during the test
2025-09-23 22:49:35,295 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-23 22:49:35,295 - INFO - -------------------------------------------------------------------------------- 2025-09-23 22:49:35,956 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43211672, ID : ed8992b5-da14-442f-bc79-9631ff340eef