2025-10-29 23:28:00,705 - INFO - Domain Default found not creating 2025-10-29 23:28:00,854 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09158660 not found, creating it 2025-10-29 23:28:01,424 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09158660, ID : 9ded8cc9-45be-4134-badf-d10b73ef2e2f 2025-10-29 23:28:02,914 - INFO - ================================================================================ 2025-10-29 23:28:02,914 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 23:28:04,233 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0', '10.20.0.5': '0'}, '10.0.0.33': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-10-29 23:28:04,234 - INFO - Initial checks done. Running the testcase now 2025-10-29 23:28:04,234 - INFO - 2025-10-29 23:28:04,234 - INFO - ================================================================================ 2025-10-29 23:28:04,234 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 23:28:04,234 - 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-29 23:28:05,585 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0', '10.20.0.5': '0'}, '10.0.0.33': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2025-10-29 23:28:05,585 - INFO - Initial checks done. Running the testcase now 2025-10-29 23:28:05,585 - INFO - 2025-10-29 23:28:05,943 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735, 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-09158660:ctest-vn4-19303735, 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-09158660:ctest-vn4-19303735, 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-09158660:ctest-vn4-19303735, 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-29 23:28:06,573 - DEBUG - Response for create_network : {'network': {'id': '2da221bb-a050-4c1a-b157-abe09febc8df', 'name': 'ctest-vn4-19303735', 'tenant_id': '9ded8cc945be4134badfd10b73ef2e2f', 'project_id': '9ded8cc945be4134badfd10b73ef2e2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09158660', 'ctest-vn4-19303735'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 23:28:06,880 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f09e553-914f-404f-a69e-3883379d3444', 'name': '', 'tenant_id': '9ded8cc945be4134badfd10b73ef2e2f', 'network_id': '2da221bb-a050-4c1a-b157-abe09febc8df', 'ip_version': 4, 'cidr': '73.12.14.128/26', 'allocation_pools': [{'start': '73.12.14.130', 'end': '73.12.14.190'}], 'gateway_ip': '73.12.14.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.12.14.130', 'tags': [], 'project_id': '9ded8cc945be4134badfd10b73ef2e2f'}} 2025-10-29 23:28:07,110 - DEBUG - Response for create_subnet : {'subnet': {'id': '1df282cf-2b2c-42fa-8172-af143e5e8229', 'name': '', 'tenant_id': '9ded8cc945be4134badfd10b73ef2e2f', 'network_id': '2da221bb-a050-4c1a-b157-abe09febc8df', 'ip_version': 6, 'cidr': '30d0:6d1f:81a6:bec1:a5f7:749f::/96', 'allocation_pools': [{'start': '30d0:6d1f:81a6:bec1:a5f7:749f:0:2', 'end': '30d0:6d1f:81a6:bec1:a5f7:749f:ffff:fffe'}], 'gateway_ip': '30d0:6d1f:81a6:bec1:a5f7:749f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30d0:6d1f:81a6:bec1:a5f7:749f:0:2', 'tags': [], 'project_id': '9ded8cc945be4134badfd10b73ef2e2f'}} 2025-10-29 23:28:07,137 - INFO - Created VN ctest-vn4-19303735 2025-10-29 23:28:07,147 - DEBUG - VN ctest-vn4-19303735 UUID is 2da221bb-a050-4c1a-b157-abe09febc8df 2025-10-29 23:28:07,339 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2da221bb-a050-4c1a-b157-abe09febc8df', 'name': 'ctest-vn4-19303735', 'tenant_id': '9ded8cc945be4134badfd10b73ef2e2f', 'project_id': '9ded8cc945be4134badfd10b73ef2e2f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f09e553-914f-404f-a69e-3883379d3444', '1df282cf-2b2c-42fa-8172-af143e5e8229'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09158660', 'ctest-vn4-19303735'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09158660', 'ctest-policy1-75014294']], 'subnet_ipam': [{'subnet_cidr': '73.12.14.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30d0:6d1f:81a6:bec1:a5f7:749f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 23:28:07,444 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 23:28:07,744 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 23:28:07,774 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0f965a2d-727a-40b2-a2d7-c44e752d08a7 2025-10-29 23:28:07,792 - DEBUG - Requesting: http://10.0.0.254:8082/project/9ded8cc9-45be-4134-badf-d10b73ef2e2f 2025-10-29 23:28:07,883 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2da221bb-a050-4c1a-b157-abe09febc8df 2025-10-29 23:28:07,896 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2da221bb-a050-4c1a-b157-abe09febc8df 2025-10-29 23:28:07,905 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e04e3d3b-555b-47dd-8766-2202d1acbb5a 2025-10-29 23:28:07,913 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e04e3d3b-555b-47dd-8766-2202d1acbb5a 2025-10-29 23:28:07,920 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9b982eed-b358-4b2f-90bf-6dedf9c53449 2025-10-29 23:28:07,926 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 23:28:07,926 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2da221bb-a050-4c1a-b157-abe09febc8df 2025-10-29 23:28:07,935 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e04e3d3b-555b-47dd-8766-2202d1acbb5a 2025-10-29 23:28:07,952 - INFO - Verified VN network id 16 for VN 2da221bb-a050-4c1a-b157-abe09febc8df 2025-10-29 23:28:07,952 - INFO - Verifications in API Server for VN ctest-vn4-19303735 passed 2025-10-29 23:28:07,952 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2da221bb-a050-4c1a-b157-abe09febc8df 2025-10-29 23:28:07,962 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e04e3d3b-555b-47dd-8766-2202d1acbb5a 2025-10-29 23:28:07,973 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e04e3d3b-555b-47dd-8766-2202d1acbb5a 2025-10-29 23:28:07,982 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9b982eed-b358-4b2f-90bf-6dedf9c53449 2025-10-29 23:28:07,996 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09158660', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3288227767666101274', 'uuid-lslong': '12778871448931125471'}, 'enable': 'true', 'created': '2025-10-29T23:28:06', 'last-modified': '2025-10-29T23:28:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.691037'} 2025-10-29 23:28:08,002 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 23:28:08,006 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09158660', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3288227767666101274', 'uuid-lslong': '12778871448931125471'}, 'enable': 'true', 'created': '2025-10-29T23:28:06', 'last-modified': '2025-10-29T23:28:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.696745'} 2025-10-29 23:28:08,012 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 23:28:08,016 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09158660', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3288227767666101274', 'uuid-lslong': '12778871448931125471'}, 'enable': 'true', 'created': '2025-10-29T23:28:06', 'last-modified': '2025-10-29T23:28:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.717087'} 2025-10-29 23:28:08,022 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 23:28:08,022 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-19303735 passed 2025-10-29 23:28:08,022 - DEBUG - ====Verifying policy data for ctest-vn4-19303735 in API_Server ====== 2025-10-29 23:28:08,022 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 23:28:08,028 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0f965a2d-727a-40b2-a2d7-c44e752d08a7 2025-10-29 23:28:08,041 - DEBUG - Requesting: http://10.0.0.254:8082/project/9ded8cc9-45be-4134-badf-d10b73ef2e2f 2025-10-29 23:28:08,126 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2da221bb-a050-4c1a-b157-abe09febc8df 2025-10-29 23:28:08,136 - DEBUG - ==>Verifying data for policy with id: 229e4118-ea78-4067-9fa9-a698cc61ca49, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09158660', 'ctest-policy1-75014294'] 2025-10-29 23:28:08,136 - INFO - VN ctest-vn4-19303735 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 23:28:08,136 - DEBUG - Verifying the vn in opserver 2025-10-29 23:28:08,136 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735 virtual network link through opserver 10.0.0.254 2025-10-29 23:28:08,136 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 23:28:08,438 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 23:28:08,493 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735?flat'} 2025-10-29 23:28:08,493 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735 virtual network link through opserver 10.0.0.49 2025-10-29 23:28:08,493 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-10-29 23:28:08,788 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-10-29 23:28:08,848 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735?flat'} 2025-10-29 23:28:08,848 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735 virtual network link through opserver 10.0.0.38 2025-10-29 23:28:08,848 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 23:28:09,139 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 23:28:09,193 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735?flat'} 2025-10-29 23:28:09,193 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09158660:ctest-vn4-19303735 is found in opserver 2025-10-29 23:28:09,226 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 23:28:09,241 - DEBUG - VRF ids for VN ctest-vn4-19303735: {} 2025-10-29 23:28:09,242 - DEBUG - ====Verifying data for ctest-policy1-75014294 in API_Server ====== 2025-10-29 23:28:09,242 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 23:28:09,248 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0f965a2d-727a-40b2-a2d7-c44e752d08a7 2025-10-29 23:28:09,260 - DEBUG - Requesting: http://10.0.0.254:8082/project/9ded8cc9-45be-4134-badf-d10b73ef2e2f 2025-10-29 23:28:09,345 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/229e4118-ea78-4067-9fa9-a698cc61ca49 2025-10-29 23:28:09,359 - INFO - Verified policy ctest-policy1-75014294 in API Server, Result: True 2025-10-29 23:28:09,361 - INFO - Done with setup and verification, moving onto test .. 2025-10-29 23:28:09,374 - INFO - Deleting VN ctest-vn4-19303735 2025-10-29 23:28:09,556 - DEBUG - Response for deleting network () 2025-10-29 23:28:09,556 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e04e3d3b-555b-47dd-8766-2202d1acbb5a 2025-10-29 23:28:09,563 - DEBUG - Response Code: 404 2025-10-29 23:28:09,563 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-29 23:28:09,579 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0f965a2d-727a-40b2-a2d7-c44e752d08a7 2025-10-29 23:28:09,596 - DEBUG - Requesting: http://10.0.0.254:8082/project/9ded8cc9-45be-4134-badf-d10b73ef2e2f 2025-10-29 23:28:09,691 - INFO - Validated that VN ctest-vn4-19303735 is not found in API Server 2025-10-29 23:28:09,702 - DEBUG - VN ctest-vn4-19303735 is not present in Agent 10.0.0.65 2025-10-29 23:28:09,725 - DEBUG - VN ctest-vn4-19303735 is not present in Agent 10.0.0.33 2025-10-29 23:28:09,725 - INFO - Validated that VN ctest-vn4-19303735 is not in any agent 2025-10-29 23:28:09,759 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-19303735 info 2025-10-29 23:28:09,801 - INFO - Deleted policy ctest-policy1-75014294 2025-10-29 23:28:09,990 - DEBUG - policy ctest-policy1-75014294 is not found in API Server 2025-10-29 23:28:11,312 - DEBUG - No XMPP flaps were noticed during the test