2026-02-02 02:37:10,518 - INFO - Domain Default found not creating 2026-02-02 02:37:10,687 - INFO - Project ctest-TestBasicPolicy-14830583 not found, creating it 2026-02-02 02:37:11,191 - INFO - Created Project:ctest-TestBasicPolicy-14830583, ID : ca97faee-0e25-4347-980e-f3a518082e15 2026-02-02 02:37:12,812 - INFO - ================================================================================ 2026-02-02 02:37:12,813 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-02-02 02:37:12,814 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2026-02-02 02:37:14,091 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0', '10.20.0.193': '0'}, '10.0.0.65': {'10.20.0.193': '0', '10.20.0.129': '0'}} with 2026-02-02 02:37:14,091 - INFO - Initial checks done. Running the testcase now 2026-02-02 02:37:14,091 - INFO - 2026-02-02 02:37:14,762 - DEBUG - Response for create_network : {'network': {'id': 'be9d083d-c3e4-4e48-9b1e-aa3b23682f90', 'name': 'ctest-vn-53287555', 'tenant_id': 'ca97faee0e254347980ef3a518082e15', 'project_id': 'ca97faee0e254347980ef3a518082e15', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14830583', 'ctest-vn-53287555'], 'port_security_enabled': True, 'description': ''}} 2026-02-02 02:37:15,041 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c275c894-bd9a-45b0-8337-7725e845a9de', 'name': '', 'tenant_id': 'ca97faee0e254347980ef3a518082e15', 'network_id': 'be9d083d-c3e4-4e48-9b1e-aa3b23682f90', 'ip_version': 4, 'cidr': '150.77.44.0/26', 'allocation_pools': [{'start': '150.77.44.2', 'end': '150.77.44.62'}], 'gateway_ip': '150.77.44.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.77.44.2', 'tags': [], 'project_id': 'ca97faee0e254347980ef3a518082e15'}} 2026-02-02 02:37:15,072 - INFO - Created VN ctest-vn-53287555 2026-02-02 02:37:15,083 - DEBUG - VN ctest-vn-53287555 UUID is be9d083d-c3e4-4e48-9b1e-aa3b23682f90 2026-02-02 02:37:15,435 - DEBUG - Response for create_network : {'network': {'id': '6faefd48-2407-42a6-8f3d-1a588149d015', 'name': 'ctest-vn-95522766', 'tenant_id': 'ca97faee0e254347980ef3a518082e15', 'project_id': 'ca97faee0e254347980ef3a518082e15', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14830583', 'ctest-vn-95522766'], 'port_security_enabled': True, 'description': ''}} 2026-02-02 02:37:15,648 - DEBUG - Response for create_subnet : {'subnet': {'id': '18561166-a246-4502-87a1-de12fa44449e', 'name': '', 'tenant_id': 'ca97faee0e254347980ef3a518082e15', 'network_id': '6faefd48-2407-42a6-8f3d-1a588149d015', 'ip_version': 4, 'cidr': '204.32.109.192/26', 'allocation_pools': [{'start': '204.32.109.194', 'end': '204.32.109.254'}], 'gateway_ip': '204.32.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.32.109.194', 'tags': [], 'project_id': 'ca97faee0e254347980ef3a518082e15'}} 2026-02-02 02:37:15,678 - INFO - Created VN ctest-vn-95522766 2026-02-02 02:37:15,688 - DEBUG - VN ctest-vn-95522766 UUID is 6faefd48-2407-42a6-8f3d-1a588149d015 2026-02-02 02:37:15,777 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555, 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-TestBasicPolicy-14830583:ctest-vn-95522766, 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] 2026-02-02 02:37:16,105 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be9d083d-c3e4-4e48-9b1e-aa3b23682f90', 'name': 'ctest-vn-53287555', 'tenant_id': 'ca97faee0e254347980ef3a518082e15', 'project_id': 'ca97faee0e254347980ef3a518082e15', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c275c894-bd9a-45b0-8337-7725e845a9de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14830583', 'ctest-vn-53287555'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14830583', 'ctest-policy-allow-all-70630144']], 'subnet_ipam': [{'subnet_cidr': '150.77.44.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-02 02:37:16,313 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6faefd48-2407-42a6-8f3d-1a588149d015', 'name': 'ctest-vn-95522766', 'tenant_id': 'ca97faee0e254347980ef3a518082e15', 'project_id': 'ca97faee0e254347980ef3a518082e15', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18561166-a246-4502-87a1-de12fa44449e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14830583', 'ctest-vn-95522766'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14830583', 'ctest-policy-allow-all-70630144']], 'subnet_ipam': [{'subnet_cidr': '204.32.109.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-02 02:37:16,420 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-02 02:37:16,769 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-02 02:37:16,810 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4480bafd-5776-4d34-b387-df5887123349 2026-02-02 02:37:16,825 - DEBUG - Requesting: http://10.0.0.141:8082/project/ca97faee-0e25-4347-980e-f3a518082e15 2026-02-02 02:37:16,918 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/be9d083d-c3e4-4e48-9b1e-aa3b23682f90 2026-02-02 02:37:16,935 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/be9d083d-c3e4-4e48-9b1e-aa3b23682f90 2026-02-02 02:37:16,944 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/64992813-2f9f-4d60-80ba-96ffe055a8c1 2026-02-02 02:37:16,967 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/64992813-2f9f-4d60-80ba-96ffe055a8c1 2026-02-02 02:37:16,974 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/41bee452-4883-4f18-9341-50152e1df2be 2026-02-02 02:37:16,982 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 02:37:16,982 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/be9d083d-c3e4-4e48-9b1e-aa3b23682f90 2026-02-02 02:37:16,990 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/64992813-2f9f-4d60-80ba-96ffe055a8c1 2026-02-02 02:37:17,008 - INFO - Verified VN network id 10 for VN be9d083d-c3e4-4e48-9b1e-aa3b23682f90 2026-02-02 02:37:17,009 - INFO - Verifications in API Server for VN ctest-vn-53287555 passed 2026-02-02 02:37:17,009 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/be9d083d-c3e4-4e48-9b1e-aa3b23682f90 2026-02-02 02:37:17,017 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/64992813-2f9f-4d60-80ba-96ffe055a8c1 2026-02-02 02:37:17,024 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/64992813-2f9f-4d60-80ba-96ffe055a8c1 2026-02-02 02:37:17,034 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/41bee452-4883-4f18-9341-50152e1df2be 2026-02-02 02:37:17,046 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14830583', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13735143499922427464', 'uuid-lslong': '11177558496153972624'}, 'enable': 'true', 'created': '2026-02-02T02:37:14', 'last-modified': '2026-02-02T02:37:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.992034'} 2026-02-02 02:37:17,055 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 02:37:17,059 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14830583', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13735143499922427464', 'uuid-lslong': '11177558496153972624'}, 'enable': 'true', 'created': '2026-02-02T02:37:14', 'last-modified': '2026-02-02T02:37:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.002253'} 2026-02-02 02:37:17,066 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 02:37:17,071 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14830583', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13735143499922427464', 'uuid-lslong': '11177558496153972624'}, 'enable': 'true', 'created': '2026-02-02T02:37:14', 'last-modified': '2026-02-02T02:37:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014312'} 2026-02-02 02:37:17,079 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 02:37:17,079 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53287555 passed 2026-02-02 02:37:17,079 - DEBUG - ====Verifying policy data for ctest-vn-53287555 in API_Server ====== 2026-02-02 02:37:17,079 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-02 02:37:17,089 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4480bafd-5776-4d34-b387-df5887123349 2026-02-02 02:37:17,099 - DEBUG - Requesting: http://10.0.0.141:8082/project/ca97faee-0e25-4347-980e-f3a518082e15 2026-02-02 02:37:17,181 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/be9d083d-c3e4-4e48-9b1e-aa3b23682f90 2026-02-02 02:37:17,205 - DEBUG - ==>Verifying data for policy with id: 235c7f26-72bf-416e-8de6-afdfaae25e2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-14830583', 'ctest-policy-allow-all-70630144'] 2026-02-02 02:37:17,205 - INFO - VN ctest-vn-53287555 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 02:37:17,205 - DEBUG - Verifying the vn in opserver 2026-02-02 02:37:17,205 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555 virtual network link through opserver 10.0.0.141 2026-02-02 02:37:17,205 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-02 02:37:17,606 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-02 02:37:17,708 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555?flat'} 2026-02-02 02:37:17,708 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555 virtual network link through opserver 10.0.0.22 2026-02-02 02:37:17,708 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-02 02:37:18,028 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-02 02:37:18,089 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555?flat'} 2026-02-02 02:37:18,089 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555 virtual network link through opserver 10.0.0.23 2026-02-02 02:37:18,089 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-02 02:37:18,411 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-02 02:37:18,472 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555?flat'} 2026-02-02 02:37:18,472 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555 is found in opserver 2026-02-02 02:37:18,492 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 02:37:18,501 - DEBUG - VRF ids for VN ctest-vn-53287555: {} 2026-02-02 02:37:18,501 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-02 02:37:18,508 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4480bafd-5776-4d34-b387-df5887123349 2026-02-02 02:37:18,518 - DEBUG - Requesting: http://10.0.0.141:8082/project/ca97faee-0e25-4347-980e-f3a518082e15 2026-02-02 02:37:18,598 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6faefd48-2407-42a6-8f3d-1a588149d015 2026-02-02 02:37:18,613 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6faefd48-2407-42a6-8f3d-1a588149d015 2026-02-02 02:37:18,628 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/be81a3ab-2095-41df-b7d6-03fdc50cb39d 2026-02-02 02:37:18,635 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/be81a3ab-2095-41df-b7d6-03fdc50cb39d 2026-02-02 02:37:18,643 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ddf9ebb7-7245-4c6e-838a-56a0c760644f 2026-02-02 02:37:18,652 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-02-02 02:37:18,652 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6faefd48-2407-42a6-8f3d-1a588149d015 2026-02-02 02:37:18,665 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/be81a3ab-2095-41df-b7d6-03fdc50cb39d 2026-02-02 02:37:18,683 - INFO - Verified VN network id 11 for VN 6faefd48-2407-42a6-8f3d-1a588149d015 2026-02-02 02:37:18,684 - INFO - Verifications in API Server for VN ctest-vn-95522766 passed 2026-02-02 02:37:18,684 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6faefd48-2407-42a6-8f3d-1a588149d015 2026-02-02 02:37:18,700 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/be81a3ab-2095-41df-b7d6-03fdc50cb39d 2026-02-02 02:37:18,710 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/be81a3ab-2095-41df-b7d6-03fdc50cb39d 2026-02-02 02:37:18,719 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ddf9ebb7-7245-4c6e-838a-56a0c760644f 2026-02-02 02:37:18,736 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14830583', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8047648070441583270', 'uuid-lslong': '10321434888431587349'}, 'enable': 'true', 'created': '2026-02-02T02:37:15', 'last-modified': '2026-02-02T02:37:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.469360'} 2026-02-02 02:37:18,742 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-02-02 02:37:18,748 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14830583', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8047648070441583270', 'uuid-lslong': '10321434888431587349'}, 'enable': 'true', 'created': '2026-02-02T02:37:15', 'last-modified': '2026-02-02T02:37:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.481743'} 2026-02-02 02:37:18,759 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-02-02 02:37:18,764 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14830583', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8047648070441583270', 'uuid-lslong': '10321434888431587349'}, 'enable': 'true', 'created': '2026-02-02T02:37:15', 'last-modified': '2026-02-02T02:37:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.498501'} 2026-02-02 02:37:18,769 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-02-02 02:37:18,770 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95522766 passed 2026-02-02 02:37:18,770 - DEBUG - ====Verifying policy data for ctest-vn-95522766 in API_Server ====== 2026-02-02 02:37:18,770 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-02 02:37:18,778 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4480bafd-5776-4d34-b387-df5887123349 2026-02-02 02:37:18,790 - DEBUG - Requesting: http://10.0.0.141:8082/project/ca97faee-0e25-4347-980e-f3a518082e15 2026-02-02 02:37:18,873 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/6faefd48-2407-42a6-8f3d-1a588149d015 2026-02-02 02:37:18,883 - DEBUG - ==>Verifying data for policy with id: 235c7f26-72bf-416e-8de6-afdfaae25e2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-14830583', 'ctest-policy-allow-all-70630144'] 2026-02-02 02:37:18,883 - INFO - VN ctest-vn-95522766 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 02:37:18,883 - DEBUG - Verifying the vn in opserver 2026-02-02 02:37:18,883 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766 virtual network link through opserver 10.0.0.141 2026-02-02 02:37:18,883 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-02 02:37:18,951 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766?flat'} 2026-02-02 02:37:18,951 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766 virtual network link through opserver 10.0.0.22 2026-02-02 02:37:18,951 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-02 02:37:19,017 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766?flat'} 2026-02-02 02:37:19,017 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766 virtual network link through opserver 10.0.0.23 2026-02-02 02:37:19,017 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-02 02:37:19,096 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766?flat'} 2026-02-02 02:37:19,096 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-95522766 is found in opserver 2026-02-02 02:37:19,119 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 02:37:19,129 - DEBUG - VRF ids for VN ctest-vn-95522766: {} 2026-02-02 02:37:19,195 - DEBUG - Services list from nova: [, , , ] 2026-02-02 02:37:20,335 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5167-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5167-1) 2026-02-02 02:37:21,734 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5167-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5167-2) 2026-02-02 02:37:21,734 - INFO - Waiting for VM ctest-TestBasicPolicy-14830583-22003671 to be up.. 2026-02-02 02:37:21,817 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-02-02 02:37:26,940 - DEBUG - VM is in ACTIVE state now 2026-02-02 02:37:26,940 - INFO - VM name : ctest-TestBasicPolicy-14830583-22003671 2026-02-02 02:37:27,017 - DEBUG - VM ctest-TestBasicPolicy-14830583-22003671 ID is 7088ed85-b99f-4ca0-b97b-2660f8304c00 2026-02-02 02:37:27,044 - DEBUG - VM ctest-TestBasicPolicy-14830583-22003671 launched on Node an-jenkins-deploy-platform-ansible-os-5167-1 2026-02-02 02:37:27,135 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/7088ed85-b99f-4ca0-b97b-2660f8304c00 2026-02-02 02:37:27,450 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/7088ed85-b99f-4ca0-b97b-2660f8304c00 2026-02-02 02:37:27,488 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/b469ba33-a77e-42b8-9194-6fde1f383379 2026-02-02 02:37:30,650 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1006ms') 2026-02-02 02:37:30,650 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14830583-22003671 failed! 2026-02-02 02:37:30,663 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555 is 150.77.44.1 and allocation pool is NOT set 2026-02-02 02:37:34,740 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1017ms') 2026-02-02 02:37:34,740 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14830583-22003671 failed! 2026-02-02 02:37:34,753 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555 is 150.77.44.1 and allocation pool is NOT set 2026-02-02 02:37:38,843 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1027ms') 2026-02-02 02:37:38,844 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14830583-22003671 failed! 2026-02-02 02:37:38,859 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555 is 150.77.44.1 and allocation pool is NOT set 2026-02-02 02:37:42,932 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2026-02-02 02:37:42,932 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14830583-22003671 failed! 2026-02-02 02:37:42,945 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555 is 150.77.44.1 and allocation pool is NOT set 2026-02-02 02:37:47,026 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2026-02-02 02:37:47,027 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14830583-22003671 failed! 2026-02-02 02:37:47,039 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555 is 150.77.44.1 and allocation pool is NOT set 2026-02-02 02:37:51,132 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1030ms') 2026-02-02 02:37:51,132 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14830583-22003671 failed! 2026-02-02 02:37:51,146 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555 is 150.77.44.1 and allocation pool is NOT set 2026-02-02 02:37:55,226 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2026-02-02 02:37:55,226 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14830583-22003671 failed! 2026-02-02 02:37:55,239 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555 is 150.77.44.1 and allocation pool is NOT set 2026-02-02 02:37:59,317 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2026-02-02 02:37:59,318 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14830583-22003671 failed! 2026-02-02 02:37:59,330 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14830583:ctest-vn-53287555 is 150.77.44.1 and allocation pool is NOT set 2026-02-02 02:38:01,396 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=11.8 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.95 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.950/7.389/11.828/4.439 ms') 2026-02-02 02:38:01,396 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14830583-22003671 passed 2026-02-02 02:38:01,471 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-02 02:38:01,471 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14830583-22003671, IP 150.77.44.3, Port 22 2026-02-02 02:38:01,529 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-02-02 02:38:01,622 - DEBUG - VM ctest-TestBasicPolicy-14830583-22003671 is NOT ready for SSH connections, VM status: ACTIVE 2026-02-02 02:38:06,623 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-02 02:38:06,623 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14830583-22003671, IP 150.77.44.3, Port 22 2026-02-02 02:38:06,691 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-02-02 02:38:06,770 - DEBUG - VM ctest-TestBasicPolicy-14830583-22003671 is NOT ready for SSH connections, VM status: ACTIVE 2026-02-02 02:38:11,771 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-02 02:38:11,771 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14830583-22003671, IP 150.77.44.3, Port 22 2026-02-02 02:38:11,828 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-02-02 02:38:11,915 - DEBUG - VM ctest-TestBasicPolicy-14830583-22003671 is NOT ready for SSH connections, VM status: ACTIVE 2026-02-02 02:38:16,915 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-02 02:38:16,915 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14830583-22003671, IP 150.77.44.3, Port 22 2026-02-02 02:38:16,972 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-02-02 02:38:17,061 - DEBUG - VM ctest-TestBasicPolicy-14830583-22003671 is NOT ready for SSH connections, VM status: ACTIVE 2026-02-02 02:38:22,062 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-02 02:38:22,063 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14830583-22003671, IP 150.77.44.3, Port 22 2026-02-02 02:38:22,235 - DEBUG - VM ctest-TestBasicPolicy-14830583-22003671 is ready for SSH connections 2026-02-02 02:38:22,235 - INFO - Waiting for VM ctest-TestBasicPolicy-14830583-89059573 to be up.. 2026-02-02 02:38:22,317 - DEBUG - VM is in ACTIVE state now 2026-02-02 02:38:22,317 - INFO - VM name : ctest-TestBasicPolicy-14830583-89059573 2026-02-02 02:38:22,394 - DEBUG - VM ctest-TestBasicPolicy-14830583-89059573 ID is 11fe2ab9-f1a3-45f5-82f0-7babc616d96a 2026-02-02 02:38:22,394 - DEBUG - VM ctest-TestBasicPolicy-14830583-89059573 launched on Node an-jenkins-deploy-platform-ansible-os-5167-2 2026-02-02 02:38:22,475 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/11fe2ab9-f1a3-45f5-82f0-7babc616d96a 2026-02-02 02:38:22,487 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/1da9f5c2-4211-40a3-9a31-4adb95847457 2026-02-02 02:38:23,666 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=5.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.62 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.621/3.646/5.672/2.025 ms') 2026-02-02 02:38:23,666 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14830583-89059573 passed 2026-02-02 02:38:23,735 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-02 02:38:23,735 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14830583-89059573, IP 204.32.109.195, Port 22 2026-02-02 02:38:23,805 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-02-02 02:38:23,884 - DEBUG - VM ctest-TestBasicPolicy-14830583-89059573 is NOT ready for SSH connections, VM status: ACTIVE 2026-02-02 02:38:28,885 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-02 02:38:28,886 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14830583-89059573, IP 204.32.109.195, Port 22 2026-02-02 02:38:29,056 - DEBUG - VM ctest-TestBasicPolicy-14830583-89059573 is ready for SSH connections 2026-02-02 02:38:29,056 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-02 02:38:29,056 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.32.109.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2026-02-02 02:38:29,056 - DEBUG - ping -s 56 -c 3 -W 1 204.32.109.195 2026-02-02 02:38:46,408 - DEBUG - PING 204.32.109.195 (204.32.109.195) 56(84) bytes of data. 64 bytes from 204.32.109.195: icmp_req=1 ttl=63 time=6.38 ms 64 bytes from 204.32.109.195: icmp_req=2 ttl=63 time=3.03 ms 64 bytes from 204.32.109.195: icmp_req=3 ttl=63 time=2.09 ms --- 204.32.109.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 2.092/3.835/6.382/1.842 ms 2026-02-02 02:38:46,409 - INFO - Ping to IP 204.32.109.195 from VM ctest-TestBasicPolicy-14830583-22003671 passed 2026-02-02 02:38:46,609 - DEBUG - Policy Update Response {"network-policy": {"uuid": "235c7f26-72bf-416e-8de6-afdfaae25e2f", "href": "http://10.0.0.23:8082/network-policy/235c7f26-72bf-416e-8de6-afdfaae25e2f"}} 2026-02-02 02:38:46,609 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-02-02 02:38:46,609 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 204.32.109.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2026-02-02 02:38:46,609 - DEBUG - ping -s 56 -c 3 -W 1 204.32.109.195 2026-02-02 02:38:50,088 - DEBUG - PING 204.32.109.195 (204.32.109.195) 56(84) bytes of data. 64 bytes from 204.32.109.195: icmp_req=1 ttl=63 time=6.12 ms --- 204.32.109.195 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 6.124/6.124/6.124/0.000 ms 2026-02-02 02:38:50,088 - WARNING - Ping to IP 204.32.109.195 from VM ctest-TestBasicPolicy-14830583-22003671 failed 2026-02-02 02:38:50,088 - INFO - Deleting VM ctest-TestBasicPolicy-14830583-89059573 2026-02-02 02:38:50,177 - INFO - Deleting VM ctest-TestBasicPolicy-14830583-22003671 2026-02-02 02:38:50,622 - INFO - Deleted policy ctest-policy-allow-all-70630144 2026-02-02 02:38:50,622 - INFO - Deleting VN ctest-vn-95522766 2026-02-02 02:38:50,667 - DEBUG - VN 6faefd48-2407-42a6-8f3d-1a588149d015 still in use: Unable to complete operation on network 6faefd48-2407-42a6-8f3d-1a588149d015. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1d7a452e-506a-4ea0-8612-816cee5b598b'] 2026-02-02 02:38:50,667 - WARNING - Deleting VN ctest-vn-95522766 failed..Will retry 2026-02-02 02:38:52,797 - DEBUG - Response for deleting network () 2026-02-02 02:38:52,797 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/be81a3ab-2095-41df-b7d6-03fdc50cb39d 2026-02-02 02:38:52,806 - DEBUG - Response Code: 404 2026-02-02 02:38:52,806 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-02 02:38:52,812 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4480bafd-5776-4d34-b387-df5887123349 2026-02-02 02:38:52,832 - DEBUG - Requesting: http://10.0.0.141:8082/project/ca97faee-0e25-4347-980e-f3a518082e15 2026-02-02 02:38:52,921 - INFO - Validated that VN ctest-vn-95522766 is not found in API Server 2026-02-02 02:38:52,932 - DEBUG - VN ctest-vn-95522766 is not present in Agent 10.0.0.50 2026-02-02 02:38:52,944 - DEBUG - VN ctest-vn-95522766 is not present in Agent 10.0.0.65 2026-02-02 02:38:52,944 - INFO - Validated that VN ctest-vn-95522766 is not in any agent 2026-02-02 02:38:52,973 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95522766 info 2026-02-02 02:38:52,973 - INFO - Deleting VN ctest-vn-53287555 2026-02-02 02:38:53,135 - DEBUG - Response for deleting network () 2026-02-02 02:38:53,135 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/64992813-2f9f-4d60-80ba-96ffe055a8c1 2026-02-02 02:38:53,145 - DEBUG - Response Code: 404 2026-02-02 02:38:53,146 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-02 02:38:53,153 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4480bafd-5776-4d34-b387-df5887123349 2026-02-02 02:38:53,207 - DEBUG - Requesting: http://10.0.0.141:8082/project/ca97faee-0e25-4347-980e-f3a518082e15 2026-02-02 02:38:53,295 - INFO - Validated that VN ctest-vn-53287555 is not found in API Server 2026-02-02 02:38:53,308 - DEBUG - VN ctest-vn-53287555 is not present in Agent 10.0.0.50 2026-02-02 02:38:53,320 - DEBUG - VN ctest-vn-53287555 is not present in Agent 10.0.0.65 2026-02-02 02:38:53,321 - INFO - Validated that VN ctest-vn-53287555 is not in any agent 2026-02-02 02:38:53,355 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53287555 info 2026-02-02 02:38:54,623 - DEBUG - No XMPP flaps were noticed during the test
2026-02-02 02:38:54,623 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:42]
2026-02-02 02:38:54,624 - INFO - -------------------------------------------------------------------------------- 2026-02-02 02:38:55,339 - INFO - Deleted project: ctest-TestBasicPolicy-14830583, ID : ca97faee-0e25-4347-980e-f3a518082e15