2024-09-15 11:53:55,090 - INFO - Domain Default found not creating 2024-09-15 11:53:55,303 - INFO - Project ctest-TestBasicPolicy-29884371 not found, creating it 2024-09-15 11:53:55,823 - INFO - Created Project:ctest-TestBasicPolicy-29884371, ID : 1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c 2024-09-15 11:53:57,508 - INFO - ================================================================================ 2024-09-15 11:53:57,508 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-15 11:53:57,508 - 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-15 11:53:57,783 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.6': '0'}} with 2024-09-15 11:53:57,783 - INFO - Initial checks done. Running the testcase now 2024-09-15 11:53:57,783 - INFO - 2024-09-15 11:53:58,425 - DEBUG - Response for create_network : {'network': {'id': '38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5', 'name': 'ctest-vn-45206401', 'tenant_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'project_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-vn-45206401'], 'port_security_enabled': True, 'description': ''}} 2024-09-15 11:53:58,633 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c62ecbc2-f43e-4903-9232-b555ab3f88d8', 'name': '', 'tenant_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'network_id': '38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5', 'ip_version': 4, 'cidr': '163.27.126.192/26', 'allocation_pools': [{'start': '163.27.126.194', 'end': '163.27.126.254'}], 'gateway_ip': '163.27.126.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.27.126.194', 'tags': [], 'project_id': '1dc587f97aa24cb688a0a43a87d61a4c'}} 2024-09-15 11:53:58,660 - INFO - Created VN ctest-vn-45206401 2024-09-15 11:53:58,724 - DEBUG - VN ctest-vn-45206401 UUID is 38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5 2024-09-15 11:53:59,091 - DEBUG - Response for create_network : {'network': {'id': '7c6e3274-f77f-4f6a-8067-37fcd79b1ed0', 'name': 'ctest-vn-41034183', 'tenant_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'project_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-vn-41034183'], 'port_security_enabled': True, 'description': ''}} 2024-09-15 11:53:59,319 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b04ae27c-9c0c-4e1e-985e-8ec63b196133', 'name': '', 'tenant_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'network_id': '7c6e3274-f77f-4f6a-8067-37fcd79b1ed0', 'ip_version': 4, 'cidr': '135.77.112.128/26', 'allocation_pools': [{'start': '135.77.112.130', 'end': '135.77.112.190'}], 'gateway_ip': '135.77.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.77.112.130', 'tags': [], 'project_id': '1dc587f97aa24cb688a0a43a87d61a4c'}} 2024-09-15 11:53:59,340 - INFO - Created VN ctest-vn-41034183 2024-09-15 11:53:59,404 - DEBUG - VN ctest-vn-41034183 UUID is 7c6e3274-f77f-4f6a-8067-37fcd79b1ed0 2024-09-15 11:53:59,539 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401, 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-29884371:ctest-vn-41034183, 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-15 11:53:59,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5', 'name': 'ctest-vn-45206401', 'tenant_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'project_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c62ecbc2-f43e-4903-9232-b555ab3f88d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-vn-45206401'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-policy-allow-all-75233600']], 'subnet_ipam': [{'subnet_cidr': '163.27.126.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-15 11:54:00,164 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7c6e3274-f77f-4f6a-8067-37fcd79b1ed0', 'name': 'ctest-vn-41034183', 'tenant_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'project_id': '1dc587f97aa24cb688a0a43a87d61a4c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b04ae27c-9c0c-4e1e-985e-8ec63b196133'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-vn-41034183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-policy-allow-all-75233600']], 'subnet_ipam': [{'subnet_cidr': '135.77.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-15 11:54:00,369 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-15 11:54:00,684 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-15 11:54:00,728 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2003cc9e-ce5f-43d7-a0fe-7e2b9997cff6 2024-09-15 11:54:00,746 - DEBUG - Requesting: http://10.0.0.28:8082/project/1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c 2024-09-15 11:54:00,848 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5 2024-09-15 11:54:00,870 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5 2024-09-15 11:54:00,887 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/931543bb-8411-4bb1-90dc-8f4d848aedfb 2024-09-15 11:54:00,898 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/931543bb-8411-4bb1-90dc-8f4d848aedfb 2024-09-15 11:54:00,908 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/af46f370-8685-44b7-8f9d-87be26c025d3 2024-09-15 11:54:00,917 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-15 11:54:00,917 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5 2024-09-15 11:54:00,932 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/931543bb-8411-4bb1-90dc-8f4d848aedfb 2024-09-15 11:54:00,956 - INFO - Verified VN network id 8 for VN 38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5 2024-09-15 11:54:00,957 - INFO - Verifications in API Server for VN ctest-vn-45206401 passed 2024-09-15 11:54:00,957 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5 2024-09-15 11:54:00,974 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/931543bb-8411-4bb1-90dc-8f4d848aedfb 2024-09-15 11:54:00,984 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/931543bb-8411-4bb1-90dc-8f4d848aedfb 2024-09-15 11:54:00,993 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/af46f370-8685-44b7-8f9d-87be26c025d3 2024-09-15 11:54:01,010 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29884371', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4084611309675892678', 'uuid-lslong': '11651457128562221541'}, 'enable': 'true', 'created': '2024-09-15T11:53:58', 'last-modified': '2024-09-15T11:53:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.162697'} 2024-09-15 11:54:01,019 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-15 11:54:01,019 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45206401 passed 2024-09-15 11:54:01,019 - DEBUG - ====Verifying policy data for ctest-vn-45206401 in API_Server ====== 2024-09-15 11:54:01,019 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-15 11:54:01,027 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2003cc9e-ce5f-43d7-a0fe-7e2b9997cff6 2024-09-15 11:54:01,043 - DEBUG - Requesting: http://10.0.0.28:8082/project/1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c 2024-09-15 11:54:01,144 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/38af7458-4ec6-4fc6-a1b2-4a86bfa4e1e5 2024-09-15 11:54:01,162 - DEBUG - ==>Verifying data for policy with id: 2780c80a-23d6-40e4-a0ca-98b613fd678f, fqn: ['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-policy-allow-all-75233600'] 2024-09-15 11:54:01,162 - INFO - VN ctest-vn-45206401 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-15 11:54:01,162 - DEBUG - Verifying the vn in opserver 2024-09-15 11:54:01,162 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401 virtual network link through opserver 10.0.0.28 2024-09-15 11:54:01,163 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-09-15 11:54:01,465 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-09-15 11:54:01,543 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401?flat'} 2024-09-15 11:54:01,543 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401 is found in opserver 2024-09-15 11:54:01,557 - DEBUG - Do not have enough data to verify VN in agent 2024-09-15 11:54:01,564 - DEBUG - VRF ids for VN ctest-vn-45206401: {} 2024-09-15 11:54:01,564 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-15 11:54:01,571 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2003cc9e-ce5f-43d7-a0fe-7e2b9997cff6 2024-09-15 11:54:01,587 - DEBUG - Requesting: http://10.0.0.28:8082/project/1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c 2024-09-15 11:54:01,667 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7c6e3274-f77f-4f6a-8067-37fcd79b1ed0 2024-09-15 11:54:01,684 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7c6e3274-f77f-4f6a-8067-37fcd79b1ed0 2024-09-15 11:54:01,698 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/5a2c68c9-350f-4e76-b2cc-9e2da0690df1 2024-09-15 11:54:01,710 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/5a2c68c9-350f-4e76-b2cc-9e2da0690df1 2024-09-15 11:54:01,720 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/bda92420-6a4d-4790-b57f-7311386474e6 2024-09-15 11:54:01,730 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-15 11:54:01,730 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7c6e3274-f77f-4f6a-8067-37fcd79b1ed0 2024-09-15 11:54:01,747 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/5a2c68c9-350f-4e76-b2cc-9e2da0690df1 2024-09-15 11:54:01,771 - INFO - Verified VN network id 9 for VN 7c6e3274-f77f-4f6a-8067-37fcd79b1ed0 2024-09-15 11:54:01,771 - INFO - Verifications in API Server for VN ctest-vn-41034183 passed 2024-09-15 11:54:01,772 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7c6e3274-f77f-4f6a-8067-37fcd79b1ed0 2024-09-15 11:54:01,794 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/5a2c68c9-350f-4e76-b2cc-9e2da0690df1 2024-09-15 11:54:01,813 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/5a2c68c9-350f-4e76-b2cc-9e2da0690df1 2024-09-15 11:54:01,826 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/bda92420-6a4d-4790-b57f-7311386474e6 2024-09-15 11:54:01,843 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-41034183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29884371', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8966159386091147114', 'uuid-lslong': '9252425518544527056'}, 'enable': 'true', 'created': '2024-09-15T11:53:59', 'last-modified': '2024-09-15T11:54:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.727085'} 2024-09-15 11:54:01,850 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-15 11:54:01,850 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41034183 passed 2024-09-15 11:54:01,850 - DEBUG - ====Verifying policy data for ctest-vn-41034183 in API_Server ====== 2024-09-15 11:54:01,851 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-15 11:54:01,857 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2003cc9e-ce5f-43d7-a0fe-7e2b9997cff6 2024-09-15 11:54:01,873 - DEBUG - Requesting: http://10.0.0.28:8082/project/1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c 2024-09-15 11:54:01,956 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7c6e3274-f77f-4f6a-8067-37fcd79b1ed0 2024-09-15 11:54:01,974 - DEBUG - ==>Verifying data for policy with id: 2780c80a-23d6-40e4-a0ca-98b613fd678f, fqn: ['default-domain', 'ctest-TestBasicPolicy-29884371', 'ctest-policy-allow-all-75233600'] 2024-09-15 11:54:01,974 - INFO - VN ctest-vn-41034183 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-15 11:54:01,974 - DEBUG - Verifying the vn in opserver 2024-09-15 11:54:01,974 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-41034183 virtual network link through opserver 10.0.0.28 2024-09-15 11:54:01,974 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2024-09-15 11:54:01,988 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-41034183', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-41034183?flat'} 2024-09-15 11:54:01,988 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-41034183 is found in opserver 2024-09-15 11:54:01,999 - DEBUG - Do not have enough data to verify VN in agent 2024-09-15 11:54:02,005 - DEBUG - VRF ids for VN ctest-vn-41034183: {} 2024-09-15 11:54:02,067 - DEBUG - Services list from nova: [, , ] 2024-09-15 11:54:03,360 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1941-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1941-1) 2024-09-15 11:54:04,738 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1941-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1941-1) 2024-09-15 11:54:04,738 - INFO - Waiting for VM ctest-TestBasicPolicy-29884371-62032072 to be up.. 2024-09-15 11:54:04,835 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-15 11:54:09,950 - DEBUG - VM is in ACTIVE state now 2024-09-15 11:54:09,950 - INFO - VM name : ctest-TestBasicPolicy-29884371-62032072 2024-09-15 11:54:10,055 - DEBUG - VM ctest-TestBasicPolicy-29884371-62032072 ID is d91f7b19-8c95-47ca-b95a-fdd99400433b 2024-09-15 11:54:10,076 - DEBUG - VM ctest-TestBasicPolicy-29884371-62032072 launched on Node cn-jenkins-deploy-platform-ansible-os-1941-1 2024-09-15 11:54:10,169 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/d91f7b19-8c95-47ca-b95a-fdd99400433b 2024-09-15 11:54:10,182 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/1536ccde-1292-463b-b3d4-b0fb2ff8ce61 2024-09-15 11:54:13,478 - 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 1026ms') 2024-09-15 11:54:13,479 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29884371-62032072 failed! 2024-09-15 11:54:13,540 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-29884371:ctest-vn-45206401 is 163.27.126.193 and allocation pool is NOT set 2024-09-15 11:54:15,609 - 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=11.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.37 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 = 2.373/6.670/10.968/4.297 ms') 2024-09-15 11:54:15,609 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-29884371-62032072 passed 2024-09-15 11:54:15,772 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-15 11:54:15,772 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29884371-62032072, IP 163.27.126.195, Port 22 2024-09-15 11:54:15,950 - DEBUG - VM ctest-TestBasicPolicy-29884371-62032072 is ready for SSH connections 2024-09-15 11:54:15,950 - INFO - Waiting for VM ctest-TestBasicPolicy-29884371-52194189 to be up.. 2024-09-15 11:54:16,114 - DEBUG - VM is in ACTIVE state now 2024-09-15 11:54:16,114 - INFO - VM name : ctest-TestBasicPolicy-29884371-52194189 2024-09-15 11:54:16,332 - DEBUG - VM ctest-TestBasicPolicy-29884371-52194189 ID is 7b6521ea-3bfa-45ce-ad17-0e8e79c5e1c2 2024-09-15 11:54:16,332 - DEBUG - VM ctest-TestBasicPolicy-29884371-52194189 launched on Node cn-jenkins-deploy-platform-ansible-os-1941-1 2024-09-15 11:54:16,450 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/7b6521ea-3bfa-45ce-ad17-0e8e79c5e1c2 2024-09-15 11:54:16,468 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/b3cf0fde-6573-4b1e-8f02-800800424a5f 2024-09-15 11:54:17,772 - 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=4.56 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.15 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.149/3.353/4.557/1.204 ms') 2024-09-15 11:54:17,772 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-29884371-52194189 passed 2024-09-15 11:54:17,949 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-15 11:54:17,949 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29884371-52194189, IP 135.77.112.131, Port 22 2024-09-15 11:54:18,003 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-09-15 11:54:18,096 - DEBUG - VM ctest-TestBasicPolicy-29884371-52194189 is NOT ready for SSH connections, VM status: ACTIVE 2024-09-15 11:54:23,097 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-15 11:54:23,098 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-29884371-52194189, IP 135.77.112.131, Port 22 2024-09-15 11:54:23,255 - DEBUG - VM ctest-TestBasicPolicy-29884371-52194189 is ready for SSH connections 2024-09-15 11:54:23,255 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-15 11:54:23,255 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.77.112.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-15 11:54:23,256 - DEBUG - ping -s 56 -c 3 -W 1 135.77.112.131 2024-09-15 11:54:27,308 - DEBUG - PING 135.77.112.131 (135.77.112.131): 56 data bytes 64 bytes from 135.77.112.131: seq=0 ttl=63 time=4.241 ms 64 bytes from 135.77.112.131: seq=1 ttl=63 time=1.706 ms 64 bytes from 135.77.112.131: seq=2 ttl=63 time=0.984 ms --- 135.77.112.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.984/2.310/4.241 ms 2024-09-15 11:54:27,309 - INFO - Ping to IP 135.77.112.131 from VM ctest-TestBasicPolicy-29884371-62032072 passed 2024-09-15 11:54:27,511 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2780c80a-23d6-40e4-a0ca-98b613fd678f", "href": "http://10.0.0.28:8082/network-policy/2780c80a-23d6-40e4-a0ca-98b613fd678f"}} 2024-09-15 11:54:27,511 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-15 11:54:27,511 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 135.77.112.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2024-09-15 11:54:27,512 - DEBUG - ping -s 56 -c 3 -W 1 135.77.112.131 2024-09-15 11:54:30,731 - DEBUG - PING 135.77.112.131 (135.77.112.131): 56 data bytes --- 135.77.112.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-15 11:54:30,731 - WARNING - Ping to IP 135.77.112.131 from VM ctest-TestBasicPolicy-29884371-62032072 failed 2024-09-15 11:54:30,731 - INFO - Deleting VM ctest-TestBasicPolicy-29884371-52194189 2024-09-15 11:54:30,813 - INFO - Deleting VM ctest-TestBasicPolicy-29884371-62032072 2024-09-15 11:54:31,290 - INFO - Deleted policy ctest-policy-allow-all-75233600 2024-09-15 11:54:31,291 - INFO - Deleting VN ctest-vn-41034183 2024-09-15 11:54:31,360 - DEBUG - VN 7c6e3274-f77f-4f6a-8067-37fcd79b1ed0 still in use: Unable to complete operation on network 7c6e3274-f77f-4f6a-8067-37fcd79b1ed0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-02bd354b-02f7-4430-aff9-16ac46b46227'] 2024-09-15 11:54:31,360 - WARNING - Deleting VN ctest-vn-41034183 failed..Will retry 2024-09-15 11:54:33,855 - DEBUG - Response for deleting network () 2024-09-15 11:54:33,855 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/5a2c68c9-350f-4e76-b2cc-9e2da0690df1 2024-09-15 11:54:33,863 - DEBUG - Response Code: 404 2024-09-15 11:54:33,864 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-15 11:54:33,879 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2003cc9e-ce5f-43d7-a0fe-7e2b9997cff6 2024-09-15 11:54:33,942 - DEBUG - Requesting: http://10.0.0.28:8082/project/1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c 2024-09-15 11:54:34,029 - INFO - Validated that VN ctest-vn-41034183 is not found in API Server 2024-09-15 11:54:34,045 - DEBUG - VN ctest-vn-41034183 is not present in Agent 10.0.0.28 2024-09-15 11:54:34,045 - INFO - Validated that VN ctest-vn-41034183 is not in any agent 2024-09-15 11:54:34,066 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41034183 info 2024-09-15 11:54:34,066 - INFO - Deleting VN ctest-vn-45206401 2024-09-15 11:54:34,207 - DEBUG - Response for deleting network () 2024-09-15 11:54:34,207 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/931543bb-8411-4bb1-90dc-8f4d848aedfb 2024-09-15 11:54:34,214 - DEBUG - Response Code: 404 2024-09-15 11:54:34,214 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2024-09-15 11:54:34,224 - DEBUG - Requesting: http://10.0.0.28:8082/domain/2003cc9e-ce5f-43d7-a0fe-7e2b9997cff6 2024-09-15 11:54:34,284 - DEBUG - Requesting: http://10.0.0.28:8082/project/1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c 2024-09-15 11:54:34,366 - INFO - Validated that VN ctest-vn-45206401 is not found in API Server 2024-09-15 11:54:34,378 - DEBUG - VN ctest-vn-45206401 is not present in Agent 10.0.0.28 2024-09-15 11:54:34,378 - INFO - Validated that VN ctest-vn-45206401 is not in any agent 2024-09-15 11:54:34,396 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45206401 info 2024-09-15 11:54:34,663 - DEBUG - No XMPP flaps were noticed during the test
2024-09-15 11:54:34,663 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37]
2024-09-15 11:54:34,663 - INFO - -------------------------------------------------------------------------------- 2024-09-15 11:54:35,409 - INFO - Deleted project: ctest-TestBasicPolicy-29884371, ID : 1dc587f9-7aa2-4cb6-88a0-a43a87d61a4c