2025-08-08 07:26:15,411 - INFO - Domain Default found not creating 2025-08-08 07:26:15,623 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88303905 not found, creating it 2025-08-08 07:26:16,172 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88303905, ID : dcfd389e-a8a3-4600-bf58-97b15b712dab 2025-08-08 07:26:17,866 - INFO - ================================================================================ 2025-08-08 07:26:17,866 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-08 07:26:19,170 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.27': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2025-08-08 07:26:19,170 - INFO - Initial checks done. Running the testcase now 2025-08-08 07:26:19,170 - INFO - 2025-08-08 07:26:19,170 - INFO - ================================================================================ 2025-08-08 07:26:19,171 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-08 07:26:19,171 - 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-08-08 07:26:20,455 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.27': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2025-08-08 07:26:20,455 - INFO - Initial checks done. Running the testcase now 2025-08-08 07:26:20,456 - INFO - 2025-08-08 07:26:20,860 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675, 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-88303905:ctest-vn4-66278675, 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-88303905:ctest-vn4-66278675, 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-88303905:ctest-vn4-66278675, 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-08-08 07:26:21,587 - DEBUG - Response for create_network : {'network': {'id': '30559a56-2d4e-4262-90b8-4333d6f348de', 'name': 'ctest-vn4-66278675', 'tenant_id': 'dcfd389ea8a34600bf5897b15b712dab', 'project_id': 'dcfd389ea8a34600bf5897b15b712dab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88303905', 'ctest-vn4-66278675'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 07:26:21,941 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e70d6b3d-6b42-449a-a52c-9e9549bf653b', 'name': '', 'tenant_id': 'dcfd389ea8a34600bf5897b15b712dab', 'network_id': '30559a56-2d4e-4262-90b8-4333d6f348de', 'ip_version': 4, 'cidr': '81.64.145.0/26', 'allocation_pools': [{'start': '81.64.145.2', 'end': '81.64.145.62'}], 'gateway_ip': '81.64.145.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.64.145.2', 'tags': [], 'project_id': 'dcfd389ea8a34600bf5897b15b712dab'}} 2025-08-08 07:26:22,252 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da9ab120-c448-4cc7-a4f8-f4bf39248c3d', 'name': '', 'tenant_id': 'dcfd389ea8a34600bf5897b15b712dab', 'network_id': '30559a56-2d4e-4262-90b8-4333d6f348de', 'ip_version': 6, 'cidr': '223e:b53a:c172:dc2e:24ce:e3c4::/96', 'allocation_pools': [{'start': '223e:b53a:c172:dc2e:24ce:e3c4:0:2', 'end': '223e:b53a:c172:dc2e:24ce:e3c4:ffff:fffe'}], 'gateway_ip': '223e:b53a:c172:dc2e:24ce:e3c4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223e:b53a:c172:dc2e:24ce:e3c4:0:2', 'tags': [], 'project_id': 'dcfd389ea8a34600bf5897b15b712dab'}} 2025-08-08 07:26:22,284 - INFO - Created VN ctest-vn4-66278675 2025-08-08 07:26:22,300 - DEBUG - VN ctest-vn4-66278675 UUID is 30559a56-2d4e-4262-90b8-4333d6f348de 2025-08-08 07:26:22,551 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30559a56-2d4e-4262-90b8-4333d6f348de', 'name': 'ctest-vn4-66278675', 'tenant_id': 'dcfd389ea8a34600bf5897b15b712dab', 'project_id': 'dcfd389ea8a34600bf5897b15b712dab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e70d6b3d-6b42-449a-a52c-9e9549bf653b', 'da9ab120-c448-4cc7-a4f8-f4bf39248c3d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88303905', 'ctest-vn4-66278675'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88303905', 'ctest-policy1-53105505']], 'subnet_ipam': [{'subnet_cidr': '81.64.145.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '223e:b53a:c172:dc2e:24ce:e3c4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-08 07:26:22,672 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-08 07:26:23,080 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-08 07:26:23,115 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0a1f62a0-4b7c-4f3b-81ab-d2813942820b 2025-08-08 07:26:23,134 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcfd389e-a8a3-4600-bf58-97b15b712dab 2025-08-08 07:26:23,246 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30559a56-2d4e-4262-90b8-4333d6f348de 2025-08-08 07:26:23,274 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30559a56-2d4e-4262-90b8-4333d6f348de 2025-08-08 07:26:23,288 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ab7cfe48-0281-476b-b2a2-8778294f7ee8 2025-08-08 07:26:23,298 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ab7cfe48-0281-476b-b2a2-8778294f7ee8 2025-08-08 07:26:23,307 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b0cf59c4-c7ae-45f2-8416-83aa83254877 2025-08-08 07:26:23,316 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 07:26:23,316 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30559a56-2d4e-4262-90b8-4333d6f348de 2025-08-08 07:26:23,328 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ab7cfe48-0281-476b-b2a2-8778294f7ee8 2025-08-08 07:26:23,348 - INFO - Verified VN network id 15 for VN 30559a56-2d4e-4262-90b8-4333d6f348de 2025-08-08 07:26:23,348 - INFO - Verifications in API Server for VN ctest-vn4-66278675 passed 2025-08-08 07:26:23,348 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30559a56-2d4e-4262-90b8-4333d6f348de 2025-08-08 07:26:23,363 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ab7cfe48-0281-476b-b2a2-8778294f7ee8 2025-08-08 07:26:23,372 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ab7cfe48-0281-476b-b2a2-8778294f7ee8 2025-08-08 07:26:23,381 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b0cf59c4-c7ae-45f2-8416-83aa83254877 2025-08-08 07:26:23,399 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88303905', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3482859581758915170', 'uuid-lslong': '10428158827105044702'}, 'enable': 'true', 'created': '2025-08-08T07:26:21', 'last-modified': '2025-08-08T07:26:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904397'} 2025-08-08 07:26:23,406 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 07:26:23,413 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88303905', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3482859581758915170', 'uuid-lslong': '10428158827105044702'}, 'enable': 'true', 'created': '2025-08-08T07:26:21', 'last-modified': '2025-08-08T07:26:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920673'} 2025-08-08 07:26:23,422 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 07:26:23,430 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88303905', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3482859581758915170', 'uuid-lslong': '10428158827105044702'}, 'enable': 'true', 'created': '2025-08-08T07:26:21', 'last-modified': '2025-08-08T07:26:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935786'} 2025-08-08 07:26:23,437 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 07:26:23,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66278675 passed 2025-08-08 07:26:23,437 - DEBUG - ====Verifying policy data for ctest-vn4-66278675 in API_Server ====== 2025-08-08 07:26:23,437 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-08 07:26:23,445 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0a1f62a0-4b7c-4f3b-81ab-d2813942820b 2025-08-08 07:26:23,460 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcfd389e-a8a3-4600-bf58-97b15b712dab 2025-08-08 07:26:23,573 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/30559a56-2d4e-4262-90b8-4333d6f348de 2025-08-08 07:26:23,589 - DEBUG - ==>Verifying data for policy with id: 17cb5112-05c0-4e2e-b443-84f1cd5d5256, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88303905', 'ctest-policy1-53105505'] 2025-08-08 07:26:23,589 - INFO - VN ctest-vn4-66278675 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-08 07:26:23,589 - DEBUG - Verifying the vn in opserver 2025-08-08 07:26:23,589 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675 virtual network link through opserver 10.0.0.50 2025-08-08 07:26:23,590 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-08 07:26:23,898 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-08 07:26:23,968 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675?flat'} 2025-08-08 07:26:23,968 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675 virtual network link through opserver 10.0.0.254 2025-08-08 07:26:23,968 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-08 07:26:24,275 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-08 07:26:24,351 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675?flat'} 2025-08-08 07:26:24,352 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675 virtual network link through opserver 10.0.0.65 2025-08-08 07:26:24,352 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-08 07:26:24,674 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-08 07:26:24,747 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675?flat'} 2025-08-08 07:26:24,747 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88303905:ctest-vn4-66278675 is found in opserver 2025-08-08 07:26:24,790 - DEBUG - Do not have enough data to verify VN in agent 2025-08-08 07:26:24,807 - DEBUG - VRF ids for VN ctest-vn4-66278675: {} 2025-08-08 07:26:24,807 - DEBUG - ====Verifying data for ctest-policy1-53105505 in API_Server ====== 2025-08-08 07:26:24,807 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-08 07:26:24,816 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0a1f62a0-4b7c-4f3b-81ab-d2813942820b 2025-08-08 07:26:24,831 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcfd389e-a8a3-4600-bf58-97b15b712dab 2025-08-08 07:26:24,939 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/17cb5112-05c0-4e2e-b443-84f1cd5d5256 2025-08-08 07:26:24,961 - INFO - Verified policy ctest-policy1-53105505 in API Server, Result: True 2025-08-08 07:26:24,961 - INFO - Done with setup and verification, moving onto test .. 2025-08-08 07:26:24,977 - INFO - Deleting VN ctest-vn4-66278675 2025-08-08 07:26:25,280 - DEBUG - Response for deleting network () 2025-08-08 07:26:25,280 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ab7cfe48-0281-476b-b2a2-8778294f7ee8 2025-08-08 07:26:25,288 - DEBUG - Response Code: 404 2025-08-08 07:26:25,288 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-08 07:26:25,298 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0a1f62a0-4b7c-4f3b-81ab-d2813942820b 2025-08-08 07:26:25,355 - DEBUG - Requesting: http://10.0.0.50:8082/project/dcfd389e-a8a3-4600-bf58-97b15b712dab 2025-08-08 07:26:25,477 - INFO - Validated that VN ctest-vn4-66278675 is not found in API Server 2025-08-08 07:26:25,492 - DEBUG - VN ctest-vn4-66278675 is not present in Agent 10.0.0.41 2025-08-08 07:26:25,506 - DEBUG - VN ctest-vn4-66278675 is not present in Agent 10.0.0.27 2025-08-08 07:26:25,506 - INFO - Validated that VN ctest-vn4-66278675 is not in any agent 2025-08-08 07:26:25,557 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66278675 info 2025-08-08 07:26:25,610 - INFO - Deleted policy ctest-policy1-53105505 2025-08-08 07:26:25,812 - DEBUG - policy ctest-policy1-53105505 is not found in API Server 2025-08-08 07:26:27,099 - DEBUG - No XMPP flaps were noticed during the test