2026-04-18 08:46:13,526 - INFO - Domain Default found not creating 2026-04-18 08:46:13,688 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74408492 not found, creating it 2026-04-18 08:46:14,149 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74408492, ID : e891397b-a98c-4f36-80f4-72c575c89bfa 2026-04-18 08:46:15,677 - INFO - ================================================================================ 2026-04-18 08:46:15,677 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-18 08:46:15,935 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-18 08:46:15,935 - INFO - Initial checks done. Running the testcase now 2026-04-18 08:46:15,935 - INFO - 2026-04-18 08:46:15,935 - INFO - ================================================================================ 2026-04-18 08:46:15,935 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-18 08:46:15,935 - 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-18 08:46:16,221 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-18 08:46:16,221 - INFO - Initial checks done. Running the testcase now 2026-04-18 08:46:16,221 - INFO - 2026-04-18 08:46:16,572 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74408492:ctest-vn4-04255645, 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-74408492:ctest-vn4-04255645, 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-74408492:ctest-vn4-04255645, 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-74408492:ctest-vn4-04255645, 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-18 08:46:17,083 - DEBUG - Response for create_network : {'network': {'id': 'e29ade46-886d-4d52-a9fd-608dbb84a2c0', 'name': 'ctest-vn4-04255645', 'tenant_id': 'e891397ba98c4f3680f472c575c89bfa', 'project_id': 'e891397ba98c4f3680f472c575c89bfa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74408492', 'ctest-vn4-04255645'], 'port_security_enabled': True, 'description': ''}} 2026-04-18 08:46:17,270 - DEBUG - Response for create_subnet : {'subnet': {'id': '72bef617-5b52-47b5-88a1-a66c04375362', 'name': '', 'tenant_id': 'e891397ba98c4f3680f472c575c89bfa', 'network_id': 'e29ade46-886d-4d52-a9fd-608dbb84a2c0', 'ip_version': 4, 'cidr': '178.241.229.0/26', 'allocation_pools': [{'start': '178.241.229.2', 'end': '178.241.229.62'}], 'gateway_ip': '178.241.229.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.241.229.2', 'tags': [], 'project_id': 'e891397ba98c4f3680f472c575c89bfa'}} 2026-04-18 08:46:17,457 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6c7fa7d-5bbe-4c68-bc2b-f5bd250db2b8', 'name': '', 'tenant_id': 'e891397ba98c4f3680f472c575c89bfa', 'network_id': 'e29ade46-886d-4d52-a9fd-608dbb84a2c0', 'ip_version': 6, 'cidr': '2c98:b7b3:2b77:5796:bf82:8ebe::/96', 'allocation_pools': [{'start': '2c98:b7b3:2b77:5796:bf82:8ebe:0:2', 'end': '2c98:b7b3:2b77:5796:bf82:8ebe:ffff:fffe'}], 'gateway_ip': '2c98:b7b3:2b77:5796:bf82:8ebe:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c98:b7b3:2b77:5796:bf82:8ebe:0:2', 'tags': [], 'project_id': 'e891397ba98c4f3680f472c575c89bfa'}} 2026-04-18 08:46:17,477 - INFO - Created VN ctest-vn4-04255645 2026-04-18 08:46:17,532 - DEBUG - VN ctest-vn4-04255645 UUID is e29ade46-886d-4d52-a9fd-608dbb84a2c0 2026-04-18 08:46:17,734 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e29ade46-886d-4d52-a9fd-608dbb84a2c0', 'name': 'ctest-vn4-04255645', 'tenant_id': 'e891397ba98c4f3680f472c575c89bfa', 'project_id': 'e891397ba98c4f3680f472c575c89bfa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72bef617-5b52-47b5-88a1-a66c04375362', 'd6c7fa7d-5bbe-4c68-bc2b-f5bd250db2b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74408492', 'ctest-vn4-04255645'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74408492', 'ctest-policy1-08810849']], 'subnet_ipam': [{'subnet_cidr': '178.241.229.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c98:b7b3:2b77:5796:bf82:8ebe::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-18 08:46:17,896 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-18 08:46:18,192 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-18 08:46:18,223 - DEBUG - Requesting: http://10.0.0.38:8082/domain/03b75f51-8237-4036-b6db-a5f5b8d0df7b 2026-04-18 08:46:18,236 - DEBUG - Requesting: http://10.0.0.38:8082/project/e891397b-a98c-4f36-80f4-72c575c89bfa 2026-04-18 08:46:18,311 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e29ade46-886d-4d52-a9fd-608dbb84a2c0 2026-04-18 08:46:18,323 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e29ade46-886d-4d52-a9fd-608dbb84a2c0 2026-04-18 08:46:18,333 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86039914-a08c-431a-a4c1-78d5ab3ab7be 2026-04-18 08:46:18,340 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86039914-a08c-431a-a4c1-78d5ab3ab7be 2026-04-18 08:46:18,349 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9a016297-33d8-4dd9-8708-634207b4f0d8 2026-04-18 08:46:18,356 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-18 08:46:18,356 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e29ade46-886d-4d52-a9fd-608dbb84a2c0 2026-04-18 08:46:18,366 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86039914-a08c-431a-a4c1-78d5ab3ab7be 2026-04-18 08:46:18,380 - INFO - Verified VN network id 11 for VN e29ade46-886d-4d52-a9fd-608dbb84a2c0 2026-04-18 08:46:18,380 - INFO - Verifications in API Server for VN ctest-vn4-04255645 passed 2026-04-18 08:46:18,381 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e29ade46-886d-4d52-a9fd-608dbb84a2c0 2026-04-18 08:46:18,393 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86039914-a08c-431a-a4c1-78d5ab3ab7be 2026-04-18 08:46:18,400 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86039914-a08c-431a-a4c1-78d5ab3ab7be 2026-04-18 08:46:18,410 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9a016297-33d8-4dd9-8708-634207b4f0d8 2026-04-18 08:46:18,427 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74408492:ctest-vn4-04255645', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74408492', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16328607793503096146', 'uuid-lslong': '12249052723370304192'}, 'enable': 'true', 'created': '2026-04-18T08:46:17', 'last-modified': '2026-04-18T08:46:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714609'} 2026-04-18 08:46:18,432 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-18 08:46:18,433 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04255645 passed 2026-04-18 08:46:18,433 - DEBUG - ====Verifying policy data for ctest-vn4-04255645 in API_Server ====== 2026-04-18 08:46:18,433 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-18 08:46:18,440 - DEBUG - Requesting: http://10.0.0.38:8082/domain/03b75f51-8237-4036-b6db-a5f5b8d0df7b 2026-04-18 08:46:18,452 - DEBUG - Requesting: http://10.0.0.38:8082/project/e891397b-a98c-4f36-80f4-72c575c89bfa 2026-04-18 08:46:18,534 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e29ade46-886d-4d52-a9fd-608dbb84a2c0 2026-04-18 08:46:18,547 - DEBUG - ==>Verifying data for policy with id: b3a52b08-c4fc-4010-a0c8-1b5a527e5049, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74408492', 'ctest-policy1-08810849'] 2026-04-18 08:46:18,547 - INFO - VN ctest-vn4-04255645 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-18 08:46:18,547 - DEBUG - Verifying the vn in opserver 2026-04-18 08:46:18,547 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74408492:ctest-vn4-04255645 virtual network link through opserver 10.0.0.38 2026-04-18 08:46:18,547 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-18 08:46:18,844 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-18 08:46:18,912 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74408492:ctest-vn4-04255645', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74408492:ctest-vn4-04255645?flat'} 2026-04-18 08:46:18,912 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74408492:ctest-vn4-04255645 is found in opserver 2026-04-18 08:46:18,923 - DEBUG - Do not have enough data to verify VN in agent 2026-04-18 08:46:18,927 - DEBUG - VRF ids for VN ctest-vn4-04255645: {} 2026-04-18 08:46:18,928 - DEBUG - ====Verifying data for ctest-policy1-08810849 in API_Server ====== 2026-04-18 08:46:18,928 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-18 08:46:18,933 - DEBUG - Requesting: http://10.0.0.38:8082/domain/03b75f51-8237-4036-b6db-a5f5b8d0df7b 2026-04-18 08:46:18,944 - DEBUG - Requesting: http://10.0.0.38:8082/project/e891397b-a98c-4f36-80f4-72c575c89bfa 2026-04-18 08:46:19,015 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b3a52b08-c4fc-4010-a0c8-1b5a527e5049 2026-04-18 08:46:19,027 - INFO - Verified policy ctest-policy1-08810849 in API Server, Result: True 2026-04-18 08:46:19,027 - INFO - Done with setup and verification, moving onto test .. 2026-04-18 08:46:19,040 - INFO - Deleting VN ctest-vn4-04255645 2026-04-18 08:46:19,199 - DEBUG - Response for deleting network () 2026-04-18 08:46:19,199 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86039914-a08c-431a-a4c1-78d5ab3ab7be 2026-04-18 08:46:19,205 - DEBUG - Response Code: 404 2026-04-18 08:46:19,206 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-18 08:46:19,212 - DEBUG - Requesting: http://10.0.0.38:8082/domain/03b75f51-8237-4036-b6db-a5f5b8d0df7b 2026-04-18 08:46:19,265 - DEBUG - Requesting: http://10.0.0.38:8082/project/e891397b-a98c-4f36-80f4-72c575c89bfa 2026-04-18 08:46:19,338 - INFO - Validated that VN ctest-vn4-04255645 is not found in API Server 2026-04-18 08:46:19,348 - DEBUG - VN ctest-vn4-04255645 is not present in Agent 10.0.0.38 2026-04-18 08:46:19,348 - INFO - Validated that VN ctest-vn4-04255645 is not in any agent 2026-04-18 08:46:19,365 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04255645 info 2026-04-18 08:46:19,387 - INFO - Deleted policy ctest-policy1-08810849 2026-04-18 08:46:19,556 - DEBUG - policy ctest-policy1-08810849 is not found in API Server 2026-04-18 08:46:19,829 - DEBUG - No XMPP flaps were noticed during the test
2026-04-18 08:46:19,829 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-18 08:46:19,829 - INFO - -------------------------------------------------------------------------------- 2026-04-18 08:46:20,126 - DEBUG - No XMPP flaps were noticed during the test
2026-04-18 08:46:20,126 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-04-18 08:46:20,126 - INFO - -------------------------------------------------------------------------------- 2026-04-18 08:46:20,844 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74408492, ID : e891397b-a98c-4f36-80f4-72c575c89bfa