2025-02-05 16:00:12,400 - INFO - Domain Default found not creating 2025-02-05 16:00:12,556 - INFO - Project ctest-TestBasicPolicy-39185938 not found, creating it 2025-02-05 16:00:13,038 - INFO - Created Project:ctest-TestBasicPolicy-39185938, ID : 37525406-150d-4898-bb40-f99354e0a359 2025-02-05 16:00:14,630 - INFO - ================================================================================ 2025-02-05 16:00:14,630 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-05 16:00:14,630 - 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-02-05 16:00:14,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.8': '0'}} with 2025-02-05 16:00:14,888 - INFO - Initial checks done. Running the testcase now 2025-02-05 16:00:14,888 - INFO - 2025-02-05 16:00:15,441 - DEBUG - Response for create_network : {'network': {'id': 'bfcde694-bda3-4da4-885e-9e55f9d0bcaa', 'name': 'ctest-vn-34166679', 'tenant_id': '37525406150d4898bb40f99354e0a359', 'project_id': '37525406150d4898bb40f99354e0a359', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-vn-34166679'], 'port_security_enabled': True, 'description': ''}} 2025-02-05 16:00:15,629 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0478f63-436e-49a9-b083-a0c72ca6d3ab', 'name': '', 'tenant_id': '37525406150d4898bb40f99354e0a359', 'network_id': 'bfcde694-bda3-4da4-885e-9e55f9d0bcaa', 'ip_version': 4, 'cidr': '160.216.90.128/26', 'allocation_pools': [{'start': '160.216.90.130', 'end': '160.216.90.190'}], 'gateway_ip': '160.216.90.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.216.90.130', 'tags': [], 'project_id': '37525406150d4898bb40f99354e0a359'}} 2025-02-05 16:00:15,649 - INFO - Created VN ctest-vn-34166679 2025-02-05 16:00:15,705 - DEBUG - VN ctest-vn-34166679 UUID is bfcde694-bda3-4da4-885e-9e55f9d0bcaa 2025-02-05 16:00:16,021 - DEBUG - Response for create_network : {'network': {'id': 'a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95', 'name': 'ctest-vn-97628736', 'tenant_id': '37525406150d4898bb40f99354e0a359', 'project_id': '37525406150d4898bb40f99354e0a359', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-vn-97628736'], 'port_security_enabled': True, 'description': ''}} 2025-02-05 16:00:16,192 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca1a9c70-867f-4582-95d7-01e9967f08be', 'name': '', 'tenant_id': '37525406150d4898bb40f99354e0a359', 'network_id': 'a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95', 'ip_version': 4, 'cidr': '170.91.155.0/26', 'allocation_pools': [{'start': '170.91.155.2', 'end': '170.91.155.62'}], 'gateway_ip': '170.91.155.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.91.155.2', 'tags': [], 'project_id': '37525406150d4898bb40f99354e0a359'}} 2025-02-05 16:00:16,213 - INFO - Created VN ctest-vn-97628736 2025-02-05 16:00:16,269 - DEBUG - VN ctest-vn-97628736 UUID is a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95 2025-02-05 16:00:16,387 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679, 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-39185938:ctest-vn-97628736, 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-02-05 16:00:16,706 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bfcde694-bda3-4da4-885e-9e55f9d0bcaa', 'name': 'ctest-vn-34166679', 'tenant_id': '37525406150d4898bb40f99354e0a359', 'project_id': '37525406150d4898bb40f99354e0a359', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0478f63-436e-49a9-b083-a0c72ca6d3ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-vn-34166679'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-policy-allow-all-71162667']], 'subnet_ipam': [{'subnet_cidr': '160.216.90.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-05 16:00:16,990 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95', 'name': 'ctest-vn-97628736', 'tenant_id': '37525406150d4898bb40f99354e0a359', 'project_id': '37525406150d4898bb40f99354e0a359', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca1a9c70-867f-4582-95d7-01e9967f08be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-vn-97628736'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-policy-allow-all-71162667']], 'subnet_ipam': [{'subnet_cidr': '170.91.155.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-05 16:00:17,141 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-05 16:00:17,437 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-05 16:00:17,470 - DEBUG - Requesting: http://10.0.0.24:8082/domain/35161e20-f8e5-4213-a903-562a943260c9 2025-02-05 16:00:17,488 - DEBUG - Requesting: http://10.0.0.24:8082/project/37525406-150d-4898-bb40-f99354e0a359 2025-02-05 16:00:17,570 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcde694-bda3-4da4-885e-9e55f9d0bcaa 2025-02-05 16:00:17,583 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcde694-bda3-4da4-885e-9e55f9d0bcaa 2025-02-05 16:00:17,594 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1eb98fd1-2c7d-4345-8f72-3cbd8cdc0203 2025-02-05 16:00:17,603 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1eb98fd1-2c7d-4345-8f72-3cbd8cdc0203 2025-02-05 16:00:17,611 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/d3cb6000-42d7-4e67-9558-942c110668e0 2025-02-05 16:00:17,618 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-05 16:00:17,618 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcde694-bda3-4da4-885e-9e55f9d0bcaa 2025-02-05 16:00:17,629 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1eb98fd1-2c7d-4345-8f72-3cbd8cdc0203 2025-02-05 16:00:17,645 - INFO - Verified VN network id 9 for VN bfcde694-bda3-4da4-885e-9e55f9d0bcaa 2025-02-05 16:00:17,645 - INFO - Verifications in API Server for VN ctest-vn-34166679 passed 2025-02-05 16:00:17,645 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcde694-bda3-4da4-885e-9e55f9d0bcaa 2025-02-05 16:00:17,657 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1eb98fd1-2c7d-4345-8f72-3cbd8cdc0203 2025-02-05 16:00:17,666 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1eb98fd1-2c7d-4345-8f72-3cbd8cdc0203 2025-02-05 16:00:17,674 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/d3cb6000-42d7-4e67-9558-942c110668e0 2025-02-05 16:00:17,687 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39185938', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13820956357981064612', 'uuid-lslong': '9826465529069616298'}, 'enable': 'true', 'created': '2025-02-05T16:00:15', 'last-modified': '2025-02-05T16:00:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011597'} 2025-02-05 16:00:17,696 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-05 16:00:17,696 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34166679 passed 2025-02-05 16:00:17,697 - DEBUG - ====Verifying policy data for ctest-vn-34166679 in API_Server ====== 2025-02-05 16:00:17,697 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-05 16:00:17,704 - DEBUG - Requesting: http://10.0.0.24:8082/domain/35161e20-f8e5-4213-a903-562a943260c9 2025-02-05 16:00:17,716 - DEBUG - Requesting: http://10.0.0.24:8082/project/37525406-150d-4898-bb40-f99354e0a359 2025-02-05 16:00:17,789 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/bfcde694-bda3-4da4-885e-9e55f9d0bcaa 2025-02-05 16:00:17,800 - DEBUG - ==>Verifying data for policy with id: 93f81aff-7f1d-441c-a184-b9b16c74c260, fqn: ['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-policy-allow-all-71162667'] 2025-02-05 16:00:17,800 - INFO - VN ctest-vn-34166679 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-05 16:00:17,800 - DEBUG - Verifying the vn in opserver 2025-02-05 16:00:17,801 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679 virtual network link through opserver 10.0.0.24 2025-02-05 16:00:17,801 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-02-05 16:00:18,095 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-02-05 16:00:18,151 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679?flat'} 2025-02-05 16:00:18,151 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679 is found in opserver 2025-02-05 16:00:18,163 - DEBUG - Do not have enough data to verify VN in agent 2025-02-05 16:00:18,169 - DEBUG - VRF ids for VN ctest-vn-34166679: {} 2025-02-05 16:00:18,169 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-05 16:00:18,177 - DEBUG - Requesting: http://10.0.0.24:8082/domain/35161e20-f8e5-4213-a903-562a943260c9 2025-02-05 16:00:18,193 - DEBUG - Requesting: http://10.0.0.24:8082/project/37525406-150d-4898-bb40-f99354e0a359 2025-02-05 16:00:18,274 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95 2025-02-05 16:00:18,292 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95 2025-02-05 16:00:18,303 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/67e69852-98ce-443f-bfb8-78b0539d7cf4 2025-02-05 16:00:18,311 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/67e69852-98ce-443f-bfb8-78b0539d7cf4 2025-02-05 16:00:18,319 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/2d7c593c-d25c-443b-8dcc-6e17384d2339 2025-02-05 16:00:18,327 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-05 16:00:18,327 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95 2025-02-05 16:00:18,339 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/67e69852-98ce-443f-bfb8-78b0539d7cf4 2025-02-05 16:00:18,356 - INFO - Verified VN network id 10 for VN a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95 2025-02-05 16:00:18,357 - INFO - Verifications in API Server for VN ctest-vn-97628736 passed 2025-02-05 16:00:18,357 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95 2025-02-05 16:00:18,370 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/67e69852-98ce-443f-bfb8-78b0539d7cf4 2025-02-05 16:00:18,379 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/67e69852-98ce-443f-bfb8-78b0539d7cf4 2025-02-05 16:00:18,387 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/2d7c593c-d25c-443b-8dcc-6e17384d2339 2025-02-05 16:00:18,403 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-97628736', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39185938', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12245784327656000892', 'uuid-lslong': '12008344728807611029'}, 'enable': 'true', 'created': '2025-02-05T16:00:15', 'last-modified': '2025-02-05T16:00:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.482337'} 2025-02-05 16:00:18,410 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-05 16:00:18,411 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97628736 passed 2025-02-05 16:00:18,411 - DEBUG - ====Verifying policy data for ctest-vn-97628736 in API_Server ====== 2025-02-05 16:00:18,411 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-05 16:00:18,417 - DEBUG - Requesting: http://10.0.0.24:8082/domain/35161e20-f8e5-4213-a903-562a943260c9 2025-02-05 16:00:18,430 - DEBUG - Requesting: http://10.0.0.24:8082/project/37525406-150d-4898-bb40-f99354e0a359 2025-02-05 16:00:18,514 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95 2025-02-05 16:00:18,525 - DEBUG - ==>Verifying data for policy with id: 93f81aff-7f1d-441c-a184-b9b16c74c260, fqn: ['default-domain', 'ctest-TestBasicPolicy-39185938', 'ctest-policy-allow-all-71162667'] 2025-02-05 16:00:18,525 - INFO - VN ctest-vn-97628736 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-05 16:00:18,525 - DEBUG - Verifying the vn in opserver 2025-02-05 16:00:18,525 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-97628736 virtual network link through opserver 10.0.0.24 2025-02-05 16:00:18,525 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2025-02-05 16:00:18,537 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-97628736', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-97628736?flat'} 2025-02-05 16:00:18,537 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-97628736 is found in opserver 2025-02-05 16:00:18,551 - DEBUG - Do not have enough data to verify VN in agent 2025-02-05 16:00:18,558 - DEBUG - VRF ids for VN ctest-vn-97628736: {} 2025-02-05 16:00:18,633 - DEBUG - Services list from nova: [, , ] 2025-02-05 16:00:19,650 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2694-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2694-1) 2025-02-05 16:00:20,994 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2694-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2694-1) 2025-02-05 16:00:20,994 - INFO - Waiting for VM ctest-TestBasicPolicy-39185938-08305288 to be up.. 2025-02-05 16:00:21,075 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-05 16:00:26,154 - DEBUG - VM is in ACTIVE state now 2025-02-05 16:00:26,154 - INFO - VM name : ctest-TestBasicPolicy-39185938-08305288 2025-02-05 16:00:26,231 - DEBUG - VM ctest-TestBasicPolicy-39185938-08305288 ID is cee222ac-f4e0-452c-b4ed-080e7069c5ff 2025-02-05 16:00:26,250 - DEBUG - VM ctest-TestBasicPolicy-39185938-08305288 launched on Node cn-jenkins-deploy-platform-ansible-os-2694-1 2025-02-05 16:00:26,332 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/cee222ac-f4e0-452c-b4ed-080e7069c5ff 2025-02-05 16:00:26,341 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/5d9d8966-04cb-42d9-aa8f-cc361ff0157d 2025-02-05 16:00:29,606 - 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') 2025-02-05 16:00:29,606 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-39185938-08305288 failed! 2025-02-05 16:00:29,661 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-39185938:ctest-vn-34166679 is 160.216.90.129 and allocation pool is NOT set 2025-02-05 16:00:31,724 - 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=7.86 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.350 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 = 0.350/4.102/7.855/3.752 ms') 2025-02-05 16:00:31,724 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-39185938-08305288 passed 2025-02-05 16:00:31,889 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 16:00:31,889 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39185938-08305288, IP 160.216.90.131, Port 22 2025-02-05 16:00:32,052 - DEBUG - VM ctest-TestBasicPolicy-39185938-08305288 is ready for SSH connections 2025-02-05 16:00:32,052 - INFO - Waiting for VM ctest-TestBasicPolicy-39185938-51039427 to be up.. 2025-02-05 16:00:32,135 - DEBUG - VM is in ACTIVE state now 2025-02-05 16:00:32,135 - INFO - VM name : ctest-TestBasicPolicy-39185938-51039427 2025-02-05 16:00:32,213 - DEBUG - VM ctest-TestBasicPolicy-39185938-51039427 ID is f6be289b-00e8-40b0-bb84-d65510425e7e 2025-02-05 16:00:32,213 - DEBUG - VM ctest-TestBasicPolicy-39185938-51039427 launched on Node cn-jenkins-deploy-platform-ansible-os-2694-1 2025-02-05 16:00:32,292 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/f6be289b-00e8-40b0-bb84-d65510425e7e 2025-02-05 16:00:32,301 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/c66521bb-a2fb-417a-9239-c881f399507c 2025-02-05 16:00:33,548 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.12 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.989 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.989/2.054/3.120/1.065 ms') 2025-02-05 16:00:33,549 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-39185938-51039427 passed 2025-02-05 16:00:33,709 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 16:00:33,709 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39185938-51039427, IP 170.91.155.3, Port 22 2025-02-05 16:00:33,775 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-02-05 16:00:33,863 - DEBUG - VM ctest-TestBasicPolicy-39185938-51039427 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-05 16:00:38,864 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 16:00:38,864 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-39185938-51039427, IP 170.91.155.3, Port 22 2025-02-05 16:00:39,021 - DEBUG - VM ctest-TestBasicPolicy-39185938-51039427 is ready for SSH connections 2025-02-05 16:00:39,021 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 16:00:39,021 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.91.155.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-02-05 16:00:39,021 - DEBUG - ping -s 56 -c 3 -W 1 170.91.155.3 2025-02-05 16:00:42,723 - DEBUG - PING 170.91.155.3 (170.91.155.3): 56 data bytes 64 bytes from 170.91.155.3: seq=0 ttl=63 time=3.951 ms 64 bytes from 170.91.155.3: seq=1 ttl=63 time=0.957 ms 64 bytes from 170.91.155.3: seq=2 ttl=63 time=0.950 ms --- 170.91.155.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.950/1.952/3.951 ms 2025-02-05 16:00:42,723 - INFO - Ping to IP 170.91.155.3 from VM ctest-TestBasicPolicy-39185938-08305288 passed 2025-02-05 16:00:42,901 - DEBUG - Policy Update Response {"network-policy": {"uuid": "93f81aff-7f1d-441c-a184-b9b16c74c260", "href": "http://10.0.0.24:8082/network-policy/93f81aff-7f1d-441c-a184-b9b16c74c260"}} 2025-02-05 16:00:42,901 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-05 16:00:42,901 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.91.155.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2025-02-05 16:00:42,901 - DEBUG - ping -s 56 -c 3 -W 1 170.91.155.3 2025-02-05 16:00:46,105 - DEBUG - PING 170.91.155.3 (170.91.155.3): 56 data bytes 64 bytes from 170.91.155.3: seq=0 ttl=63 time=1.500 ms --- 170.91.155.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.500/1.500/1.500 ms 2025-02-05 16:00:46,105 - WARNING - Ping to IP 170.91.155.3 from VM ctest-TestBasicPolicy-39185938-08305288 failed 2025-02-05 16:00:46,105 - INFO - Deleting VM ctest-TestBasicPolicy-39185938-51039427 2025-02-05 16:00:46,187 - INFO - Deleting VM ctest-TestBasicPolicy-39185938-08305288 2025-02-05 16:00:46,572 - INFO - Deleted policy ctest-policy-allow-all-71162667 2025-02-05 16:00:46,572 - INFO - Deleting VN ctest-vn-97628736 2025-02-05 16:00:46,675 - DEBUG - VN a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95 still in use: Unable to complete operation on network a9f1c3f7-0dfb-4d7c-a6a6-35e86d031a95. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-dc58d10f-c16f-4367-8c92-3c07d1043584'] 2025-02-05 16:00:46,675 - WARNING - Deleting VN ctest-vn-97628736 failed..Will retry 2025-02-05 16:00:48,794 - DEBUG - Response for deleting network () 2025-02-05 16:00:48,794 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/67e69852-98ce-443f-bfb8-78b0539d7cf4 2025-02-05 16:00:48,800 - DEBUG - Response Code: 404 2025-02-05 16:00:48,800 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-05 16:00:48,807 - DEBUG - Requesting: http://10.0.0.24:8082/domain/35161e20-f8e5-4213-a903-562a943260c9 2025-02-05 16:00:48,863 - DEBUG - Requesting: http://10.0.0.24:8082/project/37525406-150d-4898-bb40-f99354e0a359 2025-02-05 16:00:48,934 - INFO - Validated that VN ctest-vn-97628736 is not found in API Server 2025-02-05 16:00:48,945 - DEBUG - VN ctest-vn-97628736 is not present in Agent 10.0.0.24 2025-02-05 16:00:48,946 - INFO - Validated that VN ctest-vn-97628736 is not in any agent 2025-02-05 16:00:48,962 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97628736 info 2025-02-05 16:00:48,962 - INFO - Deleting VN ctest-vn-34166679 2025-02-05 16:00:49,068 - DEBUG - Response for deleting network () 2025-02-05 16:00:49,068 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1eb98fd1-2c7d-4345-8f72-3cbd8cdc0203 2025-02-05 16:00:49,075 - DEBUG - Response Code: 404 2025-02-05 16:00:49,075 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2025-02-05 16:00:49,082 - DEBUG - Requesting: http://10.0.0.24:8082/domain/35161e20-f8e5-4213-a903-562a943260c9 2025-02-05 16:00:49,138 - DEBUG - Requesting: http://10.0.0.24:8082/project/37525406-150d-4898-bb40-f99354e0a359 2025-02-05 16:00:49,215 - INFO - Validated that VN ctest-vn-34166679 is not found in API Server 2025-02-05 16:00:49,225 - DEBUG - VN ctest-vn-34166679 is not present in Agent 10.0.0.24 2025-02-05 16:00:49,225 - INFO - Validated that VN ctest-vn-34166679 is not in any agent 2025-02-05 16:00:49,242 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-34166679 info 2025-02-05 16:00:49,498 - DEBUG - No XMPP flaps were noticed during the test 2025-02-05 16:00:49,499 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-02-05 16:00:49,499 - INFO - -------------------------------------------------------------------------------- 2025-02-05 16:00:50,186 - INFO - Deleted project: ctest-TestBasicPolicy-39185938, ID : 37525406-150d-4898-bb40-f99354e0a359