2026-10-31 13:00:18,797 - INFO - Domain Default found not creating 2026-10-31 13:00:18,978 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08487546 not found, creating it 2026-10-31 13:00:19,458 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08487546, ID : 0153bd3b-88ca-4481-9ca2-eba7ad78c5f7 2026-10-31 13:00:21,237 - INFO - ================================================================================ 2026-10-31 13:00:21,238 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-31 13:00:21,494 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-10-31 13:00:21,494 - INFO - Initial checks done. Running the testcase now 2026-10-31 13:00:21,494 - INFO - 2026-10-31 13:00:21,494 - INFO - ================================================================================ 2026-10-31 13:00:21,494 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-31 13:00:21,494 - 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-10-31 13:00:21,782 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-10-31 13:00:21,782 - INFO - Initial checks done. Running the testcase now 2026-10-31 13:00:21,782 - INFO - 2026-10-31 13:00:22,209 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08487546:ctest-vn4-52099151, 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-08487546:ctest-vn4-52099151, 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-08487546:ctest-vn4-52099151, 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-08487546:ctest-vn4-52099151, 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-10-31 13:00:22,732 - DEBUG - Response for create_network : {'network': {'id': '272941b4-e377-4b54-972b-c8079b9e4392', 'name': 'ctest-vn4-52099151', 'tenant_id': '0153bd3b88ca44819ca2eba7ad78c5f7', 'project_id': '0153bd3b88ca44819ca2eba7ad78c5f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08487546', 'ctest-vn4-52099151'], 'port_security_enabled': True, 'description': ''}} 2026-10-31 13:00:22,957 - DEBUG - Response for create_subnet : {'subnet': {'id': '40738808-1cb6-4245-a5a4-0767b89dbba3', 'name': '', 'tenant_id': '0153bd3b88ca44819ca2eba7ad78c5f7', 'network_id': '272941b4-e377-4b54-972b-c8079b9e4392', 'ip_version': 4, 'cidr': '7.214.146.192/26', 'allocation_pools': [{'start': '7.214.146.194', 'end': '7.214.146.254'}], 'gateway_ip': '7.214.146.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.214.146.194', 'tags': [], 'project_id': '0153bd3b88ca44819ca2eba7ad78c5f7'}} 2026-10-31 13:00:23,100 - DEBUG - Response for create_subnet : {'subnet': {'id': '648cd4e6-4e67-41ac-a57d-5a4db41eba5e', 'name': '', 'tenant_id': '0153bd3b88ca44819ca2eba7ad78c5f7', 'network_id': '272941b4-e377-4b54-972b-c8079b9e4392', 'ip_version': 6, 'cidr': '2ea4:377:8869:d6e1:4396:2c70::/96', 'allocation_pools': [{'start': '2ea4:377:8869:d6e1:4396:2c70:0:2', 'end': '2ea4:377:8869:d6e1:4396:2c70:ffff:fffe'}], 'gateway_ip': '2ea4:377:8869:d6e1:4396:2c70:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ea4:377:8869:d6e1:4396:2c70:0:2', 'tags': [], 'project_id': '0153bd3b88ca44819ca2eba7ad78c5f7'}} 2026-10-31 13:00:23,118 - INFO - Created VN ctest-vn4-52099151 2026-10-31 13:00:23,171 - DEBUG - VN ctest-vn4-52099151 UUID is 272941b4-e377-4b54-972b-c8079b9e4392 2026-10-31 13:00:23,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '272941b4-e377-4b54-972b-c8079b9e4392', 'name': 'ctest-vn4-52099151', 'tenant_id': '0153bd3b88ca44819ca2eba7ad78c5f7', 'project_id': '0153bd3b88ca44819ca2eba7ad78c5f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['40738808-1cb6-4245-a5a4-0767b89dbba3', '648cd4e6-4e67-41ac-a57d-5a4db41eba5e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08487546', 'ctest-vn4-52099151'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08487546', 'ctest-policy1-62630678']], 'subnet_ipam': [{'subnet_cidr': '7.214.146.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ea4:377:8869:d6e1:4396:2c70::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-31 13:00:23,499 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-31 13:00:23,863 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-31 13:00:23,893 - DEBUG - Requesting: http://10.0.0.185:8082/domain/9fb69766-2f98-4b3a-b7eb-0a3b95e3d4e1 2026-10-31 13:00:23,905 - DEBUG - Requesting: http://10.0.0.185:8082/project/0153bd3b-88ca-4481-9ca2-eba7ad78c5f7 2026-10-31 13:00:23,982 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/272941b4-e377-4b54-972b-c8079b9e4392 2026-10-31 13:00:23,995 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/272941b4-e377-4b54-972b-c8079b9e4392 2026-10-31 13:00:24,004 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/27c04363-381f-4a49-b1fe-911087004adc 2026-10-31 13:00:24,011 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/27c04363-381f-4a49-b1fe-911087004adc 2026-10-31 13:00:24,017 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/6c51251a-cbe8-4634-a63d-8b0aea366866 2026-10-31 13:00:24,023 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-31 13:00:24,023 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/272941b4-e377-4b54-972b-c8079b9e4392 2026-10-31 13:00:24,032 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/27c04363-381f-4a49-b1fe-911087004adc 2026-10-31 13:00:24,045 - INFO - Verified VN network id 12 for VN 272941b4-e377-4b54-972b-c8079b9e4392 2026-10-31 13:00:24,045 - INFO - Verifications in API Server for VN ctest-vn4-52099151 passed 2026-10-31 13:00:24,045 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/272941b4-e377-4b54-972b-c8079b9e4392 2026-10-31 13:00:24,056 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/27c04363-381f-4a49-b1fe-911087004adc 2026-10-31 13:00:24,062 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/27c04363-381f-4a49-b1fe-911087004adc 2026-10-31 13:00:24,070 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/6c51251a-cbe8-4634-a63d-8b0aea366866 2026-10-31 13:00:24,084 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08487546:ctest-vn4-52099151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08487546', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2821858886690491220', 'uuid-lslong': '10893020058726843282'}, 'enable': 'true', 'created': '2026-10-31T13:00:22', 'last-modified': '2026-10-31T13:00:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725120'} 2026-10-31 13:00:24,092 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-31 13:00:24,092 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52099151 passed 2026-10-31 13:00:24,092 - DEBUG - ====Verifying policy data for ctest-vn4-52099151 in API_Server ====== 2026-10-31 13:00:24,092 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-31 13:00:24,097 - DEBUG - Requesting: http://10.0.0.185:8082/domain/9fb69766-2f98-4b3a-b7eb-0a3b95e3d4e1 2026-10-31 13:00:24,108 - DEBUG - Requesting: http://10.0.0.185:8082/project/0153bd3b-88ca-4481-9ca2-eba7ad78c5f7 2026-10-31 13:00:24,185 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/272941b4-e377-4b54-972b-c8079b9e4392 2026-10-31 13:00:24,194 - DEBUG - ==>Verifying data for policy with id: d421605c-c9ee-4001-80b1-97797230497f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08487546', 'ctest-policy1-62630678'] 2026-10-31 13:00:24,194 - INFO - VN ctest-vn4-52099151 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-31 13:00:24,194 - DEBUG - Verifying the vn in opserver 2026-10-31 13:00:24,194 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08487546:ctest-vn4-52099151 virtual network link through opserver 10.0.0.185 2026-10-31 13:00:24,195 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-10-31 13:00:24,559 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-10-31 13:00:24,614 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08487546:ctest-vn4-52099151', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08487546:ctest-vn4-52099151?flat'} 2026-10-31 13:00:24,614 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08487546:ctest-vn4-52099151 is found in opserver 2026-10-31 13:00:24,625 - DEBUG - Do not have enough data to verify VN in agent 2026-10-31 13:00:24,630 - DEBUG - VRF ids for VN ctest-vn4-52099151: {} 2026-10-31 13:00:24,631 - DEBUG - ====Verifying data for ctest-policy1-62630678 in API_Server ====== 2026-10-31 13:00:24,631 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-31 13:00:24,636 - DEBUG - Requesting: http://10.0.0.185:8082/domain/9fb69766-2f98-4b3a-b7eb-0a3b95e3d4e1 2026-10-31 13:00:24,647 - DEBUG - Requesting: http://10.0.0.185:8082/project/0153bd3b-88ca-4481-9ca2-eba7ad78c5f7 2026-10-31 13:00:24,728 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/d421605c-c9ee-4001-80b1-97797230497f 2026-10-31 13:00:24,738 - INFO - Verified policy ctest-policy1-62630678 in API Server, Result: True 2026-10-31 13:00:24,738 - INFO - Done with setup and verification, moving onto test .. 2026-10-31 13:00:24,746 - INFO - Deleting VN ctest-vn4-52099151 2026-10-31 13:00:25,045 - DEBUG - Response for deleting network () 2026-10-31 13:00:25,045 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/27c04363-381f-4a49-b1fe-911087004adc 2026-10-31 13:00:25,050 - DEBUG - Response Code: 404 2026-10-31 13:00:25,050 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-31 13:00:25,054 - DEBUG - Requesting: http://10.0.0.185:8082/domain/9fb69766-2f98-4b3a-b7eb-0a3b95e3d4e1 2026-10-31 13:00:25,108 - DEBUG - Requesting: http://10.0.0.185:8082/project/0153bd3b-88ca-4481-9ca2-eba7ad78c5f7 2026-10-31 13:00:25,184 - INFO - Validated that VN ctest-vn4-52099151 is not found in API Server 2026-10-31 13:00:25,193 - DEBUG - VN ctest-vn4-52099151 is not present in Agent 10.0.0.185 2026-10-31 13:00:25,194 - INFO - Validated that VN ctest-vn4-52099151 is not in any agent 2026-10-31 13:00:25,209 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52099151 info 2026-10-31 13:00:25,260 - INFO - Deleted policy ctest-policy1-62630678 2026-10-31 13:00:25,431 - DEBUG - policy ctest-policy1-62630678 is not found in API Server 2026-10-31 13:00:25,688 - DEBUG - No XMPP flaps were noticed during the test
2026-10-31 13:00:25,688 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-31 13:00:25,688 - INFO - -------------------------------------------------------------------------------- 2026-10-31 13:00:25,981 - DEBUG - No XMPP flaps were noticed during the test
2026-10-31 13:00:25,981 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-31 13:00:25,981 - INFO - -------------------------------------------------------------------------------- 2026-10-31 13:00:26,784 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-08487546, ID : 0153bd3b-88ca-4481-9ca2-eba7ad78c5f7