2026-01-05 02:35:34,040 - INFO - Domain Default found not creating 2026-01-05 02:35:34,231 - INFO - Project ctest-TestBasicPolicy-57233674 not found, creating it 2026-01-05 02:35:34,766 - INFO - Created Project:ctest-TestBasicPolicy-57233674, ID : cfe3a7ec-d04b-4e87-88bb-e41a90f4ab65 2026-01-05 02:35:36,296 - INFO - ================================================================================ 2026-01-05 02:35:36,296 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-01-05 02:35:36,296 - 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-01-05 02:35:37,583 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.25': '0', '10.20.0.129': '0'}, '10.0.0.56': {'10.20.0.254': '0', '10.20.0.129': '0'}} with 2026-01-05 02:35:37,583 - INFO - Initial checks done. Running the testcase now 2026-01-05 02:35:37,584 - INFO - 2026-01-05 02:35:38,284 - DEBUG - Response for create_network : {'network': {'id': '5f7bed28-d548-4d50-87c7-149945d7c758', 'name': 'ctest-vn-54449980', 'tenant_id': 'cfe3a7ecd04b4e8788bbe41a90f4ab65', 'project_id': 'cfe3a7ecd04b4e8788bbe41a90f4ab65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57233674', 'ctest-vn-54449980'], 'port_security_enabled': True, 'description': ''}} 2026-01-05 02:35:38,636 - DEBUG - Response for create_subnet : {'subnet': {'id': '48441d91-be82-43a8-99b9-100022e8184c', 'name': '', 'tenant_id': 'cfe3a7ecd04b4e8788bbe41a90f4ab65', 'network_id': '5f7bed28-d548-4d50-87c7-149945d7c758', 'ip_version': 4, 'cidr': '216.82.246.192/26', 'allocation_pools': [{'start': '216.82.246.194', 'end': '216.82.246.254'}], 'gateway_ip': '216.82.246.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.82.246.194', 'tags': [], 'project_id': 'cfe3a7ecd04b4e8788bbe41a90f4ab65'}} 2026-01-05 02:35:38,663 - INFO - Created VN ctest-vn-54449980 2026-01-05 02:35:38,678 - DEBUG - VN ctest-vn-54449980 UUID is 5f7bed28-d548-4d50-87c7-149945d7c758 2026-01-05 02:35:39,067 - DEBUG - Response for create_network : {'network': {'id': '53d7528a-16f7-4789-897d-9c0e7c0cba80', 'name': 'ctest-vn-38653023', 'tenant_id': 'cfe3a7ecd04b4e8788bbe41a90f4ab65', 'project_id': 'cfe3a7ecd04b4e8788bbe41a90f4ab65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57233674', 'ctest-vn-38653023'], 'port_security_enabled': True, 'description': ''}} 2026-01-05 02:35:39,305 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e646037-802d-42ca-ae68-9a5db9e5a34f', 'name': '', 'tenant_id': 'cfe3a7ecd04b4e8788bbe41a90f4ab65', 'network_id': '53d7528a-16f7-4789-897d-9c0e7c0cba80', 'ip_version': 4, 'cidr': '121.137.48.0/26', 'allocation_pools': [{'start': '121.137.48.2', 'end': '121.137.48.62'}], 'gateway_ip': '121.137.48.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.137.48.2', 'tags': [], 'project_id': 'cfe3a7ecd04b4e8788bbe41a90f4ab65'}} 2026-01-05 02:35:39,327 - INFO - Created VN ctest-vn-38653023 2026-01-05 02:35:39,342 - DEBUG - VN ctest-vn-38653023 UUID is 53d7528a-16f7-4789-897d-9c0e7c0cba80 2026-01-05 02:35:39,427 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980, 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-57233674:ctest-vn-38653023, 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-01-05 02:35:39,786 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f7bed28-d548-4d50-87c7-149945d7c758', 'name': 'ctest-vn-54449980', 'tenant_id': 'cfe3a7ecd04b4e8788bbe41a90f4ab65', 'project_id': 'cfe3a7ecd04b4e8788bbe41a90f4ab65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48441d91-be82-43a8-99b9-100022e8184c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57233674', 'ctest-vn-54449980'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57233674', 'ctest-policy-allow-all-35666579']], 'subnet_ipam': [{'subnet_cidr': '216.82.246.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-05 02:35:39,992 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53d7528a-16f7-4789-897d-9c0e7c0cba80', 'name': 'ctest-vn-38653023', 'tenant_id': 'cfe3a7ecd04b4e8788bbe41a90f4ab65', 'project_id': 'cfe3a7ecd04b4e8788bbe41a90f4ab65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e646037-802d-42ca-ae68-9a5db9e5a34f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57233674', 'ctest-vn-38653023'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57233674', 'ctest-policy-allow-all-35666579']], 'subnet_ipam': [{'subnet_cidr': '121.137.48.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-05 02:35:40,089 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-05 02:35:40,418 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-05 02:35:40,453 - DEBUG - Requesting: http://10.0.0.27:8082/domain/182056ec-3382-44e1-b0fd-9a9d794f24a6 2026-01-05 02:35:40,467 - DEBUG - Requesting: http://10.0.0.27:8082/project/cfe3a7ec-d04b-4e87-88bb-e41a90f4ab65 2026-01-05 02:35:40,551 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5f7bed28-d548-4d50-87c7-149945d7c758 2026-01-05 02:35:40,578 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5f7bed28-d548-4d50-87c7-149945d7c758 2026-01-05 02:35:40,589 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/86958a9c-afbf-4b2b-9123-bde9bafa910e 2026-01-05 02:35:40,597 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/86958a9c-afbf-4b2b-9123-bde9bafa910e 2026-01-05 02:35:40,607 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2d2c6368-b0f3-4bc7-ace4-49ca01332295 2026-01-05 02:35:40,616 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 02:35:40,616 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5f7bed28-d548-4d50-87c7-149945d7c758 2026-01-05 02:35:40,626 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/86958a9c-afbf-4b2b-9123-bde9bafa910e 2026-01-05 02:35:40,644 - INFO - Verified VN network id 14 for VN 5f7bed28-d548-4d50-87c7-149945d7c758 2026-01-05 02:35:40,644 - INFO - Verifications in API Server for VN ctest-vn-54449980 passed 2026-01-05 02:35:40,644 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5f7bed28-d548-4d50-87c7-149945d7c758 2026-01-05 02:35:40,657 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/86958a9c-afbf-4b2b-9123-bde9bafa910e 2026-01-05 02:35:40,665 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/86958a9c-afbf-4b2b-9123-bde9bafa910e 2026-01-05 02:35:40,672 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/2d2c6368-b0f3-4bc7-ace4-49ca01332295 2026-01-05 02:35:40,685 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57233674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6880353615371324752', 'uuid-lslong': '9783811364020012888'}, 'enable': 'true', 'created': '2026-01-05T02:35:38', 'last-modified': '2026-01-05T02:35:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950908'} 2026-01-05 02:35:40,691 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 02:35:40,698 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57233674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6880353615371324752', 'uuid-lslong': '9783811364020012888'}, 'enable': 'true', 'created': '2026-01-05T02:35:38', 'last-modified': '2026-01-05T02:35:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965197'} 2026-01-05 02:35:40,705 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 02:35:40,711 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57233674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6880353615371324752', 'uuid-lslong': '9783811364020012888'}, 'enable': 'true', 'created': '2026-01-05T02:35:38', 'last-modified': '2026-01-05T02:35:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974703'} 2026-01-05 02:35:40,719 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 02:35:40,719 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54449980 passed 2026-01-05 02:35:40,719 - DEBUG - ====Verifying policy data for ctest-vn-54449980 in API_Server ====== 2026-01-05 02:35:40,719 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-05 02:35:40,725 - DEBUG - Requesting: http://10.0.0.27:8082/domain/182056ec-3382-44e1-b0fd-9a9d794f24a6 2026-01-05 02:35:40,737 - DEBUG - Requesting: http://10.0.0.27:8082/project/cfe3a7ec-d04b-4e87-88bb-e41a90f4ab65 2026-01-05 02:35:40,835 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5f7bed28-d548-4d50-87c7-149945d7c758 2026-01-05 02:35:40,847 - DEBUG - ==>Verifying data for policy with id: 24b35ae9-2caa-4efc-89d4-8c4883586580, fqn: ['default-domain', 'ctest-TestBasicPolicy-57233674', 'ctest-policy-allow-all-35666579'] 2026-01-05 02:35:40,847 - INFO - VN ctest-vn-54449980 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-05 02:35:40,847 - DEBUG - Verifying the vn in opserver 2026-01-05 02:35:40,847 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980 virtual network link through opserver 10.0.0.27 2026-01-05 02:35:40,848 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-05 02:35:41,129 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-05 02:35:41,200 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980?flat'} 2026-01-05 02:35:41,200 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980 virtual network link through opserver 10.0.0.33 2026-01-05 02:35:41,200 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-05 02:35:41,474 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-05 02:35:41,546 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980?flat'} 2026-01-05 02:35:41,546 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980 virtual network link through opserver 10.0.0.23 2026-01-05 02:35:41,546 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-05 02:35:41,826 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-05 02:35:41,903 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980?flat'} 2026-01-05 02:35:41,903 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980 is found in opserver 2026-01-05 02:35:41,925 - DEBUG - Do not have enough data to verify VN in agent 2026-01-05 02:35:41,936 - DEBUG - VRF ids for VN ctest-vn-54449980: {} 2026-01-05 02:35:41,936 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-05 02:35:41,943 - DEBUG - Requesting: http://10.0.0.27:8082/domain/182056ec-3382-44e1-b0fd-9a9d794f24a6 2026-01-05 02:35:41,957 - DEBUG - Requesting: http://10.0.0.27:8082/project/cfe3a7ec-d04b-4e87-88bb-e41a90f4ab65 2026-01-05 02:35:42,063 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/53d7528a-16f7-4789-897d-9c0e7c0cba80 2026-01-05 02:35:42,075 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/53d7528a-16f7-4789-897d-9c0e7c0cba80 2026-01-05 02:35:42,086 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dce82efa-4141-4a02-a336-792c7c7f7523 2026-01-05 02:35:42,094 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dce82efa-4141-4a02-a336-792c7c7f7523 2026-01-05 02:35:42,104 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8b6fecbd-72ba-4da1-9e71-389ec4777b29 2026-01-05 02:35:42,115 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-05 02:35:42,115 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/53d7528a-16f7-4789-897d-9c0e7c0cba80 2026-01-05 02:35:42,125 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dce82efa-4141-4a02-a336-792c7c7f7523 2026-01-05 02:35:42,144 - INFO - Verified VN network id 15 for VN 53d7528a-16f7-4789-897d-9c0e7c0cba80 2026-01-05 02:35:42,144 - INFO - Verifications in API Server for VN ctest-vn-38653023 passed 2026-01-05 02:35:42,144 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/53d7528a-16f7-4789-897d-9c0e7c0cba80 2026-01-05 02:35:42,157 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dce82efa-4141-4a02-a336-792c7c7f7523 2026-01-05 02:35:42,165 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dce82efa-4141-4a02-a336-792c7c7f7523 2026-01-05 02:35:42,173 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/8b6fecbd-72ba-4da1-9e71-389ec4777b29 2026-01-05 02:35:42,184 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57233674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6041388178185078665', 'uuid-lslong': '9907246341309643392'}, 'enable': 'true', 'created': '2026-01-05T02:35:38', 'last-modified': '2026-01-05T02:35:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.232137'} 2026-01-05 02:35:42,191 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-05 02:35:42,197 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57233674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6041388178185078665', 'uuid-lslong': '9907246341309643392'}, 'enable': 'true', 'created': '2026-01-05T02:35:38', 'last-modified': '2026-01-05T02:35:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.245953'} 2026-01-05 02:35:42,205 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-05 02:35:42,216 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57233674', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6041388178185078665', 'uuid-lslong': '9907246341309643392'}, 'enable': 'true', 'created': '2026-01-05T02:35:38', 'last-modified': '2026-01-05T02:35:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.264092'} 2026-01-05 02:35:42,229 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-05 02:35:42,229 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38653023 passed 2026-01-05 02:35:42,230 - DEBUG - ====Verifying policy data for ctest-vn-38653023 in API_Server ====== 2026-01-05 02:35:42,230 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-05 02:35:42,239 - DEBUG - Requesting: http://10.0.0.27:8082/domain/182056ec-3382-44e1-b0fd-9a9d794f24a6 2026-01-05 02:35:42,251 - DEBUG - Requesting: http://10.0.0.27:8082/project/cfe3a7ec-d04b-4e87-88bb-e41a90f4ab65 2026-01-05 02:35:42,351 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/53d7528a-16f7-4789-897d-9c0e7c0cba80 2026-01-05 02:35:42,361 - DEBUG - ==>Verifying data for policy with id: 24b35ae9-2caa-4efc-89d4-8c4883586580, fqn: ['default-domain', 'ctest-TestBasicPolicy-57233674', 'ctest-policy-allow-all-35666579'] 2026-01-05 02:35:42,361 - INFO - VN ctest-vn-38653023 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-05 02:35:42,362 - DEBUG - Verifying the vn in opserver 2026-01-05 02:35:42,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023 virtual network link through opserver 10.0.0.27 2026-01-05 02:35:42,362 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-05 02:35:42,435 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023?flat'} 2026-01-05 02:35:42,435 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023 virtual network link through opserver 10.0.0.33 2026-01-05 02:35:42,435 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-05 02:35:42,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023?flat'} 2026-01-05 02:35:42,516 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023 virtual network link through opserver 10.0.0.23 2026-01-05 02:35:42,516 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-05 02:35:42,625 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023?flat'} 2026-01-05 02:35:42,625 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-38653023 is found in opserver 2026-01-05 02:35:42,647 - DEBUG - Do not have enough data to verify VN in agent 2026-01-05 02:35:42,668 - DEBUG - VRF ids for VN ctest-vn-38653023: {} 2026-01-05 02:35:42,801 - DEBUG - Services list from nova: [, , , ] 2026-01-05 02:35:44,116 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4961-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4961-2) 2026-01-05 02:35:45,543 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4961-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4961-1) 2026-01-05 02:35:45,543 - INFO - Waiting for VM ctest-TestBasicPolicy-57233674-78886723 to be up.. 2026-01-05 02:35:45,654 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-01-05 02:35:50,744 - DEBUG - VM is in ACTIVE state now 2026-01-05 02:35:50,744 - INFO - VM name : ctest-TestBasicPolicy-57233674-78886723 2026-01-05 02:35:50,829 - DEBUG - VM ctest-TestBasicPolicy-57233674-78886723 ID is 6acbb57d-5b3a-4934-8258-fd4bee75e69f 2026-01-05 02:35:50,855 - DEBUG - VM ctest-TestBasicPolicy-57233674-78886723 launched on Node an-jenkins-deploy-platform-ansible-os-4961-2 2026-01-05 02:35:50,948 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/6acbb57d-5b3a-4934-8258-fd4bee75e69f 2026-01-05 02:35:51,236 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/6acbb57d-5b3a-4934-8258-fd4bee75e69f 2026-01-05 02:35:51,272 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/69dbd641-a5e4-44b3-8542-fc792f963d9d 2026-01-05 02:35:54,440 - 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-01-05 02:35:54,440 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57233674-78886723 failed! 2026-01-05 02:35:54,456 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980 is 216.82.246.193 and allocation pool is NOT set 2026-01-05 02:35:58,548 - 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 1018ms') 2026-01-05 02:35:58,548 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57233674-78886723 failed! 2026-01-05 02:35:58,564 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980 is 216.82.246.193 and allocation pool is NOT set 2026-01-05 02:36:02,630 - 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 1004ms') 2026-01-05 02:36:02,630 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57233674-78886723 failed! 2026-01-05 02:36:02,644 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980 is 216.82.246.193 and allocation pool is NOT set 2026-01-05 02:36:06,725 - 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 1020ms') 2026-01-05 02:36:06,725 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57233674-78886723 failed! 2026-01-05 02:36:06,740 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980 is 216.82.246.193 and allocation pool is NOT set 2026-01-05 02:36:10,822 - 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 1021ms') 2026-01-05 02:36:10,822 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57233674-78886723 failed! 2026-01-05 02:36:10,840 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980 is 216.82.246.193 and allocation pool is NOT set 2026-01-05 02:36:14,923 - 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-01-05 02:36:14,923 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57233674-78886723 failed! 2026-01-05 02:36:14,937 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980 is 216.82.246.193 and allocation pool is NOT set 2026-01-05 02:36:19,018 - 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-01-05 02:36:19,018 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57233674-78886723 failed! 2026-01-05 02:36:19,032 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980 is 216.82.246.193 and allocation pool is NOT set 2026-01-05 02:36:23,113 - 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-01-05 02:36:23,113 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57233674-78886723 failed! 2026-01-05 02:36:23,128 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-57233674:ctest-vn-54449980 is 216.82.246.193 and allocation pool is NOT set 2026-01-05 02:36:25,187 - 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.81 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.17 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 = 1.165/3.488/5.812/2.323 ms') 2026-01-05 02:36:25,187 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57233674-78886723 passed 2026-01-05 02:36:25,258 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-05 02:36:25,259 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57233674-78886723, IP 216.82.246.195, Port 22 2026-01-05 02:36:25,318 - 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-01-05 02:36:25,408 - DEBUG - VM ctest-TestBasicPolicy-57233674-78886723 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-05 02:36:30,409 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-05 02:36:30,409 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57233674-78886723, IP 216.82.246.195, Port 22 2026-01-05 02:36:30,465 - 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-01-05 02:36:30,548 - DEBUG - VM ctest-TestBasicPolicy-57233674-78886723 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-05 02:36:35,550 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-05 02:36:35,550 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57233674-78886723, IP 216.82.246.195, Port 22 2026-01-05 02:36:35,615 - 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-01-05 02:36:35,710 - DEBUG - VM ctest-TestBasicPolicy-57233674-78886723 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-05 02:36:40,711 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-05 02:36:40,711 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57233674-78886723, IP 216.82.246.195, Port 22 2026-01-05 02:36:40,780 - 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-01-05 02:36:40,861 - DEBUG - VM ctest-TestBasicPolicy-57233674-78886723 is NOT ready for SSH connections, VM status: ACTIVE 2026-01-05 02:36:45,861 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-05 02:36:45,861 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57233674-78886723, IP 216.82.246.195, Port 22 2026-01-05 02:36:46,028 - DEBUG - VM ctest-TestBasicPolicy-57233674-78886723 is ready for SSH connections 2026-01-05 02:36:46,028 - INFO - Waiting for VM ctest-TestBasicPolicy-57233674-72434835 to be up.. 2026-01-05 02:36:46,158 - DEBUG - VM is in ACTIVE state now 2026-01-05 02:36:46,158 - INFO - VM name : ctest-TestBasicPolicy-57233674-72434835 2026-01-05 02:36:46,255 - DEBUG - VM ctest-TestBasicPolicy-57233674-72434835 ID is 0728f836-9ff0-4a26-841e-c6893ab6c50b 2026-01-05 02:36:46,255 - DEBUG - VM ctest-TestBasicPolicy-57233674-72434835 launched on Node an-jenkins-deploy-platform-ansible-os-4961-1 2026-01-05 02:36:46,358 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/0728f836-9ff0-4a26-841e-c6893ab6c50b 2026-01-05 02:36:46,368 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/0dcff8a6-6d5d-4b00-b6cf-15aa52df7b3c 2026-01-05 02:36:47,526 - 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=3.87 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.23 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.227/3.049/3.871/0.822 ms') 2026-01-05 02:36:47,526 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-57233674-72434835 passed 2026-01-05 02:36:47,594 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-05 02:36:47,594 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-57233674-72434835, IP 121.137.48.3, Port 22 2026-01-05 02:36:47,763 - DEBUG - VM ctest-TestBasicPolicy-57233674-72434835 is ready for SSH connections 2026-01-05 02:36:47,763 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-05 02:36:47,763 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.137.48.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2026-01-05 02:36:47,763 - DEBUG - ping -s 56 -c 3 -W 1 121.137.48.3 2026-01-05 02:37:08,410 - DEBUG - PING 121.137.48.3 (121.137.48.3) 56(84) bytes of data. 64 bytes from 121.137.48.3: icmp_req=1 ttl=63 time=7.32 ms 64 bytes from 121.137.48.3: icmp_req=2 ttl=63 time=3.70 ms 64 bytes from 121.137.48.3: icmp_req=3 ttl=63 time=3.48 ms --- 121.137.48.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 3.485/4.838/7.323/1.760 ms 2026-01-05 02:37:08,410 - INFO - Ping to IP 121.137.48.3 from VM ctest-TestBasicPolicy-57233674-78886723 passed 2026-01-05 02:37:08,618 - DEBUG - Policy Update Response {"network-policy": {"uuid": "24b35ae9-2caa-4efc-89d4-8c4883586580", "href": "http://10.0.0.23:8082/network-policy/24b35ae9-2caa-4efc-89d4-8c4883586580"}} 2026-01-05 02:37:08,618 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-01-05 02:37:08,618 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.137.48.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.56, gateway password: c0ntrail123 2026-01-05 02:37:08,618 - DEBUG - ping -s 56 -c 3 -W 1 121.137.48.3 2026-01-05 02:37:12,101 - DEBUG - PING 121.137.48.3 (121.137.48.3) 56(84) bytes of data. 64 bytes from 121.137.48.3: icmp_req=1 ttl=63 time=4.85 ms --- 121.137.48.3 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2010ms rtt min/avg/max/mdev = 4.859/4.859/4.859/0.000 ms 2026-01-05 02:37:12,101 - WARNING - Ping to IP 121.137.48.3 from VM ctest-TestBasicPolicy-57233674-78886723 failed 2026-01-05 02:37:12,101 - INFO - Deleting VM ctest-TestBasicPolicy-57233674-72434835 2026-01-05 02:37:12,179 - INFO - Deleting VM ctest-TestBasicPolicy-57233674-78886723 2026-01-05 02:37:12,617 - INFO - Deleted policy ctest-policy-allow-all-35666579 2026-01-05 02:37:12,617 - INFO - Deleting VN ctest-vn-38653023 2026-01-05 02:37:12,675 - DEBUG - VN 53d7528a-16f7-4789-897d-9c0e7c0cba80 still in use: Unable to complete operation on network 53d7528a-16f7-4789-897d-9c0e7c0cba80. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3941ded4-6480-4c65-9280-07ad87bc7eea'] 2026-01-05 02:37:12,675 - WARNING - Deleting VN ctest-vn-38653023 failed..Will retry 2026-01-05 02:37:14,852 - DEBUG - Response for deleting network () 2026-01-05 02:37:14,852 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/dce82efa-4141-4a02-a336-792c7c7f7523 2026-01-05 02:37:14,858 - DEBUG - Response Code: 404 2026-01-05 02:37:14,858 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-05 02:37:14,865 - DEBUG - Requesting: http://10.0.0.27:8082/domain/182056ec-3382-44e1-b0fd-9a9d794f24a6 2026-01-05 02:37:14,894 - DEBUG - Requesting: http://10.0.0.27:8082/project/cfe3a7ec-d04b-4e87-88bb-e41a90f4ab65 2026-01-05 02:37:14,979 - INFO - Validated that VN ctest-vn-38653023 is not found in API Server 2026-01-05 02:37:14,994 - DEBUG - VN ctest-vn-38653023 is not present in Agent 10.0.0.57 2026-01-05 02:37:15,009 - DEBUG - VN ctest-vn-38653023 is not present in Agent 10.0.0.56 2026-01-05 02:37:15,010 - INFO - Validated that VN ctest-vn-38653023 is not in any agent 2026-01-05 02:37:15,042 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-38653023 info 2026-01-05 02:37:15,042 - INFO - Deleting VN ctest-vn-54449980 2026-01-05 02:37:15,205 - DEBUG - Response for deleting network () 2026-01-05 02:37:15,205 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/86958a9c-afbf-4b2b-9123-bde9bafa910e 2026-01-05 02:37:15,211 - DEBUG - Response Code: 404 2026-01-05 02:37:15,211 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-05 02:37:15,219 - DEBUG - Requesting: http://10.0.0.27:8082/domain/182056ec-3382-44e1-b0fd-9a9d794f24a6 2026-01-05 02:37:15,239 - DEBUG - Requesting: http://10.0.0.27:8082/project/cfe3a7ec-d04b-4e87-88bb-e41a90f4ab65 2026-01-05 02:37:15,338 - INFO - Validated that VN ctest-vn-54449980 is not found in API Server 2026-01-05 02:37:15,348 - DEBUG - VN ctest-vn-54449980 is not present in Agent 10.0.0.57 2026-01-05 02:37:15,357 - DEBUG - VN ctest-vn-54449980 is not present in Agent 10.0.0.56 2026-01-05 02:37:15,357 - INFO - Validated that VN ctest-vn-54449980 is not in any agent 2026-01-05 02:37:15,389 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54449980 info 2026-01-05 02:37:16,676 - DEBUG - No XMPP flaps were noticed during the test
2026-01-05 02:37:16,676 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:40]
2026-01-05 02:37:16,677 - INFO - -------------------------------------------------------------------------------- 2026-01-05 02:37:17,408 - INFO - Deleted project: ctest-TestBasicPolicy-57233674, ID : cfe3a7ec-d04b-4e87-88bb-e41a90f4ab65