2026-04-28 18:53:26,833 - INFO - Domain Default found not creating 2026-04-28 18:53:27,034 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94522429 not found, creating it 2026-04-28 18:53:27,574 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94522429, ID : dfd8fbb3-f86a-40ef-9fb5-b53c7f52ceeb 2026-04-28 18:53:29,255 - INFO - ================================================================================ 2026-04-28 18:53:29,255 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 18:53:29,529 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-04-28 18:53:29,529 - INFO - Initial checks done. Running the testcase now 2026-04-28 18:53:29,529 - INFO - 2026-04-28 18:53:29,529 - INFO - ================================================================================ 2026-04-28 18:53:29,529 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 18:53:29,529 - 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. 2026-04-28 18:53:29,810 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-04-28 18:53:29,810 - INFO - Initial checks done. Running the testcase now 2026-04-28 18:53:29,810 - INFO - 2026-04-28 18:53:30,216 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94522429:ctest-vn4-76278054, 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-94522429:ctest-vn4-76278054, 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-94522429:ctest-vn4-76278054, 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-94522429:ctest-vn4-76278054, 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] 2026-04-28 18:53:30,752 - DEBUG - Response for create_network : {'network': {'id': 'fd0d6eeb-8dee-4b73-b6d4-fcf30ee771e6', 'name': 'ctest-vn4-76278054', 'tenant_id': 'dfd8fbb3f86a40ef9fb5b53c7f52ceeb', 'project_id': 'dfd8fbb3f86a40ef9fb5b53c7f52ceeb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94522429', 'ctest-vn4-76278054'], 'port_security_enabled': True, 'description': ''}} 2026-04-28 18:53:30,933 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ab9ded3-8520-43aa-b038-8eebdd770226', 'name': '', 'tenant_id': 'dfd8fbb3f86a40ef9fb5b53c7f52ceeb', 'network_id': 'fd0d6eeb-8dee-4b73-b6d4-fcf30ee771e6', 'ip_version': 4, 'cidr': '188.68.189.64/26', 'allocation_pools': [{'start': '188.68.189.66', 'end': '188.68.189.126'}], 'gateway_ip': '188.68.189.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.68.189.66', 'tags': [], 'project_id': 'dfd8fbb3f86a40ef9fb5b53c7f52ceeb'}} 2026-04-28 18:53:31,145 - DEBUG - Response for create_subnet : {'subnet': {'id': '0903b0ae-6865-4434-a0e4-ec9abf0e842b', 'name': '', 'tenant_id': 'dfd8fbb3f86a40ef9fb5b53c7f52ceeb', 'network_id': 'fd0d6eeb-8dee-4b73-b6d4-fcf30ee771e6', 'ip_version': 6, 'cidr': '3d69:2fc7:e7c8:b09c:aba8:c942::/96', 'allocation_pools': [{'start': '3d69:2fc7:e7c8:b09c:aba8:c942:0:2', 'end': '3d69:2fc7:e7c8:b09c:aba8:c942:ffff:fffe'}], 'gateway_ip': '3d69:2fc7:e7c8:b09c:aba8:c942:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d69:2fc7:e7c8:b09c:aba8:c942:0:2', 'tags': [], 'project_id': 'dfd8fbb3f86a40ef9fb5b53c7f52ceeb'}} 2026-04-28 18:53:31,167 - INFO - Created VN ctest-vn4-76278054 2026-04-28 18:53:31,219 - DEBUG - VN ctest-vn4-76278054 UUID is fd0d6eeb-8dee-4b73-b6d4-fcf30ee771e6 2026-04-28 18:53:31,450 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd0d6eeb-8dee-4b73-b6d4-fcf30ee771e6', 'name': 'ctest-vn4-76278054', 'tenant_id': 'dfd8fbb3f86a40ef9fb5b53c7f52ceeb', 'project_id': 'dfd8fbb3f86a40ef9fb5b53c7f52ceeb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7ab9ded3-8520-43aa-b038-8eebdd770226', '0903b0ae-6865-4434-a0e4-ec9abf0e842b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94522429', 'ctest-vn4-76278054'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94522429', 'ctest-policy1-58107804']], 'subnet_ipam': [{'subnet_cidr': '188.68.189.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d69:2fc7:e7c8:b09c:aba8:c942::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-28 18:53:31,619 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-28 18:53:31,923 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-28 18:53:31,969 - DEBUG - Requesting: http://10.0.0.33:8082/domain/939db5da-ee66-464e-93bc-b88c6d52bc10 2026-04-28 18:53:31,981 - DEBUG - Requesting: http://10.0.0.33:8082/project/dfd8fbb3-f86a-40ef-9fb5-b53c7f52ceeb 2026-04-28 18:53:32,064 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fd0d6eeb-8dee-4b73-b6d4-fcf30ee771e6 2026-04-28 18:53:32,078 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fd0d6eeb-8dee-4b73-b6d4-fcf30ee771e6 2026-04-28 18:53:32,088 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c134364d-86fe-4c92-a51b-f50b01c94e7b 2026-04-28 18:53:32,096 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c134364d-86fe-4c92-a51b-f50b01c94e7b 2026-04-28 18:53:32,103 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0c6c4bfe-3514-400d-8220-2da43636a4c3 2026-04-28 18:53:32,110 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 18:53:32,110 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fd0d6eeb-8dee-4b73-b6d4-fcf30ee771e6 2026-04-28 18:53:32,123 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c134364d-86fe-4c92-a51b-f50b01c94e7b 2026-04-28 18:53:32,139 - INFO - Verified VN network id 11 for VN fd0d6eeb-8dee-4b73-b6d4-fcf30ee771e6 2026-04-28 18:53:32,139 - INFO - Verifications in API Server for VN ctest-vn4-76278054 passed 2026-04-28 18:53:32,140 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fd0d6eeb-8dee-4b73-b6d4-fcf30ee771e6 2026-04-28 18:53:32,149 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c134364d-86fe-4c92-a51b-f50b01c94e7b 2026-04-28 18:53:32,157 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c134364d-86fe-4c92-a51b-f50b01c94e7b 2026-04-28 18:53:32,166 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0c6c4bfe-3514-400d-8220-2da43636a4c3 2026-04-28 18:53:32,180 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94522429:ctest-vn4-76278054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94522429', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18234352424270580595', 'uuid-lslong': '13174432930822844902'}, 'enable': 'true', 'created': '2026-04-28T18:53:30', 'last-modified': '2026-04-28T18:53:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.761001'} 2026-04-28 18:53:32,189 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 18:53:32,189 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76278054 passed 2026-04-28 18:53:32,189 - DEBUG - ====Verifying policy data for ctest-vn4-76278054 in API_Server ====== 2026-04-28 18:53:32,189 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-28 18:53:32,197 - DEBUG - Requesting: http://10.0.0.33:8082/domain/939db5da-ee66-464e-93bc-b88c6d52bc10 2026-04-28 18:53:32,219 - DEBUG - Requesting: http://10.0.0.33:8082/project/dfd8fbb3-f86a-40ef-9fb5-b53c7f52ceeb 2026-04-28 18:53:32,291 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/fd0d6eeb-8dee-4b73-b6d4-fcf30ee771e6 2026-04-28 18:53:32,303 - DEBUG - ==>Verifying data for policy with id: 53c2c731-3ccb-489a-abbe-8ab1bf53f489, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94522429', 'ctest-policy1-58107804'] 2026-04-28 18:53:32,303 - INFO - VN ctest-vn4-76278054 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-28 18:53:32,303 - DEBUG - Verifying the vn in opserver 2026-04-28 18:53:32,303 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94522429:ctest-vn4-76278054 virtual network link through opserver 10.0.0.33 2026-04-28 18:53:32,304 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-28 18:53:32,602 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-28 18:53:32,687 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94522429:ctest-vn4-76278054', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94522429:ctest-vn4-76278054?flat'} 2026-04-28 18:53:32,687 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94522429:ctest-vn4-76278054 is found in opserver 2026-04-28 18:53:32,697 - DEBUG - Do not have enough data to verify VN in agent 2026-04-28 18:53:32,703 - DEBUG - VRF ids for VN ctest-vn4-76278054: {} 2026-04-28 18:53:32,703 - DEBUG - ====Verifying data for ctest-policy1-58107804 in API_Server ====== 2026-04-28 18:53:32,703 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-28 18:53:32,710 - DEBUG - Requesting: http://10.0.0.33:8082/domain/939db5da-ee66-464e-93bc-b88c6d52bc10 2026-04-28 18:53:32,723 - DEBUG - Requesting: http://10.0.0.33:8082/project/dfd8fbb3-f86a-40ef-9fb5-b53c7f52ceeb 2026-04-28 18:53:32,808 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/53c2c731-3ccb-489a-abbe-8ab1bf53f489 2026-04-28 18:53:32,822 - INFO - Verified policy ctest-policy1-58107804 in API Server, Result: True 2026-04-28 18:53:32,822 - INFO - Done with setup and verification, moving onto test .. 2026-04-28 18:53:32,832 - INFO - Deleting VN ctest-vn4-76278054 2026-04-28 18:53:32,998 - DEBUG - Response for deleting network () 2026-04-28 18:53:32,998 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/c134364d-86fe-4c92-a51b-f50b01c94e7b 2026-04-28 18:53:33,004 - DEBUG - Response Code: 404 2026-04-28 18:53:33,004 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-28 18:53:33,011 - DEBUG - Requesting: http://10.0.0.33:8082/domain/939db5da-ee66-464e-93bc-b88c6d52bc10 2026-04-28 18:53:33,069 - DEBUG - Requesting: http://10.0.0.33:8082/project/dfd8fbb3-f86a-40ef-9fb5-b53c7f52ceeb 2026-04-28 18:53:33,153 - INFO - Validated that VN ctest-vn4-76278054 is not found in API Server 2026-04-28 18:53:33,165 - DEBUG - VN ctest-vn4-76278054 is not present in Agent 10.0.0.33 2026-04-28 18:53:33,165 - INFO - Validated that VN ctest-vn4-76278054 is not in any agent 2026-04-28 18:53:33,181 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76278054 info 2026-04-28 18:53:33,207 - INFO - Deleted policy ctest-policy1-58107804 2026-04-28 18:53:33,375 - DEBUG - policy ctest-policy1-58107804 is not found in API Server 2026-04-28 18:53:33,646 - DEBUG - No XMPP flaps were noticed during the test
2026-04-28 18:53:33,646 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-28 18:53:33,647 - INFO - -------------------------------------------------------------------------------- 2026-04-28 18:53:33,925 - DEBUG - No XMPP flaps were noticed during the test
2026-04-28 18:53:33,925 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-28 18:53:33,925 - INFO - -------------------------------------------------------------------------------- 2026-04-28 18:53:34,659 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94522429, ID : dfd8fbb3-f86a-40ef-9fb5-b53c7f52ceeb