2025-10-08 20:20:45,193 - INFO - Domain Default found not creating 2025-10-08 20:20:45,318 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48521081 not found, creating it 2025-10-08 20:20:45,765 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48521081, ID : 980d6111-d991-4d22-830b-0c17c8b9792f 2025-10-08 20:20:47,206 - INFO - ================================================================================ 2025-10-08 20:20:47,206 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 20:20:47,456 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-08 20:20:47,456 - INFO - Initial checks done. Running the testcase now 2025-10-08 20:20:47,456 - INFO - 2025-10-08 20:20:47,456 - INFO - ================================================================================ 2025-10-08 20:20:47,456 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-08 20:20:47,456 - 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-08 20:20:47,744 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-08 20:20:47,744 - INFO - Initial checks done. Running the testcase now 2025-10-08 20:20:47,744 - INFO - 2025-10-08 20:20:48,089 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48521081:ctest-vn4-28556008, 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-48521081:ctest-vn4-28556008, 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-48521081:ctest-vn4-28556008, 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-48521081:ctest-vn4-28556008, 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-08 20:20:48,566 - DEBUG - Response for create_network : {'network': {'id': 'a0d701bb-0eab-43a9-9e84-ec8cb8327269', 'name': 'ctest-vn4-28556008', 'tenant_id': '980d6111d9914d22830b0c17c8b9792f', 'project_id': '980d6111d9914d22830b0c17c8b9792f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48521081', 'ctest-vn4-28556008'], 'port_security_enabled': True, 'description': ''}} 2025-10-08 20:20:48,715 - DEBUG - Response for create_subnet : {'subnet': {'id': '101a91a0-47eb-4aa6-87a9-8d295fc79ac1', 'name': '', 'tenant_id': '980d6111d9914d22830b0c17c8b9792f', 'network_id': 'a0d701bb-0eab-43a9-9e84-ec8cb8327269', 'ip_version': 4, 'cidr': '164.226.126.192/26', 'allocation_pools': [{'start': '164.226.126.194', 'end': '164.226.126.254'}], 'gateway_ip': '164.226.126.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.226.126.194', 'tags': [], 'project_id': '980d6111d9914d22830b0c17c8b9792f'}} 2025-10-08 20:20:48,846 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf783240-cc23-4e18-9c9d-757df02e7fda', 'name': '', 'tenant_id': '980d6111d9914d22830b0c17c8b9792f', 'network_id': 'a0d701bb-0eab-43a9-9e84-ec8cb8327269', 'ip_version': 6, 'cidr': '2474:8e27:b5d6:bd49:5c08:d249::/96', 'allocation_pools': [{'start': '2474:8e27:b5d6:bd49:5c08:d249:0:2', 'end': '2474:8e27:b5d6:bd49:5c08:d249:ffff:fffe'}], 'gateway_ip': '2474:8e27:b5d6:bd49:5c08:d249:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2474:8e27:b5d6:bd49:5c08:d249:0:2', 'tags': [], 'project_id': '980d6111d9914d22830b0c17c8b9792f'}} 2025-10-08 20:20:48,868 - INFO - Created VN ctest-vn4-28556008 2025-10-08 20:20:48,916 - DEBUG - VN ctest-vn4-28556008 UUID is a0d701bb-0eab-43a9-9e84-ec8cb8327269 2025-10-08 20:20:49,146 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a0d701bb-0eab-43a9-9e84-ec8cb8327269', 'name': 'ctest-vn4-28556008', 'tenant_id': '980d6111d9914d22830b0c17c8b9792f', 'project_id': '980d6111d9914d22830b0c17c8b9792f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['101a91a0-47eb-4aa6-87a9-8d295fc79ac1', 'cf783240-cc23-4e18-9c9d-757df02e7fda'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48521081', 'ctest-vn4-28556008'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48521081', 'ctest-policy1-18598187']], 'subnet_ipam': [{'subnet_cidr': '164.226.126.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2474:8e27:b5d6:bd49:5c08:d249::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-08 20:20:49,308 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-08 20:20:49,595 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-08 20:20:49,621 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6d79180f-b032-4733-9c89-d927ea9a1292 2025-10-08 20:20:49,633 - DEBUG - Requesting: http://10.0.0.254:8082/project/980d6111-d991-4d22-830b-0c17c8b9792f 2025-10-08 20:20:49,705 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0d701bb-0eab-43a9-9e84-ec8cb8327269 2025-10-08 20:20:49,717 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0d701bb-0eab-43a9-9e84-ec8cb8327269 2025-10-08 20:20:49,726 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11824dee-6e6e-425d-a650-6614052f202e 2025-10-08 20:20:49,732 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11824dee-6e6e-425d-a650-6614052f202e 2025-10-08 20:20:49,738 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4a64dcae-8f7d-4383-8000-95c6cc09047e 2025-10-08 20:20:49,743 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 20:20:49,743 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0d701bb-0eab-43a9-9e84-ec8cb8327269 2025-10-08 20:20:49,750 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11824dee-6e6e-425d-a650-6614052f202e 2025-10-08 20:20:49,760 - INFO - Verified VN network id 12 for VN a0d701bb-0eab-43a9-9e84-ec8cb8327269 2025-10-08 20:20:49,760 - INFO - Verifications in API Server for VN ctest-vn4-28556008 passed 2025-10-08 20:20:49,760 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0d701bb-0eab-43a9-9e84-ec8cb8327269 2025-10-08 20:20:49,768 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11824dee-6e6e-425d-a650-6614052f202e 2025-10-08 20:20:49,772 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11824dee-6e6e-425d-a650-6614052f202e 2025-10-08 20:20:49,777 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/4a64dcae-8f7d-4383-8000-95c6cc09047e 2025-10-08 20:20:49,786 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48521081:ctest-vn4-28556008', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48521081', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11589734068977877929', 'uuid-lslong': '11422514644048310889'}, 'enable': 'true', 'created': '2025-10-08T20:20:48', 'last-modified': '2025-10-08T20:20:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.661200'} 2025-10-08 20:20:49,790 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-08 20:20:49,791 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28556008 passed 2025-10-08 20:20:49,791 - DEBUG - ====Verifying policy data for ctest-vn4-28556008 in API_Server ====== 2025-10-08 20:20:49,791 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-08 20:20:49,795 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6d79180f-b032-4733-9c89-d927ea9a1292 2025-10-08 20:20:49,803 - DEBUG - Requesting: http://10.0.0.254:8082/project/980d6111-d991-4d22-830b-0c17c8b9792f 2025-10-08 20:20:49,867 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a0d701bb-0eab-43a9-9e84-ec8cb8327269 2025-10-08 20:20:49,875 - DEBUG - ==>Verifying data for policy with id: cd2c7baf-036b-41e0-80b4-6e2d3c9093b3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48521081', 'ctest-policy1-18598187'] 2025-10-08 20:20:49,875 - INFO - VN ctest-vn4-28556008 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-08 20:20:49,875 - DEBUG - Verifying the vn in opserver 2025-10-08 20:20:49,875 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48521081:ctest-vn4-28556008 virtual network link through opserver 10.0.0.254 2025-10-08 20:20:49,875 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-08 20:20:50,161 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-08 20:20:50,213 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48521081:ctest-vn4-28556008', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48521081:ctest-vn4-28556008?flat'} 2025-10-08 20:20:50,213 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48521081:ctest-vn4-28556008 is found in opserver 2025-10-08 20:20:50,222 - DEBUG - Do not have enough data to verify VN in agent 2025-10-08 20:20:50,226 - DEBUG - VRF ids for VN ctest-vn4-28556008: {} 2025-10-08 20:20:50,226 - DEBUG - ====Verifying data for ctest-policy1-18598187 in API_Server ====== 2025-10-08 20:20:50,226 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-08 20:20:50,231 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6d79180f-b032-4733-9c89-d927ea9a1292 2025-10-08 20:20:50,240 - DEBUG - Requesting: http://10.0.0.254:8082/project/980d6111-d991-4d22-830b-0c17c8b9792f 2025-10-08 20:20:50,309 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/cd2c7baf-036b-41e0-80b4-6e2d3c9093b3 2025-10-08 20:20:50,317 - INFO - Verified policy ctest-policy1-18598187 in API Server, Result: True 2025-10-08 20:20:50,317 - INFO - Done with setup and verification, moving onto test .. 2025-10-08 20:20:50,324 - INFO - Deleting VN ctest-vn4-28556008 2025-10-08 20:20:50,423 - DEBUG - Response for deleting network () 2025-10-08 20:20:50,423 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/11824dee-6e6e-425d-a650-6614052f202e 2025-10-08 20:20:50,427 - DEBUG - Response Code: 404 2025-10-08 20:20:50,428 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-08 20:20:50,431 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6d79180f-b032-4733-9c89-d927ea9a1292 2025-10-08 20:20:50,480 - DEBUG - Requesting: http://10.0.0.254:8082/project/980d6111-d991-4d22-830b-0c17c8b9792f 2025-10-08 20:20:50,547 - INFO - Validated that VN ctest-vn4-28556008 is not found in API Server 2025-10-08 20:20:50,556 - DEBUG - VN ctest-vn4-28556008 is not present in Agent 10.0.0.254 2025-10-08 20:20:50,556 - INFO - Validated that VN ctest-vn4-28556008 is not in any agent 2025-10-08 20:20:50,568 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28556008 info 2025-10-08 20:20:50,590 - INFO - Deleted policy ctest-policy1-18598187 2025-10-08 20:20:50,756 - DEBUG - policy ctest-policy1-18598187 is not found in API Server 2025-10-08 20:20:51,013 - DEBUG - No XMPP flaps were noticed during the test 2025-10-08 20:20:51,013 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-08 20:20:51,013 - INFO - -------------------------------------------------------------------------------- 2025-10-08 20:20:51,300 - DEBUG - No XMPP flaps were noticed during the test 2025-10-08 20:20:51,300 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-08 20:20:51,301 - INFO - -------------------------------------------------------------------------------- 2025-10-08 20:20:51,941 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48521081, ID : 980d6111-d991-4d22-830b-0c17c8b9792f