2025-09-22 15:48:01,152 - INFO - Domain Default found not creating 2025-09-22 15:48:01,307 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48085839 not found, creating it 2025-09-22 15:48:01,756 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48085839, ID : 9f13936b-1a08-4625-9308-b25790343341 2025-09-22 15:48:03,218 - INFO - ================================================================================ 2025-09-22 15:48:03,218 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 15:48:03,474 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-09-22 15:48:03,474 - INFO - Initial checks done. Running the testcase now 2025-09-22 15:48:03,474 - INFO - 2025-09-22 15:48:03,474 - INFO - ================================================================================ 2025-09-22 15:48:03,474 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-22 15:48:03,474 - 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-22 15:48:03,767 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-09-22 15:48:03,767 - INFO - Initial checks done. Running the testcase now 2025-09-22 15:48:03,767 - INFO - 2025-09-22 15:48:04,125 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48085839:ctest-vn4-78220253, 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-48085839:ctest-vn4-78220253, 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-48085839:ctest-vn4-78220253, 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-48085839:ctest-vn4-78220253, 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-22 15:48:04,671 - DEBUG - Response for create_network : {'network': {'id': '0e06486f-448d-44f7-85d4-78992a750012', 'name': 'ctest-vn4-78220253', 'tenant_id': '9f13936b1a0846259308b25790343341', 'project_id': '9f13936b1a0846259308b25790343341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48085839', 'ctest-vn4-78220253'], 'port_security_enabled': True, 'description': ''}} 2025-09-22 15:48:04,882 - DEBUG - Response for create_subnet : {'subnet': {'id': '844ea78d-6710-48d8-b83e-71c3cf769078', 'name': '', 'tenant_id': '9f13936b1a0846259308b25790343341', 'network_id': '0e06486f-448d-44f7-85d4-78992a750012', 'ip_version': 4, 'cidr': '157.145.82.128/26', 'allocation_pools': [{'start': '157.145.82.130', 'end': '157.145.82.190'}], 'gateway_ip': '157.145.82.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.145.82.130', 'tags': [], 'project_id': '9f13936b1a0846259308b25790343341'}} 2025-09-22 15:48:05,102 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fbe3e99a-a32f-4031-9b98-9aea651fd91c', 'name': '', 'tenant_id': '9f13936b1a0846259308b25790343341', 'network_id': '0e06486f-448d-44f7-85d4-78992a750012', 'ip_version': 6, 'cidr': '23ed:b11f:3464:5aa5:47e6:f5ca::/96', 'allocation_pools': [{'start': '23ed:b11f:3464:5aa5:47e6:f5ca:0:2', 'end': '23ed:b11f:3464:5aa5:47e6:f5ca:ffff:fffe'}], 'gateway_ip': '23ed:b11f:3464:5aa5:47e6:f5ca:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23ed:b11f:3464:5aa5:47e6:f5ca:0:2', 'tags': [], 'project_id': '9f13936b1a0846259308b25790343341'}} 2025-09-22 15:48:05,131 - INFO - Created VN ctest-vn4-78220253 2025-09-22 15:48:05,185 - DEBUG - VN ctest-vn4-78220253 UUID is 0e06486f-448d-44f7-85d4-78992a750012 2025-09-22 15:48:05,564 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0e06486f-448d-44f7-85d4-78992a750012', 'name': 'ctest-vn4-78220253', 'tenant_id': '9f13936b1a0846259308b25790343341', 'project_id': '9f13936b1a0846259308b25790343341', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['844ea78d-6710-48d8-b83e-71c3cf769078', 'fbe3e99a-a32f-4031-9b98-9aea651fd91c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48085839', 'ctest-vn4-78220253'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48085839', 'ctest-policy1-74672964']], 'subnet_ipam': [{'subnet_cidr': '157.145.82.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23ed:b11f:3464:5aa5:47e6:f5ca::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-22 15:48:05,769 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-22 15:48:06,086 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-22 15:48:06,116 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5be2a09d-55a1-4e10-91f1-abe4458ff22c 2025-09-22 15:48:06,130 - DEBUG - Requesting: http://10.0.0.254:8082/project/9f13936b-1a08-4625-9308-b25790343341 2025-09-22 15:48:06,205 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0e06486f-448d-44f7-85d4-78992a750012 2025-09-22 15:48:06,217 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0e06486f-448d-44f7-85d4-78992a750012 2025-09-22 15:48:06,225 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0422455-ec28-4700-9271-b38b87a4dd61 2025-09-22 15:48:06,232 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0422455-ec28-4700-9271-b38b87a4dd61 2025-09-22 15:48:06,238 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a50e9774-a7da-441f-8058-8d03279c640f 2025-09-22 15:48:06,244 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 15:48:06,244 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0e06486f-448d-44f7-85d4-78992a750012 2025-09-22 15:48:06,253 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0422455-ec28-4700-9271-b38b87a4dd61 2025-09-22 15:48:06,266 - INFO - Verified VN network id 11 for VN 0e06486f-448d-44f7-85d4-78992a750012 2025-09-22 15:48:06,266 - INFO - Verifications in API Server for VN ctest-vn4-78220253 passed 2025-09-22 15:48:06,267 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0e06486f-448d-44f7-85d4-78992a750012 2025-09-22 15:48:06,275 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0422455-ec28-4700-9271-b38b87a4dd61 2025-09-22 15:48:06,281 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0422455-ec28-4700-9271-b38b87a4dd61 2025-09-22 15:48:06,288 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a50e9774-a7da-441f-8058-8d03279c640f 2025-09-22 15:48:06,299 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48085839:ctest-vn4-78220253', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48085839', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1010574809119933687', 'uuid-lslong': '9643465301344714770'}, 'enable': 'true', 'created': '2025-09-22T15:48:04', 'last-modified': '2025-09-22T15:48:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.798529'} 2025-09-22 15:48:06,306 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-22 15:48:06,306 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78220253 passed 2025-09-22 15:48:06,306 - DEBUG - ====Verifying policy data for ctest-vn4-78220253 in API_Server ====== 2025-09-22 15:48:06,306 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-22 15:48:06,311 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5be2a09d-55a1-4e10-91f1-abe4458ff22c 2025-09-22 15:48:06,321 - DEBUG - Requesting: http://10.0.0.254:8082/project/9f13936b-1a08-4625-9308-b25790343341 2025-09-22 15:48:06,390 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0e06486f-448d-44f7-85d4-78992a750012 2025-09-22 15:48:06,401 - DEBUG - ==>Verifying data for policy with id: 53f00336-99bb-4c9e-97d6-df09c3561782, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48085839', 'ctest-policy1-74672964'] 2025-09-22 15:48:06,401 - INFO - VN ctest-vn4-78220253 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-22 15:48:06,401 - DEBUG - Verifying the vn in opserver 2025-09-22 15:48:06,401 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48085839:ctest-vn4-78220253 virtual network link through opserver 10.0.0.254 2025-09-22 15:48:06,402 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-22 15:48:06,695 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-22 15:48:06,758 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48085839:ctest-vn4-78220253', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48085839:ctest-vn4-78220253?flat'} 2025-09-22 15:48:06,758 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48085839:ctest-vn4-78220253 is found in opserver 2025-09-22 15:48:06,768 - DEBUG - Do not have enough data to verify VN in agent 2025-09-22 15:48:06,773 - DEBUG - VRF ids for VN ctest-vn4-78220253: {} 2025-09-22 15:48:06,773 - DEBUG - ====Verifying data for ctest-policy1-74672964 in API_Server ====== 2025-09-22 15:48:06,773 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-22 15:48:06,779 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5be2a09d-55a1-4e10-91f1-abe4458ff22c 2025-09-22 15:48:06,788 - DEBUG - Requesting: http://10.0.0.254:8082/project/9f13936b-1a08-4625-9308-b25790343341 2025-09-22 15:48:06,858 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/53f00336-99bb-4c9e-97d6-df09c3561782 2025-09-22 15:48:06,867 - INFO - Verified policy ctest-policy1-74672964 in API Server, Result: True 2025-09-22 15:48:06,867 - INFO - Done with setup and verification, moving onto test .. 2025-09-22 15:48:06,875 - INFO - Deleting VN ctest-vn4-78220253 2025-09-22 15:48:06,999 - DEBUG - Response for deleting network () 2025-09-22 15:48:06,999 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d0422455-ec28-4700-9271-b38b87a4dd61 2025-09-22 15:48:07,005 - DEBUG - Response Code: 404 2025-09-22 15:48:07,005 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-22 15:48:07,013 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5be2a09d-55a1-4e10-91f1-abe4458ff22c 2025-09-22 15:48:07,067 - DEBUG - Requesting: http://10.0.0.254:8082/project/9f13936b-1a08-4625-9308-b25790343341 2025-09-22 15:48:07,144 - INFO - Validated that VN ctest-vn4-78220253 is not found in API Server 2025-09-22 15:48:07,158 - DEBUG - VN ctest-vn4-78220253 is not present in Agent 10.0.0.254 2025-09-22 15:48:07,158 - INFO - Validated that VN ctest-vn4-78220253 is not in any agent 2025-09-22 15:48:07,174 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78220253 info 2025-09-22 15:48:07,205 - INFO - Deleted policy ctest-policy1-74672964 2025-09-22 15:48:07,393 - DEBUG - policy ctest-policy1-74672964 is not found in API Server 2025-09-22 15:48:07,650 - DEBUG - No XMPP flaps were noticed during the test 2025-09-22 15:48:07,650 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-22 15:48:07,650 - INFO - -------------------------------------------------------------------------------- 2025-09-22 15:48:07,943 - DEBUG - No XMPP flaps were noticed during the test 2025-09-22 15:48:07,943 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-22 15:48:07,943 - INFO - -------------------------------------------------------------------------------- 2025-09-22 15:48:08,613 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48085839, ID : 9f13936b-1a08-4625-9308-b25790343341