2025-09-11 08:29:14,895 - INFO - Domain Default found not creating 2025-09-11 08:29:15,042 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26658238 not found, creating it 2025-09-11 08:29:15,515 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26658238, ID : df096b8f-847c-4bc0-9e90-6e55bae0427e 2025-09-11 08:29:16,933 - INFO - ================================================================================ 2025-09-11 08:29:16,933 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 08:29:17,190 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2025-09-11 08:29:17,190 - INFO - Initial checks done. Running the testcase now 2025-09-11 08:29:17,190 - INFO - 2025-09-11 08:29:17,191 - INFO - ================================================================================ 2025-09-11 08:29:17,191 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 08:29:17,191 - 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-09-11 08:29:17,478 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2025-09-11 08:29:17,478 - INFO - Initial checks done. Running the testcase now 2025-09-11 08:29:17,479 - INFO - 2025-09-11 08:29:17,830 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26658238:ctest-vn4-84265364, 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-26658238:ctest-vn4-84265364, 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-26658238:ctest-vn4-84265364, 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-26658238:ctest-vn4-84265364, 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-09-11 08:29:18,361 - DEBUG - Response for create_network : {'network': {'id': '173a34a3-a437-4712-b8ec-299cdc1533df', 'name': 'ctest-vn4-84265364', 'tenant_id': 'df096b8f847c4bc09e906e55bae0427e', 'project_id': 'df096b8f847c4bc09e906e55bae0427e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26658238', 'ctest-vn4-84265364'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 08:29:18,532 - DEBUG - Response for create_subnet : {'subnet': {'id': '12edc403-ce08-4134-a580-75c9ea9a4c57', 'name': '', 'tenant_id': 'df096b8f847c4bc09e906e55bae0427e', 'network_id': '173a34a3-a437-4712-b8ec-299cdc1533df', 'ip_version': 4, 'cidr': '43.214.89.64/26', 'allocation_pools': [{'start': '43.214.89.66', 'end': '43.214.89.126'}], 'gateway_ip': '43.214.89.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.214.89.66', 'tags': [], 'project_id': 'df096b8f847c4bc09e906e55bae0427e'}} 2025-09-11 08:29:18,712 - DEBUG - Response for create_subnet : {'subnet': {'id': '747556e3-dbba-49b8-8338-4aac16af3887', 'name': '', 'tenant_id': 'df096b8f847c4bc09e906e55bae0427e', 'network_id': '173a34a3-a437-4712-b8ec-299cdc1533df', 'ip_version': 6, 'cidr': '2bfe:fab9:82e2:30da:c3a2:9c51::/96', 'allocation_pools': [{'start': '2bfe:fab9:82e2:30da:c3a2:9c51:0:2', 'end': '2bfe:fab9:82e2:30da:c3a2:9c51:ffff:fffe'}], 'gateway_ip': '2bfe:fab9:82e2:30da:c3a2:9c51:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bfe:fab9:82e2:30da:c3a2:9c51:0:2', 'tags': [], 'project_id': 'df096b8f847c4bc09e906e55bae0427e'}} 2025-09-11 08:29:18,733 - INFO - Created VN ctest-vn4-84265364 2025-09-11 08:29:18,785 - DEBUG - VN ctest-vn4-84265364 UUID is 173a34a3-a437-4712-b8ec-299cdc1533df 2025-09-11 08:29:19,017 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '173a34a3-a437-4712-b8ec-299cdc1533df', 'name': 'ctest-vn4-84265364', 'tenant_id': 'df096b8f847c4bc09e906e55bae0427e', 'project_id': 'df096b8f847c4bc09e906e55bae0427e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['12edc403-ce08-4134-a580-75c9ea9a4c57', '747556e3-dbba-49b8-8338-4aac16af3887'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26658238', 'ctest-vn4-84265364'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26658238', 'ctest-policy1-72629219']], 'subnet_ipam': [{'subnet_cidr': '43.214.89.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bfe:fab9:82e2:30da:c3a2:9c51::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 08:29:19,181 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-11 08:29:19,475 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-11 08:29:19,509 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07 2025-09-11 08:29:19,521 - DEBUG - Requesting: http://10.0.0.41:8082/project/df096b8f-847c-4bc0-9e90-6e55bae0427e 2025-09-11 08:29:19,588 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/173a34a3-a437-4712-b8ec-299cdc1533df 2025-09-11 08:29:19,607 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/173a34a3-a437-4712-b8ec-299cdc1533df 2025-09-11 08:29:19,616 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/75357c60-6cbd-4d00-9b93-604747bfd2af 2025-09-11 08:29:19,623 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/75357c60-6cbd-4d00-9b93-604747bfd2af 2025-09-11 08:29:19,630 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/24161328-12ae-41e0-bdc7-cc96436d1572 2025-09-11 08:29:19,636 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 08:29:19,636 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/173a34a3-a437-4712-b8ec-299cdc1533df 2025-09-11 08:29:19,645 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/75357c60-6cbd-4d00-9b93-604747bfd2af 2025-09-11 08:29:19,661 - INFO - Verified VN network id 11 for VN 173a34a3-a437-4712-b8ec-299cdc1533df 2025-09-11 08:29:19,661 - INFO - Verifications in API Server for VN ctest-vn4-84265364 passed 2025-09-11 08:29:19,661 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/173a34a3-a437-4712-b8ec-299cdc1533df 2025-09-11 08:29:19,672 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/75357c60-6cbd-4d00-9b93-604747bfd2af 2025-09-11 08:29:19,679 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/75357c60-6cbd-4d00-9b93-604747bfd2af 2025-09-11 08:29:19,686 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/24161328-12ae-41e0-bdc7-cc96436d1572 2025-09-11 08:29:19,698 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26658238:ctest-vn4-84265364', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26658238', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1673708088960960274', 'uuid-lslong': '13325071151166469087'}, 'enable': 'true', 'created': '2025-09-11T08:29:18', 'last-modified': '2025-09-11T08:29:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711045'} 2025-09-11 08:29:19,705 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 08:29:19,705 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-84265364 passed 2025-09-11 08:29:19,706 - DEBUG - ====Verifying policy data for ctest-vn4-84265364 in API_Server ====== 2025-09-11 08:29:19,706 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-11 08:29:19,711 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07 2025-09-11 08:29:19,723 - DEBUG - Requesting: http://10.0.0.41:8082/project/df096b8f-847c-4bc0-9e90-6e55bae0427e 2025-09-11 08:29:19,796 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/173a34a3-a437-4712-b8ec-299cdc1533df 2025-09-11 08:29:19,808 - DEBUG - ==>Verifying data for policy with id: 869779b7-3ebe-4a04-ac6d-1c7fb3928ff8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26658238', 'ctest-policy1-72629219'] 2025-09-11 08:29:19,808 - INFO - VN ctest-vn4-84265364 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 08:29:19,808 - DEBUG - Verifying the vn in opserver 2025-09-11 08:29:19,808 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26658238:ctest-vn4-84265364 virtual network link through opserver 10.0.0.41 2025-09-11 08:29:19,808 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-11 08:29:20,100 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-11 08:29:20,166 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26658238:ctest-vn4-84265364', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26658238:ctest-vn4-84265364?flat'} 2025-09-11 08:29:20,166 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26658238:ctest-vn4-84265364 is found in opserver 2025-09-11 08:29:20,177 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 08:29:20,181 - DEBUG - VRF ids for VN ctest-vn4-84265364: {} 2025-09-11 08:29:20,182 - DEBUG - ====Verifying data for ctest-policy1-72629219 in API_Server ====== 2025-09-11 08:29:20,182 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-11 08:29:20,187 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07 2025-09-11 08:29:20,198 - DEBUG - Requesting: http://10.0.0.41:8082/project/df096b8f-847c-4bc0-9e90-6e55bae0427e 2025-09-11 08:29:20,273 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/869779b7-3ebe-4a04-ac6d-1c7fb3928ff8 2025-09-11 08:29:20,285 - INFO - Verified policy ctest-policy1-72629219 in API Server, Result: True 2025-09-11 08:29:20,285 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 08:29:20,295 - INFO - Deleting VN ctest-vn4-84265364 2025-09-11 08:29:20,428 - DEBUG - Response for deleting network () 2025-09-11 08:29:20,428 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/75357c60-6cbd-4d00-9b93-604747bfd2af 2025-09-11 08:29:20,433 - DEBUG - Response Code: 404 2025-09-11 08:29:20,434 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-11 08:29:20,439 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e072b703-418e-4901-9c4d-98757ad64e07 2025-09-11 08:29:20,495 - DEBUG - Requesting: http://10.0.0.41:8082/project/df096b8f-847c-4bc0-9e90-6e55bae0427e 2025-09-11 08:29:20,565 - INFO - Validated that VN ctest-vn4-84265364 is not found in API Server 2025-09-11 08:29:20,576 - DEBUG - VN ctest-vn4-84265364 is not present in Agent 10.0.0.41 2025-09-11 08:29:20,576 - INFO - Validated that VN ctest-vn4-84265364 is not in any agent 2025-09-11 08:29:20,594 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-84265364 info 2025-09-11 08:29:20,621 - INFO - Deleted policy ctest-policy1-72629219 2025-09-11 08:29:20,800 - DEBUG - policy ctest-policy1-72629219 is not found in API Server 2025-09-11 08:29:21,056 - DEBUG - No XMPP flaps were noticed during the test 2025-09-11 08:29:21,056 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-11 08:29:21,057 - INFO - -------------------------------------------------------------------------------- 2025-09-11 08:29:21,346 - DEBUG - No XMPP flaps were noticed during the test 2025-09-11 08:29:21,346 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-09-11 08:29:21,346 - INFO - -------------------------------------------------------------------------------- 2025-09-11 08:29:22,022 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-26658238, ID : df096b8f-847c-4bc0-9e90-6e55bae0427e