2024-10-26 20:53:27,849 - INFO - Domain Default found not creating 2024-10-26 20:53:28,035 - INFO - Project ctest-TestBasicPolicy-07455325 not found, creating it 2024-10-26 20:53:28,562 - INFO - Created Project:ctest-TestBasicPolicy-07455325, ID : e2e54ad9-e958-43fd-b64d-a85770c59ef1 2024-10-26 20:53:30,310 - INFO - ================================================================================ 2024-10-26 20:53:30,310 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-26 20:53:30,310 - 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-26 20:53:30,584 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.19': '0'}} with 2024-10-26 20:53:30,584 - INFO - Initial checks done. Running the testcase now 2024-10-26 20:53:30,584 - INFO - 2024-10-26 20:53:31,269 - DEBUG - Response for create_network : {'network': {'id': '4e3a33f8-b462-4d28-be41-a3580ba504c8', 'name': 'ctest-vn-57997207', 'tenant_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'project_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-vn-57997207'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 20:53:31,535 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a960f8be-7ce4-4e10-b50c-2e5902ef2c3a', 'name': '', 'tenant_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'network_id': '4e3a33f8-b462-4d28-be41-a3580ba504c8', 'ip_version': 4, 'cidr': '54.222.82.128/26', 'allocation_pools': [{'start': '54.222.82.130', 'end': '54.222.82.190'}], 'gateway_ip': '54.222.82.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.222.82.130', 'tags': [], 'project_id': 'e2e54ad9e95843fdb64da85770c59ef1'}} 2024-10-26 20:53:31,566 - INFO - Created VN ctest-vn-57997207 2024-10-26 20:53:31,638 - DEBUG - VN ctest-vn-57997207 UUID is 4e3a33f8-b462-4d28-be41-a3580ba504c8 2024-10-26 20:53:32,007 - DEBUG - Response for create_network : {'network': {'id': 'd77d0403-1666-4960-a861-53e10d75dc48', 'name': 'ctest-vn-16352854', 'tenant_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'project_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-vn-16352854'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 20:53:32,240 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eaa1cc81-a83d-45cf-812d-c4564ea9ff41', 'name': '', 'tenant_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'network_id': 'd77d0403-1666-4960-a861-53e10d75dc48', 'ip_version': 4, 'cidr': '179.11.18.192/26', 'allocation_pools': [{'start': '179.11.18.194', 'end': '179.11.18.254'}], 'gateway_ip': '179.11.18.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.11.18.194', 'tags': [], 'project_id': 'e2e54ad9e95843fdb64da85770c59ef1'}} 2024-10-26 20:53:32,265 - INFO - Created VN ctest-vn-16352854 2024-10-26 20:53:32,326 - DEBUG - VN ctest-vn-16352854 UUID is d77d0403-1666-4960-a861-53e10d75dc48 2024-10-26 20:53:32,467 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207, 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-07455325:ctest-vn-16352854, 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-26 20:53:32,800 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e3a33f8-b462-4d28-be41-a3580ba504c8', 'name': 'ctest-vn-57997207', 'tenant_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'project_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a960f8be-7ce4-4e10-b50c-2e5902ef2c3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-vn-57997207'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-policy-allow-all-32011015']], 'subnet_ipam': [{'subnet_cidr': '54.222.82.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-26 20:53:33,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd77d0403-1666-4960-a861-53e10d75dc48', 'name': 'ctest-vn-16352854', 'tenant_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'project_id': 'e2e54ad9e95843fdb64da85770c59ef1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eaa1cc81-a83d-45cf-812d-c4564ea9ff41'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-vn-16352854'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-policy-allow-all-32011015']], 'subnet_ipam': [{'subnet_cidr': '179.11.18.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-26 20:53:33,238 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-26 20:53:33,597 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-26 20:53:33,632 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5665a368-f59a-40ee-918b-1fce15fa1435 2024-10-26 20:53:33,649 - DEBUG - Requesting: http://10.0.0.27:8082/project/e2e54ad9-e958-43fd-b64d-a85770c59ef1 2024-10-26 20:53:33,747 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4e3a33f8-b462-4d28-be41-a3580ba504c8 2024-10-26 20:53:33,770 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4e3a33f8-b462-4d28-be41-a3580ba504c8 2024-10-26 20:53:33,791 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/97670c79-2a3b-4221-a994-6434eccb1aca 2024-10-26 20:53:33,803 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/97670c79-2a3b-4221-a994-6434eccb1aca 2024-10-26 20:53:33,817 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/46b60be9-748f-471c-aa18-eb43e083e69c 2024-10-26 20:53:33,826 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-26 20:53:33,827 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4e3a33f8-b462-4d28-be41-a3580ba504c8 2024-10-26 20:53:33,841 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/97670c79-2a3b-4221-a994-6434eccb1aca 2024-10-26 20:53:33,869 - INFO - Verified VN network id 8 for VN 4e3a33f8-b462-4d28-be41-a3580ba504c8 2024-10-26 20:53:33,869 - INFO - Verifications in API Server for VN ctest-vn-57997207 passed 2024-10-26 20:53:33,869 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4e3a33f8-b462-4d28-be41-a3580ba504c8 2024-10-26 20:53:33,890 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/97670c79-2a3b-4221-a994-6434eccb1aca 2024-10-26 20:53:33,901 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/97670c79-2a3b-4221-a994-6434eccb1aca 2024-10-26 20:53:33,911 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/46b60be9-748f-471c-aa18-eb43e083e69c 2024-10-26 20:53:33,930 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07455325', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5636875026878844200', 'uuid-lslong': '13709418339240314056'}, 'enable': 'true', 'created': '2024-10-26T20:53:31', 'last-modified': '2024-10-26T20:53:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.156768'} 2024-10-26 20:53:33,940 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-26 20:53:33,940 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57997207 passed 2024-10-26 20:53:33,940 - DEBUG - ====Verifying policy data for ctest-vn-57997207 in API_Server ====== 2024-10-26 20:53:33,941 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-26 20:53:33,948 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5665a368-f59a-40ee-918b-1fce15fa1435 2024-10-26 20:53:33,965 - DEBUG - Requesting: http://10.0.0.27:8082/project/e2e54ad9-e958-43fd-b64d-a85770c59ef1 2024-10-26 20:53:34,049 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/4e3a33f8-b462-4d28-be41-a3580ba504c8 2024-10-26 20:53:34,073 - DEBUG - ==>Verifying data for policy with id: e99139b4-b608-4e70-91d7-00f3d5b9548a, fqn: ['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-policy-allow-all-32011015'] 2024-10-26 20:53:34,073 - INFO - VN ctest-vn-57997207 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-26 20:53:34,073 - DEBUG - Verifying the vn in opserver 2024-10-26 20:53:34,073 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207 virtual network link through opserver 10.0.0.27 2024-10-26 20:53:34,073 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-26 20:53:34,414 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-26 20:53:34,484 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207?flat'} 2024-10-26 20:53:34,485 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207 is found in opserver 2024-10-26 20:53:34,501 - DEBUG - Do not have enough data to verify VN in agent 2024-10-26 20:53:34,508 - DEBUG - VRF ids for VN ctest-vn-57997207: {} 2024-10-26 20:53:34,509 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-26 20:53:34,516 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5665a368-f59a-40ee-918b-1fce15fa1435 2024-10-26 20:53:34,530 - DEBUG - Requesting: http://10.0.0.27:8082/project/e2e54ad9-e958-43fd-b64d-a85770c59ef1 2024-10-26 20:53:34,619 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d77d0403-1666-4960-a861-53e10d75dc48 2024-10-26 20:53:34,638 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d77d0403-1666-4960-a861-53e10d75dc48 2024-10-26 20:53:34,654 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0711dc54-9fd9-4be1-8110-cf6da715fdf9 2024-10-26 20:53:34,664 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0711dc54-9fd9-4be1-8110-cf6da715fdf9 2024-10-26 20:53:34,676 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1d55324b-887a-4a75-a46e-b7dead3067e0 2024-10-26 20:53:34,686 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-26 20:53:34,686 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d77d0403-1666-4960-a861-53e10d75dc48 2024-10-26 20:53:34,707 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0711dc54-9fd9-4be1-8110-cf6da715fdf9 2024-10-26 20:53:34,734 - INFO - Verified VN network id 9 for VN d77d0403-1666-4960-a861-53e10d75dc48 2024-10-26 20:53:34,735 - INFO - Verifications in API Server for VN ctest-vn-16352854 passed 2024-10-26 20:53:34,735 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d77d0403-1666-4960-a861-53e10d75dc48 2024-10-26 20:53:34,753 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0711dc54-9fd9-4be1-8110-cf6da715fdf9 2024-10-26 20:53:34,767 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0711dc54-9fd9-4be1-8110-cf6da715fdf9 2024-10-26 20:53:34,780 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1d55324b-887a-4a75-a46e-b7dead3067e0 2024-10-26 20:53:34,800 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-16352854', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07455325', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15527571501550553440', 'uuid-lslong': '12133071097171401800'}, 'enable': 'true', 'created': '2024-10-26T20:53:31', 'last-modified': '2024-10-26T20:53:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.750699'} 2024-10-26 20:53:34,810 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-26 20:53:34,811 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16352854 passed 2024-10-26 20:53:34,811 - DEBUG - ====Verifying policy data for ctest-vn-16352854 in API_Server ====== 2024-10-26 20:53:34,811 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-26 20:53:34,820 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5665a368-f59a-40ee-918b-1fce15fa1435 2024-10-26 20:53:34,835 - DEBUG - Requesting: http://10.0.0.27:8082/project/e2e54ad9-e958-43fd-b64d-a85770c59ef1 2024-10-26 20:53:34,922 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/d77d0403-1666-4960-a861-53e10d75dc48 2024-10-26 20:53:34,937 - DEBUG - ==>Verifying data for policy with id: e99139b4-b608-4e70-91d7-00f3d5b9548a, fqn: ['default-domain', 'ctest-TestBasicPolicy-07455325', 'ctest-policy-allow-all-32011015'] 2024-10-26 20:53:34,938 - INFO - VN ctest-vn-16352854 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-26 20:53:34,938 - DEBUG - Verifying the vn in opserver 2024-10-26 20:53:34,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-16352854 virtual network link through opserver 10.0.0.27 2024-10-26 20:53:34,938 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2024-10-26 20:53:34,950 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-16352854', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-16352854?flat'} 2024-10-26 20:53:34,950 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-16352854 is found in opserver 2024-10-26 20:53:34,963 - DEBUG - Do not have enough data to verify VN in agent 2024-10-26 20:53:34,971 - DEBUG - VRF ids for VN ctest-vn-16352854: {} 2024-10-26 20:53:35,039 - DEBUG - Services list from nova: [, , ] 2024-10-26 20:53:36,291 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2153-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2153-1) 2024-10-26 20:53:37,813 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2153-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2153-1) 2024-10-26 20:53:37,813 - INFO - Waiting for VM ctest-TestBasicPolicy-07455325-13160582 to be up.. 2024-10-26 20:53:37,923 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-26 20:53:43,033 - DEBUG - VM is in ACTIVE state now 2024-10-26 20:53:43,033 - INFO - VM name : ctest-TestBasicPolicy-07455325-13160582 2024-10-26 20:53:43,137 - DEBUG - VM ctest-TestBasicPolicy-07455325-13160582 ID is 63f1af41-e301-4561-a0ca-50c6c48dd0a9 2024-10-26 20:53:43,170 - DEBUG - VM ctest-TestBasicPolicy-07455325-13160582 launched on Node cn-jenkins-deploy-platform-ansible-os-2153-1 2024-10-26 20:53:43,263 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/63f1af41-e301-4561-a0ca-50c6c48dd0a9 2024-10-26 20:53:43,276 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/0576a426-c218-44b4-ace8-8e4a73865961 2024-10-26 20:53:46,559 - 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 1023ms') 2024-10-26 20:53:46,559 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07455325-13160582 failed! 2024-10-26 20:53:46,622 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-07455325:ctest-vn-57997207 is 54.222.82.129 and allocation pool is NOT set 2024-10-26 20:53:48,695 - 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=9.97 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.39 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.385/6.177/9.970/3.792 ms') 2024-10-26 20:53:48,695 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-07455325-13160582 passed 2024-10-26 20:53:48,863 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 20:53:48,863 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07455325-13160582, IP 54.222.82.131, Port 22 2024-10-26 20:53:48,919 - 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-10-26 20:53:49,025 - DEBUG - VM ctest-TestBasicPolicy-07455325-13160582 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-26 20:53:54,026 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 20:53:54,026 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07455325-13160582, IP 54.222.82.131, Port 22 2024-10-26 20:53:54,193 - DEBUG - VM ctest-TestBasicPolicy-07455325-13160582 is ready for SSH connections 2024-10-26 20:53:54,193 - INFO - Waiting for VM ctest-TestBasicPolicy-07455325-56851171 to be up.. 2024-10-26 20:53:54,291 - DEBUG - VM is in ACTIVE state now 2024-10-26 20:53:54,292 - INFO - VM name : ctest-TestBasicPolicy-07455325-56851171 2024-10-26 20:53:54,392 - DEBUG - VM ctest-TestBasicPolicy-07455325-56851171 ID is e8f376ad-0ace-48c2-8aa2-08ba59de54ee 2024-10-26 20:53:54,392 - DEBUG - VM ctest-TestBasicPolicy-07455325-56851171 launched on Node cn-jenkins-deploy-platform-ansible-os-2153-1 2024-10-26 20:53:54,480 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/e8f376ad-0ace-48c2-8aa2-08ba59de54ee 2024-10-26 20:53:54,492 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/6abb6ae0-e6b4-4c21-afea-b5fd0898bbf4 2024-10-26 20:53:55,754 - 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.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.487 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.487/1.817/3.147/1.330 ms') 2024-10-26 20:53:55,755 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-07455325-56851171 passed 2024-10-26 20:53:55,922 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 20:53:55,922 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-07455325-56851171, IP 179.11.18.195, Port 22 2024-10-26 20:53:56,096 - DEBUG - VM ctest-TestBasicPolicy-07455325-56851171 is ready for SSH connections 2024-10-26 20:53:56,097 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 20:53:56,097 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 179.11.18.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-26 20:53:56,097 - DEBUG - ping -s 56 -c 3 -W 1 179.11.18.195 2024-10-26 20:54:00,213 - DEBUG - PING 179.11.18.195 (179.11.18.195): 56 data bytes 64 bytes from 179.11.18.195: seq=0 ttl=63 time=3.950 ms 64 bytes from 179.11.18.195: seq=1 ttl=63 time=1.152 ms 64 bytes from 179.11.18.195: seq=2 ttl=63 time=0.946 ms --- 179.11.18.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.946/2.016/3.950 ms 2024-10-26 20:54:00,214 - INFO - Ping to IP 179.11.18.195 from VM ctest-TestBasicPolicy-07455325-13160582 passed 2024-10-26 20:54:00,422 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e99139b4-b608-4e70-91d7-00f3d5b9548a", "href": "http://10.0.0.27:8082/network-policy/e99139b4-b608-4e70-91d7-00f3d5b9548a"}} 2024-10-26 20:54:00,422 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 20:54:00,423 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 179.11.18.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2024-10-26 20:54:00,423 - DEBUG - ping -s 56 -c 3 -W 1 179.11.18.195 2024-10-26 20:54:03,663 - DEBUG - PING 179.11.18.195 (179.11.18.195): 56 data bytes --- 179.11.18.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-26 20:54:03,663 - WARNING - Ping to IP 179.11.18.195 from VM ctest-TestBasicPolicy-07455325-13160582 failed 2024-10-26 20:54:03,664 - INFO - Deleting VM ctest-TestBasicPolicy-07455325-56851171 2024-10-26 20:54:03,749 - INFO - Deleting VM ctest-TestBasicPolicy-07455325-13160582 2024-10-26 20:54:04,212 - INFO - Deleted policy ctest-policy-allow-all-32011015 2024-10-26 20:54:04,212 - INFO - Deleting VN ctest-vn-16352854 2024-10-26 20:54:04,275 - DEBUG - VN d77d0403-1666-4960-a861-53e10d75dc48 still in use: Unable to complete operation on network d77d0403-1666-4960-a861-53e10d75dc48. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-bbc8084a-e3ef-4f45-b2bc-7bd1ae877a45'] 2024-10-26 20:54:04,275 - WARNING - Deleting VN ctest-vn-16352854 failed..Will retry 2024-10-26 20:54:06,417 - DEBUG - Response for deleting network () 2024-10-26 20:54:06,417 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0711dc54-9fd9-4be1-8110-cf6da715fdf9 2024-10-26 20:54:06,434 - DEBUG - Response Code: 404 2024-10-26 20:54:06,434 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-26 20:54:06,441 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5665a368-f59a-40ee-918b-1fce15fa1435 2024-10-26 20:54:06,504 - DEBUG - Requesting: http://10.0.0.27:8082/project/e2e54ad9-e958-43fd-b64d-a85770c59ef1 2024-10-26 20:54:06,595 - INFO - Validated that VN ctest-vn-16352854 is not found in API Server 2024-10-26 20:54:06,608 - DEBUG - VN ctest-vn-16352854 is not present in Agent 10.0.0.27 2024-10-26 20:54:06,609 - INFO - Validated that VN ctest-vn-16352854 is not in any agent 2024-10-26 20:54:06,632 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16352854 info 2024-10-26 20:54:06,632 - INFO - Deleting VN ctest-vn-57997207 2024-10-26 20:54:06,766 - DEBUG - Response for deleting network () 2024-10-26 20:54:06,766 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/97670c79-2a3b-4221-a994-6434eccb1aca 2024-10-26 20:54:06,774 - DEBUG - Response Code: 404 2024-10-26 20:54:06,774 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2024-10-26 20:54:06,781 - DEBUG - Requesting: http://10.0.0.27:8082/domain/5665a368-f59a-40ee-918b-1fce15fa1435 2024-10-26 20:54:06,837 - DEBUG - Requesting: http://10.0.0.27:8082/project/e2e54ad9-e958-43fd-b64d-a85770c59ef1 2024-10-26 20:54:06,920 - INFO - Validated that VN ctest-vn-57997207 is not found in API Server 2024-10-26 20:54:06,932 - DEBUG - VN ctest-vn-57997207 is not present in Agent 10.0.0.27 2024-10-26 20:54:06,932 - INFO - Validated that VN ctest-vn-57997207 is not in any agent 2024-10-26 20:54:06,949 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57997207 info 2024-10-26 20:54:07,221 - DEBUG - No XMPP flaps were noticed during the test
2024-10-26 20:54:07,221 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-10-26 20:54:07,221 - INFO - -------------------------------------------------------------------------------- 2024-10-26 20:54:07,988 - INFO - Deleted project: ctest-TestBasicPolicy-07455325, ID : e2e54ad9-e958-43fd-b64d-a85770c59ef1