2025-01-10 09:43:25,167 - INFO - Domain Default found not creating 2025-01-10 09:43:25,337 - INFO - Project ctest-TestBasicPolicy-48864971 not found, creating it 2025-01-10 09:43:25,899 - INFO - Created Project:ctest-TestBasicPolicy-48864971, ID : 22f77a83-5367-4208-a0fe-87ec9f7e6ac3 2025-01-10 09:43:27,438 - INFO - ================================================================================ 2025-01-10 09:43:27,438 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-10 09:43:27,438 - 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 2025-01-10 09:43:28,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.5': '0', '10.20.0.12': '0'}, '10.0.0.33': {'10.20.0.5': '0', '10.20.0.12': '0'}} with 2025-01-10 09:43:28,705 - INFO - Initial checks done. Running the testcase now 2025-01-10 09:43:28,705 - INFO - 2025-01-10 09:43:29,490 - DEBUG - Response for create_network : {'network': {'id': '7d259ec6-0c9f-4a10-aa54-e8301867c16a', 'name': 'ctest-vn-93131943', 'tenant_id': '22f77a8353674208a0fe87ec9f7e6ac3', 'project_id': '22f77a8353674208a0fe87ec9f7e6ac3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48864971', 'ctest-vn-93131943'], 'port_security_enabled': True, 'description': ''}} 2025-01-10 09:43:29,823 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f3adffd-d72b-40a5-87de-649d24ff4c06', 'name': '', 'tenant_id': '22f77a8353674208a0fe87ec9f7e6ac3', 'network_id': '7d259ec6-0c9f-4a10-aa54-e8301867c16a', 'ip_version': 4, 'cidr': '166.249.100.192/26', 'allocation_pools': [{'start': '166.249.100.194', 'end': '166.249.100.254'}], 'gateway_ip': '166.249.100.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.249.100.194', 'tags': [], 'project_id': '22f77a8353674208a0fe87ec9f7e6ac3'}} 2025-01-10 09:43:29,866 - INFO - Created VN ctest-vn-93131943 2025-01-10 09:43:29,880 - DEBUG - VN ctest-vn-93131943 UUID is 7d259ec6-0c9f-4a10-aa54-e8301867c16a 2025-01-10 09:43:30,336 - DEBUG - Response for create_network : {'network': {'id': 'a9f0b320-ffca-4f50-a249-40d02145012d', 'name': 'ctest-vn-26098833', 'tenant_id': '22f77a8353674208a0fe87ec9f7e6ac3', 'project_id': '22f77a8353674208a0fe87ec9f7e6ac3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48864971', 'ctest-vn-26098833'], 'port_security_enabled': True, 'description': ''}} 2025-01-10 09:43:30,641 - DEBUG - Response for create_subnet : {'subnet': {'id': '937e5af4-dec4-4575-ae02-84407ace2389', 'name': '', 'tenant_id': '22f77a8353674208a0fe87ec9f7e6ac3', 'network_id': 'a9f0b320-ffca-4f50-a249-40d02145012d', 'ip_version': 4, 'cidr': '190.23.242.64/26', 'allocation_pools': [{'start': '190.23.242.66', 'end': '190.23.242.126'}], 'gateway_ip': '190.23.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.23.242.66', 'tags': [], 'project_id': '22f77a8353674208a0fe87ec9f7e6ac3'}} 2025-01-10 09:43:30,670 - INFO - Created VN ctest-vn-26098833 2025-01-10 09:43:30,687 - DEBUG - VN ctest-vn-26098833 UUID is a9f0b320-ffca-4f50-a249-40d02145012d 2025-01-10 09:43:30,785 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943, 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-48864971:ctest-vn-26098833, 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-01-10 09:43:31,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d259ec6-0c9f-4a10-aa54-e8301867c16a', 'name': 'ctest-vn-93131943', 'tenant_id': '22f77a8353674208a0fe87ec9f7e6ac3', 'project_id': '22f77a8353674208a0fe87ec9f7e6ac3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f3adffd-d72b-40a5-87de-649d24ff4c06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48864971', 'ctest-vn-93131943'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48864971', 'ctest-policy-allow-all-84093957']], 'subnet_ipam': [{'subnet_cidr': '166.249.100.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-10 09:43:31,492 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9f0b320-ffca-4f50-a249-40d02145012d', 'name': 'ctest-vn-26098833', 'tenant_id': '22f77a8353674208a0fe87ec9f7e6ac3', 'project_id': '22f77a8353674208a0fe87ec9f7e6ac3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['937e5af4-dec4-4575-ae02-84407ace2389'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48864971', 'ctest-vn-26098833'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48864971', 'ctest-policy-allow-all-84093957']], 'subnet_ipam': [{'subnet_cidr': '190.23.242.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-10 09:43:31,648 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-10 09:43:32,095 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-10 09:43:32,148 - DEBUG - Requesting: http://10.0.0.30:8082/domain/9d97cda5-b041-47d1-8a65-cf8886a92f43 2025-01-10 09:43:32,177 - DEBUG - Requesting: http://10.0.0.30:8082/project/22f77a83-5367-4208-a0fe-87ec9f7e6ac3 2025-01-10 09:43:32,320 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/7d259ec6-0c9f-4a10-aa54-e8301867c16a 2025-01-10 09:43:32,341 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/7d259ec6-0c9f-4a10-aa54-e8301867c16a 2025-01-10 09:43:32,361 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1356d7c6-dca2-4c50-8621-751b143d9b5c 2025-01-10 09:43:32,377 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1356d7c6-dca2-4c50-8621-751b143d9b5c 2025-01-10 09:43:32,387 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/87c8fffd-4527-44f8-ba77-540ea9948919 2025-01-10 09:43:32,398 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-10 09:43:32,398 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/7d259ec6-0c9f-4a10-aa54-e8301867c16a 2025-01-10 09:43:32,413 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1356d7c6-dca2-4c50-8621-751b143d9b5c 2025-01-10 09:43:32,436 - INFO - Verified VN network id 7 for VN 7d259ec6-0c9f-4a10-aa54-e8301867c16a 2025-01-10 09:43:32,436 - INFO - Verifications in API Server for VN ctest-vn-93131943 passed 2025-01-10 09:43:32,437 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/7d259ec6-0c9f-4a10-aa54-e8301867c16a 2025-01-10 09:43:32,452 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1356d7c6-dca2-4c50-8621-751b143d9b5c 2025-01-10 09:43:32,462 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1356d7c6-dca2-4c50-8621-751b143d9b5c 2025-01-10 09:43:32,472 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/87c8fffd-4527-44f8-ba77-540ea9948919 2025-01-10 09:43:32,489 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48864971', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9017788402331765264', 'uuid-lslong': '12273690177756971370'}, 'enable': 'true', 'created': '2025-01-10T09:43:29', 'last-modified': '2025-01-10T09:43:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.353969'} 2025-01-10 09:43:32,495 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-10 09:43:32,501 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48864971', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9017788402331765264', 'uuid-lslong': '12273690177756971370'}, 'enable': 'true', 'created': '2025-01-10T09:43:29', 'last-modified': '2025-01-10T09:43:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.353573'} 2025-01-10 09:43:32,508 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-10 09:43:32,516 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48864971', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9017788402331765264', 'uuid-lslong': '12273690177756971370'}, 'enable': 'true', 'created': '2025-01-10T09:43:29', 'last-modified': '2025-01-10T09:43:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.359779'} 2025-01-10 09:43:32,524 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-10 09:43:32,524 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93131943 passed 2025-01-10 09:43:32,525 - DEBUG - ====Verifying policy data for ctest-vn-93131943 in API_Server ====== 2025-01-10 09:43:32,525 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-10 09:43:32,533 - DEBUG - Requesting: http://10.0.0.30:8082/domain/9d97cda5-b041-47d1-8a65-cf8886a92f43 2025-01-10 09:43:32,547 - DEBUG - Requesting: http://10.0.0.30:8082/project/22f77a83-5367-4208-a0fe-87ec9f7e6ac3 2025-01-10 09:43:32,664 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/7d259ec6-0c9f-4a10-aa54-e8301867c16a 2025-01-10 09:43:32,683 - DEBUG - ==>Verifying data for policy with id: 30e8a499-35a3-492d-a76b-a138e25f321d, fqn: ['default-domain', 'ctest-TestBasicPolicy-48864971', 'ctest-policy-allow-all-84093957'] 2025-01-10 09:43:32,684 - INFO - VN ctest-vn-93131943 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-10 09:43:32,684 - DEBUG - Verifying the vn in opserver 2025-01-10 09:43:32,684 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943 virtual network link through opserver 10.0.0.30 2025-01-10 09:43:32,684 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-01-10 09:43:33,008 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-01-10 09:43:33,074 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943?flat'} 2025-01-10 09:43:33,074 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943 virtual network link through opserver 10.0.0.27 2025-01-10 09:43:33,074 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-01-10 09:43:33,381 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-01-10 09:43:33,455 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943?flat'} 2025-01-10 09:43:33,455 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943 virtual network link through opserver 10.0.0.31 2025-01-10 09:43:33,455 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-01-10 09:43:33,761 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-01-10 09:43:33,829 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943?flat'} 2025-01-10 09:43:33,829 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943 is found in opserver 2025-01-10 09:43:33,857 - DEBUG - Do not have enough data to verify VN in agent 2025-01-10 09:43:33,870 - DEBUG - VRF ids for VN ctest-vn-93131943: {} 2025-01-10 09:43:33,870 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-10 09:43:33,877 - DEBUG - Requesting: http://10.0.0.30:8082/domain/9d97cda5-b041-47d1-8a65-cf8886a92f43 2025-01-10 09:43:33,892 - DEBUG - Requesting: http://10.0.0.30:8082/project/22f77a83-5367-4208-a0fe-87ec9f7e6ac3 2025-01-10 09:43:34,009 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a9f0b320-ffca-4f50-a249-40d02145012d 2025-01-10 09:43:34,032 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a9f0b320-ffca-4f50-a249-40d02145012d 2025-01-10 09:43:34,045 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/5a5b3668-9a5d-460a-ba54-4e5ba1e49877 2025-01-10 09:43:34,056 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/5a5b3668-9a5d-460a-ba54-4e5ba1e49877 2025-01-10 09:43:34,066 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/36984ecc-b080-44f2-a9aa-419129a156ab 2025-01-10 09:43:34,080 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-10 09:43:34,080 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a9f0b320-ffca-4f50-a249-40d02145012d 2025-01-10 09:43:34,092 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/5a5b3668-9a5d-460a-ba54-4e5ba1e49877 2025-01-10 09:43:34,111 - INFO - Verified VN network id 8 for VN a9f0b320-ffca-4f50-a249-40d02145012d 2025-01-10 09:43:34,112 - INFO - Verifications in API Server for VN ctest-vn-26098833 passed 2025-01-10 09:43:34,112 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a9f0b320-ffca-4f50-a249-40d02145012d 2025-01-10 09:43:34,126 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/5a5b3668-9a5d-460a-ba54-4e5ba1e49877 2025-01-10 09:43:34,136 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/5a5b3668-9a5d-460a-ba54-4e5ba1e49877 2025-01-10 09:43:34,145 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/36984ecc-b080-44f2-a9aa-419129a156ab 2025-01-10 09:43:34,167 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48864971', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12245484341132152656', 'uuid-lslong': '11693949170099749165'}, 'enable': 'true', 'created': '2025-01-10T09:43:30', 'last-modified': '2025-01-10T09:43:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.720095'} 2025-01-10 09:43:34,177 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-10 09:43:34,184 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48864971', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12245484341132152656', 'uuid-lslong': '11693949170099749165'}, 'enable': 'true', 'created': '2025-01-10T09:43:30', 'last-modified': '2025-01-10T09:43:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.741994'} 2025-01-10 09:43:34,194 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-10 09:43:34,201 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48864971', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12245484341132152656', 'uuid-lslong': '11693949170099749165'}, 'enable': 'true', 'created': '2025-01-10T09:43:30', 'last-modified': '2025-01-10T09:43:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.754341'} 2025-01-10 09:43:34,209 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-10 09:43:34,209 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26098833 passed 2025-01-10 09:43:34,210 - DEBUG - ====Verifying policy data for ctest-vn-26098833 in API_Server ====== 2025-01-10 09:43:34,210 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-10 09:43:34,219 - DEBUG - Requesting: http://10.0.0.30:8082/domain/9d97cda5-b041-47d1-8a65-cf8886a92f43 2025-01-10 09:43:34,235 - DEBUG - Requesting: http://10.0.0.30:8082/project/22f77a83-5367-4208-a0fe-87ec9f7e6ac3 2025-01-10 09:43:34,369 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a9f0b320-ffca-4f50-a249-40d02145012d 2025-01-10 09:43:34,383 - DEBUG - ==>Verifying data for policy with id: 30e8a499-35a3-492d-a76b-a138e25f321d, fqn: ['default-domain', 'ctest-TestBasicPolicy-48864971', 'ctest-policy-allow-all-84093957'] 2025-01-10 09:43:34,383 - INFO - VN ctest-vn-26098833 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-10 09:43:34,383 - DEBUG - Verifying the vn in opserver 2025-01-10 09:43:34,384 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833 virtual network link through opserver 10.0.0.30 2025-01-10 09:43:34,384 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2025-01-10 09:43:34,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833?flat'} 2025-01-10 09:43:34,444 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833 virtual network link through opserver 10.0.0.27 2025-01-10 09:43:34,444 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-01-10 09:43:34,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833?flat'} 2025-01-10 09:43:34,501 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833 virtual network link through opserver 10.0.0.31 2025-01-10 09:43:34,501 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2025-01-10 09:43:34,565 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833?flat'} 2025-01-10 09:43:34,565 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-26098833 is found in opserver 2025-01-10 09:43:34,594 - DEBUG - Do not have enough data to verify VN in agent 2025-01-10 09:43:34,608 - DEBUG - VRF ids for VN ctest-vn-26098833: {} 2025-01-10 09:43:34,668 - DEBUG - Services list from nova: [, , , ] 2025-01-10 09:43:35,873 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2598-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2598-2) 2025-01-10 09:43:37,274 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-2598-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-2598-1) 2025-01-10 09:43:37,274 - INFO - Waiting for VM ctest-TestBasicPolicy-48864971-37493331 to be up.. 2025-01-10 09:43:37,381 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-10 09:43:42,483 - DEBUG - VM is in ACTIVE state now 2025-01-10 09:43:42,483 - INFO - VM name : ctest-TestBasicPolicy-48864971-37493331 2025-01-10 09:43:42,583 - DEBUG - VM ctest-TestBasicPolicy-48864971-37493331 ID is 78d1ba53-8a6c-4c0c-aba7-e726452d2244 2025-01-10 09:43:42,611 - DEBUG - VM ctest-TestBasicPolicy-48864971-37493331 launched on Node an-jenkins-deploy-platform-ansible-os-2598-2 2025-01-10 09:43:42,714 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/78d1ba53-8a6c-4c0c-aba7-e726452d2244 2025-01-10 09:43:43,023 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/78d1ba53-8a6c-4c0c-aba7-e726452d2244 2025-01-10 09:43:43,114 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/a72c5301-94d6-4a6b-b350-3619e1dc68bc 2025-01-10 09:43:46,370 - 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 1011ms') 2025-01-10 09:43:46,371 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48864971-37493331 failed! 2025-01-10 09:43:46,389 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-48864971:ctest-vn-93131943 is 166.249.100.193 and allocation pool is NOT set 2025-01-10 09:43:48,451 - 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=6.00 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.34 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.340/3.668/5.997/2.328 ms') 2025-01-10 09:43:48,451 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48864971-37493331 passed 2025-01-10 09:43:48,573 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 09:43:48,573 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48864971-37493331, IP 166.249.100.195, Port 22 2025-01-10 09:43:48,729 - DEBUG - VM ctest-TestBasicPolicy-48864971-37493331 is ready for SSH connections 2025-01-10 09:43:48,729 - INFO - Waiting for VM ctest-TestBasicPolicy-48864971-83155325 to be up.. 2025-01-10 09:43:48,842 - DEBUG - VM is in ACTIVE state now 2025-01-10 09:43:48,842 - INFO - VM name : ctest-TestBasicPolicy-48864971-83155325 2025-01-10 09:43:48,949 - DEBUG - VM ctest-TestBasicPolicy-48864971-83155325 ID is be3ce776-a27d-4c6a-a7ba-b209a4fc462b 2025-01-10 09:43:48,949 - DEBUG - VM ctest-TestBasicPolicy-48864971-83155325 launched on Node an-jenkins-deploy-platform-ansible-os-2598-1 2025-01-10 09:43:49,053 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/be3ce776-a27d-4c6a-a7ba-b209a4fc462b 2025-01-10 09:43:49,068 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/cad49431-7842-4fb9-8e24-16b9085edf65 2025-01-10 09:43:50,277 - 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.93 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.464 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.464/2.198/3.932/1.734 ms') 2025-01-10 09:43:50,277 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-48864971-83155325 passed 2025-01-10 09:43:50,398 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 09:43:50,398 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-48864971-83155325, IP 190.23.242.67, Port 22 2025-01-10 09:43:50,554 - DEBUG - VM ctest-TestBasicPolicy-48864971-83155325 is ready for SSH connections 2025-01-10 09:43:50,554 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 09:43:50,554 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 190.23.242.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-01-10 09:43:50,555 - DEBUG - ping -s 56 -c 3 -W 1 190.23.242.67 2025-01-10 09:43:54,506 - DEBUG - PING 190.23.242.67 (190.23.242.67): 56 data bytes 64 bytes from 190.23.242.67: seq=0 ttl=63 time=5.923 ms 64 bytes from 190.23.242.67: seq=1 ttl=63 time=1.295 ms 64 bytes from 190.23.242.67: seq=2 ttl=63 time=1.366 ms --- 190.23.242.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.295/2.861/5.923 ms 2025-01-10 09:43:54,507 - INFO - Ping to IP 190.23.242.67 from VM ctest-TestBasicPolicy-48864971-37493331 passed 2025-01-10 09:43:54,746 - DEBUG - Policy Update Response {"network-policy": {"uuid": "30e8a499-35a3-492d-a76b-a138e25f321d", "href": "http://10.0.0.31:8082/network-policy/30e8a499-35a3-492d-a76b-a138e25f321d"}} 2025-01-10 09:43:54,746 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-10 09:43:54,746 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 190.23.242.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2025-01-10 09:43:54,747 - DEBUG - ping -s 56 -c 3 -W 1 190.23.242.67 2025-01-10 09:43:57,944 - DEBUG - PING 190.23.242.67 (190.23.242.67): 56 data bytes --- 190.23.242.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-01-10 09:43:57,944 - WARNING - Ping to IP 190.23.242.67 from VM ctest-TestBasicPolicy-48864971-37493331 failed 2025-01-10 09:43:57,944 - INFO - Deleting VM ctest-TestBasicPolicy-48864971-83155325 2025-01-10 09:43:58,047 - INFO - Deleting VM ctest-TestBasicPolicy-48864971-37493331 2025-01-10 09:43:58,636 - INFO - Deleted policy ctest-policy-allow-all-84093957 2025-01-10 09:43:58,636 - INFO - Deleting VN ctest-vn-26098833 2025-01-10 09:43:58,752 - DEBUG - VN a9f0b320-ffca-4f50-a249-40d02145012d still in use: Unable to complete operation on network a9f0b320-ffca-4f50-a249-40d02145012d. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1e59e568-fc37-4434-8232-385f10013b82'] 2025-01-10 09:43:58,752 - WARNING - Deleting VN ctest-vn-26098833 failed..Will retry 2025-01-10 09:44:00,947 - DEBUG - Response for deleting network () 2025-01-10 09:44:00,947 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/5a5b3668-9a5d-460a-ba54-4e5ba1e49877 2025-01-10 09:44:00,955 - DEBUG - Response Code: 404 2025-01-10 09:44:00,955 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-10 09:44:00,962 - DEBUG - Requesting: http://10.0.0.30:8082/domain/9d97cda5-b041-47d1-8a65-cf8886a92f43 2025-01-10 09:44:01,020 - DEBUG - Requesting: http://10.0.0.30:8082/project/22f77a83-5367-4208-a0fe-87ec9f7e6ac3 2025-01-10 09:44:01,137 - INFO - Validated that VN ctest-vn-26098833 is not found in API Server 2025-01-10 09:44:01,153 - DEBUG - VN ctest-vn-26098833 is not present in Agent 10.0.0.37 2025-01-10 09:44:01,173 - DEBUG - VN ctest-vn-26098833 is not present in Agent 10.0.0.33 2025-01-10 09:44:01,173 - INFO - Validated that VN ctest-vn-26098833 is not in any agent 2025-01-10 09:44:01,224 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26098833 info 2025-01-10 09:44:01,224 - INFO - Deleting VN ctest-vn-93131943 2025-01-10 09:44:01,424 - DEBUG - Response for deleting network () 2025-01-10 09:44:01,424 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/1356d7c6-dca2-4c50-8621-751b143d9b5c 2025-01-10 09:44:01,435 - DEBUG - Response Code: 404 2025-01-10 09:44:01,436 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2025-01-10 09:44:01,446 - DEBUG - Requesting: http://10.0.0.30:8082/domain/9d97cda5-b041-47d1-8a65-cf8886a92f43 2025-01-10 09:44:01,470 - DEBUG - Requesting: http://10.0.0.30:8082/project/22f77a83-5367-4208-a0fe-87ec9f7e6ac3 2025-01-10 09:44:01,597 - INFO - Validated that VN ctest-vn-93131943 is not found in API Server 2025-01-10 09:44:01,614 - DEBUG - VN ctest-vn-93131943 is not present in Agent 10.0.0.37 2025-01-10 09:44:01,626 - DEBUG - VN ctest-vn-93131943 is not present in Agent 10.0.0.33 2025-01-10 09:44:01,626 - INFO - Validated that VN ctest-vn-93131943 is not in any agent 2025-01-10 09:44:01,668 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-93131943 info 2025-01-10 09:44:02,986 - DEBUG - No XMPP flaps were noticed during the test 2025-01-10 09:44:02,986 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-01-10 09:44:02,986 - INFO - -------------------------------------------------------------------------------- 2025-01-10 09:44:03,792 - INFO - Deleted project: ctest-TestBasicPolicy-48864971, ID : 22f77a83-5367-4208-a0fe-87ec9f7e6ac3