2025-11-13 13:16:45,622 - INFO - Domain Default found not creating 2025-11-13 13:16:45,759 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65559829 not found, creating it 2025-11-13 13:16:46,187 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65559829, ID : dcc93781-3112-4ca2-817b-79f41855b8fd 2025-11-13 13:16:47,580 - INFO - ================================================================================ 2025-11-13 13:16:47,580 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 13:16:47,832 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-11-13 13:16:47,832 - INFO - Initial checks done. Running the testcase now 2025-11-13 13:16:47,832 - INFO - 2025-11-13 13:16:47,832 - INFO - ================================================================================ 2025-11-13 13:16:47,832 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 13:16:47,832 - 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-11-13 13:16:48,120 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-11-13 13:16:48,120 - INFO - Initial checks done. Running the testcase now 2025-11-13 13:16:48,121 - INFO - 2025-11-13 13:16:48,457 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65559829:ctest-vn4-29014970, 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-65559829:ctest-vn4-29014970, 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-65559829:ctest-vn4-29014970, 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-65559829:ctest-vn4-29014970, 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-11-13 13:16:48,946 - DEBUG - Response for create_network : {'network': {'id': '19936ef4-6cae-41b1-bc93-037021de3310', 'name': 'ctest-vn4-29014970', 'tenant_id': 'dcc9378131124ca2817b79f41855b8fd', 'project_id': 'dcc9378131124ca2817b79f41855b8fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65559829', 'ctest-vn4-29014970'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 13:16:49,165 - DEBUG - Response for create_subnet : {'subnet': {'id': '632350ff-fb0f-41ad-8079-91666d6c8754', 'name': '', 'tenant_id': 'dcc9378131124ca2817b79f41855b8fd', 'network_id': '19936ef4-6cae-41b1-bc93-037021de3310', 'ip_version': 4, 'cidr': '18.62.156.0/26', 'allocation_pools': [{'start': '18.62.156.2', 'end': '18.62.156.62'}], 'gateway_ip': '18.62.156.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.62.156.2', 'tags': [], 'project_id': 'dcc9378131124ca2817b79f41855b8fd'}} 2025-11-13 13:16:49,349 - DEBUG - Response for create_subnet : {'subnet': {'id': '2fffba06-1aaa-4aba-964e-1a384eae38b4', 'name': '', 'tenant_id': 'dcc9378131124ca2817b79f41855b8fd', 'network_id': '19936ef4-6cae-41b1-bc93-037021de3310', 'ip_version': 6, 'cidr': '3300:8626:4598:34e:d4ce:4bfc::/96', 'allocation_pools': [{'start': '3300:8626:4598:34e:d4ce:4bfc:0:2', 'end': '3300:8626:4598:34e:d4ce:4bfc:ffff:fffe'}], 'gateway_ip': '3300:8626:4598:34e:d4ce:4bfc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3300:8626:4598:34e:d4ce:4bfc:0:2', 'tags': [], 'project_id': 'dcc9378131124ca2817b79f41855b8fd'}} 2025-11-13 13:16:49,372 - INFO - Created VN ctest-vn4-29014970 2025-11-13 13:16:49,424 - DEBUG - VN ctest-vn4-29014970 UUID is 19936ef4-6cae-41b1-bc93-037021de3310 2025-11-13 13:16:49,631 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19936ef4-6cae-41b1-bc93-037021de3310', 'name': 'ctest-vn4-29014970', 'tenant_id': 'dcc9378131124ca2817b79f41855b8fd', 'project_id': 'dcc9378131124ca2817b79f41855b8fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['632350ff-fb0f-41ad-8079-91666d6c8754', '2fffba06-1aaa-4aba-964e-1a384eae38b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65559829', 'ctest-vn4-29014970'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65559829', 'ctest-policy1-88407362']], 'subnet_ipam': [{'subnet_cidr': '18.62.156.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3300:8626:4598:34e:d4ce:4bfc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 13:16:49,796 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 13:16:50,085 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 13:16:50,111 - DEBUG - Requesting: http://10.0.0.50:8082/domain/486ad687-db18-4f82-a090-aa9e5ba25272 2025-11-13 13:16:50,124 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcc93781-3112-4ca2-817b-79f41855b8fd 2025-11-13 13:16:50,191 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19936ef4-6cae-41b1-bc93-037021de3310 2025-11-13 13:16:50,201 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19936ef4-6cae-41b1-bc93-037021de3310 2025-11-13 13:16:50,210 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7bcc579c-3048-45c2-89cb-10bdcd3f246d 2025-11-13 13:16:50,216 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7bcc579c-3048-45c2-89cb-10bdcd3f246d 2025-11-13 13:16:50,222 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eb4c06e0-b24f-4c78-bf81-9db9579500fd 2025-11-13 13:16:50,228 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 13:16:50,228 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19936ef4-6cae-41b1-bc93-037021de3310 2025-11-13 13:16:50,236 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7bcc579c-3048-45c2-89cb-10bdcd3f246d 2025-11-13 13:16:50,251 - INFO - Verified VN network id 12 for VN 19936ef4-6cae-41b1-bc93-037021de3310 2025-11-13 13:16:50,251 - INFO - Verifications in API Server for VN ctest-vn4-29014970 passed 2025-11-13 13:16:50,251 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19936ef4-6cae-41b1-bc93-037021de3310 2025-11-13 13:16:50,259 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7bcc579c-3048-45c2-89cb-10bdcd3f246d 2025-11-13 13:16:50,266 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7bcc579c-3048-45c2-89cb-10bdcd3f246d 2025-11-13 13:16:50,272 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eb4c06e0-b24f-4c78-bf81-9db9579500fd 2025-11-13 13:16:50,282 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65559829:ctest-vn4-29014970', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65559829', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1842938668599099825', 'uuid-lslong': '13588208280846349072'}, 'enable': 'true', 'created': '2025-11-13T13:16:48', 'last-modified': '2025-11-13T13:16:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.676559'} 2025-11-13 13:16:50,288 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 13:16:50,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29014970 passed 2025-11-13 13:16:50,288 - DEBUG - ====Verifying policy data for ctest-vn4-29014970 in API_Server ====== 2025-11-13 13:16:50,288 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 13:16:50,293 - DEBUG - Requesting: http://10.0.0.50:8082/domain/486ad687-db18-4f82-a090-aa9e5ba25272 2025-11-13 13:16:50,302 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcc93781-3112-4ca2-817b-79f41855b8fd 2025-11-13 13:16:50,368 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19936ef4-6cae-41b1-bc93-037021de3310 2025-11-13 13:16:50,377 - DEBUG - ==>Verifying data for policy with id: 03dce0e7-a0e6-4bc7-b490-326e24d01400, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65559829', 'ctest-policy1-88407362'] 2025-11-13 13:16:50,377 - INFO - VN ctest-vn4-29014970 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 13:16:50,377 - DEBUG - Verifying the vn in opserver 2025-11-13 13:16:50,377 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65559829:ctest-vn4-29014970 virtual network link through opserver 10.0.0.50 2025-11-13 13:16:50,377 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-13 13:16:50,664 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-13 13:16:50,718 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65559829:ctest-vn4-29014970', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65559829:ctest-vn4-29014970?flat'} 2025-11-13 13:16:50,718 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65559829:ctest-vn4-29014970 is found in opserver 2025-11-13 13:16:50,727 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 13:16:50,731 - DEBUG - VRF ids for VN ctest-vn4-29014970: {} 2025-11-13 13:16:50,731 - DEBUG - ====Verifying data for ctest-policy1-88407362 in API_Server ====== 2025-11-13 13:16:50,731 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 13:16:50,736 - DEBUG - Requesting: http://10.0.0.50:8082/domain/486ad687-db18-4f82-a090-aa9e5ba25272 2025-11-13 13:16:50,746 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcc93781-3112-4ca2-817b-79f41855b8fd 2025-11-13 13:16:50,817 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/03dce0e7-a0e6-4bc7-b490-326e24d01400 2025-11-13 13:16:50,827 - INFO - Verified policy ctest-policy1-88407362 in API Server, Result: True 2025-11-13 13:16:50,827 - INFO - Done with setup and verification, moving onto test .. 2025-11-13 13:16:50,835 - INFO - Deleting VN ctest-vn4-29014970 2025-11-13 13:16:50,952 - DEBUG - Response for deleting network () 2025-11-13 13:16:50,952 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7bcc579c-3048-45c2-89cb-10bdcd3f246d 2025-11-13 13:16:50,957 - DEBUG - Response Code: 404 2025-11-13 13:16:50,957 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-13 13:16:50,962 - DEBUG - Requesting: http://10.0.0.50:8082/domain/486ad687-db18-4f82-a090-aa9e5ba25272 2025-11-13 13:16:51,013 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcc93781-3112-4ca2-817b-79f41855b8fd 2025-11-13 13:16:51,082 - INFO - Validated that VN ctest-vn4-29014970 is not found in API Server 2025-11-13 13:16:51,093 - DEBUG - VN ctest-vn4-29014970 is not present in Agent 10.0.0.50 2025-11-13 13:16:51,093 - INFO - Validated that VN ctest-vn4-29014970 is not in any agent 2025-11-13 13:16:51,107 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29014970 info 2025-11-13 13:16:51,129 - INFO - Deleted policy ctest-policy1-88407362 2025-11-13 13:16:51,288 - DEBUG - policy ctest-policy1-88407362 is not found in API Server 2025-11-13 13:16:51,545 - DEBUG - No XMPP flaps were noticed during the test 2025-11-13 13:16:51,545 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-13 13:16:51,545 - INFO - -------------------------------------------------------------------------------- 2025-11-13 13:16:51,836 - DEBUG - No XMPP flaps were noticed during the test 2025-11-13 13:16:51,837 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-13 13:16:51,837 - INFO - -------------------------------------------------------------------------------- 2025-11-13 13:16:52,481 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-65559829, ID : dcc93781-3112-4ca2-817b-79f41855b8fd