2025-09-29 18:17:45,867 - INFO - Domain Default found not creating 2025-09-29 18:17:46,009 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04845692 not found, creating it 2025-09-29 18:17:46,457 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04845692, ID : 9eb10fe4-e3ad-403a-87bb-628e1f929165 2025-09-29 18:17:47,992 - INFO - ================================================================================ 2025-09-29 18:17:47,992 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-29 18:17:48,247 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-29 18:17:48,247 - INFO - Initial checks done. Running the testcase now 2025-09-29 18:17:48,247 - INFO - 2025-09-29 18:17:48,247 - INFO - ================================================================================ 2025-09-29 18:17:48,247 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-29 18:17:48,247 - 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-09-29 18:17:48,536 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-29 18:17:48,536 - INFO - Initial checks done. Running the testcase now 2025-09-29 18:17:48,536 - INFO - 2025-09-29 18:17:48,926 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04845692:ctest-vn4-72590217, 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-04845692:ctest-vn4-72590217, 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-04845692:ctest-vn4-72590217, 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-04845692:ctest-vn4-72590217, 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-09-29 18:17:49,449 - DEBUG - Response for create_network : {'network': {'id': '5b72df60-26b8-4e1d-854a-a57f79e7374d', 'name': 'ctest-vn4-72590217', 'tenant_id': '9eb10fe4e3ad403a87bb628e1f929165', 'project_id': '9eb10fe4e3ad403a87bb628e1f929165', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04845692', 'ctest-vn4-72590217'], 'port_security_enabled': True, 'description': ''}} 2025-09-29 18:17:49,638 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea5334a4-160f-4d3c-a0b1-adb2ce0f6d4b', 'name': '', 'tenant_id': '9eb10fe4e3ad403a87bb628e1f929165', 'network_id': '5b72df60-26b8-4e1d-854a-a57f79e7374d', 'ip_version': 4, 'cidr': '209.224.166.0/26', 'allocation_pools': [{'start': '209.224.166.2', 'end': '209.224.166.62'}], 'gateway_ip': '209.224.166.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.224.166.2', 'tags': [], 'project_id': '9eb10fe4e3ad403a87bb628e1f929165'}} 2025-09-29 18:17:49,794 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba6e55c8-76d2-47db-a36e-f7438a3dce0e', 'name': '', 'tenant_id': '9eb10fe4e3ad403a87bb628e1f929165', 'network_id': '5b72df60-26b8-4e1d-854a-a57f79e7374d', 'ip_version': 6, 'cidr': '3950:ce82:8bc6:769e:efc7:aecd::/96', 'allocation_pools': [{'start': '3950:ce82:8bc6:769e:efc7:aecd:0:2', 'end': '3950:ce82:8bc6:769e:efc7:aecd:ffff:fffe'}], 'gateway_ip': '3950:ce82:8bc6:769e:efc7:aecd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3950:ce82:8bc6:769e:efc7:aecd:0:2', 'tags': [], 'project_id': '9eb10fe4e3ad403a87bb628e1f929165'}} 2025-09-29 18:17:49,819 - INFO - Created VN ctest-vn4-72590217 2025-09-29 18:17:49,875 - DEBUG - VN ctest-vn4-72590217 UUID is 5b72df60-26b8-4e1d-854a-a57f79e7374d 2025-09-29 18:17:50,081 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b72df60-26b8-4e1d-854a-a57f79e7374d', 'name': 'ctest-vn4-72590217', 'tenant_id': '9eb10fe4e3ad403a87bb628e1f929165', 'project_id': '9eb10fe4e3ad403a87bb628e1f929165', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea5334a4-160f-4d3c-a0b1-adb2ce0f6d4b', 'ba6e55c8-76d2-47db-a36e-f7438a3dce0e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04845692', 'ctest-vn4-72590217'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04845692', 'ctest-policy1-95765429']], 'subnet_ipam': [{'subnet_cidr': '209.224.166.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3950:ce82:8bc6:769e:efc7:aecd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-29 18:17:50,243 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-29 18:17:50,576 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-29 18:17:50,606 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4eabe18d-f748-4c6b-8e13-0b4e12d854cd 2025-09-29 18:17:50,622 - DEBUG - Requesting: http://10.0.0.254:8082/project/9eb10fe4-e3ad-403a-87bb-628e1f929165 2025-09-29 18:17:50,694 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5b72df60-26b8-4e1d-854a-a57f79e7374d 2025-09-29 18:17:50,704 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5b72df60-26b8-4e1d-854a-a57f79e7374d 2025-09-29 18:17:50,713 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c4606a0-6cb7-407a-9d49-f93224ef6680 2025-09-29 18:17:50,719 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c4606a0-6cb7-407a-9d49-f93224ef6680 2025-09-29 18:17:50,724 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ab64e1c6-18f7-44bd-baea-a9c62405f211 2025-09-29 18:17:50,729 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 18:17:50,730 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5b72df60-26b8-4e1d-854a-a57f79e7374d 2025-09-29 18:17:50,739 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c4606a0-6cb7-407a-9d49-f93224ef6680 2025-09-29 18:17:50,812 - INFO - Verified VN network id 11 for VN 5b72df60-26b8-4e1d-854a-a57f79e7374d 2025-09-29 18:17:50,812 - INFO - Verifications in API Server for VN ctest-vn4-72590217 passed 2025-09-29 18:17:50,812 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5b72df60-26b8-4e1d-854a-a57f79e7374d 2025-09-29 18:17:50,822 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c4606a0-6cb7-407a-9d49-f93224ef6680 2025-09-29 18:17:50,828 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c4606a0-6cb7-407a-9d49-f93224ef6680 2025-09-29 18:17:50,833 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ab64e1c6-18f7-44bd-baea-a9c62405f211 2025-09-29 18:17:50,843 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04845692:ctest-vn4-72590217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04845692', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6589574808855924253', 'uuid-lslong': '9604671122245629773'}, 'enable': 'true', 'created': '2025-09-29T18:17:49', 'last-modified': '2025-09-29T18:17:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.793752'} 2025-09-29 18:17:50,850 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-29 18:17:50,850 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72590217 passed 2025-09-29 18:17:50,850 - DEBUG - ====Verifying policy data for ctest-vn4-72590217 in API_Server ====== 2025-09-29 18:17:50,850 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-29 18:17:50,855 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4eabe18d-f748-4c6b-8e13-0b4e12d854cd 2025-09-29 18:17:50,865 - DEBUG - Requesting: http://10.0.0.254:8082/project/9eb10fe4-e3ad-403a-87bb-628e1f929165 2025-09-29 18:17:50,938 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5b72df60-26b8-4e1d-854a-a57f79e7374d 2025-09-29 18:17:50,947 - DEBUG - ==>Verifying data for policy with id: 9aaa6ccc-21e1-44cc-8280-6cfacfa78c5d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04845692', 'ctest-policy1-95765429'] 2025-09-29 18:17:50,947 - INFO - VN ctest-vn4-72590217 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-29 18:17:50,948 - DEBUG - Verifying the vn in opserver 2025-09-29 18:17:50,948 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04845692:ctest-vn4-72590217 virtual network link through opserver 10.0.0.254 2025-09-29 18:17:50,948 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-29 18:17:51,281 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-29 18:17:51,335 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04845692:ctest-vn4-72590217', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04845692:ctest-vn4-72590217?flat'} 2025-09-29 18:17:51,335 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04845692:ctest-vn4-72590217 is found in opserver 2025-09-29 18:17:51,344 - DEBUG - Do not have enough data to verify VN in agent 2025-09-29 18:17:51,349 - DEBUG - VRF ids for VN ctest-vn4-72590217: {} 2025-09-29 18:17:51,349 - DEBUG - ====Verifying data for ctest-policy1-95765429 in API_Server ====== 2025-09-29 18:17:51,349 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-29 18:17:51,355 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4eabe18d-f748-4c6b-8e13-0b4e12d854cd 2025-09-29 18:17:51,366 - DEBUG - Requesting: http://10.0.0.254:8082/project/9eb10fe4-e3ad-403a-87bb-628e1f929165 2025-09-29 18:17:51,436 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/9aaa6ccc-21e1-44cc-8280-6cfacfa78c5d 2025-09-29 18:17:51,445 - INFO - Verified policy ctest-policy1-95765429 in API Server, Result: True 2025-09-29 18:17:51,445 - INFO - Done with setup and verification, moving onto test .. 2025-09-29 18:17:51,452 - INFO - Deleting VN ctest-vn4-72590217 2025-09-29 18:17:51,567 - DEBUG - Response for deleting network () 2025-09-29 18:17:51,567 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1c4606a0-6cb7-407a-9d49-f93224ef6680 2025-09-29 18:17:51,572 - DEBUG - Response Code: 404 2025-09-29 18:17:51,572 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-29 18:17:51,577 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4eabe18d-f748-4c6b-8e13-0b4e12d854cd 2025-09-29 18:17:51,628 - DEBUG - Requesting: http://10.0.0.254:8082/project/9eb10fe4-e3ad-403a-87bb-628e1f929165 2025-09-29 18:17:51,698 - INFO - Validated that VN ctest-vn4-72590217 is not found in API Server 2025-09-29 18:17:51,708 - DEBUG - VN ctest-vn4-72590217 is not present in Agent 10.0.0.254 2025-09-29 18:17:51,708 - INFO - Validated that VN ctest-vn4-72590217 is not in any agent 2025-09-29 18:17:51,721 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72590217 info 2025-09-29 18:17:51,749 - INFO - Deleted policy ctest-policy1-95765429 2025-09-29 18:17:51,919 - DEBUG - policy ctest-policy1-95765429 is not found in API Server 2025-09-29 18:17:52,173 - DEBUG - No XMPP flaps were noticed during the test
2025-09-29 18:17:52,173 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-29 18:17:52,173 - INFO - -------------------------------------------------------------------------------- 2025-09-29 18:17:52,461 - DEBUG - No XMPP flaps were noticed during the test
2025-09-29 18:17:52,461 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-29 18:17:52,461 - INFO - -------------------------------------------------------------------------------- 2025-09-29 18:17:53,166 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-04845692, ID : 9eb10fe4-e3ad-403a-87bb-628e1f929165