2024-11-13 08:48:01,995 - INFO - Domain Default found not creating 2024-11-13 08:48:02,197 - INFO - Project ctest-TestBasicPolicy-13233399 not found, creating it 2024-11-13 08:48:02,725 - INFO - Created Project:ctest-TestBasicPolicy-13233399, ID : 9b99d7be-3e99-48b3-b330-c9bc83fbc75b 2024-11-13 08:48:04,307 - INFO - ================================================================================ 2024-11-13 08:48:04,307 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-13 08:48:04,308 - 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-11-13 08:48:04,586 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.13': '0'}} with 2024-11-13 08:48:04,586 - INFO - Initial checks done. Running the testcase now 2024-11-13 08:48:04,586 - INFO - 2024-11-13 08:48:05,238 - DEBUG - Response for create_network : {'network': {'id': 'b7aebb80-002e-4fe2-9184-d3869cc36700', 'name': 'ctest-vn-32678622', 'tenant_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'project_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-vn-32678622'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 08:48:05,419 - DEBUG - Response for create_subnet : {'subnet': {'id': '7037cced-7ca8-45e5-8ba6-dc3d6273fa6c', 'name': '', 'tenant_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'network_id': 'b7aebb80-002e-4fe2-9184-d3869cc36700', 'ip_version': 4, 'cidr': '93.130.53.192/26', 'allocation_pools': [{'start': '93.130.53.194', 'end': '93.130.53.254'}], 'gateway_ip': '93.130.53.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.130.53.194', 'tags': [], 'project_id': '9b99d7be3e9948b3b330c9bc83fbc75b'}} 2024-11-13 08:48:05,447 - INFO - Created VN ctest-vn-32678622 2024-11-13 08:48:05,508 - DEBUG - VN ctest-vn-32678622 UUID is b7aebb80-002e-4fe2-9184-d3869cc36700 2024-11-13 08:48:05,883 - DEBUG - Response for create_network : {'network': {'id': '2a9f2280-25be-4ea9-8111-bc6f6000b8d6', 'name': 'ctest-vn-33826865', 'tenant_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'project_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-vn-33826865'], 'port_security_enabled': True, 'description': ''}} 2024-11-13 08:48:06,062 - DEBUG - Response for create_subnet : {'subnet': {'id': '3bfd3547-4220-4465-9404-5e5932b1a9e0', 'name': '', 'tenant_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'network_id': '2a9f2280-25be-4ea9-8111-bc6f6000b8d6', 'ip_version': 4, 'cidr': '37.126.24.64/26', 'allocation_pools': [{'start': '37.126.24.66', 'end': '37.126.24.126'}], 'gateway_ip': '37.126.24.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.126.24.66', 'tags': [], 'project_id': '9b99d7be3e9948b3b330c9bc83fbc75b'}} 2024-11-13 08:48:06,083 - INFO - Created VN ctest-vn-33826865 2024-11-13 08:48:06,139 - DEBUG - VN ctest-vn-33826865 UUID is 2a9f2280-25be-4ea9-8111-bc6f6000b8d6 2024-11-13 08:48:06,272 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622, 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-13233399:ctest-vn-33826865, 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-11-13 08:48:06,596 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7aebb80-002e-4fe2-9184-d3869cc36700', 'name': 'ctest-vn-32678622', 'tenant_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'project_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7037cced-7ca8-45e5-8ba6-dc3d6273fa6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-vn-32678622'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-policy-allow-all-45377796']], 'subnet_ipam': [{'subnet_cidr': '93.130.53.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-13 08:48:06,852 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a9f2280-25be-4ea9-8111-bc6f6000b8d6', 'name': 'ctest-vn-33826865', 'tenant_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'project_id': '9b99d7be3e9948b3b330c9bc83fbc75b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3bfd3547-4220-4465-9404-5e5932b1a9e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-vn-33826865'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-policy-allow-all-45377796']], 'subnet_ipam': [{'subnet_cidr': '37.126.24.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-13 08:48:07,028 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-13 08:48:07,333 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-13 08:48:07,372 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c6a8b3aa-db7d-4f69-b72f-804989514c8c 2024-11-13 08:48:07,391 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b99d7be-3e99-48b3-b330-c9bc83fbc75b 2024-11-13 08:48:07,482 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b7aebb80-002e-4fe2-9184-d3869cc36700 2024-11-13 08:48:07,499 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b7aebb80-002e-4fe2-9184-d3869cc36700 2024-11-13 08:48:07,514 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9632ab50-15e6-47d1-9d3c-ea14812bad81 2024-11-13 08:48:07,524 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9632ab50-15e6-47d1-9d3c-ea14812bad81 2024-11-13 08:48:07,535 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/39eebc79-865c-4e44-8f77-d8e086ec8848 2024-11-13 08:48:07,542 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-13 08:48:07,542 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b7aebb80-002e-4fe2-9184-d3869cc36700 2024-11-13 08:48:07,556 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9632ab50-15e6-47d1-9d3c-ea14812bad81 2024-11-13 08:48:07,579 - INFO - Verified VN network id 8 for VN b7aebb80-002e-4fe2-9184-d3869cc36700 2024-11-13 08:48:07,579 - INFO - Verifications in API Server for VN ctest-vn-32678622 passed 2024-11-13 08:48:07,579 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b7aebb80-002e-4fe2-9184-d3869cc36700 2024-11-13 08:48:07,594 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9632ab50-15e6-47d1-9d3c-ea14812bad81 2024-11-13 08:48:07,603 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9632ab50-15e6-47d1-9d3c-ea14812bad81 2024-11-13 08:48:07,612 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/39eebc79-865c-4e44-8f77-d8e086ec8848 2024-11-13 08:48:07,628 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13233399', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13235722513321709538', 'uuid-lslong': '10485738407534487296'}, 'enable': 'true', 'created': '2024-11-13T08:48:05', 'last-modified': '2024-11-13T08:48:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.059012'} 2024-11-13 08:48:07,636 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-13 08:48:07,636 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32678622 passed 2024-11-13 08:48:07,636 - DEBUG - ====Verifying policy data for ctest-vn-32678622 in API_Server ====== 2024-11-13 08:48:07,636 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-13 08:48:07,643 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c6a8b3aa-db7d-4f69-b72f-804989514c8c 2024-11-13 08:48:07,659 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b99d7be-3e99-48b3-b330-c9bc83fbc75b 2024-11-13 08:48:07,743 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/b7aebb80-002e-4fe2-9184-d3869cc36700 2024-11-13 08:48:07,759 - DEBUG - ==>Verifying data for policy with id: 0d67fccf-978c-469e-9a5a-6ab883f081d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-policy-allow-all-45377796'] 2024-11-13 08:48:07,760 - INFO - VN ctest-vn-32678622 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-13 08:48:07,760 - DEBUG - Verifying the vn in opserver 2024-11-13 08:48:07,760 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622 virtual network link through opserver 10.0.0.24 2024-11-13 08:48:07,760 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-11-13 08:48:08,061 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-11-13 08:48:08,135 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622?flat'} 2024-11-13 08:48:08,135 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622 is found in opserver 2024-11-13 08:48:08,148 - DEBUG - Do not have enough data to verify VN in agent 2024-11-13 08:48:08,154 - DEBUG - VRF ids for VN ctest-vn-32678622: {} 2024-11-13 08:48:08,154 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-13 08:48:08,161 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c6a8b3aa-db7d-4f69-b72f-804989514c8c 2024-11-13 08:48:08,175 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b99d7be-3e99-48b3-b330-c9bc83fbc75b 2024-11-13 08:48:08,262 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2a9f2280-25be-4ea9-8111-bc6f6000b8d6 2024-11-13 08:48:08,280 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2a9f2280-25be-4ea9-8111-bc6f6000b8d6 2024-11-13 08:48:08,296 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/919e9010-7432-4868-b85d-be1a13d41249 2024-11-13 08:48:08,306 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/919e9010-7432-4868-b85d-be1a13d41249 2024-11-13 08:48:08,316 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/ca66b527-ae26-4d42-9b01-506106a1317f 2024-11-13 08:48:08,324 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-13 08:48:08,324 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2a9f2280-25be-4ea9-8111-bc6f6000b8d6 2024-11-13 08:48:08,339 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/919e9010-7432-4868-b85d-be1a13d41249 2024-11-13 08:48:08,361 - INFO - Verified VN network id 9 for VN 2a9f2280-25be-4ea9-8111-bc6f6000b8d6 2024-11-13 08:48:08,362 - INFO - Verifications in API Server for VN ctest-vn-33826865 passed 2024-11-13 08:48:08,362 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2a9f2280-25be-4ea9-8111-bc6f6000b8d6 2024-11-13 08:48:08,377 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/919e9010-7432-4868-b85d-be1a13d41249 2024-11-13 08:48:08,389 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/919e9010-7432-4868-b85d-be1a13d41249 2024-11-13 08:48:08,400 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/ca66b527-ae26-4d42-9b01-506106a1317f 2024-11-13 08:48:08,416 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-33826865', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13233399', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3071211404674354857', 'uuid-lslong': '9300421892034836694'}, 'enable': 'true', 'created': '2024-11-13T08:48:05', 'last-modified': '2024-11-13T08:48:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.584842'} 2024-11-13 08:48:08,423 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-13 08:48:08,423 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33826865 passed 2024-11-13 08:48:08,423 - DEBUG - ====Verifying policy data for ctest-vn-33826865 in API_Server ====== 2024-11-13 08:48:08,423 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-13 08:48:08,430 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c6a8b3aa-db7d-4f69-b72f-804989514c8c 2024-11-13 08:48:08,445 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b99d7be-3e99-48b3-b330-c9bc83fbc75b 2024-11-13 08:48:08,527 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/2a9f2280-25be-4ea9-8111-bc6f6000b8d6 2024-11-13 08:48:08,542 - DEBUG - ==>Verifying data for policy with id: 0d67fccf-978c-469e-9a5a-6ab883f081d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-13233399', 'ctest-policy-allow-all-45377796'] 2024-11-13 08:48:08,542 - INFO - VN ctest-vn-33826865 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-13 08:48:08,542 - DEBUG - Verifying the vn in opserver 2024-11-13 08:48:08,542 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-33826865 virtual network link through opserver 10.0.0.24 2024-11-13 08:48:08,542 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-11-13 08:48:08,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-33826865', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-33826865?flat'} 2024-11-13 08:48:08,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-33826865 is found in opserver 2024-11-13 08:48:08,566 - DEBUG - Do not have enough data to verify VN in agent 2024-11-13 08:48:08,573 - DEBUG - VRF ids for VN ctest-vn-33826865: {} 2024-11-13 08:48:08,640 - DEBUG - Services list from nova: [, , ] 2024-11-13 08:48:09,755 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2281-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2281-1) 2024-11-13 08:48:11,184 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2281-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2281-1) 2024-11-13 08:48:11,184 - INFO - Waiting for VM ctest-TestBasicPolicy-13233399-64744291 to be up.. 2024-11-13 08:48:11,278 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-13 08:48:16,364 - DEBUG - VM is in ACTIVE state now 2024-11-13 08:48:16,365 - INFO - VM name : ctest-TestBasicPolicy-13233399-64744291 2024-11-13 08:48:16,471 - DEBUG - VM ctest-TestBasicPolicy-13233399-64744291 ID is c6b02e57-0332-42ee-9b71-541372d6c619 2024-11-13 08:48:16,491 - DEBUG - VM ctest-TestBasicPolicy-13233399-64744291 launched on Node cn-jenkins-deploy-platform-ansible-os-2281-1 2024-11-13 08:48:16,575 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/c6b02e57-0332-42ee-9b71-541372d6c619 2024-11-13 08:48:16,586 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/9a6d2ddf-2ad8-4b8c-a963-0aa6e921928c 2024-11-13 08:48:19,870 - 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 1022ms') 2024-11-13 08:48:19,870 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13233399-64744291 failed! 2024-11-13 08:48:19,932 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-13233399:ctest-vn-32678622 is 93.130.53.193 and allocation pool is NOT set 2024-11-13 08:48:21,997 - 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=4.50 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.28 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 = 2.284/3.392/4.501/1.108 ms') 2024-11-13 08:48:21,997 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13233399-64744291 passed 2024-11-13 08:48:22,164 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 08:48:22,164 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13233399-64744291, IP 93.130.53.195, Port 22 2024-11-13 08:48:22,338 - DEBUG - VM ctest-TestBasicPolicy-13233399-64744291 is ready for SSH connections 2024-11-13 08:48:22,338 - INFO - Waiting for VM ctest-TestBasicPolicy-13233399-10800152 to be up.. 2024-11-13 08:48:22,431 - DEBUG - VM is in ACTIVE state now 2024-11-13 08:48:22,431 - INFO - VM name : ctest-TestBasicPolicy-13233399-10800152 2024-11-13 08:48:22,514 - DEBUG - VM ctest-TestBasicPolicy-13233399-10800152 ID is 1c847d69-eec7-443a-8ab5-675c0a0c7fac 2024-11-13 08:48:22,514 - DEBUG - VM ctest-TestBasicPolicy-13233399-10800152 launched on Node cn-jenkins-deploy-platform-ansible-os-2281-1 2024-11-13 08:48:22,604 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/1c847d69-eec7-443a-8ab5-675c0a0c7fac 2024-11-13 08:48:22,615 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/6db41497-7645-4446-b615-d2052fa14cf9 2024-11-13 08:48:23,878 - 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=6.64 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.17 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 = 2.173/4.408/6.644/2.235 ms') 2024-11-13 08:48:23,878 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-13233399-10800152 passed 2024-11-13 08:48:24,040 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 08:48:24,040 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13233399-10800152, IP 37.126.24.67, Port 22 2024-11-13 08:48:24,195 - DEBUG - VM ctest-TestBasicPolicy-13233399-10800152 is ready for SSH connections 2024-11-13 08:48:24,195 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 08:48:24,195 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 37.126.24.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-11-13 08:48:24,195 - DEBUG - ping -s 56 -c 3 -W 1 37.126.24.67 2024-11-13 08:48:28,213 - DEBUG - PING 37.126.24.67 (37.126.24.67): 56 data bytes 64 bytes from 37.126.24.67: seq=0 ttl=63 time=5.181 ms 64 bytes from 37.126.24.67: seq=1 ttl=63 time=1.074 ms 64 bytes from 37.126.24.67: seq=2 ttl=63 time=0.949 ms --- 37.126.24.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.949/2.401/5.181 ms 2024-11-13 08:48:28,213 - INFO - Ping to IP 37.126.24.67 from VM ctest-TestBasicPolicy-13233399-64744291 passed 2024-11-13 08:48:28,423 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0d67fccf-978c-469e-9a5a-6ab883f081d7", "href": "http://10.0.0.24:8082/network-policy/0d67fccf-978c-469e-9a5a-6ab883f081d7"}} 2024-11-13 08:48:28,423 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-13 08:48:28,424 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 37.126.24.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-11-13 08:48:28,424 - DEBUG - ping -s 56 -c 3 -W 1 37.126.24.67 2024-11-13 08:48:31,645 - DEBUG - PING 37.126.24.67 (37.126.24.67): 56 data bytes --- 37.126.24.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-13 08:48:31,645 - WARNING - Ping to IP 37.126.24.67 from VM ctest-TestBasicPolicy-13233399-64744291 failed 2024-11-13 08:48:31,645 - INFO - Deleting VM ctest-TestBasicPolicy-13233399-10800152 2024-11-13 08:48:31,720 - INFO - Deleting VM ctest-TestBasicPolicy-13233399-64744291 2024-11-13 08:48:32,202 - INFO - Deleted policy ctest-policy-allow-all-45377796 2024-11-13 08:48:32,202 - INFO - Deleting VN ctest-vn-33826865 2024-11-13 08:48:32,255 - DEBUG - VN 2a9f2280-25be-4ea9-8111-bc6f6000b8d6 still in use: Unable to complete operation on network 2a9f2280-25be-4ea9-8111-bc6f6000b8d6. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-a5ce41d0-bf03-419d-8121-d4e8ad03654d'] 2024-11-13 08:48:32,255 - WARNING - Deleting VN ctest-vn-33826865 failed..Will retry 2024-11-13 08:48:34,390 - DEBUG - Response for deleting network () 2024-11-13 08:48:34,391 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/919e9010-7432-4868-b85d-be1a13d41249 2024-11-13 08:48:34,398 - DEBUG - Response Code: 404 2024-11-13 08:48:34,398 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-13 08:48:34,404 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c6a8b3aa-db7d-4f69-b72f-804989514c8c 2024-11-13 08:48:34,464 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b99d7be-3e99-48b3-b330-c9bc83fbc75b 2024-11-13 08:48:34,547 - INFO - Validated that VN ctest-vn-33826865 is not found in API Server 2024-11-13 08:48:34,559 - DEBUG - VN ctest-vn-33826865 is not present in Agent 10.0.0.24 2024-11-13 08:48:34,559 - INFO - Validated that VN ctest-vn-33826865 is not in any agent 2024-11-13 08:48:34,575 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33826865 info 2024-11-13 08:48:34,575 - INFO - Deleting VN ctest-vn-32678622 2024-11-13 08:48:34,745 - DEBUG - Response for deleting network () 2024-11-13 08:48:34,745 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9632ab50-15e6-47d1-9d3c-ea14812bad81 2024-11-13 08:48:34,753 - DEBUG - Response Code: 404 2024-11-13 08:48:34,753 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-11-13 08:48:34,761 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c6a8b3aa-db7d-4f69-b72f-804989514c8c 2024-11-13 08:48:34,819 - DEBUG - Requesting: http://10.0.0.24:8082/project/9b99d7be-3e99-48b3-b330-c9bc83fbc75b 2024-11-13 08:48:34,904 - INFO - Validated that VN ctest-vn-32678622 is not found in API Server 2024-11-13 08:48:34,916 - DEBUG - VN ctest-vn-32678622 is not present in Agent 10.0.0.24 2024-11-13 08:48:34,916 - INFO - Validated that VN ctest-vn-32678622 is not in any agent 2024-11-13 08:48:34,932 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-32678622 info 2024-11-13 08:48:35,185 - DEBUG - No XMPP flaps were noticed during the test 2024-11-13 08:48:35,185 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-11-13 08:48:35,186 - INFO - -------------------------------------------------------------------------------- 2024-11-13 08:48:35,964 - INFO - Deleted project: ctest-TestBasicPolicy-13233399, ID : 9b99d7be-3e99-48b3-b330-c9bc83fbc75b