2024-08-27 20:07:58,371 - INFO - Domain Default found not creating 2024-08-27 20:07:58,523 - INFO - Project ctest-TestBasicPolicy-43702042 not found, creating it 2024-08-27 20:07:58,998 - INFO - Created Project:ctest-TestBasicPolicy-43702042, ID : 2b936684-dc56-493d-ac1e-c6ec145c9e51 2024-08-27 20:08:00,537 - INFO - ================================================================================ 2024-08-27 20:08:00,537 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-27 20:08:00,537 - 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-08-27 20:08:00,796 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.6': '0'}} with 2024-08-27 20:08:00,796 - INFO - Initial checks done. Running the testcase now 2024-08-27 20:08:00,796 - INFO - 2024-08-27 20:08:01,367 - DEBUG - Response for create_network : {'network': {'id': '33485143-3ab2-478f-9f15-4fe2e18e3a7c', 'name': 'ctest-vn-92796408', 'tenant_id': '2b936684dc56493dac1ec6ec145c9e51', 'project_id': '2b936684dc56493dac1ec6ec145c9e51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43702042', 'ctest-vn-92796408'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 20:08:01,590 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8ed87c7-1fc7-4a0e-8cf2-bfa186ecd6e9', 'name': '', 'tenant_id': '2b936684dc56493dac1ec6ec145c9e51', 'network_id': '33485143-3ab2-478f-9f15-4fe2e18e3a7c', 'ip_version': 4, 'cidr': '191.1.55.0/26', 'allocation_pools': [{'start': '191.1.55.2', 'end': '191.1.55.62'}], 'gateway_ip': '191.1.55.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.1.55.2', 'tags': [], 'project_id': '2b936684dc56493dac1ec6ec145c9e51'}} 2024-08-27 20:08:01,609 - INFO - Created VN ctest-vn-92796408 2024-08-27 20:08:01,663 - DEBUG - VN ctest-vn-92796408 UUID is 33485143-3ab2-478f-9f15-4fe2e18e3a7c 2024-08-27 20:08:01,957 - DEBUG - Response for create_network : {'network': {'id': '354e26ea-88e3-49b3-a226-e3deaa64d0c9', 'name': 'ctest-vn-99100126', 'tenant_id': '2b936684dc56493dac1ec6ec145c9e51', 'project_id': '2b936684dc56493dac1ec6ec145c9e51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43702042', 'ctest-vn-99100126'], 'port_security_enabled': True, 'description': ''}} 2024-08-27 20:08:02,142 - DEBUG - Response for create_subnet : {'subnet': {'id': '9655fd50-10c8-41b7-a02c-10403f09b94f', 'name': '', 'tenant_id': '2b936684dc56493dac1ec6ec145c9e51', 'network_id': '354e26ea-88e3-49b3-a226-e3deaa64d0c9', 'ip_version': 4, 'cidr': '110.119.174.192/26', 'allocation_pools': [{'start': '110.119.174.194', 'end': '110.119.174.254'}], 'gateway_ip': '110.119.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.119.174.194', 'tags': [], 'project_id': '2b936684dc56493dac1ec6ec145c9e51'}} 2024-08-27 20:08:02,161 - INFO - Created VN ctest-vn-99100126 2024-08-27 20:08:02,211 - DEBUG - VN ctest-vn-99100126 UUID is 354e26ea-88e3-49b3-a226-e3deaa64d0c9 2024-08-27 20:08:02,326 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43702042:ctest-vn-92796408, 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-43702042:ctest-vn-99100126, 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-08-27 20:08:02,624 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33485143-3ab2-478f-9f15-4fe2e18e3a7c', 'name': 'ctest-vn-92796408', 'tenant_id': '2b936684dc56493dac1ec6ec145c9e51', 'project_id': '2b936684dc56493dac1ec6ec145c9e51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8ed87c7-1fc7-4a0e-8cf2-bfa186ecd6e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43702042', 'ctest-vn-92796408'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43702042', 'ctest-policy-allow-all-53545956']], 'subnet_ipam': [{'subnet_cidr': '191.1.55.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 20:08:02,870 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '354e26ea-88e3-49b3-a226-e3deaa64d0c9', 'name': 'ctest-vn-99100126', 'tenant_id': '2b936684dc56493dac1ec6ec145c9e51', 'project_id': '2b936684dc56493dac1ec6ec145c9e51', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9655fd50-10c8-41b7-a02c-10403f09b94f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43702042', 'ctest-vn-99100126'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43702042', 'ctest-policy-allow-all-53545956']], 'subnet_ipam': [{'subnet_cidr': '110.119.174.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-27 20:08:03,047 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-08-27 20:08:03,347 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-08-27 20:08:03,380 - DEBUG - Requesting: http://10.0.0.40:8082/domain/1fc1897b-0de0-4eba-8e65-2767cd761ff3 2024-08-27 20:08:03,394 - DEBUG - Requesting: http://10.0.0.40:8082/project/2b936684-dc56-493d-ac1e-c6ec145c9e51 2024-08-27 20:08:03,465 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/33485143-3ab2-478f-9f15-4fe2e18e3a7c 2024-08-27 20:08:03,477 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/33485143-3ab2-478f-9f15-4fe2e18e3a7c 2024-08-27 20:08:03,489 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/6be2c5db-07a9-4a50-8eb0-585ed4acc284 2024-08-27 20:08:03,499 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/6be2c5db-07a9-4a50-8eb0-585ed4acc284 2024-08-27 20:08:03,508 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/1edcbab3-795c-4c2e-ac8a-ab84af02b00f 2024-08-27 20:08:03,516 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 20:08:03,516 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/33485143-3ab2-478f-9f15-4fe2e18e3a7c 2024-08-27 20:08:03,527 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/6be2c5db-07a9-4a50-8eb0-585ed4acc284 2024-08-27 20:08:03,541 - INFO - Verified VN network id 9 for VN 33485143-3ab2-478f-9f15-4fe2e18e3a7c 2024-08-27 20:08:03,541 - INFO - Verifications in API Server for VN ctest-vn-92796408 passed 2024-08-27 20:08:03,541 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/33485143-3ab2-478f-9f15-4fe2e18e3a7c 2024-08-27 20:08:03,552 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/6be2c5db-07a9-4a50-8eb0-585ed4acc284 2024-08-27 20:08:03,560 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/6be2c5db-07a9-4a50-8eb0-585ed4acc284 2024-08-27 20:08:03,568 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/1edcbab3-795c-4c2e-ac8a-ab84af02b00f 2024-08-27 20:08:03,583 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43702042:ctest-vn-92796408', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43702042', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3695292843446912911', 'uuid-lslong': '11463156262406863484'}, 'enable': 'true', 'created': '2024-08-27T20:08:01', 'last-modified': '2024-08-27T20:08:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982955'} 2024-08-27 20:08:03,593 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-27 20:08:03,593 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92796408 passed 2024-08-27 20:08:03,593 - DEBUG - ====Verifying policy data for ctest-vn-92796408 in API_Server ====== 2024-08-27 20:08:03,594 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-08-27 20:08:03,601 - DEBUG - Requesting: http://10.0.0.40:8082/domain/1fc1897b-0de0-4eba-8e65-2767cd761ff3 2024-08-27 20:08:03,615 - DEBUG - Requesting: http://10.0.0.40:8082/project/2b936684-dc56-493d-ac1e-c6ec145c9e51 2024-08-27 20:08:03,687 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/33485143-3ab2-478f-9f15-4fe2e18e3a7c 2024-08-27 20:08:03,695 - DEBUG - ==>Verifying data for policy with id: 00ec0743-cbce-4c0b-8be4-f9c36ebe6910, fqn: ['default-domain', 'ctest-TestBasicPolicy-43702042', 'ctest-policy-allow-all-53545956'] 2024-08-27 20:08:03,695 - INFO - VN ctest-vn-92796408 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 20:08:03,696 - DEBUG - Verifying the vn in opserver 2024-08-27 20:08:03,696 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43702042:ctest-vn-92796408 virtual network link through opserver 10.0.0.40 2024-08-27 20:08:03,696 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-08-27 20:08:03,989 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-08-27 20:08:04,050 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43702042:ctest-vn-92796408', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43702042:ctest-vn-92796408?flat'} 2024-08-27 20:08:04,050 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43702042:ctest-vn-92796408 is found in opserver 2024-08-27 20:08:04,061 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 20:08:04,066 - DEBUG - VRF ids for VN ctest-vn-92796408: {} 2024-08-27 20:08:04,066 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-08-27 20:08:04,072 - DEBUG - Requesting: http://10.0.0.40:8082/domain/1fc1897b-0de0-4eba-8e65-2767cd761ff3 2024-08-27 20:08:04,085 - DEBUG - Requesting: http://10.0.0.40:8082/project/2b936684-dc56-493d-ac1e-c6ec145c9e51 2024-08-27 20:08:04,152 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/354e26ea-88e3-49b3-a226-e3deaa64d0c9 2024-08-27 20:08:04,162 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/354e26ea-88e3-49b3-a226-e3deaa64d0c9 2024-08-27 20:08:04,170 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/330b10d0-6395-4a15-815b-81a7d63787b2 2024-08-27 20:08:04,177 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/330b10d0-6395-4a15-815b-81a7d63787b2 2024-08-27 20:08:04,184 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/ed9df307-0de9-47f5-9796-d148ddcda3d5 2024-08-27 20:08:04,190 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 20:08:04,190 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/354e26ea-88e3-49b3-a226-e3deaa64d0c9 2024-08-27 20:08:04,198 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/330b10d0-6395-4a15-815b-81a7d63787b2 2024-08-27 20:08:04,211 - INFO - Verified VN network id 10 for VN 354e26ea-88e3-49b3-a226-e3deaa64d0c9 2024-08-27 20:08:04,211 - INFO - Verifications in API Server for VN ctest-vn-99100126 passed 2024-08-27 20:08:04,211 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/354e26ea-88e3-49b3-a226-e3deaa64d0c9 2024-08-27 20:08:04,219 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/330b10d0-6395-4a15-815b-81a7d63787b2 2024-08-27 20:08:04,226 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/330b10d0-6395-4a15-815b-81a7d63787b2 2024-08-27 20:08:04,232 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/ed9df307-0de9-47f5-9796-d148ddcda3d5 2024-08-27 20:08:04,244 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43702042:ctest-vn-99100126', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43702042', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3841050320954411443', 'uuid-lslong': '11684276828740309193'}, 'enable': 'true', 'created': '2024-08-27T20:08:01', 'last-modified': '2024-08-27T20:08:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.400198'} 2024-08-27 20:08:04,251 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-27 20:08:04,251 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99100126 passed 2024-08-27 20:08:04,251 - DEBUG - ====Verifying policy data for ctest-vn-99100126 in API_Server ====== 2024-08-27 20:08:04,251 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-08-27 20:08:04,256 - DEBUG - Requesting: http://10.0.0.40:8082/domain/1fc1897b-0de0-4eba-8e65-2767cd761ff3 2024-08-27 20:08:04,268 - DEBUG - Requesting: http://10.0.0.40:8082/project/2b936684-dc56-493d-ac1e-c6ec145c9e51 2024-08-27 20:08:04,337 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/354e26ea-88e3-49b3-a226-e3deaa64d0c9 2024-08-27 20:08:04,346 - DEBUG - ==>Verifying data for policy with id: 00ec0743-cbce-4c0b-8be4-f9c36ebe6910, fqn: ['default-domain', 'ctest-TestBasicPolicy-43702042', 'ctest-policy-allow-all-53545956'] 2024-08-27 20:08:04,346 - INFO - VN ctest-vn-99100126 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-27 20:08:04,346 - DEBUG - Verifying the vn in opserver 2024-08-27 20:08:04,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43702042:ctest-vn-99100126 virtual network link through opserver 10.0.0.40 2024-08-27 20:08:04,346 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2024-08-27 20:08:04,356 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43702042:ctest-vn-99100126', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43702042:ctest-vn-99100126?flat'} 2024-08-27 20:08:04,356 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43702042:ctest-vn-99100126 is found in opserver 2024-08-27 20:08:04,367 - DEBUG - Do not have enough data to verify VN in agent 2024-08-27 20:08:04,372 - DEBUG - VRF ids for VN ctest-vn-99100126: {} 2024-08-27 20:08:04,423 - DEBUG - Services list from nova: [, , ] 2024-08-27 20:08:05,446 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1804-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1804-1) 2024-08-27 20:08:06,671 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1804-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1804-1) 2024-08-27 20:08:06,671 - INFO - Waiting for VM ctest-TestBasicPolicy-43702042-31458261 to be up.. 2024-08-27 20:08:06,771 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-27 20:08:11,847 - DEBUG - VM is in ACTIVE state now 2024-08-27 20:08:11,847 - INFO - VM name : ctest-TestBasicPolicy-43702042-31458261 2024-08-27 20:08:11,923 - DEBUG - VM ctest-TestBasicPolicy-43702042-31458261 ID is 6a1aab2f-5553-46e4-9e9f-f61a5ed4fee8 2024-08-27 20:08:11,942 - DEBUG - VM ctest-TestBasicPolicy-43702042-31458261 launched on Node cn-jenkins-deploy-platform-ansible-os-1804-1 2024-08-27 20:08:12,020 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/6a1aab2f-5553-46e4-9e9f-f61a5ed4fee8 2024-08-27 20:08:12,028 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/0c103f92-8d2a-4ae0-8db2-06f514651ba0 2024-08-27 20:08:15,287 - 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 1025ms') 2024-08-27 20:08:15,287 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43702042-31458261 failed! 2024-08-27 20:08:15,343 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-43702042:ctest-vn-92796408 is 191.1.55.1 and allocation pool is NOT set 2024-08-27 20:08:17,400 - 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.23 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.942 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.942/2.087/3.232/1.145 ms') 2024-08-27 20:08:17,400 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43702042-31458261 passed 2024-08-27 20:08:17,555 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 20:08:17,555 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43702042-31458261, IP 191.1.55.3, Port 22 2024-08-27 20:08:17,709 - DEBUG - VM ctest-TestBasicPolicy-43702042-31458261 is ready for SSH connections 2024-08-27 20:08:17,710 - INFO - Waiting for VM ctest-TestBasicPolicy-43702042-10547988 to be up.. 2024-08-27 20:08:17,784 - DEBUG - VM is in ACTIVE state now 2024-08-27 20:08:17,784 - INFO - VM name : ctest-TestBasicPolicy-43702042-10547988 2024-08-27 20:08:17,856 - DEBUG - VM ctest-TestBasicPolicy-43702042-10547988 ID is de796916-27dd-461f-bec0-7a136a5c57bc 2024-08-27 20:08:17,856 - DEBUG - VM ctest-TestBasicPolicy-43702042-10547988 launched on Node cn-jenkins-deploy-platform-ansible-os-1804-1 2024-08-27 20:08:17,930 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/de796916-27dd-461f-bec0-7a136a5c57bc 2024-08-27 20:08:17,939 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/9594a863-eb8b-4eee-bef1-38afab15c35b 2024-08-27 20:08:19,171 - 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.93 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.01 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 = 1.013/2.470/3.928/1.457 ms') 2024-08-27 20:08:19,171 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-43702042-10547988 passed 2024-08-27 20:08:19,322 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 20:08:19,323 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43702042-10547988, IP 110.119.174.195, Port 22 2024-08-27 20:08:19,478 - DEBUG - VM ctest-TestBasicPolicy-43702042-10547988 is ready for SSH connections 2024-08-27 20:08:19,478 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 20:08:19,478 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 110.119.174.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-08-27 20:08:19,479 - DEBUG - ping -s 56 -c 3 -W 1 110.119.174.195 2024-08-27 20:08:23,473 - DEBUG - PING 110.119.174.195 (110.119.174.195): 56 data bytes 64 bytes from 110.119.174.195: seq=0 ttl=63 time=3.039 ms 64 bytes from 110.119.174.195: seq=1 ttl=63 time=0.807 ms 64 bytes from 110.119.174.195: seq=2 ttl=63 time=0.777 ms --- 110.119.174.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.777/1.541/3.039 ms 2024-08-27 20:08:23,473 - INFO - Ping to IP 110.119.174.195 from VM ctest-TestBasicPolicy-43702042-31458261 passed 2024-08-27 20:08:23,654 - DEBUG - Policy Update Response {"network-policy": {"uuid": "00ec0743-cbce-4c0b-8be4-f9c36ebe6910", "href": "http://10.0.0.40:8082/network-policy/00ec0743-cbce-4c0b-8be4-f9c36ebe6910"}} 2024-08-27 20:08:23,654 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-27 20:08:23,655 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 110.119.174.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2024-08-27 20:08:23,655 - DEBUG - ping -s 56 -c 3 -W 1 110.119.174.195 2024-08-27 20:08:26,847 - DEBUG - PING 110.119.174.195 (110.119.174.195): 56 data bytes 64 bytes from 110.119.174.195: seq=0 ttl=63 time=1.229 ms --- 110.119.174.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.229/1.229/1.229 ms 2024-08-27 20:08:26,847 - WARNING - Ping to IP 110.119.174.195 from VM ctest-TestBasicPolicy-43702042-31458261 failed 2024-08-27 20:08:26,847 - INFO - Deleting VM ctest-TestBasicPolicy-43702042-10547988 2024-08-27 20:08:26,916 - INFO - Deleting VM ctest-TestBasicPolicy-43702042-31458261 2024-08-27 20:08:27,341 - INFO - Deleted policy ctest-policy-allow-all-53545956 2024-08-27 20:08:27,342 - INFO - Deleting VN ctest-vn-99100126 2024-08-27 20:08:27,384 - DEBUG - VN 354e26ea-88e3-49b3-a226-e3deaa64d0c9 still in use: Unable to complete operation on network 354e26ea-88e3-49b3-a226-e3deaa64d0c9. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b7c6b393-34e6-43ef-b2f7-7126de752c09'] 2024-08-27 20:08:27,385 - WARNING - Deleting VN ctest-vn-99100126 failed..Will retry 2024-08-27 20:08:29,480 - DEBUG - Response for deleting network () 2024-08-27 20:08:29,480 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/330b10d0-6395-4a15-815b-81a7d63787b2 2024-08-27 20:08:29,487 - DEBUG - Response Code: 404 2024-08-27 20:08:29,488 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-08-27 20:08:29,493 - DEBUG - Requesting: http://10.0.0.40:8082/domain/1fc1897b-0de0-4eba-8e65-2767cd761ff3 2024-08-27 20:08:29,549 - DEBUG - Requesting: http://10.0.0.40:8082/project/2b936684-dc56-493d-ac1e-c6ec145c9e51 2024-08-27 20:08:29,619 - INFO - Validated that VN ctest-vn-99100126 is not found in API Server 2024-08-27 20:08:29,630 - DEBUG - VN ctest-vn-99100126 is not present in Agent 10.0.0.40 2024-08-27 20:08:29,630 - INFO - Validated that VN ctest-vn-99100126 is not in any agent 2024-08-27 20:08:29,646 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-99100126 info 2024-08-27 20:08:29,646 - INFO - Deleting VN ctest-vn-92796408 2024-08-27 20:08:29,743 - DEBUG - Response for deleting network () 2024-08-27 20:08:29,743 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/6be2c5db-07a9-4a50-8eb0-585ed4acc284 2024-08-27 20:08:29,749 - DEBUG - Response Code: 404 2024-08-27 20:08:29,749 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2024-08-27 20:08:29,756 - DEBUG - Requesting: http://10.0.0.40:8082/domain/1fc1897b-0de0-4eba-8e65-2767cd761ff3 2024-08-27 20:08:29,811 - DEBUG - Requesting: http://10.0.0.40:8082/project/2b936684-dc56-493d-ac1e-c6ec145c9e51 2024-08-27 20:08:29,877 - INFO - Validated that VN ctest-vn-92796408 is not found in API Server 2024-08-27 20:08:29,888 - DEBUG - VN ctest-vn-92796408 is not present in Agent 10.0.0.40 2024-08-27 20:08:29,888 - INFO - Validated that VN ctest-vn-92796408 is not in any agent 2024-08-27 20:08:29,903 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92796408 info 2024-08-27 20:08:30,156 - DEBUG - No XMPP flaps were noticed during the test 2024-08-27 20:08:30,156 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-08-27 20:08:30,156 - INFO - -------------------------------------------------------------------------------- 2024-08-27 20:08:30,807 - INFO - Deleted project: ctest-TestBasicPolicy-43702042, ID : 2b936684-dc56-493d-ac1e-c6ec145c9e51