2025-10-05 07:16:34,061 - INFO - Domain Default found not creating 2025-10-05 07:16:34,187 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-72877410 not found, creating it 2025-10-05 07:16:34,617 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-72877410, ID : 30e6165f-03fa-4a69-8990-27b628e2020a 2025-10-05 07:16:35,927 - INFO - ================================================================================ 2025-10-05 07:16:35,927 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-05 07:16:36,180 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-05 07:16:36,180 - INFO - Initial checks done. Running the testcase now 2025-10-05 07:16:36,180 - INFO - 2025-10-05 07:16:36,180 - INFO - ================================================================================ 2025-10-05 07:16:36,180 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-05 07:16:36,180 - 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 07:16:36,471 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-05 07:16:36,471 - INFO - Initial checks done. Running the testcase now 2025-10-05 07:16:36,471 - INFO - 2025-10-05 07:16:36,808 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72877410:ctest-vn4-75238536, 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-72877410:ctest-vn4-75238536, 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-72877410:ctest-vn4-75238536, 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-72877410:ctest-vn4-75238536, 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 07:16:37,290 - DEBUG - Response for create_network : {'network': {'id': '2b0c6126-95d4-432e-a1e5-c0d9e870f53e', 'name': 'ctest-vn4-75238536', 'tenant_id': '30e6165f03fa4a69899027b628e2020a', 'project_id': '30e6165f03fa4a69899027b628e2020a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72877410', 'ctest-vn4-75238536'], 'port_security_enabled': True, 'description': ''}} 2025-10-05 07:16:37,438 - DEBUG - Response for create_subnet : {'subnet': {'id': '218a1dcf-ceda-43b6-8e13-543d49f07f67', 'name': '', 'tenant_id': '30e6165f03fa4a69899027b628e2020a', 'network_id': '2b0c6126-95d4-432e-a1e5-c0d9e870f53e', 'ip_version': 4, 'cidr': '222.32.142.192/26', 'allocation_pools': [{'start': '222.32.142.194', 'end': '222.32.142.254'}], 'gateway_ip': '222.32.142.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.32.142.194', 'tags': [], 'project_id': '30e6165f03fa4a69899027b628e2020a'}} 2025-10-05 07:16:37,634 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b327bb6-1707-416a-be33-9a8fafa67793', 'name': '', 'tenant_id': '30e6165f03fa4a69899027b628e2020a', 'network_id': '2b0c6126-95d4-432e-a1e5-c0d9e870f53e', 'ip_version': 6, 'cidr': '3f54:b11e:7950:230f:63b5:2178::/96', 'allocation_pools': [{'start': '3f54:b11e:7950:230f:63b5:2178:0:2', 'end': '3f54:b11e:7950:230f:63b5:2178:ffff:fffe'}], 'gateway_ip': '3f54:b11e:7950:230f:63b5:2178:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f54:b11e:7950:230f:63b5:2178:0:2', 'tags': [], 'project_id': '30e6165f03fa4a69899027b628e2020a'}} 2025-10-05 07:16:37,652 - INFO - Created VN ctest-vn4-75238536 2025-10-05 07:16:37,707 - DEBUG - VN ctest-vn4-75238536 UUID is 2b0c6126-95d4-432e-a1e5-c0d9e870f53e 2025-10-05 07:16:37,876 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b0c6126-95d4-432e-a1e5-c0d9e870f53e', 'name': 'ctest-vn4-75238536', 'tenant_id': '30e6165f03fa4a69899027b628e2020a', 'project_id': '30e6165f03fa4a69899027b628e2020a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['218a1dcf-ceda-43b6-8e13-543d49f07f67', '1b327bb6-1707-416a-be33-9a8fafa67793'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72877410', 'ctest-vn4-75238536'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72877410', 'ctest-policy1-68445973']], 'subnet_ipam': [{'subnet_cidr': '222.32.142.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f54:b11e:7950:230f:63b5:2178::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-05 07:16:38,039 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-05 07:16:38,327 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-05 07:16:38,352 - DEBUG - Requesting: http://10.0.0.38:8082/domain/94db502b-61fd-4fae-ae45-e24af58cd4f7 2025-10-05 07:16:38,362 - DEBUG - Requesting: http://10.0.0.38:8082/project/30e6165f-03fa-4a69-8990-27b628e2020a 2025-10-05 07:16:38,433 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b0c6126-95d4-432e-a1e5-c0d9e870f53e 2025-10-05 07:16:38,445 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b0c6126-95d4-432e-a1e5-c0d9e870f53e 2025-10-05 07:16:38,453 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5af3c9c2-efc6-423d-b078-9d0ec6db5091 2025-10-05 07:16:38,458 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5af3c9c2-efc6-423d-b078-9d0ec6db5091 2025-10-05 07:16:38,463 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c64ee900-fdba-453e-af7e-54d236d2a919 2025-10-05 07:16:38,467 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-05 07:16:38,467 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b0c6126-95d4-432e-a1e5-c0d9e870f53e 2025-10-05 07:16:38,474 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5af3c9c2-efc6-423d-b078-9d0ec6db5091 2025-10-05 07:16:38,484 - INFO - Verified VN network id 12 for VN 2b0c6126-95d4-432e-a1e5-c0d9e870f53e 2025-10-05 07:16:38,484 - INFO - Verifications in API Server for VN ctest-vn4-75238536 passed 2025-10-05 07:16:38,484 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b0c6126-95d4-432e-a1e5-c0d9e870f53e 2025-10-05 07:16:38,491 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5af3c9c2-efc6-423d-b078-9d0ec6db5091 2025-10-05 07:16:38,496 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5af3c9c2-efc6-423d-b078-9d0ec6db5091 2025-10-05 07:16:38,501 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c64ee900-fdba-453e-af7e-54d236d2a919 2025-10-05 07:16:38,510 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72877410:ctest-vn4-75238536', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72877410', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3101961061701796654', 'uuid-lslong': '11665942451913291070'}, 'enable': 'true', 'created': '2025-10-05T07:16:37', 'last-modified': '2025-10-05T07:16:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.652410'} 2025-10-05 07:16:38,514 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-05 07:16:38,514 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75238536 passed 2025-10-05 07:16:38,515 - DEBUG - ====Verifying policy data for ctest-vn4-75238536 in API_Server ====== 2025-10-05 07:16:38,515 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-05 07:16:38,518 - DEBUG - Requesting: http://10.0.0.38:8082/domain/94db502b-61fd-4fae-ae45-e24af58cd4f7 2025-10-05 07:16:38,526 - DEBUG - Requesting: http://10.0.0.38:8082/project/30e6165f-03fa-4a69-8990-27b628e2020a 2025-10-05 07:16:38,596 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b0c6126-95d4-432e-a1e5-c0d9e870f53e 2025-10-05 07:16:38,605 - DEBUG - ==>Verifying data for policy with id: 5e1abae9-2a5e-4894-ad14-4ceec0fd87dd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72877410', 'ctest-policy1-68445973'] 2025-10-05 07:16:38,605 - INFO - VN ctest-vn4-75238536 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-05 07:16:38,605 - DEBUG - Verifying the vn in opserver 2025-10-05 07:16:38,605 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72877410:ctest-vn4-75238536 virtual network link through opserver 10.0.0.38 2025-10-05 07:16:38,605 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-05 07:16:38,893 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-05 07:16:38,944 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72877410:ctest-vn4-75238536', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72877410:ctest-vn4-75238536?flat'} 2025-10-05 07:16:38,944 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72877410:ctest-vn4-75238536 is found in opserver 2025-10-05 07:16:38,952 - DEBUG - Do not have enough data to verify VN in agent 2025-10-05 07:16:38,956 - DEBUG - VRF ids for VN ctest-vn4-75238536: {} 2025-10-05 07:16:38,956 - DEBUG - ====Verifying data for ctest-policy1-68445973 in API_Server ====== 2025-10-05 07:16:38,957 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-05 07:16:38,961 - DEBUG - Requesting: http://10.0.0.38:8082/domain/94db502b-61fd-4fae-ae45-e24af58cd4f7 2025-10-05 07:16:38,971 - DEBUG - Requesting: http://10.0.0.38:8082/project/30e6165f-03fa-4a69-8990-27b628e2020a 2025-10-05 07:16:39,037 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/5e1abae9-2a5e-4894-ad14-4ceec0fd87dd 2025-10-05 07:16:39,046 - INFO - Verified policy ctest-policy1-68445973 in API Server, Result: True 2025-10-05 07:16:39,046 - INFO - Done with setup and verification, moving onto test .. 2025-10-05 07:16:39,052 - INFO - Deleting VN ctest-vn4-75238536 2025-10-05 07:16:39,145 - DEBUG - Response for deleting network () 2025-10-05 07:16:39,146 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5af3c9c2-efc6-423d-b078-9d0ec6db5091 2025-10-05 07:16:39,149 - DEBUG - Response Code: 404 2025-10-05 07:16:39,150 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-05 07:16:39,154 - DEBUG - Requesting: http://10.0.0.38:8082/domain/94db502b-61fd-4fae-ae45-e24af58cd4f7 2025-10-05 07:16:39,203 - DEBUG - Requesting: http://10.0.0.38:8082/project/30e6165f-03fa-4a69-8990-27b628e2020a 2025-10-05 07:16:39,272 - INFO - Validated that VN ctest-vn4-75238536 is not found in API Server 2025-10-05 07:16:39,280 - DEBUG - VN ctest-vn4-75238536 is not present in Agent 10.0.0.38 2025-10-05 07:16:39,280 - INFO - Validated that VN ctest-vn4-75238536 is not in any agent 2025-10-05 07:16:39,291 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75238536 info 2025-10-05 07:16:39,309 - INFO - Deleted policy ctest-policy1-68445973 2025-10-05 07:16:39,467 - DEBUG - policy ctest-policy1-68445973 is not found in API Server 2025-10-05 07:16:39,719 - DEBUG - No XMPP flaps were noticed during the test
2025-10-05 07:16:39,719 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-10-05 07:16:39,719 - INFO - -------------------------------------------------------------------------------- 2025-10-05 07:16:40,002 - DEBUG - No XMPP flaps were noticed during the test
2025-10-05 07:16:40,002 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-05 07:16:40,002 - INFO - -------------------------------------------------------------------------------- 2025-10-05 07:16:40,640 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-72877410, ID : 30e6165f-03fa-4a69-8990-27b628e2020a