2025-12-04 13:46:13,236 - INFO - Domain Default found not creating 2025-12-04 13:46:13,484 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-49619573 not found, creating it 2025-12-04 13:46:13,999 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-49619573, ID : 3d6374a4-bf29-4e41-afe9-397d171a5b71 2025-12-04 13:46:15,737 - INFO - ================================================================================ 2025-12-04 13:46:15,737 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-04 13:46:16,008 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2025-12-04 13:46:16,008 - INFO - Initial checks done. Running the testcase now 2025-12-04 13:46:16,008 - INFO - 2025-12-04 13:46:16,008 - INFO - ================================================================================ 2025-12-04 13:46:16,008 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-04 13:46:16,008 - 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-12-04 13:46:16,306 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2025-12-04 13:46:16,306 - INFO - Initial checks done. Running the testcase now 2025-12-04 13:46:16,306 - INFO - 2025-12-04 13:46:16,701 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49619573:ctest-vn4-03246847, 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-49619573:ctest-vn4-03246847, 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-49619573:ctest-vn4-03246847, 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-49619573:ctest-vn4-03246847, 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-12-04 13:46:17,323 - DEBUG - Response for create_network : {'network': {'id': '59ff2da1-725b-499b-9252-68ab885fa28d', 'name': 'ctest-vn4-03246847', 'tenant_id': '3d6374a4bf294e41afe9397d171a5b71', 'project_id': '3d6374a4bf294e41afe9397d171a5b71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49619573', 'ctest-vn4-03246847'], 'port_security_enabled': True, 'description': ''}} 2025-12-04 13:46:17,565 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b03124ee-aebd-4de6-8558-e5e41ac2d94c', 'name': '', 'tenant_id': '3d6374a4bf294e41afe9397d171a5b71', 'network_id': '59ff2da1-725b-499b-9252-68ab885fa28d', 'ip_version': 4, 'cidr': '48.199.248.0/26', 'allocation_pools': [{'start': '48.199.248.2', 'end': '48.199.248.62'}], 'gateway_ip': '48.199.248.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.199.248.2', 'tags': [], 'project_id': '3d6374a4bf294e41afe9397d171a5b71'}} 2025-12-04 13:46:17,798 - DEBUG - Response for create_subnet : {'subnet': {'id': '522c6c90-6260-45bb-b3ec-4439aea82869', 'name': '', 'tenant_id': '3d6374a4bf294e41afe9397d171a5b71', 'network_id': '59ff2da1-725b-499b-9252-68ab885fa28d', 'ip_version': 6, 'cidr': '234e:eeb8:3377:f073:3344:102f::/96', 'allocation_pools': [{'start': '234e:eeb8:3377:f073:3344:102f:0:2', 'end': '234e:eeb8:3377:f073:3344:102f:ffff:fffe'}], 'gateway_ip': '234e:eeb8:3377:f073:3344:102f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '234e:eeb8:3377:f073:3344:102f:0:2', 'tags': [], 'project_id': '3d6374a4bf294e41afe9397d171a5b71'}} 2025-12-04 13:46:17,831 - INFO - Created VN ctest-vn4-03246847 2025-12-04 13:46:17,886 - DEBUG - VN ctest-vn4-03246847 UUID is 59ff2da1-725b-499b-9252-68ab885fa28d 2025-12-04 13:46:18,156 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '59ff2da1-725b-499b-9252-68ab885fa28d', 'name': 'ctest-vn4-03246847', 'tenant_id': '3d6374a4bf294e41afe9397d171a5b71', 'project_id': '3d6374a4bf294e41afe9397d171a5b71', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b03124ee-aebd-4de6-8558-e5e41ac2d94c', '522c6c90-6260-45bb-b3ec-4439aea82869'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49619573', 'ctest-vn4-03246847'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49619573', 'ctest-policy1-59464402']], 'subnet_ipam': [{'subnet_cidr': '48.199.248.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '234e:eeb8:3377:f073:3344:102f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-04 13:46:18,330 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-04 13:46:18,647 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-04 13:46:18,699 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1 2025-12-04 13:46:18,715 - DEBUG - Requesting: http://10.0.0.141:8082/project/3d6374a4-bf29-4e41-afe9-397d171a5b71 2025-12-04 13:46:18,798 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/59ff2da1-725b-499b-9252-68ab885fa28d 2025-12-04 13:46:18,812 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/59ff2da1-725b-499b-9252-68ab885fa28d 2025-12-04 13:46:18,823 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b08185dd-ca35-4120-8a97-6b7747669aa2 2025-12-04 13:46:18,835 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b08185dd-ca35-4120-8a97-6b7747669aa2 2025-12-04 13:46:18,846 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/cb98c923-0676-404e-a393-ef9d50addc5f 2025-12-04 13:46:18,856 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 13:46:18,856 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/59ff2da1-725b-499b-9252-68ab885fa28d 2025-12-04 13:46:18,867 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b08185dd-ca35-4120-8a97-6b7747669aa2 2025-12-04 13:46:18,885 - INFO - Verified VN network id 11 for VN 59ff2da1-725b-499b-9252-68ab885fa28d 2025-12-04 13:46:18,886 - INFO - Verifications in API Server for VN ctest-vn4-03246847 passed 2025-12-04 13:46:18,886 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/59ff2da1-725b-499b-9252-68ab885fa28d 2025-12-04 13:46:18,900 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b08185dd-ca35-4120-8a97-6b7747669aa2 2025-12-04 13:46:18,910 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b08185dd-ca35-4120-8a97-6b7747669aa2 2025-12-04 13:46:18,920 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/cb98c923-0676-404e-a393-ef9d50addc5f 2025-12-04 13:46:18,937 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49619573:ctest-vn4-03246847', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-49619573', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6484952159868373403', 'uuid-lslong': '10543604763564417677'}, 'enable': 'true', 'created': '2025-12-04T13:46:17', 'last-modified': '2025-12-04T13:46:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.816883'} 2025-12-04 13:46:18,946 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 13:46:18,946 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-03246847 passed 2025-12-04 13:46:18,946 - DEBUG - ====Verifying policy data for ctest-vn4-03246847 in API_Server ====== 2025-12-04 13:46:18,946 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-04 13:46:18,954 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1 2025-12-04 13:46:18,970 - DEBUG - Requesting: http://10.0.0.141:8082/project/3d6374a4-bf29-4e41-afe9-397d171a5b71 2025-12-04 13:46:19,047 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/59ff2da1-725b-499b-9252-68ab885fa28d 2025-12-04 13:46:19,059 - DEBUG - ==>Verifying data for policy with id: f6bbe699-64cf-4c1c-9f44-8e18d1668f9a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-49619573', 'ctest-policy1-59464402'] 2025-12-04 13:46:19,059 - INFO - VN ctest-vn4-03246847 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-04 13:46:19,059 - DEBUG - Verifying the vn in opserver 2025-12-04 13:46:19,059 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49619573:ctest-vn4-03246847 virtual network link through opserver 10.0.0.141 2025-12-04 13:46:19,059 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-04 13:46:19,375 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-12-04 13:46:19,459 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49619573:ctest-vn4-03246847', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49619573:ctest-vn4-03246847?flat'} 2025-12-04 13:46:19,459 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-49619573:ctest-vn4-03246847 is found in opserver 2025-12-04 13:46:19,471 - DEBUG - Do not have enough data to verify VN in agent 2025-12-04 13:46:19,476 - DEBUG - VRF ids for VN ctest-vn4-03246847: {} 2025-12-04 13:46:19,477 - DEBUG - ====Verifying data for ctest-policy1-59464402 in API_Server ====== 2025-12-04 13:46:19,477 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-04 13:46:19,484 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1 2025-12-04 13:46:19,499 - DEBUG - Requesting: http://10.0.0.141:8082/project/3d6374a4-bf29-4e41-afe9-397d171a5b71 2025-12-04 13:46:19,572 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/f6bbe699-64cf-4c1c-9f44-8e18d1668f9a 2025-12-04 13:46:19,583 - INFO - Verified policy ctest-policy1-59464402 in API Server, Result: True 2025-12-04 13:46:19,583 - INFO - Done with setup and verification, moving onto test .. 2025-12-04 13:46:19,593 - INFO - Deleting VN ctest-vn4-03246847 2025-12-04 13:46:19,755 - DEBUG - Response for deleting network () 2025-12-04 13:46:19,755 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b08185dd-ca35-4120-8a97-6b7747669aa2 2025-12-04 13:46:19,762 - DEBUG - Response Code: 404 2025-12-04 13:46:19,762 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-12-04 13:46:19,769 - DEBUG - Requesting: http://10.0.0.141:8082/domain/03f3c345-65d3-4433-acc5-2dbc5c15c4f1 2025-12-04 13:46:19,824 - DEBUG - Requesting: http://10.0.0.141:8082/project/3d6374a4-bf29-4e41-afe9-397d171a5b71 2025-12-04 13:46:19,922 - INFO - Validated that VN ctest-vn4-03246847 is not found in API Server 2025-12-04 13:46:19,933 - DEBUG - VN ctest-vn4-03246847 is not present in Agent 10.0.0.141 2025-12-04 13:46:19,933 - INFO - Validated that VN ctest-vn4-03246847 is not in any agent 2025-12-04 13:46:19,951 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-03246847 info 2025-12-04 13:46:19,987 - INFO - Deleted policy ctest-policy1-59464402 2025-12-04 13:46:20,166 - DEBUG - policy ctest-policy1-59464402 is not found in API Server 2025-12-04 13:46:20,436 - DEBUG - No XMPP flaps were noticed during the test
2025-12-04 13:46:20,436 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-04 13:46:20,437 - INFO - -------------------------------------------------------------------------------- 2025-12-04 13:46:20,740 - DEBUG - No XMPP flaps were noticed during the test
2025-12-04 13:46:20,740 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-04 13:46:20,740 - INFO - -------------------------------------------------------------------------------- 2025-12-04 13:46:21,545 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-49619573, ID : 3d6374a4-bf29-4e41-afe9-397d171a5b71