2024-09-19 02:42:09,765 - INFO - Domain Default found not creating 2024-09-19 02:42:09,976 - INFO - Project ctest-TestBasicPolicy-18660460 not found, creating it 2024-09-19 02:42:10,484 - INFO - Created Project:ctest-TestBasicPolicy-18660460, ID : 3f853a42-1bfd-499f-b1b6-abe0c844dda4 2024-09-19 02:42:12,231 - INFO - ================================================================================ 2024-09-19 02:42:12,231 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-19 02:42:12,232 - 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-09-19 02:42:12,497 - DEBUG - Nothing to compare xmpp stats {'10.0.0.47': {'10.20.0.24': '0'}} with 2024-09-19 02:42:12,497 - INFO - Initial checks done. Running the testcase now 2024-09-19 02:42:12,497 - INFO - 2024-09-19 02:42:13,217 - DEBUG - Response for create_network : {'network': {'id': 'f1e677e2-1073-4245-b22e-c33ea68674cd', 'name': 'ctest-vn-43567633', 'tenant_id': '3f853a421bfd499fb1b6abe0c844dda4', 'project_id': '3f853a421bfd499fb1b6abe0c844dda4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-vn-43567633'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 02:42:13,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '4123bd86-e531-4fcf-8f17-7c94e4621487', 'name': '', 'tenant_id': '3f853a421bfd499fb1b6abe0c844dda4', 'network_id': 'f1e677e2-1073-4245-b22e-c33ea68674cd', 'ip_version': 4, 'cidr': '49.225.102.128/26', 'allocation_pools': [{'start': '49.225.102.130', 'end': '49.225.102.190'}], 'gateway_ip': '49.225.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.225.102.130', 'tags': [], 'project_id': '3f853a421bfd499fb1b6abe0c844dda4'}} 2024-09-19 02:42:13,474 - INFO - Created VN ctest-vn-43567633 2024-09-19 02:42:13,538 - DEBUG - VN ctest-vn-43567633 UUID is f1e677e2-1073-4245-b22e-c33ea68674cd 2024-09-19 02:42:13,947 - DEBUG - Response for create_network : {'network': {'id': 'ce66cdc0-844d-4f87-8258-1eb4fa305880', 'name': 'ctest-vn-73778000', 'tenant_id': '3f853a421bfd499fb1b6abe0c844dda4', 'project_id': '3f853a421bfd499fb1b6abe0c844dda4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-vn-73778000'], 'port_security_enabled': True, 'description': ''}} 2024-09-19 02:42:14,131 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bd0a8450-ee17-4789-b20f-765a24d54448', 'name': '', 'tenant_id': '3f853a421bfd499fb1b6abe0c844dda4', 'network_id': 'ce66cdc0-844d-4f87-8258-1eb4fa305880', 'ip_version': 4, 'cidr': '94.29.7.192/26', 'allocation_pools': [{'start': '94.29.7.194', 'end': '94.29.7.254'}], 'gateway_ip': '94.29.7.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.29.7.194', 'tags': [], 'project_id': '3f853a421bfd499fb1b6abe0c844dda4'}} 2024-09-19 02:42:14,159 - INFO - Created VN ctest-vn-73778000 2024-09-19 02:42:14,221 - DEBUG - VN ctest-vn-73778000 UUID is ce66cdc0-844d-4f87-8258-1eb4fa305880 2024-09-19 02:42:14,366 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633, 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-18660460:ctest-vn-73778000, 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-09-19 02:42:14,695 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1e677e2-1073-4245-b22e-c33ea68674cd', 'name': 'ctest-vn-43567633', 'tenant_id': '3f853a421bfd499fb1b6abe0c844dda4', 'project_id': '3f853a421bfd499fb1b6abe0c844dda4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4123bd86-e531-4fcf-8f17-7c94e4621487'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-vn-43567633'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-policy-allow-all-55325330']], 'subnet_ipam': [{'subnet_cidr': '49.225.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-19 02:42:14,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce66cdc0-844d-4f87-8258-1eb4fa305880', 'name': 'ctest-vn-73778000', 'tenant_id': '3f853a421bfd499fb1b6abe0c844dda4', 'project_id': '3f853a421bfd499fb1b6abe0c844dda4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bd0a8450-ee17-4789-b20f-765a24d54448'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-vn-73778000'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-policy-allow-all-55325330']], 'subnet_ipam': [{'subnet_cidr': '94.29.7.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-19 02:42:15,061 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-19 02:42:15,423 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-19 02:42:15,468 - DEBUG - Requesting: http://10.0.0.47:8082/domain/0ea4e203-f427-4193-a9ed-2a57acaffb3c 2024-09-19 02:42:15,493 - DEBUG - Requesting: http://10.0.0.47:8082/project/3f853a42-1bfd-499f-b1b6-abe0c844dda4 2024-09-19 02:42:15,592 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/f1e677e2-1073-4245-b22e-c33ea68674cd 2024-09-19 02:42:15,614 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/f1e677e2-1073-4245-b22e-c33ea68674cd 2024-09-19 02:42:15,644 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3da374b-aa90-4b5b-a3dd-dfe7a998d755 2024-09-19 02:42:15,662 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3da374b-aa90-4b5b-a3dd-dfe7a998d755 2024-09-19 02:42:15,674 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/50522a97-c281-42a8-9e96-08288b53f8a1 2024-09-19 02:42:15,685 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-19 02:42:15,686 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/f1e677e2-1073-4245-b22e-c33ea68674cd 2024-09-19 02:42:15,706 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3da374b-aa90-4b5b-a3dd-dfe7a998d755 2024-09-19 02:42:15,734 - INFO - Verified VN network id 8 for VN f1e677e2-1073-4245-b22e-c33ea68674cd 2024-09-19 02:42:15,734 - INFO - Verifications in API Server for VN ctest-vn-43567633 passed 2024-09-19 02:42:15,734 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/f1e677e2-1073-4245-b22e-c33ea68674cd 2024-09-19 02:42:15,752 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3da374b-aa90-4b5b-a3dd-dfe7a998d755 2024-09-19 02:42:15,763 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3da374b-aa90-4b5b-a3dd-dfe7a998d755 2024-09-19 02:42:15,777 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/50522a97-c281-42a8-9e96-08288b53f8a1 2024-09-19 02:42:15,800 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18660460', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17430751220606386757', 'uuid-lslong': '12839414261529081037'}, 'enable': 'true', 'created': '2024-09-19T02:42:13', 'last-modified': '2024-09-19T02:42:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.127133'} 2024-09-19 02:42:15,809 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-19 02:42:15,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43567633 passed 2024-09-19 02:42:15,809 - DEBUG - ====Verifying policy data for ctest-vn-43567633 in API_Server ====== 2024-09-19 02:42:15,809 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-19 02:42:15,817 - DEBUG - Requesting: http://10.0.0.47:8082/domain/0ea4e203-f427-4193-a9ed-2a57acaffb3c 2024-09-19 02:42:15,835 - DEBUG - Requesting: http://10.0.0.47:8082/project/3f853a42-1bfd-499f-b1b6-abe0c844dda4 2024-09-19 02:42:15,922 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/f1e677e2-1073-4245-b22e-c33ea68674cd 2024-09-19 02:42:15,939 - DEBUG - ==>Verifying data for policy with id: ce3d835d-11ea-475c-a6f6-2ba5abb83494, fqn: ['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-policy-allow-all-55325330'] 2024-09-19 02:42:15,939 - INFO - VN ctest-vn-43567633 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-19 02:42:15,939 - DEBUG - Verifying the vn in opserver 2024-09-19 02:42:15,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633 virtual network link through opserver 10.0.0.47 2024-09-19 02:42:15,940 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-09-19 02:42:16,285 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-09-19 02:42:16,370 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633?flat'} 2024-09-19 02:42:16,370 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633 is found in opserver 2024-09-19 02:42:16,385 - DEBUG - Do not have enough data to verify VN in agent 2024-09-19 02:42:16,392 - DEBUG - VRF ids for VN ctest-vn-43567633: {} 2024-09-19 02:42:16,392 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-19 02:42:16,400 - DEBUG - Requesting: http://10.0.0.47:8082/domain/0ea4e203-f427-4193-a9ed-2a57acaffb3c 2024-09-19 02:42:16,416 - DEBUG - Requesting: http://10.0.0.47:8082/project/3f853a42-1bfd-499f-b1b6-abe0c844dda4 2024-09-19 02:42:16,524 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ce66cdc0-844d-4f87-8258-1eb4fa305880 2024-09-19 02:42:16,546 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ce66cdc0-844d-4f87-8258-1eb4fa305880 2024-09-19 02:42:16,563 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/8416a007-b218-4bfb-9305-1805f1309923 2024-09-19 02:42:16,573 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/8416a007-b218-4bfb-9305-1805f1309923 2024-09-19 02:42:16,584 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/2ce4f5c7-75b7-4722-97e7-f1089deffdcb 2024-09-19 02:42:16,596 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-19 02:42:16,596 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ce66cdc0-844d-4f87-8258-1eb4fa305880 2024-09-19 02:42:16,614 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/8416a007-b218-4bfb-9305-1805f1309923 2024-09-19 02:42:16,637 - INFO - Verified VN network id 9 for VN ce66cdc0-844d-4f87-8258-1eb4fa305880 2024-09-19 02:42:16,637 - INFO - Verifications in API Server for VN ctest-vn-73778000 passed 2024-09-19 02:42:16,637 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ce66cdc0-844d-4f87-8258-1eb4fa305880 2024-09-19 02:42:16,654 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/8416a007-b218-4bfb-9305-1805f1309923 2024-09-19 02:42:16,665 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/8416a007-b218-4bfb-9305-1805f1309923 2024-09-19 02:42:16,674 - DEBUG - Requesting: http://10.0.0.47:8082/route-target/2ce4f5c7-75b7-4722-97e7-f1089deffdcb 2024-09-19 02:42:16,696 - DEBUG - Control-node 10.0.0.47 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-73778000', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18660460', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14872801046174715783', 'uuid-lslong': '9392290785521588352'}, 'enable': 'true', 'created': '2024-09-19T02:42:13', 'last-modified': '2024-09-19T02:42:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.798473'} 2024-09-19 02:42:16,707 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-19 02:42:16,707 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73778000 passed 2024-09-19 02:42:16,708 - DEBUG - ====Verifying policy data for ctest-vn-73778000 in API_Server ====== 2024-09-19 02:42:16,708 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-19 02:42:16,715 - DEBUG - Requesting: http://10.0.0.47:8082/domain/0ea4e203-f427-4193-a9ed-2a57acaffb3c 2024-09-19 02:42:16,735 - DEBUG - Requesting: http://10.0.0.47:8082/project/3f853a42-1bfd-499f-b1b6-abe0c844dda4 2024-09-19 02:42:16,823 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-network/ce66cdc0-844d-4f87-8258-1eb4fa305880 2024-09-19 02:42:16,843 - DEBUG - ==>Verifying data for policy with id: ce3d835d-11ea-475c-a6f6-2ba5abb83494, fqn: ['default-domain', 'ctest-TestBasicPolicy-18660460', 'ctest-policy-allow-all-55325330'] 2024-09-19 02:42:16,843 - INFO - VN ctest-vn-73778000 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-19 02:42:16,843 - DEBUG - Verifying the vn in opserver 2024-09-19 02:42:16,843 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-73778000 virtual network link through opserver 10.0.0.47 2024-09-19 02:42:16,843 - DEBUG - Requesting: http://10.0.0.47:8081/analytics/uves/virtual-networks 2024-09-19 02:42:16,860 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-73778000', 'href': 'http://10.0.0.47:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-73778000?flat'} 2024-09-19 02:42:16,860 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-73778000 is found in opserver 2024-09-19 02:42:16,877 - DEBUG - Do not have enough data to verify VN in agent 2024-09-19 02:42:16,888 - DEBUG - VRF ids for VN ctest-vn-73778000: {} 2024-09-19 02:42:16,972 - DEBUG - Services list from nova: [, , ] 2024-09-19 02:42:18,351 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1998-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1998-1) 2024-09-19 02:42:19,746 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1998-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1998-1) 2024-09-19 02:42:19,746 - INFO - Waiting for VM ctest-TestBasicPolicy-18660460-75680586 to be up.. 2024-09-19 02:42:19,854 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-19 02:42:24,963 - DEBUG - VM is in ACTIVE state now 2024-09-19 02:42:24,963 - INFO - VM name : ctest-TestBasicPolicy-18660460-75680586 2024-09-19 02:42:25,056 - DEBUG - VM ctest-TestBasicPolicy-18660460-75680586 ID is a2c0cf9c-5240-410a-9d5b-f36452125e1d 2024-09-19 02:42:25,079 - DEBUG - VM ctest-TestBasicPolicy-18660460-75680586 launched on Node cn-jenkins-deploy-platform-ansible-os-1998-1 2024-09-19 02:42:25,183 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/a2c0cf9c-5240-410a-9d5b-f36452125e1d 2024-09-19 02:42:25,196 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/6fbfd581-9633-457b-913c-c3308e22ab40 2024-09-19 02:42:28,488 - 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 1014ms') 2024-09-19 02:42:28,488 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-18660460-75680586 failed! 2024-09-19 02:42:28,561 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-18660460:ctest-vn-43567633 is 49.225.102.129 and allocation pool is NOT set 2024-09-19 02:42:30,621 - 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=16.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.31 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 = 3.313/9.653/15.993/6.340 ms') 2024-09-19 02:42:30,621 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-18660460-75680586 passed 2024-09-19 02:42:30,793 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:42:30,793 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-18660460-75680586, IP 49.225.102.131, Port 22 2024-09-19 02:42:30,860 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-19 02:42:30,997 - DEBUG - VM ctest-TestBasicPolicy-18660460-75680586 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-19 02:42:35,998 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:42:35,998 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-18660460-75680586, IP 49.225.102.131, Port 22 2024-09-19 02:42:36,164 - DEBUG - VM ctest-TestBasicPolicy-18660460-75680586 is ready for SSH connections 2024-09-19 02:42:36,164 - INFO - Waiting for VM ctest-TestBasicPolicy-18660460-83933044 to be up.. 2024-09-19 02:42:36,257 - DEBUG - VM is in ACTIVE state now 2024-09-19 02:42:36,257 - INFO - VM name : ctest-TestBasicPolicy-18660460-83933044 2024-09-19 02:42:36,355 - DEBUG - VM ctest-TestBasicPolicy-18660460-83933044 ID is 949d18a1-d35a-426a-a03d-d79eb8fc3516 2024-09-19 02:42:36,355 - DEBUG - VM ctest-TestBasicPolicy-18660460-83933044 launched on Node cn-jenkins-deploy-platform-ansible-os-1998-1 2024-09-19 02:42:36,447 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine/949d18a1-d35a-426a-a03d-d79eb8fc3516 2024-09-19 02:42:36,461 - DEBUG - Requesting: http://10.0.0.47:8082/virtual-machine-interface/10cadc4e-ca2e-4c8c-be6b-79d21d3c9e0d 2024-09-19 02:42:37,721 - 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.40 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.526 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.526/1.962/3.399/1.436 ms') 2024-09-19 02:42:37,721 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-18660460-83933044 passed 2024-09-19 02:42:37,905 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:42:37,905 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-18660460-83933044, IP 94.29.7.195, Port 22 2024-09-19 02:42:38,079 - DEBUG - VM ctest-TestBasicPolicy-18660460-83933044 is ready for SSH connections 2024-09-19 02:42:38,080 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:42:38,080 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 94.29.7.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-09-19 02:42:38,080 - DEBUG - ping -s 56 -c 3 -W 1 94.29.7.195 2024-09-19 02:42:42,180 - DEBUG - PING 94.29.7.195 (94.29.7.195): 56 data bytes 64 bytes from 94.29.7.195: seq=0 ttl=63 time=4.305 ms 64 bytes from 94.29.7.195: seq=1 ttl=63 time=1.409 ms 64 bytes from 94.29.7.195: seq=2 ttl=63 time=1.344 ms --- 94.29.7.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.344/2.352/4.305 ms 2024-09-19 02:42:42,180 - INFO - Ping to IP 94.29.7.195 from VM ctest-TestBasicPolicy-18660460-75680586 passed 2024-09-19 02:42:42,393 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ce3d835d-11ea-475c-a6f6-2ba5abb83494", "href": "http://10.0.0.47:8082/network-policy/ce3d835d-11ea-475c-a6f6-2ba5abb83494"}} 2024-09-19 02:42:42,393 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-19 02:42:42,393 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 94.29.7.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.47, gateway password: c0ntrail123 2024-09-19 02:42:42,393 - DEBUG - ping -s 56 -c 3 -W 1 94.29.7.195 2024-09-19 02:42:45,629 - DEBUG - PING 94.29.7.195 (94.29.7.195): 56 data bytes --- 94.29.7.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-19 02:42:45,629 - WARNING - Ping to IP 94.29.7.195 from VM ctest-TestBasicPolicy-18660460-75680586 failed 2024-09-19 02:42:45,629 - INFO - Deleting VM ctest-TestBasicPolicy-18660460-83933044 2024-09-19 02:42:45,716 - INFO - Deleting VM ctest-TestBasicPolicy-18660460-75680586 2024-09-19 02:42:46,236 - INFO - Deleted policy ctest-policy-allow-all-55325330 2024-09-19 02:42:46,236 - INFO - Deleting VN ctest-vn-73778000 2024-09-19 02:42:46,290 - DEBUG - VN ce66cdc0-844d-4f87-8258-1eb4fa305880 still in use: Unable to complete operation on network ce66cdc0-844d-4f87-8258-1eb4fa305880. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8dff51bb-be75-4cae-9557-3ea1013ed8be'] 2024-09-19 02:42:46,290 - WARNING - Deleting VN ctest-vn-73778000 failed..Will retry 2024-09-19 02:42:48,454 - DEBUG - Response for deleting network () 2024-09-19 02:42:48,454 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/8416a007-b218-4bfb-9305-1805f1309923 2024-09-19 02:42:48,464 - DEBUG - Response Code: 404 2024-09-19 02:42:48,464 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-19 02:42:48,471 - DEBUG - Requesting: http://10.0.0.47:8082/domain/0ea4e203-f427-4193-a9ed-2a57acaffb3c 2024-09-19 02:42:48,531 - DEBUG - Requesting: http://10.0.0.47:8082/project/3f853a42-1bfd-499f-b1b6-abe0c844dda4 2024-09-19 02:42:48,621 - INFO - Validated that VN ctest-vn-73778000 is not found in API Server 2024-09-19 02:42:48,635 - DEBUG - VN ctest-vn-73778000 is not present in Agent 10.0.0.47 2024-09-19 02:42:48,635 - INFO - Validated that VN ctest-vn-73778000 is not in any agent 2024-09-19 02:42:48,653 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-73778000 info 2024-09-19 02:42:48,654 - INFO - Deleting VN ctest-vn-43567633 2024-09-19 02:42:48,779 - DEBUG - Response for deleting network () 2024-09-19 02:42:48,779 - DEBUG - Requesting: http://10.0.0.47:8082/routing-instance/a3da374b-aa90-4b5b-a3dd-dfe7a998d755 2024-09-19 02:42:48,786 - DEBUG - Response Code: 404 2024-09-19 02:42:48,786 - DEBUG - Requesting: http://10.0.0.47:8082/domains 2024-09-19 02:42:48,798 - DEBUG - Requesting: http://10.0.0.47:8082/domain/0ea4e203-f427-4193-a9ed-2a57acaffb3c 2024-09-19 02:42:48,865 - DEBUG - Requesting: http://10.0.0.47:8082/project/3f853a42-1bfd-499f-b1b6-abe0c844dda4 2024-09-19 02:42:48,965 - INFO - Validated that VN ctest-vn-43567633 is not found in API Server 2024-09-19 02:42:48,980 - DEBUG - VN ctest-vn-43567633 is not present in Agent 10.0.0.47 2024-09-19 02:42:48,980 - INFO - Validated that VN ctest-vn-43567633 is not in any agent 2024-09-19 02:42:48,998 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43567633 info 2024-09-19 02:42:49,260 - DEBUG - No XMPP flaps were noticed during the test 2024-09-19 02:42:49,260 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2024-09-19 02:42:49,260 - INFO - -------------------------------------------------------------------------------- 2024-09-19 02:42:50,038 - INFO - Deleted project: ctest-TestBasicPolicy-18660460, ID : 3f853a42-1bfd-499f-b1b6-abe0c844dda4