2024-10-24 11:42:05,550 - INFO - Domain Default found not creating 2024-10-24 11:42:05,746 - INFO - Project ctest-TestBasicPolicy-97693873 not found, creating it 2024-10-24 11:42:06,262 - INFO - Created Project:ctest-TestBasicPolicy-97693873, ID : 55f2eff6-e0ba-492c-9197-cc4e747bcb74 2024-10-24 11:42:07,936 - INFO - ================================================================================ 2024-10-24 11:42:07,937 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-24 11:42:07,937 - 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 2024-10-24 11:42:08,208 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.6': '0'}} with 2024-10-24 11:42:08,208 - INFO - Initial checks done. Running the testcase now 2024-10-24 11:42:08,208 - INFO - 2024-10-24 11:42:08,868 - DEBUG - Response for create_network : {'network': {'id': 'e104b3b9-37b2-4733-8714-b9f625f0120a', 'name': 'ctest-vn-05222939', 'tenant_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'project_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-vn-05222939'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 11:42:09,131 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb95d08d-aa2f-4eea-a9e8-0d51d3ba1d93', 'name': '', 'tenant_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'network_id': 'e104b3b9-37b2-4733-8714-b9f625f0120a', 'ip_version': 4, 'cidr': '186.22.227.64/26', 'allocation_pools': [{'start': '186.22.227.66', 'end': '186.22.227.126'}], 'gateway_ip': '186.22.227.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.22.227.66', 'tags': [], 'project_id': '55f2eff6e0ba492c9197cc4e747bcb74'}} 2024-10-24 11:42:09,160 - INFO - Created VN ctest-vn-05222939 2024-10-24 11:42:09,225 - DEBUG - VN ctest-vn-05222939 UUID is e104b3b9-37b2-4733-8714-b9f625f0120a 2024-10-24 11:42:09,596 - DEBUG - Response for create_network : {'network': {'id': '9f8a085f-ceed-4d51-84aa-d00dc63ff7fb', 'name': 'ctest-vn-69451732', 'tenant_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'project_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-vn-69451732'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 11:42:09,844 - DEBUG - Response for create_subnet : {'subnet': {'id': '41e0b5a4-fc68-4093-a333-d52811091716', 'name': '', 'tenant_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'network_id': '9f8a085f-ceed-4d51-84aa-d00dc63ff7fb', 'ip_version': 4, 'cidr': '129.241.135.192/26', 'allocation_pools': [{'start': '129.241.135.194', 'end': '129.241.135.254'}], 'gateway_ip': '129.241.135.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.241.135.194', 'tags': [], 'project_id': '55f2eff6e0ba492c9197cc4e747bcb74'}} 2024-10-24 11:42:09,868 - INFO - Created VN ctest-vn-69451732 2024-10-24 11:42:09,928 - DEBUG - VN ctest-vn-69451732 UUID is 9f8a085f-ceed-4d51-84aa-d00dc63ff7fb 2024-10-24 11:42:10,077 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939, 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-97693873:ctest-vn-69451732, 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] 2024-10-24 11:42:10,414 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e104b3b9-37b2-4733-8714-b9f625f0120a', 'name': 'ctest-vn-05222939', 'tenant_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'project_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb95d08d-aa2f-4eea-a9e8-0d51d3ba1d93'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-vn-05222939'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-policy-allow-all-65372506']], 'subnet_ipam': [{'subnet_cidr': '186.22.227.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 11:42:10,676 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f8a085f-ceed-4d51-84aa-d00dc63ff7fb', 'name': 'ctest-vn-69451732', 'tenant_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'project_id': '55f2eff6e0ba492c9197cc4e747bcb74', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41e0b5a4-fc68-4093-a333-d52811091716'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-vn-69451732'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-policy-allow-all-65372506']], 'subnet_ipam': [{'subnet_cidr': '129.241.135.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 11:42:10,876 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-24 11:42:11,194 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-24 11:42:11,235 - DEBUG - Requesting: http://10.0.0.31:8082/domain/42381f5e-131c-4d8d-9f84-1164ec6200a9 2024-10-24 11:42:11,255 - DEBUG - Requesting: http://10.0.0.31:8082/project/55f2eff6-e0ba-492c-9197-cc4e747bcb74 2024-10-24 11:42:11,344 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e104b3b9-37b2-4733-8714-b9f625f0120a 2024-10-24 11:42:11,368 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e104b3b9-37b2-4733-8714-b9f625f0120a 2024-10-24 11:42:11,384 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4f4ac9ae-0bb6-4296-86e0-d1cd835b5d7c 2024-10-24 11:42:11,395 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4f4ac9ae-0bb6-4296-86e0-d1cd835b5d7c 2024-10-24 11:42:11,405 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/ba3252c3-7a35-4acb-9749-86b2af536b20 2024-10-24 11:42:11,414 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 11:42:11,414 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e104b3b9-37b2-4733-8714-b9f625f0120a 2024-10-24 11:42:11,430 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4f4ac9ae-0bb6-4296-86e0-d1cd835b5d7c 2024-10-24 11:42:11,454 - INFO - Verified VN network id 8 for VN e104b3b9-37b2-4733-8714-b9f625f0120a 2024-10-24 11:42:11,454 - INFO - Verifications in API Server for VN ctest-vn-05222939 passed 2024-10-24 11:42:11,454 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e104b3b9-37b2-4733-8714-b9f625f0120a 2024-10-24 11:42:11,475 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4f4ac9ae-0bb6-4296-86e0-d1cd835b5d7c 2024-10-24 11:42:11,486 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4f4ac9ae-0bb6-4296-86e0-d1cd835b5d7c 2024-10-24 11:42:11,497 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/ba3252c3-7a35-4acb-9749-86b2af536b20 2024-10-24 11:42:11,514 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97693873', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16214282166525380403', 'uuid-lslong': '9733609161504068106'}, 'enable': 'true', 'created': '2024-10-24T11:42:08', 'last-modified': '2024-10-24T11:42:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.129064'} 2024-10-24 11:42:11,522 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 11:42:11,522 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05222939 passed 2024-10-24 11:42:11,522 - DEBUG - ====Verifying policy data for ctest-vn-05222939 in API_Server ====== 2024-10-24 11:42:11,522 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-24 11:42:11,531 - DEBUG - Requesting: http://10.0.0.31:8082/domain/42381f5e-131c-4d8d-9f84-1164ec6200a9 2024-10-24 11:42:11,547 - DEBUG - Requesting: http://10.0.0.31:8082/project/55f2eff6-e0ba-492c-9197-cc4e747bcb74 2024-10-24 11:42:11,640 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/e104b3b9-37b2-4733-8714-b9f625f0120a 2024-10-24 11:42:11,663 - DEBUG - ==>Verifying data for policy with id: 40004fda-276f-4501-b2e1-92349339d34f, fqn: ['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-policy-allow-all-65372506'] 2024-10-24 11:42:11,663 - INFO - VN ctest-vn-05222939 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 11:42:11,663 - DEBUG - Verifying the vn in opserver 2024-10-24 11:42:11,663 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939 virtual network link through opserver 10.0.0.31 2024-10-24 11:42:11,664 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-24 11:42:11,970 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-24 11:42:12,042 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939?flat'} 2024-10-24 11:42:12,042 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939 is found in opserver 2024-10-24 11:42:12,061 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 11:42:12,067 - DEBUG - VRF ids for VN ctest-vn-05222939: {} 2024-10-24 11:42:12,067 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-24 11:42:12,074 - DEBUG - Requesting: http://10.0.0.31:8082/domain/42381f5e-131c-4d8d-9f84-1164ec6200a9 2024-10-24 11:42:12,091 - DEBUG - Requesting: http://10.0.0.31:8082/project/55f2eff6-e0ba-492c-9197-cc4e747bcb74 2024-10-24 11:42:12,181 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9f8a085f-ceed-4d51-84aa-d00dc63ff7fb 2024-10-24 11:42:12,206 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9f8a085f-ceed-4d51-84aa-d00dc63ff7fb 2024-10-24 11:42:12,223 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/30fa2a26-524a-460b-87c5-a9e48654b2fe 2024-10-24 11:42:12,235 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/30fa2a26-524a-460b-87c5-a9e48654b2fe 2024-10-24 11:42:12,247 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/360d9c31-5c7c-413f-8eef-1e3d01f0321e 2024-10-24 11:42:12,256 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-24 11:42:12,256 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9f8a085f-ceed-4d51-84aa-d00dc63ff7fb 2024-10-24 11:42:12,272 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/30fa2a26-524a-460b-87c5-a9e48654b2fe 2024-10-24 11:42:12,299 - INFO - Verified VN network id 9 for VN 9f8a085f-ceed-4d51-84aa-d00dc63ff7fb 2024-10-24 11:42:12,300 - INFO - Verifications in API Server for VN ctest-vn-69451732 passed 2024-10-24 11:42:12,300 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9f8a085f-ceed-4d51-84aa-d00dc63ff7fb 2024-10-24 11:42:12,316 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/30fa2a26-524a-460b-87c5-a9e48654b2fe 2024-10-24 11:42:12,329 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/30fa2a26-524a-460b-87c5-a9e48654b2fe 2024-10-24 11:42:12,347 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/360d9c31-5c7c-413f-8eef-1e3d01f0321e 2024-10-24 11:42:12,369 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-69451732', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97693873', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11496010206403186001', 'uuid-lslong': '9559681916626532347'}, 'enable': 'true', 'created': '2024-10-24T11:42:09', 'last-modified': '2024-10-24T11:42:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.719779'} 2024-10-24 11:42:12,380 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-24 11:42:12,380 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69451732 passed 2024-10-24 11:42:12,380 - DEBUG - ====Verifying policy data for ctest-vn-69451732 in API_Server ====== 2024-10-24 11:42:12,380 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-24 11:42:12,389 - DEBUG - Requesting: http://10.0.0.31:8082/domain/42381f5e-131c-4d8d-9f84-1164ec6200a9 2024-10-24 11:42:12,403 - DEBUG - Requesting: http://10.0.0.31:8082/project/55f2eff6-e0ba-492c-9197-cc4e747bcb74 2024-10-24 11:42:12,501 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/9f8a085f-ceed-4d51-84aa-d00dc63ff7fb 2024-10-24 11:42:12,523 - DEBUG - ==>Verifying data for policy with id: 40004fda-276f-4501-b2e1-92349339d34f, fqn: ['default-domain', 'ctest-TestBasicPolicy-97693873', 'ctest-policy-allow-all-65372506'] 2024-10-24 11:42:12,524 - INFO - VN ctest-vn-69451732 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 11:42:12,524 - DEBUG - Verifying the vn in opserver 2024-10-24 11:42:12,524 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-69451732 virtual network link through opserver 10.0.0.31 2024-10-24 11:42:12,524 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks 2024-10-24 11:42:12,538 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-69451732', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-69451732?flat'} 2024-10-24 11:42:12,538 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-69451732 is found in opserver 2024-10-24 11:42:12,551 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 11:42:12,557 - DEBUG - VRF ids for VN ctest-vn-69451732: {} 2024-10-24 11:42:12,619 - DEBUG - Services list from nova: [, , ] 2024-10-24 11:42:13,759 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2138-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2138-1) 2024-10-24 11:42:15,123 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2138-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2138-1) 2024-10-24 11:42:15,123 - INFO - Waiting for VM ctest-TestBasicPolicy-97693873-30225861 to be up.. 2024-10-24 11:42:15,215 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 11:42:20,312 - DEBUG - VM is in ACTIVE state now 2024-10-24 11:42:20,312 - INFO - VM name : ctest-TestBasicPolicy-97693873-30225861 2024-10-24 11:42:20,400 - DEBUG - VM ctest-TestBasicPolicy-97693873-30225861 ID is c743f818-cb7d-4998-a29c-c004286a3cb7 2024-10-24 11:42:20,422 - DEBUG - VM ctest-TestBasicPolicy-97693873-30225861 launched on Node cn-jenkins-deploy-platform-ansible-os-2138-1 2024-10-24 11:42:20,512 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/c743f818-cb7d-4998-a29c-c004286a3cb7 2024-10-24 11:42:20,525 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/399f95a2-e044-4b75-ad0d-8e5a261f8866 2024-10-24 11:42:23,807 - 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') 2024-10-24 11:42:23,807 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-97693873-30225861 failed! 2024-10-24 11:42:23,873 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-97693873:ctest-vn-05222939 is 186.22.227.65 and allocation pool is NOT set 2024-10-24 11:42:25,933 - 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=8.66 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.798 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 = 0.798/4.731/8.664/3.933 ms') 2024-10-24 11:42:25,933 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-97693873-30225861 passed 2024-10-24 11:42:26,097 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 11:42:26,097 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-97693873-30225861, IP 186.22.227.67, Port 22 2024-10-24 11:42:26,252 - DEBUG - VM ctest-TestBasicPolicy-97693873-30225861 is ready for SSH connections 2024-10-24 11:42:26,252 - INFO - Waiting for VM ctest-TestBasicPolicy-97693873-67938078 to be up.. 2024-10-24 11:42:26,343 - DEBUG - VM is in ACTIVE state now 2024-10-24 11:42:26,343 - INFO - VM name : ctest-TestBasicPolicy-97693873-67938078 2024-10-24 11:42:26,435 - DEBUG - VM ctest-TestBasicPolicy-97693873-67938078 ID is 9207e6b6-f588-4e10-9ee6-6b46e5a2cb53 2024-10-24 11:42:26,435 - DEBUG - VM ctest-TestBasicPolicy-97693873-67938078 launched on Node cn-jenkins-deploy-platform-ansible-os-2138-1 2024-10-24 11:42:26,527 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine/9207e6b6-f588-4e10-9ee6-6b46e5a2cb53 2024-10-24 11:42:26,539 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-machine-interface/89b302b0-5c53-403e-8edf-442da0e46640 2024-10-24 11:42:27,801 - 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.80 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.905 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.905/2.350/3.795/1.445 ms') 2024-10-24 11:42:27,802 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-97693873-67938078 passed 2024-10-24 11:42:27,964 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 11:42:27,965 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-97693873-67938078, IP 129.241.135.195, Port 22 2024-10-24 11:42:28,031 - 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': ''} 2024-10-24 11:42:28,117 - DEBUG - VM ctest-TestBasicPolicy-97693873-67938078 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-24 11:42:33,119 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 11:42:33,119 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-97693873-67938078, IP 129.241.135.195, Port 22 2024-10-24 11:42:33,287 - DEBUG - VM ctest-TestBasicPolicy-97693873-67938078 is ready for SSH connections 2024-10-24 11:42:33,287 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 11:42:33,287 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 129.241.135.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-24 11:42:33,287 - DEBUG - ping -s 56 -c 3 -W 1 129.241.135.195 2024-10-24 11:42:37,350 - DEBUG - PING 129.241.135.195 (129.241.135.195): 56 data bytes 64 bytes from 129.241.135.195: seq=0 ttl=63 time=3.581 ms 64 bytes from 129.241.135.195: seq=1 ttl=63 time=0.950 ms 64 bytes from 129.241.135.195: seq=2 ttl=63 time=0.873 ms --- 129.241.135.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.873/1.801/3.581 ms 2024-10-24 11:42:37,350 - INFO - Ping to IP 129.241.135.195 from VM ctest-TestBasicPolicy-97693873-30225861 passed 2024-10-24 11:42:37,552 - DEBUG - Policy Update Response {"network-policy": {"uuid": "40004fda-276f-4501-b2e1-92349339d34f", "href": "http://10.0.0.31:8082/network-policy/40004fda-276f-4501-b2e1-92349339d34f"}} 2024-10-24 11:42:37,552 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 11:42:37,552 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 129.241.135.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.31, gateway password: c0ntrail123 2024-10-24 11:42:37,552 - DEBUG - ping -s 56 -c 3 -W 1 129.241.135.195 2024-10-24 11:42:40,768 - DEBUG - PING 129.241.135.195 (129.241.135.195): 56 data bytes 64 bytes from 129.241.135.195: seq=0 ttl=63 time=1.567 ms --- 129.241.135.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.567/1.567/1.567 ms 2024-10-24 11:42:40,768 - WARNING - Ping to IP 129.241.135.195 from VM ctest-TestBasicPolicy-97693873-30225861 failed 2024-10-24 11:42:40,768 - INFO - Deleting VM ctest-TestBasicPolicy-97693873-67938078 2024-10-24 11:42:40,856 - INFO - Deleting VM ctest-TestBasicPolicy-97693873-30225861 2024-10-24 11:42:41,304 - INFO - Deleted policy ctest-policy-allow-all-65372506 2024-10-24 11:42:41,304 - INFO - Deleting VN ctest-vn-69451732 2024-10-24 11:42:41,345 - DEBUG - VN 9f8a085f-ceed-4d51-84aa-d00dc63ff7fb still in use: Unable to complete operation on network 9f8a085f-ceed-4d51-84aa-d00dc63ff7fb. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-cbebef13-6298-4b5a-8b52-77293c2829ae'] 2024-10-24 11:42:41,345 - WARNING - Deleting VN ctest-vn-69451732 failed..Will retry 2024-10-24 11:42:43,497 - DEBUG - Response for deleting network () 2024-10-24 11:42:43,497 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/30fa2a26-524a-460b-87c5-a9e48654b2fe 2024-10-24 11:42:43,504 - DEBUG - Response Code: 404 2024-10-24 11:42:43,504 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-24 11:42:43,511 - DEBUG - Requesting: http://10.0.0.31:8082/domain/42381f5e-131c-4d8d-9f84-1164ec6200a9 2024-10-24 11:42:43,577 - DEBUG - Requesting: http://10.0.0.31:8082/project/55f2eff6-e0ba-492c-9197-cc4e747bcb74 2024-10-24 11:42:43,660 - INFO - Validated that VN ctest-vn-69451732 is not found in API Server 2024-10-24 11:42:43,672 - DEBUG - VN ctest-vn-69451732 is not present in Agent 10.0.0.31 2024-10-24 11:42:43,672 - INFO - Validated that VN ctest-vn-69451732 is not in any agent 2024-10-24 11:42:43,693 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69451732 info 2024-10-24 11:42:43,693 - INFO - Deleting VN ctest-vn-05222939 2024-10-24 11:42:43,825 - DEBUG - Response for deleting network () 2024-10-24 11:42:43,826 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/4f4ac9ae-0bb6-4296-86e0-d1cd835b5d7c 2024-10-24 11:42:43,834 - DEBUG - Response Code: 404 2024-10-24 11:42:43,834 - DEBUG - Requesting: http://10.0.0.31:8082/domains 2024-10-24 11:42:43,844 - DEBUG - Requesting: http://10.0.0.31:8082/domain/42381f5e-131c-4d8d-9f84-1164ec6200a9 2024-10-24 11:42:43,907 - DEBUG - Requesting: http://10.0.0.31:8082/project/55f2eff6-e0ba-492c-9197-cc4e747bcb74 2024-10-24 11:42:44,004 - INFO - Validated that VN ctest-vn-05222939 is not found in API Server 2024-10-24 11:42:44,016 - DEBUG - VN ctest-vn-05222939 is not present in Agent 10.0.0.31 2024-10-24 11:42:44,017 - INFO - Validated that VN ctest-vn-05222939 is not in any agent 2024-10-24 11:42:44,037 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05222939 info 2024-10-24 11:42:44,291 - DEBUG - No XMPP flaps were noticed during the test 2024-10-24 11:42:44,291 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-10-24 11:42:44,291 - INFO - -------------------------------------------------------------------------------- 2024-10-24 11:42:45,020 - INFO - Deleted project: ctest-TestBasicPolicy-97693873, ID : 55f2eff6-e0ba-492c-9197-cc4e747bcb74