2025-10-20 21:31:44,578 - INFO - Domain Default found not creating 2025-10-20 21:31:44,756 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98729509 not found, creating it 2025-10-20 21:31:45,283 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98729509, ID : cc8f46b0-460e-4fef-9150-d139c6869778 2025-10-20 21:31:46,818 - INFO - ================================================================================ 2025-10-20 21:31:46,819 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-20 21:31:48,180 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0', '10.20.0.17': '0'}, '10.0.0.240': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-10-20 21:31:48,180 - INFO - Initial checks done. Running the testcase now 2025-10-20 21:31:48,181 - INFO - 2025-10-20 21:31:48,181 - INFO - ================================================================================ 2025-10-20 21:31:48,181 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-20 21:31:48,181 - 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-20 21:31:49,539 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0', '10.20.0.17': '0'}, '10.0.0.240': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-10-20 21:31:49,539 - INFO - Initial checks done. Running the testcase now 2025-10-20 21:31:49,540 - INFO - 2025-10-20 21:31:49,916 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604, 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-98729509:ctest-vn4-09315604, 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-98729509:ctest-vn4-09315604, 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-98729509:ctest-vn4-09315604, 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-20 21:31:50,623 - DEBUG - Response for create_network : {'network': {'id': '2fbfab7b-e796-46a6-ab54-178d60bb6f40', 'name': 'ctest-vn4-09315604', 'tenant_id': 'cc8f46b0460e4fef9150d139c6869778', 'project_id': 'cc8f46b0460e4fef9150d139c6869778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98729509', 'ctest-vn4-09315604'], 'port_security_enabled': True, 'description': ''}} 2025-10-20 21:31:50,864 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7302b66-28bc-49d5-b1c3-b6e9651cc4a5', 'name': '', 'tenant_id': 'cc8f46b0460e4fef9150d139c6869778', 'network_id': '2fbfab7b-e796-46a6-ab54-178d60bb6f40', 'ip_version': 4, 'cidr': '192.89.119.192/26', 'allocation_pools': [{'start': '192.89.119.194', 'end': '192.89.119.254'}], 'gateway_ip': '192.89.119.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.89.119.194', 'tags': [], 'project_id': 'cc8f46b0460e4fef9150d139c6869778'}} 2025-10-20 21:31:51,101 - DEBUG - Response for create_subnet : {'subnet': {'id': '8cbd1303-38fb-411f-943b-5a7947b4d93c', 'name': '', 'tenant_id': 'cc8f46b0460e4fef9150d139c6869778', 'network_id': '2fbfab7b-e796-46a6-ab54-178d60bb6f40', 'ip_version': 6, 'cidr': '22a3:d2c5:c308:5f20:672b:650b::/96', 'allocation_pools': [{'start': '22a3:d2c5:c308:5f20:672b:650b:0:2', 'end': '22a3:d2c5:c308:5f20:672b:650b:ffff:fffe'}], 'gateway_ip': '22a3:d2c5:c308:5f20:672b:650b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22a3:d2c5:c308:5f20:672b:650b:0:2', 'tags': [], 'project_id': 'cc8f46b0460e4fef9150d139c6869778'}} 2025-10-20 21:31:51,136 - INFO - Created VN ctest-vn4-09315604 2025-10-20 21:31:51,146 - DEBUG - VN ctest-vn4-09315604 UUID is 2fbfab7b-e796-46a6-ab54-178d60bb6f40 2025-10-20 21:31:51,369 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2fbfab7b-e796-46a6-ab54-178d60bb6f40', 'name': 'ctest-vn4-09315604', 'tenant_id': 'cc8f46b0460e4fef9150d139c6869778', 'project_id': 'cc8f46b0460e4fef9150d139c6869778', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7302b66-28bc-49d5-b1c3-b6e9651cc4a5', '8cbd1303-38fb-411f-943b-5a7947b4d93c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98729509', 'ctest-vn4-09315604'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98729509', 'ctest-policy1-17998154']], 'subnet_ipam': [{'subnet_cidr': '192.89.119.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22a3:d2c5:c308:5f20:672b:650b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-20 21:31:51,476 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-20 21:31:51,781 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-20 21:31:51,812 - DEBUG - Requesting: http://10.0.0.141:8082/domain/58ca8d03-9ed9-45a7-9b24-3d541c833e01 2025-10-20 21:31:51,834 - DEBUG - Requesting: http://10.0.0.141:8082/project/cc8f46b0-460e-4fef-9150-d139c6869778 2025-10-20 21:31:51,923 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2fbfab7b-e796-46a6-ab54-178d60bb6f40 2025-10-20 21:31:51,939 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2fbfab7b-e796-46a6-ab54-178d60bb6f40 2025-10-20 21:31:51,949 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9274c78f-7b20-4cf5-aaf3-dde3d877f9fe 2025-10-20 21:31:51,959 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9274c78f-7b20-4cf5-aaf3-dde3d877f9fe 2025-10-20 21:31:51,967 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9cdf3272-e586-4a77-81c5-5ff09dd3c851 2025-10-20 21:31:51,975 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-20 21:31:51,975 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2fbfab7b-e796-46a6-ab54-178d60bb6f40 2025-10-20 21:31:51,983 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9274c78f-7b20-4cf5-aaf3-dde3d877f9fe 2025-10-20 21:31:51,996 - INFO - Verified VN network id 11 for VN 2fbfab7b-e796-46a6-ab54-178d60bb6f40 2025-10-20 21:31:51,996 - INFO - Verifications in API Server for VN ctest-vn4-09315604 passed 2025-10-20 21:31:51,997 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2fbfab7b-e796-46a6-ab54-178d60bb6f40 2025-10-20 21:31:52,005 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9274c78f-7b20-4cf5-aaf3-dde3d877f9fe 2025-10-20 21:31:52,014 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9274c78f-7b20-4cf5-aaf3-dde3d877f9fe 2025-10-20 21:31:52,021 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9cdf3272-e586-4a77-81c5-5ff09dd3c851 2025-10-20 21:31:52,033 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98729509', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3440657188989060774', 'uuid-lslong': '12345518374510096192'}, 'enable': 'true', 'created': '2025-10-20T21:31:50', 'last-modified': '2025-10-20T21:31:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.720522'} 2025-10-20 21:31:52,039 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-20 21:31:52,045 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98729509', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3440657188989060774', 'uuid-lslong': '12345518374510096192'}, 'enable': 'true', 'created': '2025-10-20T21:31:50', 'last-modified': '2025-10-20T21:31:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733534'} 2025-10-20 21:31:52,052 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-20 21:31:52,057 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98729509', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3440657188989060774', 'uuid-lslong': '12345518374510096192'}, 'enable': 'true', 'created': '2025-10-20T21:31:50', 'last-modified': '2025-10-20T21:31:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.743658'} 2025-10-20 21:31:52,064 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-10-20 21:31:52,064 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09315604 passed 2025-10-20 21:31:52,064 - DEBUG - ====Verifying policy data for ctest-vn4-09315604 in API_Server ====== 2025-10-20 21:31:52,064 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-20 21:31:52,071 - DEBUG - Requesting: http://10.0.0.141:8082/domain/58ca8d03-9ed9-45a7-9b24-3d541c833e01 2025-10-20 21:31:52,084 - DEBUG - Requesting: http://10.0.0.141:8082/project/cc8f46b0-460e-4fef-9150-d139c6869778 2025-10-20 21:31:52,180 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2fbfab7b-e796-46a6-ab54-178d60bb6f40 2025-10-20 21:31:52,192 - DEBUG - ==>Verifying data for policy with id: 9dc6bb3c-6b76-4e75-9dff-3056819483bb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98729509', 'ctest-policy1-17998154'] 2025-10-20 21:31:52,193 - INFO - VN ctest-vn4-09315604 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-20 21:31:52,193 - DEBUG - Verifying the vn in opserver 2025-10-20 21:31:52,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604 virtual network link through opserver 10.0.0.141 2025-10-20 21:31:52,193 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-20 21:31:52,503 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-20 21:31:52,570 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604?flat'} 2025-10-20 21:31:52,570 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604 virtual network link through opserver 10.0.0.27 2025-10-20 21:31:52,570 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-20 21:31:52,890 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-20 21:31:52,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604?flat'} 2025-10-20 21:31:52,955 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604 virtual network link through opserver 10.0.0.23 2025-10-20 21:31:52,955 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-10-20 21:31:53,275 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-10-20 21:31:53,336 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604?flat'} 2025-10-20 21:31:53,336 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98729509:ctest-vn4-09315604 is found in opserver 2025-10-20 21:31:53,359 - DEBUG - Do not have enough data to verify VN in agent 2025-10-20 21:31:53,375 - DEBUG - VRF ids for VN ctest-vn4-09315604: {} 2025-10-20 21:31:53,375 - DEBUG - ====Verifying data for ctest-policy1-17998154 in API_Server ====== 2025-10-20 21:31:53,376 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-20 21:31:53,382 - DEBUG - Requesting: http://10.0.0.141:8082/domain/58ca8d03-9ed9-45a7-9b24-3d541c833e01 2025-10-20 21:31:53,396 - DEBUG - Requesting: http://10.0.0.141:8082/project/cc8f46b0-460e-4fef-9150-d139c6869778 2025-10-20 21:31:53,480 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/9dc6bb3c-6b76-4e75-9dff-3056819483bb 2025-10-20 21:31:53,495 - INFO - Verified policy ctest-policy1-17998154 in API Server, Result: True 2025-10-20 21:31:53,495 - INFO - Done with setup and verification, moving onto test .. 2025-10-20 21:31:53,521 - INFO - Deleting VN ctest-vn4-09315604 2025-10-20 21:31:53,761 - DEBUG - Response for deleting network () 2025-10-20 21:31:53,761 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9274c78f-7b20-4cf5-aaf3-dde3d877f9fe 2025-10-20 21:31:53,767 - DEBUG - Response Code: 404 2025-10-20 21:31:53,767 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-20 21:31:53,774 - DEBUG - Requesting: http://10.0.0.141:8082/domain/58ca8d03-9ed9-45a7-9b24-3d541c833e01 2025-10-20 21:31:53,791 - DEBUG - Requesting: http://10.0.0.141:8082/project/cc8f46b0-460e-4fef-9150-d139c6869778 2025-10-20 21:31:53,903 - INFO - Validated that VN ctest-vn4-09315604 is not found in API Server 2025-10-20 21:31:53,918 - DEBUG - VN ctest-vn4-09315604 is not present in Agent 10.0.0.242 2025-10-20 21:31:53,930 - DEBUG - VN ctest-vn4-09315604 is not present in Agent 10.0.0.240 2025-10-20 21:31:53,930 - INFO - Validated that VN ctest-vn4-09315604 is not in any agent 2025-10-20 21:31:53,972 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09315604 info 2025-10-20 21:31:54,018 - INFO - Deleted policy ctest-policy1-17998154 2025-10-20 21:31:54,229 - DEBUG - policy ctest-policy1-17998154 is not found in API Server 2025-10-20 21:31:55,546 - DEBUG - No XMPP flaps were noticed during the test