2025-11-18 01:11:34,879 - INFO - Domain Default found not creating 2025-11-18 01:11:35,073 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05030862 not found, creating it 2025-11-18 01:11:35,589 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05030862, ID : b6743825-0cd8-4f43-bae3-4c888a29751d 2025-11-18 01:11:37,179 - INFO - ================================================================================ 2025-11-18 01:11:37,179 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-18 01:11:37,442 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-11-18 01:11:37,442 - INFO - Initial checks done. Running the testcase now 2025-11-18 01:11:37,443 - INFO - 2025-11-18 01:11:37,443 - INFO - ================================================================================ 2025-11-18 01:11:37,443 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-18 01:11:37,443 - 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-11-18 01:11:37,756 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-11-18 01:11:37,756 - INFO - Initial checks done. Running the testcase now 2025-11-18 01:11:37,756 - INFO - 2025-11-18 01:11:38,143 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05030862:ctest-vn4-91666319, 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-05030862:ctest-vn4-91666319, 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-05030862:ctest-vn4-91666319, 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-05030862:ctest-vn4-91666319, 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-11-18 01:11:38,703 - DEBUG - Response for create_network : {'network': {'id': 'ba227700-0238-4e46-ad86-b8125d742170', 'name': 'ctest-vn4-91666319', 'tenant_id': 'b67438250cd84f43bae34c888a29751d', 'project_id': 'b67438250cd84f43bae34c888a29751d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05030862', 'ctest-vn4-91666319'], 'port_security_enabled': True, 'description': ''}} 2025-11-18 01:11:38,889 - DEBUG - Response for create_subnet : {'subnet': {'id': '29a66693-d4e5-4386-8243-8615285b5648', 'name': '', 'tenant_id': 'b67438250cd84f43bae34c888a29751d', 'network_id': 'ba227700-0238-4e46-ad86-b8125d742170', 'ip_version': 4, 'cidr': '187.194.146.128/26', 'allocation_pools': [{'start': '187.194.146.130', 'end': '187.194.146.190'}], 'gateway_ip': '187.194.146.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.194.146.130', 'tags': [], 'project_id': 'b67438250cd84f43bae34c888a29751d'}} 2025-11-18 01:11:39,044 - DEBUG - Response for create_subnet : {'subnet': {'id': '10899748-6f71-4f90-aba8-50091db6b43e', 'name': '', 'tenant_id': 'b67438250cd84f43bae34c888a29751d', 'network_id': 'ba227700-0238-4e46-ad86-b8125d742170', 'ip_version': 6, 'cidr': '21f2:3de0:a15e:64ab:36e1:66ec::/96', 'allocation_pools': [{'start': '21f2:3de0:a15e:64ab:36e1:66ec:0:2', 'end': '21f2:3de0:a15e:64ab:36e1:66ec:ffff:fffe'}], 'gateway_ip': '21f2:3de0:a15e:64ab:36e1:66ec:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21f2:3de0:a15e:64ab:36e1:66ec:0:2', 'tags': [], 'project_id': 'b67438250cd84f43bae34c888a29751d'}} 2025-11-18 01:11:39,072 - INFO - Created VN ctest-vn4-91666319 2025-11-18 01:11:39,130 - DEBUG - VN ctest-vn4-91666319 UUID is ba227700-0238-4e46-ad86-b8125d742170 2025-11-18 01:11:39,382 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba227700-0238-4e46-ad86-b8125d742170', 'name': 'ctest-vn4-91666319', 'tenant_id': 'b67438250cd84f43bae34c888a29751d', 'project_id': 'b67438250cd84f43bae34c888a29751d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['29a66693-d4e5-4386-8243-8615285b5648', '10899748-6f71-4f90-aba8-50091db6b43e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05030862', 'ctest-vn4-91666319'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05030862', 'ctest-policy1-64516723']], 'subnet_ipam': [{'subnet_cidr': '187.194.146.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21f2:3de0:a15e:64ab:36e1:66ec::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-18 01:11:39,562 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-18 01:11:39,870 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-18 01:11:39,912 - DEBUG - Requesting: http://10.0.0.242:8082/domain/678c227f-ddb5-4488-9f90-b45c1e3b9c96 2025-11-18 01:11:39,924 - DEBUG - Requesting: http://10.0.0.242:8082/project/b6743825-0cd8-4f43-bae3-4c888a29751d 2025-11-18 01:11:39,999 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ba227700-0238-4e46-ad86-b8125d742170 2025-11-18 01:11:40,012 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ba227700-0238-4e46-ad86-b8125d742170 2025-11-18 01:11:40,024 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/af6238e3-e9c9-4c6e-9370-56383a0d0a66 2025-11-18 01:11:40,032 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/af6238e3-e9c9-4c6e-9370-56383a0d0a66 2025-11-18 01:11:40,041 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/0d3ac0de-e44a-4fc9-b70e-97e8d8b2b704 2025-11-18 01:11:40,052 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-18 01:11:40,052 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ba227700-0238-4e46-ad86-b8125d742170 2025-11-18 01:11:40,065 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/af6238e3-e9c9-4c6e-9370-56383a0d0a66 2025-11-18 01:11:40,082 - INFO - Verified VN network id 11 for VN ba227700-0238-4e46-ad86-b8125d742170 2025-11-18 01:11:40,082 - INFO - Verifications in API Server for VN ctest-vn4-91666319 passed 2025-11-18 01:11:40,082 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ba227700-0238-4e46-ad86-b8125d742170 2025-11-18 01:11:40,093 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/af6238e3-e9c9-4c6e-9370-56383a0d0a66 2025-11-18 01:11:40,101 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/af6238e3-e9c9-4c6e-9370-56383a0d0a66 2025-11-18 01:11:40,107 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/0d3ac0de-e44a-4fc9-b70e-97e8d8b2b704 2025-11-18 01:11:40,118 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05030862:ctest-vn4-91666319', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05030862', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13412413482183708230', 'uuid-lslong': '12503883804457574768'}, 'enable': 'true', 'created': '2025-11-18T01:11:38', 'last-modified': '2025-11-18T01:11:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.782234'} 2025-11-18 01:11:40,125 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-18 01:11:40,125 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-91666319 passed 2025-11-18 01:11:40,125 - DEBUG - ====Verifying policy data for ctest-vn4-91666319 in API_Server ====== 2025-11-18 01:11:40,125 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-18 01:11:40,132 - DEBUG - Requesting: http://10.0.0.242:8082/domain/678c227f-ddb5-4488-9f90-b45c1e3b9c96 2025-11-18 01:11:40,144 - DEBUG - Requesting: http://10.0.0.242:8082/project/b6743825-0cd8-4f43-bae3-4c888a29751d 2025-11-18 01:11:40,219 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/ba227700-0238-4e46-ad86-b8125d742170 2025-11-18 01:11:40,232 - DEBUG - ==>Verifying data for policy with id: 2306831b-f73f-4c32-89c1-42e44e35c0ed, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05030862', 'ctest-policy1-64516723'] 2025-11-18 01:11:40,232 - INFO - VN ctest-vn4-91666319 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-18 01:11:40,232 - DEBUG - Verifying the vn in opserver 2025-11-18 01:11:40,232 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05030862:ctest-vn4-91666319 virtual network link through opserver 10.0.0.242 2025-11-18 01:11:40,233 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-18 01:11:40,541 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-18 01:11:40,619 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05030862:ctest-vn4-91666319', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05030862:ctest-vn4-91666319?flat'} 2025-11-18 01:11:40,619 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05030862:ctest-vn4-91666319 is found in opserver 2025-11-18 01:11:40,631 - DEBUG - Do not have enough data to verify VN in agent 2025-11-18 01:11:40,637 - DEBUG - VRF ids for VN ctest-vn4-91666319: {} 2025-11-18 01:11:40,637 - DEBUG - ====Verifying data for ctest-policy1-64516723 in API_Server ====== 2025-11-18 01:11:40,637 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-18 01:11:40,643 - DEBUG - Requesting: http://10.0.0.242:8082/domain/678c227f-ddb5-4488-9f90-b45c1e3b9c96 2025-11-18 01:11:40,655 - DEBUG - Requesting: http://10.0.0.242:8082/project/b6743825-0cd8-4f43-bae3-4c888a29751d 2025-11-18 01:11:40,728 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/2306831b-f73f-4c32-89c1-42e44e35c0ed 2025-11-18 01:11:40,738 - INFO - Verified policy ctest-policy1-64516723 in API Server, Result: True 2025-11-18 01:11:40,738 - INFO - Done with setup and verification, moving onto test .. 2025-11-18 01:11:40,747 - INFO - Deleting VN ctest-vn4-91666319 2025-11-18 01:11:40,884 - DEBUG - Response for deleting network () 2025-11-18 01:11:40,884 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/af6238e3-e9c9-4c6e-9370-56383a0d0a66 2025-11-18 01:11:40,890 - DEBUG - Response Code: 404 2025-11-18 01:11:40,891 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-18 01:11:40,896 - DEBUG - Requesting: http://10.0.0.242:8082/domain/678c227f-ddb5-4488-9f90-b45c1e3b9c96 2025-11-18 01:11:40,947 - DEBUG - Requesting: http://10.0.0.242:8082/project/b6743825-0cd8-4f43-bae3-4c888a29751d 2025-11-18 01:11:41,023 - INFO - Validated that VN ctest-vn4-91666319 is not found in API Server 2025-11-18 01:11:41,035 - DEBUG - VN ctest-vn4-91666319 is not present in Agent 10.0.0.242 2025-11-18 01:11:41,035 - INFO - Validated that VN ctest-vn4-91666319 is not in any agent 2025-11-18 01:11:41,051 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-91666319 info 2025-11-18 01:11:41,089 - INFO - Deleted policy ctest-policy1-64516723 2025-11-18 01:11:41,270 - DEBUG - policy ctest-policy1-64516723 is not found in API Server 2025-11-18 01:11:41,532 - DEBUG - No XMPP flaps were noticed during the test
2025-11-18 01:11:41,532 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-18 01:11:41,532 - INFO - -------------------------------------------------------------------------------- 2025-11-18 01:11:41,819 - DEBUG - No XMPP flaps were noticed during the test
2025-11-18 01:11:41,819 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-18 01:11:41,819 - INFO - -------------------------------------------------------------------------------- 2025-11-18 01:11:42,551 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-05030862, ID : b6743825-0cd8-4f43-bae3-4c888a29751d