2025-10-05 18:51:58,862 - INFO - Domain Default found not creating 2025-10-05 18:51:58,985 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-24053882 not found, creating it 2025-10-05 18:51:59,412 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-24053882, ID : ee37ee99-e379-4041-a22d-9b2171e58061 2025-10-05 18:52:00,698 - INFO - ================================================================================ 2025-10-05 18:52:00,698 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-05 18:52:00,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-05 18:52:00,951 - INFO - Initial checks done. Running the testcase now 2025-10-05 18:52:00,951 - INFO - 2025-10-05 18:52:00,951 - INFO - ================================================================================ 2025-10-05 18:52:00,951 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-05 18:52:00,952 - 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-10-05 18:52:01,243 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-05 18:52:01,243 - INFO - Initial checks done. Running the testcase now 2025-10-05 18:52:01,243 - INFO - 2025-10-05 18:52:01,581 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24053882:ctest-vn4-51581732, 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-24053882:ctest-vn4-51581732, 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-24053882:ctest-vn4-51581732, 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-24053882:ctest-vn4-51581732, 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-10-05 18:52:02,057 - DEBUG - Response for create_network : {'network': {'id': '7f5f997c-96ae-4f5f-984f-b597c0bb3a82', 'name': 'ctest-vn4-51581732', 'tenant_id': 'ee37ee99e3794041a22d9b2171e58061', 'project_id': 'ee37ee99e3794041a22d9b2171e58061', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24053882', 'ctest-vn4-51581732'], 'port_security_enabled': True, 'description': ''}} 2025-10-05 18:52:02,219 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b40c4a50-94c3-4139-b147-44d7fcc8366b', 'name': '', 'tenant_id': 'ee37ee99e3794041a22d9b2171e58061', 'network_id': '7f5f997c-96ae-4f5f-984f-b597c0bb3a82', 'ip_version': 4, 'cidr': '175.215.73.64/26', 'allocation_pools': [{'start': '175.215.73.66', 'end': '175.215.73.126'}], 'gateway_ip': '175.215.73.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.215.73.66', 'tags': [], 'project_id': 'ee37ee99e3794041a22d9b2171e58061'}} 2025-10-05 18:52:02,362 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea4f5afe-bc7a-4e5e-83d1-d003b1418abf', 'name': '', 'tenant_id': 'ee37ee99e3794041a22d9b2171e58061', 'network_id': '7f5f997c-96ae-4f5f-984f-b597c0bb3a82', 'ip_version': 6, 'cidr': '2266:b5f5:105d:8dae:863d:bc10::/96', 'allocation_pools': [{'start': '2266:b5f5:105d:8dae:863d:bc10:0:2', 'end': '2266:b5f5:105d:8dae:863d:bc10:ffff:fffe'}], 'gateway_ip': '2266:b5f5:105d:8dae:863d:bc10:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2266:b5f5:105d:8dae:863d:bc10:0:2', 'tags': [], 'project_id': 'ee37ee99e3794041a22d9b2171e58061'}} 2025-10-05 18:52:02,378 - INFO - Created VN ctest-vn4-51581732 2025-10-05 18:52:02,427 - DEBUG - VN ctest-vn4-51581732 UUID is 7f5f997c-96ae-4f5f-984f-b597c0bb3a82 2025-10-05 18:52:02,602 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f5f997c-96ae-4f5f-984f-b597c0bb3a82', 'name': 'ctest-vn4-51581732', 'tenant_id': 'ee37ee99e3794041a22d9b2171e58061', 'project_id': 'ee37ee99e3794041a22d9b2171e58061', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b40c4a50-94c3-4139-b147-44d7fcc8366b', 'ea4f5afe-bc7a-4e5e-83d1-d003b1418abf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24053882', 'ctest-vn4-51581732'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24053882', 'ctest-policy1-60930573']], 'subnet_ipam': [{'subnet_cidr': '175.215.73.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2266:b5f5:105d:8dae:863d:bc10::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-05 18:52:02,751 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-05 18:52:03,039 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-05 18:52:03,062 - DEBUG - Requesting: http://10.0.0.254:8082/domain/995b2b3b-a114-42d5-a9a0-da3b5cc5c114 2025-10-05 18:52:03,072 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee37ee99-e379-4041-a22d-9b2171e58061 2025-10-05 18:52:03,143 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f5f997c-96ae-4f5f-984f-b597c0bb3a82 2025-10-05 18:52:03,153 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f5f997c-96ae-4f5f-984f-b597c0bb3a82 2025-10-05 18:52:03,161 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db118ccf-2ffe-4352-a2ec-894dd4d7d827 2025-10-05 18:52:03,166 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db118ccf-2ffe-4352-a2ec-894dd4d7d827 2025-10-05 18:52:03,171 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4a28becc-b927-4768-8d82-23305307be2c 2025-10-05 18:52:03,176 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-05 18:52:03,176 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f5f997c-96ae-4f5f-984f-b597c0bb3a82 2025-10-05 18:52:03,184 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db118ccf-2ffe-4352-a2ec-894dd4d7d827 2025-10-05 18:52:03,195 - INFO - Verified VN network id 12 for VN 7f5f997c-96ae-4f5f-984f-b597c0bb3a82 2025-10-05 18:52:03,196 - INFO - Verifications in API Server for VN ctest-vn4-51581732 passed 2025-10-05 18:52:03,196 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f5f997c-96ae-4f5f-984f-b597c0bb3a82 2025-10-05 18:52:03,203 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db118ccf-2ffe-4352-a2ec-894dd4d7d827 2025-10-05 18:52:03,209 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db118ccf-2ffe-4352-a2ec-894dd4d7d827 2025-10-05 18:52:03,214 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4a28becc-b927-4768-8d82-23305307be2c 2025-10-05 18:52:03,223 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24053882:ctest-vn4-51581732', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-24053882', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9178223325987360607', 'uuid-lslong': '10975190480303372930'}, 'enable': 'true', 'created': '2025-10-05T18:52:02', 'last-modified': '2025-10-05T18:52:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.642483'} 2025-10-05 18:52:03,228 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-05 18:52:03,228 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51581732 passed 2025-10-05 18:52:03,228 - DEBUG - ====Verifying policy data for ctest-vn4-51581732 in API_Server ====== 2025-10-05 18:52:03,228 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-05 18:52:03,232 - DEBUG - Requesting: http://10.0.0.254:8082/domain/995b2b3b-a114-42d5-a9a0-da3b5cc5c114 2025-10-05 18:52:03,241 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee37ee99-e379-4041-a22d-9b2171e58061 2025-10-05 18:52:03,307 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7f5f997c-96ae-4f5f-984f-b597c0bb3a82 2025-10-05 18:52:03,315 - DEBUG - ==>Verifying data for policy with id: e39ddefe-edb0-4b2e-8617-05e14307570c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-24053882', 'ctest-policy1-60930573'] 2025-10-05 18:52:03,315 - INFO - VN ctest-vn4-51581732 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-05 18:52:03,315 - DEBUG - Verifying the vn in opserver 2025-10-05 18:52:03,315 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24053882:ctest-vn4-51581732 virtual network link through opserver 10.0.0.254 2025-10-05 18:52:03,315 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-05 18:52:03,605 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-05 18:52:03,657 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24053882:ctest-vn4-51581732', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24053882:ctest-vn4-51581732?flat'} 2025-10-05 18:52:03,657 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-24053882:ctest-vn4-51581732 is found in opserver 2025-10-05 18:52:03,665 - DEBUG - Do not have enough data to verify VN in agent 2025-10-05 18:52:03,669 - DEBUG - VRF ids for VN ctest-vn4-51581732: {} 2025-10-05 18:52:03,669 - DEBUG - ====Verifying data for ctest-policy1-60930573 in API_Server ====== 2025-10-05 18:52:03,669 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-05 18:52:03,674 - DEBUG - Requesting: http://10.0.0.254:8082/domain/995b2b3b-a114-42d5-a9a0-da3b5cc5c114 2025-10-05 18:52:03,683 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee37ee99-e379-4041-a22d-9b2171e58061 2025-10-05 18:52:03,756 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/e39ddefe-edb0-4b2e-8617-05e14307570c 2025-10-05 18:52:03,764 - INFO - Verified policy ctest-policy1-60930573 in API Server, Result: True 2025-10-05 18:52:03,764 - INFO - Done with setup and verification, moving onto test .. 2025-10-05 18:52:03,770 - INFO - Deleting VN ctest-vn4-51581732 2025-10-05 18:52:03,867 - DEBUG - Response for deleting network () 2025-10-05 18:52:03,868 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db118ccf-2ffe-4352-a2ec-894dd4d7d827 2025-10-05 18:52:03,871 - DEBUG - Response Code: 404 2025-10-05 18:52:03,871 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-05 18:52:03,875 - DEBUG - Requesting: http://10.0.0.254:8082/domain/995b2b3b-a114-42d5-a9a0-da3b5cc5c114 2025-10-05 18:52:03,927 - DEBUG - Requesting: http://10.0.0.254:8082/project/ee37ee99-e379-4041-a22d-9b2171e58061 2025-10-05 18:52:03,994 - INFO - Validated that VN ctest-vn4-51581732 is not found in API Server 2025-10-05 18:52:04,002 - DEBUG - VN ctest-vn4-51581732 is not present in Agent 10.0.0.254 2025-10-05 18:52:04,002 - INFO - Validated that VN ctest-vn4-51581732 is not in any agent 2025-10-05 18:52:04,013 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51581732 info 2025-10-05 18:52:04,035 - INFO - Deleted policy ctest-policy1-60930573 2025-10-05 18:52:04,191 - DEBUG - policy ctest-policy1-60930573 is not found in API Server 2025-10-05 18:52:04,444 - DEBUG - No XMPP flaps were noticed during the test 2025-10-05 18:52:04,444 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-05 18:52:04,444 - INFO - -------------------------------------------------------------------------------- 2025-10-05 18:52:04,726 - DEBUG - No XMPP flaps were noticed during the test 2025-10-05 18:52:04,726 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-05 18:52:04,726 - INFO - -------------------------------------------------------------------------------- 2025-10-05 18:52:05,381 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-24053882, ID : ee37ee99-e379-4041-a22d-9b2171e58061