2025-08-03 07:11:49,864 - INFO - Domain Default found not creating 2025-08-03 07:11:50,069 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00310270 not found, creating it 2025-08-03 07:11:50,839 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00310270, ID : 17193e3e-aa9f-49f5-ba12-326bdb0e497a 2025-08-03 07:11:52,351 - INFO - ================================================================================ 2025-08-03 07:11:52,352 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-03 07:11:52,612 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-03 07:11:52,612 - INFO - Initial checks done. Running the testcase now 2025-08-03 07:11:52,612 - INFO - 2025-08-03 07:11:52,612 - INFO - ================================================================================ 2025-08-03 07:11:52,612 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-03 07:11:52,612 - 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-03 07:11:52,902 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-03 07:11:52,902 - INFO - Initial checks done. Running the testcase now 2025-08-03 07:11:52,903 - INFO - 2025-08-03 07:11:53,255 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00310270:ctest-vn4-74144937, 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-00310270:ctest-vn4-74144937, 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-00310270:ctest-vn4-74144937, 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-00310270:ctest-vn4-74144937, 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-03 07:11:53,772 - DEBUG - Response for create_network : {'network': {'id': 'ed5fdbd3-593b-4b7e-9089-0e09f56a84d8', 'name': 'ctest-vn4-74144937', 'tenant_id': '17193e3eaa9f49f5ba12326bdb0e497a', 'project_id': '17193e3eaa9f49f5ba12326bdb0e497a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00310270', 'ctest-vn4-74144937'], 'port_security_enabled': True, 'description': ''}} 2025-08-03 07:11:53,981 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd25c7718-b0d1-45c6-9c15-10275b6c1451', 'name': '', 'tenant_id': '17193e3eaa9f49f5ba12326bdb0e497a', 'network_id': 'ed5fdbd3-593b-4b7e-9089-0e09f56a84d8', 'ip_version': 4, 'cidr': '133.52.112.128/26', 'allocation_pools': [{'start': '133.52.112.130', 'end': '133.52.112.190'}], 'gateway_ip': '133.52.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.52.112.130', 'tags': [], 'project_id': '17193e3eaa9f49f5ba12326bdb0e497a'}} 2025-08-03 07:11:54,207 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b7f6c7c-ddd4-4af9-bc55-4a6ce051383b', 'name': '', 'tenant_id': '17193e3eaa9f49f5ba12326bdb0e497a', 'network_id': 'ed5fdbd3-593b-4b7e-9089-0e09f56a84d8', 'ip_version': 6, 'cidr': '27d7:da6f:962:f265:60e4:63b8::/96', 'allocation_pools': [{'start': '27d7:da6f:962:f265:60e4:63b8:0:2', 'end': '27d7:da6f:962:f265:60e4:63b8:ffff:fffe'}], 'gateway_ip': '27d7:da6f:962:f265:60e4:63b8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27d7:da6f:962:f265:60e4:63b8:0:2', 'tags': [], 'project_id': '17193e3eaa9f49f5ba12326bdb0e497a'}} 2025-08-03 07:11:54,231 - INFO - Created VN ctest-vn4-74144937 2025-08-03 07:11:54,284 - DEBUG - VN ctest-vn4-74144937 UUID is ed5fdbd3-593b-4b7e-9089-0e09f56a84d8 2025-08-03 07:11:54,501 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed5fdbd3-593b-4b7e-9089-0e09f56a84d8', 'name': 'ctest-vn4-74144937', 'tenant_id': '17193e3eaa9f49f5ba12326bdb0e497a', 'project_id': '17193e3eaa9f49f5ba12326bdb0e497a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d25c7718-b0d1-45c6-9c15-10275b6c1451', '3b7f6c7c-ddd4-4af9-bc55-4a6ce051383b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00310270', 'ctest-vn4-74144937'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00310270', 'ctest-policy1-29798366']], 'subnet_ipam': [{'subnet_cidr': '133.52.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27d7:da6f:962:f265:60e4:63b8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-03 07:11:54,660 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-03 07:11:54,952 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-03 07:11:54,983 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6874d71b-f512-4e18-8b72-b150f0987cc7 2025-08-03 07:11:54,998 - DEBUG - Requesting: http://10.0.0.38:8082/project/17193e3e-aa9f-49f5-ba12-326bdb0e497a 2025-08-03 07:11:55,084 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed5fdbd3-593b-4b7e-9089-0e09f56a84d8 2025-08-03 07:11:55,098 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed5fdbd3-593b-4b7e-9089-0e09f56a84d8 2025-08-03 07:11:55,109 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe71b976-b12f-4630-8983-e605a2828c18 2025-08-03 07:11:55,118 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe71b976-b12f-4630-8983-e605a2828c18 2025-08-03 07:11:55,127 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a105833e-a866-47ec-83e3-8aedfab94e40 2025-08-03 07:11:55,135 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-03 07:11:55,135 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed5fdbd3-593b-4b7e-9089-0e09f56a84d8 2025-08-03 07:11:55,146 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe71b976-b12f-4630-8983-e605a2828c18 2025-08-03 07:11:55,163 - INFO - Verified VN network id 10 for VN ed5fdbd3-593b-4b7e-9089-0e09f56a84d8 2025-08-03 07:11:55,163 - INFO - Verifications in API Server for VN ctest-vn4-74144937 passed 2025-08-03 07:11:55,163 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed5fdbd3-593b-4b7e-9089-0e09f56a84d8 2025-08-03 07:11:55,176 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe71b976-b12f-4630-8983-e605a2828c18 2025-08-03 07:11:55,184 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe71b976-b12f-4630-8983-e605a2828c18 2025-08-03 07:11:55,192 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a105833e-a866-47ec-83e3-8aedfab94e40 2025-08-03 07:11:55,206 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00310270:ctest-vn4-74144937', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00310270', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17104631610558073726', 'uuid-lslong': '10414871049205875928'}, 'enable': 'true', 'created': '2025-08-03T07:11:53', 'last-modified': '2025-08-03T07:11:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.736834'} 2025-08-03 07:11:55,214 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-03 07:11:55,214 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74144937 passed 2025-08-03 07:11:55,215 - DEBUG - ====Verifying policy data for ctest-vn4-74144937 in API_Server ====== 2025-08-03 07:11:55,215 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-03 07:11:55,221 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6874d71b-f512-4e18-8b72-b150f0987cc7 2025-08-03 07:11:55,236 - DEBUG - Requesting: http://10.0.0.38:8082/project/17193e3e-aa9f-49f5-ba12-326bdb0e497a 2025-08-03 07:11:55,313 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed5fdbd3-593b-4b7e-9089-0e09f56a84d8 2025-08-03 07:11:55,325 - DEBUG - ==>Verifying data for policy with id: 053f5254-3467-4d1b-912c-2ddc97af2c24, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00310270', 'ctest-policy1-29798366'] 2025-08-03 07:11:55,325 - INFO - VN ctest-vn4-74144937 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-03 07:11:55,325 - DEBUG - Verifying the vn in opserver 2025-08-03 07:11:55,325 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00310270:ctest-vn4-74144937 virtual network link through opserver 10.0.0.38 2025-08-03 07:11:55,326 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-03 07:11:55,619 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-03 07:11:55,963 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00310270:ctest-vn4-74144937', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00310270:ctest-vn4-74144937?flat'} 2025-08-03 07:11:55,963 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00310270:ctest-vn4-74144937 is found in opserver 2025-08-03 07:11:55,976 - DEBUG - Do not have enough data to verify VN in agent 2025-08-03 07:11:55,985 - DEBUG - VRF ids for VN ctest-vn4-74144937: {} 2025-08-03 07:11:55,985 - DEBUG - ====Verifying data for ctest-policy1-29798366 in API_Server ====== 2025-08-03 07:11:55,985 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-03 07:11:55,992 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6874d71b-f512-4e18-8b72-b150f0987cc7 2025-08-03 07:11:56,006 - DEBUG - Requesting: http://10.0.0.38:8082/project/17193e3e-aa9f-49f5-ba12-326bdb0e497a 2025-08-03 07:11:56,108 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/053f5254-3467-4d1b-912c-2ddc97af2c24 2025-08-03 07:11:56,123 - INFO - Verified policy ctest-policy1-29798366 in API Server, Result: True 2025-08-03 07:11:56,124 - INFO - Done with setup and verification, moving onto test .. 2025-08-03 07:11:56,138 - INFO - Deleting VN ctest-vn4-74144937 2025-08-03 07:11:56,323 - DEBUG - Response for deleting network () 2025-08-03 07:11:56,323 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fe71b976-b12f-4630-8983-e605a2828c18 2025-08-03 07:11:56,333 - DEBUG - Response Code: 404 2025-08-03 07:11:56,334 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-03 07:11:56,340 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6874d71b-f512-4e18-8b72-b150f0987cc7 2025-08-03 07:11:56,401 - DEBUG - Requesting: http://10.0.0.38:8082/project/17193e3e-aa9f-49f5-ba12-326bdb0e497a 2025-08-03 07:11:56,479 - INFO - Validated that VN ctest-vn4-74144937 is not found in API Server 2025-08-03 07:11:56,491 - DEBUG - VN ctest-vn4-74144937 is not present in Agent 10.0.0.38 2025-08-03 07:11:56,491 - INFO - Validated that VN ctest-vn4-74144937 is not in any agent 2025-08-03 07:11:56,508 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74144937 info 2025-08-03 07:11:56,541 - INFO - Deleted policy ctest-policy1-29798366 2025-08-03 07:11:56,711 - DEBUG - policy ctest-policy1-29798366 is not found in API Server 2025-08-03 07:11:56,974 - DEBUG - No XMPP flaps were noticed during the test
2025-08-03 07:11:56,974 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-03 07:11:56,974 - INFO - -------------------------------------------------------------------------------- 2025-08-03 07:11:57,261 - DEBUG - No XMPP flaps were noticed during the test
2025-08-03 07:11:57,261 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-03 07:11:57,262 - INFO - -------------------------------------------------------------------------------- 2025-08-03 07:11:57,946 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-00310270, ID : 17193e3e-aa9f-49f5-ba12-326bdb0e497a