2025-08-26 00:17:53,223 - INFO - Domain Default found not creating 2025-08-26 00:17:53,398 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93359191 not found, creating it 2025-08-26 00:17:54,087 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93359191, ID : 11445337-873a-4eba-b41e-57739694f66e 2025-08-26 00:17:55,893 - INFO - ================================================================================ 2025-08-26 00:17:55,894 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-26 00:17:57,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.41': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2025-08-26 00:17:57,236 - INFO - Initial checks done. Running the testcase now 2025-08-26 00:17:57,236 - INFO - 2025-08-26 00:17:57,236 - INFO - ================================================================================ 2025-08-26 00:17:57,236 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-26 00:17:57,236 - 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-08-26 00:17:58,627 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.41': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2025-08-26 00:17:58,627 - INFO - Initial checks done. Running the testcase now 2025-08-26 00:17:58,627 - INFO - 2025-08-26 00:17:59,097 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180, 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-93359191:ctest-vn4-34189180, 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-93359191:ctest-vn4-34189180, 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-93359191:ctest-vn4-34189180, 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-08-26 00:17:59,853 - DEBUG - Response for create_network : {'network': {'id': '6055398e-4e55-451a-b00c-242753beac72', 'name': 'ctest-vn4-34189180', 'tenant_id': '11445337873a4ebab41e57739694f66e', 'project_id': '11445337873a4ebab41e57739694f66e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93359191', 'ctest-vn4-34189180'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 00:18:00,124 - DEBUG - Response for create_subnet : {'subnet': {'id': '44b8ebce-b992-4442-900e-32aed50c0e5b', 'name': '', 'tenant_id': '11445337873a4ebab41e57739694f66e', 'network_id': '6055398e-4e55-451a-b00c-242753beac72', 'ip_version': 4, 'cidr': '93.108.145.64/26', 'allocation_pools': [{'start': '93.108.145.66', 'end': '93.108.145.126'}], 'gateway_ip': '93.108.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.108.145.66', 'tags': [], 'project_id': '11445337873a4ebab41e57739694f66e'}} 2025-08-26 00:18:00,423 - DEBUG - Response for create_subnet : {'subnet': {'id': '21d497e4-f21c-4971-96ca-e8d118305637', 'name': '', 'tenant_id': '11445337873a4ebab41e57739694f66e', 'network_id': '6055398e-4e55-451a-b00c-242753beac72', 'ip_version': 6, 'cidr': '2d92:bec6:b7a8:9d68:b269:1ca9::/96', 'allocation_pools': [{'start': '2d92:bec6:b7a8:9d68:b269:1ca9:0:2', 'end': '2d92:bec6:b7a8:9d68:b269:1ca9:ffff:fffe'}], 'gateway_ip': '2d92:bec6:b7a8:9d68:b269:1ca9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d92:bec6:b7a8:9d68:b269:1ca9:0:2', 'tags': [], 'project_id': '11445337873a4ebab41e57739694f66e'}} 2025-08-26 00:18:00,455 - INFO - Created VN ctest-vn4-34189180 2025-08-26 00:18:00,471 - DEBUG - VN ctest-vn4-34189180 UUID is 6055398e-4e55-451a-b00c-242753beac72 2025-08-26 00:18:00,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6055398e-4e55-451a-b00c-242753beac72', 'name': 'ctest-vn4-34189180', 'tenant_id': '11445337873a4ebab41e57739694f66e', 'project_id': '11445337873a4ebab41e57739694f66e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44b8ebce-b992-4442-900e-32aed50c0e5b', '21d497e4-f21c-4971-96ca-e8d118305637'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93359191', 'ctest-vn4-34189180'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93359191', 'ctest-policy1-66459208']], 'subnet_ipam': [{'subnet_cidr': '93.108.145.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d92:bec6:b7a8:9d68:b269:1ca9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-26 00:18:00,911 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-26 00:18:01,227 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-26 00:18:01,259 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ef4dcfcd-b3c2-4159-a2f0-815ca79e3b02 2025-08-26 00:18:01,281 - DEBUG - Requesting: http://10.0.0.49:8082/project/11445337-873a-4eba-b41e-57739694f66e 2025-08-26 00:18:01,444 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6055398e-4e55-451a-b00c-242753beac72 2025-08-26 00:18:01,462 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6055398e-4e55-451a-b00c-242753beac72 2025-08-26 00:18:01,476 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8eab5c89-688f-4ce3-9e85-d7fb0cf37656 2025-08-26 00:18:01,486 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8eab5c89-688f-4ce3-9e85-d7fb0cf37656 2025-08-26 00:18:01,496 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/403e34e5-493a-4ffe-b736-168d2b0be961 2025-08-26 00:18:01,505 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 00:18:01,505 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6055398e-4e55-451a-b00c-242753beac72 2025-08-26 00:18:01,521 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8eab5c89-688f-4ce3-9e85-d7fb0cf37656 2025-08-26 00:18:01,540 - INFO - Verified VN network id 11 for VN 6055398e-4e55-451a-b00c-242753beac72 2025-08-26 00:18:01,540 - INFO - Verifications in API Server for VN ctest-vn4-34189180 passed 2025-08-26 00:18:01,541 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6055398e-4e55-451a-b00c-242753beac72 2025-08-26 00:18:01,561 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8eab5c89-688f-4ce3-9e85-d7fb0cf37656 2025-08-26 00:18:01,577 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8eab5c89-688f-4ce3-9e85-d7fb0cf37656 2025-08-26 00:18:01,591 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/403e34e5-493a-4ffe-b736-168d2b0be961 2025-08-26 00:18:01,610 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93359191', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6941517684023837978', 'uuid-lslong': '12685554001723174002'}, 'enable': 'true', 'created': '2025-08-26T00:17:59', 'last-modified': '2025-08-26T00:18:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923756'} 2025-08-26 00:18:01,618 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 00:18:01,625 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93359191', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6941517684023837978', 'uuid-lslong': '12685554001723174002'}, 'enable': 'true', 'created': '2025-08-26T00:17:59', 'last-modified': '2025-08-26T00:18:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946141'} 2025-08-26 00:18:01,634 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 00:18:01,642 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93359191', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6941517684023837978', 'uuid-lslong': '12685554001723174002'}, 'enable': 'true', 'created': '2025-08-26T00:17:59', 'last-modified': '2025-08-26T00:18:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.953084'} 2025-08-26 00:18:01,650 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 00:18:01,650 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34189180 passed 2025-08-26 00:18:01,650 - DEBUG - ====Verifying policy data for ctest-vn4-34189180 in API_Server ====== 2025-08-26 00:18:01,650 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-26 00:18:01,661 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ef4dcfcd-b3c2-4159-a2f0-815ca79e3b02 2025-08-26 00:18:01,686 - DEBUG - Requesting: http://10.0.0.49:8082/project/11445337-873a-4eba-b41e-57739694f66e 2025-08-26 00:18:01,799 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/6055398e-4e55-451a-b00c-242753beac72 2025-08-26 00:18:01,814 - DEBUG - ==>Verifying data for policy with id: 0aba2c0d-f5f7-48c2-a9a9-691e86f28998, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93359191', 'ctest-policy1-66459208'] 2025-08-26 00:18:01,815 - INFO - VN ctest-vn4-34189180 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-26 00:18:01,815 - DEBUG - Verifying the vn in opserver 2025-08-26 00:18:01,815 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180 virtual network link through opserver 10.0.0.49 2025-08-26 00:18:01,816 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-26 00:18:02,143 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-26 00:18:02,219 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180?flat'} 2025-08-26 00:18:02,219 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180 virtual network link through opserver 10.0.0.33 2025-08-26 00:18:02,219 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-26 00:18:02,518 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-26 00:18:02,584 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180?flat'} 2025-08-26 00:18:02,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180 virtual network link through opserver 10.0.0.254 2025-08-26 00:18:02,584 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-26 00:18:02,929 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-26 00:18:03,003 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180?flat'} 2025-08-26 00:18:03,003 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93359191:ctest-vn4-34189180 is found in opserver 2025-08-26 00:18:03,054 - DEBUG - Do not have enough data to verify VN in agent 2025-08-26 00:18:03,080 - DEBUG - VRF ids for VN ctest-vn4-34189180: {} 2025-08-26 00:18:03,081 - DEBUG - ====Verifying data for ctest-policy1-66459208 in API_Server ====== 2025-08-26 00:18:03,081 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-26 00:18:03,095 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ef4dcfcd-b3c2-4159-a2f0-815ca79e3b02 2025-08-26 00:18:03,115 - DEBUG - Requesting: http://10.0.0.49:8082/project/11445337-873a-4eba-b41e-57739694f66e 2025-08-26 00:18:03,288 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/0aba2c0d-f5f7-48c2-a9a9-691e86f28998 2025-08-26 00:18:03,301 - INFO - Verified policy ctest-policy1-66459208 in API Server, Result: True 2025-08-26 00:18:03,301 - INFO - Done with setup and verification, moving onto test .. 2025-08-26 00:18:03,314 - INFO - Deleting VN ctest-vn4-34189180 2025-08-26 00:18:03,611 - DEBUG - Response for deleting network () 2025-08-26 00:18:03,611 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/8eab5c89-688f-4ce3-9e85-d7fb0cf37656 2025-08-26 00:18:03,620 - DEBUG - Response Code: 404 2025-08-26 00:18:03,620 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-26 00:18:03,632 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ef4dcfcd-b3c2-4159-a2f0-815ca79e3b02 2025-08-26 00:18:03,646 - DEBUG - Requesting: http://10.0.0.49:8082/project/11445337-873a-4eba-b41e-57739694f66e 2025-08-26 00:18:03,788 - INFO - Validated that VN ctest-vn4-34189180 is not found in API Server 2025-08-26 00:18:03,803 - DEBUG - VN ctest-vn4-34189180 is not present in Agent 10.0.0.137 2025-08-26 00:18:03,838 - DEBUG - VN ctest-vn4-34189180 is not present in Agent 10.0.0.41 2025-08-26 00:18:03,838 - INFO - Validated that VN ctest-vn4-34189180 is not in any agent 2025-08-26 00:18:03,906 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34189180 info 2025-08-26 00:18:03,963 - INFO - Deleted policy ctest-policy1-66459208 2025-08-26 00:18:04,175 - DEBUG - policy ctest-policy1-66459208 is not found in API Server 2025-08-26 00:18:05,533 - DEBUG - No XMPP flaps were noticed during the test
2025-08-26 00:18:05,533 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2025-08-26 00:18:05,534 - INFO - -------------------------------------------------------------------------------- 2025-08-26 00:18:06,954 - DEBUG - No XMPP flaps were noticed during the test
2025-08-26 00:18:06,955 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11]
2025-08-26 00:18:06,955 - INFO - -------------------------------------------------------------------------------- 2025-08-26 00:18:07,760 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93359191, ID : 11445337-873a-4eba-b41e-57739694f66e