2024-12-23 02:24:22,138 - INFO - Domain Default found not creating 2024-12-23 02:24:22,297 - INFO - Project ctest-TestBasicPolicy-88167385 not found, creating it 2024-12-23 02:24:22,770 - INFO - Created Project:ctest-TestBasicPolicy-88167385, ID : 23637627-9b41-41d8-9903-f3934d6a741a 2024-12-23 02:24:24,458 - INFO - ================================================================================ 2024-12-23 02:24:24,459 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-12-23 02:24:24,459 - 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-12-23 02:24:24,720 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.0.0.57': '0'}} with 2024-12-23 02:24:24,720 - INFO - Initial checks done. Running the testcase now 2024-12-23 02:24:24,720 - INFO - 2024-12-23 02:24:25,352 - DEBUG - Response for create_network : {'network': {'id': '410b5b9c-b695-45b4-a7b7-05a2f4f04167', 'name': 'ctest-vn-38677151', 'tenant_id': '236376279b4141d89903f3934d6a741a', 'project_id': '236376279b4141d89903f3934d6a741a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-vn-38677151'], 'port_security_enabled': True, 'description': ''}} 2024-12-23 02:24:25,568 - DEBUG - Response for create_subnet : {'subnet': {'id': '6992f62d-df63-48c3-ad85-147571469477', 'name': '', 'tenant_id': '236376279b4141d89903f3934d6a741a', 'network_id': '410b5b9c-b695-45b4-a7b7-05a2f4f04167', 'ip_version': 4, 'cidr': '82.104.32.128/26', 'allocation_pools': [{'start': '82.104.32.130', 'end': '82.104.32.190'}], 'gateway_ip': '82.104.32.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.104.32.130', 'tags': [], 'project_id': '236376279b4141d89903f3934d6a741a'}} 2024-12-23 02:24:25,588 - INFO - Created VN ctest-vn-38677151 2024-12-23 02:24:25,644 - DEBUG - VN ctest-vn-38677151 UUID is 410b5b9c-b695-45b4-a7b7-05a2f4f04167 2024-12-23 02:24:25,959 - DEBUG - Response for create_network : {'network': {'id': '3db06806-22ab-4e93-9a7c-0f9cd5c04a66', 'name': 'ctest-vn-74607552', 'tenant_id': '236376279b4141d89903f3934d6a741a', 'project_id': '236376279b4141d89903f3934d6a741a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-vn-74607552'], 'port_security_enabled': True, 'description': ''}} 2024-12-23 02:24:26,159 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e1602be-5470-4e58-b60a-4739af5b6bc1', 'name': '', 'tenant_id': '236376279b4141d89903f3934d6a741a', 'network_id': '3db06806-22ab-4e93-9a7c-0f9cd5c04a66', 'ip_version': 4, 'cidr': '34.58.49.64/26', 'allocation_pools': [{'start': '34.58.49.66', 'end': '34.58.49.126'}], 'gateway_ip': '34.58.49.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.58.49.66', 'tags': [], 'project_id': '236376279b4141d89903f3934d6a741a'}} 2024-12-23 02:24:26,180 - INFO - Created VN ctest-vn-74607552 2024-12-23 02:24:26,236 - DEBUG - VN ctest-vn-74607552 UUID is 3db06806-22ab-4e93-9a7c-0f9cd5c04a66 2024-12-23 02:24:26,367 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151, 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-88167385:ctest-vn-74607552, 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-12-23 02:24:26,694 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '410b5b9c-b695-45b4-a7b7-05a2f4f04167', 'name': 'ctest-vn-38677151', 'tenant_id': '236376279b4141d89903f3934d6a741a', 'project_id': '236376279b4141d89903f3934d6a741a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6992f62d-df63-48c3-ad85-147571469477'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-vn-38677151'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-policy-allow-all-42907874']], 'subnet_ipam': [{'subnet_cidr': '82.104.32.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-12-23 02:24:26,988 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3db06806-22ab-4e93-9a7c-0f9cd5c04a66', 'name': 'ctest-vn-74607552', 'tenant_id': '236376279b4141d89903f3934d6a741a', 'project_id': '236376279b4141d89903f3934d6a741a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e1602be-5470-4e58-b60a-4739af5b6bc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-vn-74607552'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-policy-allow-all-42907874']], 'subnet_ipam': [{'subnet_cidr': '34.58.49.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-12-23 02:24:27,144 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-12-23 02:24:27,484 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-12-23 02:24:27,518 - DEBUG - Requesting: http://10.0.0.57:8082/domain/d130573f-4644-49e9-b724-57a6ac92f9a1 2024-12-23 02:24:27,536 - DEBUG - Requesting: http://10.0.0.57:8082/project/23637627-9b41-41d8-9903-f3934d6a741a 2024-12-23 02:24:27,622 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/410b5b9c-b695-45b4-a7b7-05a2f4f04167 2024-12-23 02:24:27,637 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/410b5b9c-b695-45b4-a7b7-05a2f4f04167 2024-12-23 02:24:27,650 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/279bedc1-a030-4cc0-a629-70b2ae81f0c8 2024-12-23 02:24:27,660 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/279bedc1-a030-4cc0-a629-70b2ae81f0c8 2024-12-23 02:24:27,669 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/bbb5aea9-f7c1-4bd3-a5b7-1c2cecbba0ed 2024-12-23 02:24:27,677 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-12-23 02:24:27,677 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/410b5b9c-b695-45b4-a7b7-05a2f4f04167 2024-12-23 02:24:27,689 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/279bedc1-a030-4cc0-a629-70b2ae81f0c8 2024-12-23 02:24:27,707 - INFO - Verified VN network id 8 for VN 410b5b9c-b695-45b4-a7b7-05a2f4f04167 2024-12-23 02:24:27,707 - INFO - Verifications in API Server for VN ctest-vn-38677151 passed 2024-12-23 02:24:27,707 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/410b5b9c-b695-45b4-a7b7-05a2f4f04167 2024-12-23 02:24:27,719 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/279bedc1-a030-4cc0-a629-70b2ae81f0c8 2024-12-23 02:24:27,729 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/279bedc1-a030-4cc0-a629-70b2ae81f0c8 2024-12-23 02:24:27,738 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/bbb5aea9-f7c1-4bd3-a5b7-1c2cecbba0ed 2024-12-23 02:24:27,754 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88167385', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4686940565845394868', 'uuid-lslong': '12085134322524242279'}, 'enable': 'true', 'created': '2024-12-23T02:24:25', 'last-modified': '2024-12-23T02:24:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.090269'} 2024-12-23 02:24:27,762 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-12-23 02:24:27,762 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38677151 passed 2024-12-23 02:24:27,762 - DEBUG - ====Verifying policy data for ctest-vn-38677151 in API_Server ====== 2024-12-23 02:24:27,762 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-12-23 02:24:27,769 - DEBUG - Requesting: http://10.0.0.57:8082/domain/d130573f-4644-49e9-b724-57a6ac92f9a1 2024-12-23 02:24:27,781 - DEBUG - Requesting: http://10.0.0.57:8082/project/23637627-9b41-41d8-9903-f3934d6a741a 2024-12-23 02:24:27,858 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/410b5b9c-b695-45b4-a7b7-05a2f4f04167 2024-12-23 02:24:27,868 - DEBUG - ==>Verifying data for policy with id: f2b44a34-5af2-4b59-bb9d-db1394afaf09, fqn: ['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-policy-allow-all-42907874'] 2024-12-23 02:24:27,869 - INFO - VN ctest-vn-38677151 Policy verification: verify_vn_policy_in_api_server, status: True 2024-12-23 02:24:27,869 - DEBUG - Verifying the vn in opserver 2024-12-23 02:24:27,869 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151 virtual network link through opserver 10.0.0.57 2024-12-23 02:24:27,869 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2024-12-23 02:24:28,203 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2024-12-23 02:24:28,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151?flat'} 2024-12-23 02:24:28,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151 is found in opserver 2024-12-23 02:24:28,288 - DEBUG - Do not have enough data to verify VN in agent 2024-12-23 02:24:28,295 - DEBUG - VRF ids for VN ctest-vn-38677151: {} 2024-12-23 02:24:28,295 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-12-23 02:24:28,304 - DEBUG - Requesting: http://10.0.0.57:8082/domain/d130573f-4644-49e9-b724-57a6ac92f9a1 2024-12-23 02:24:28,321 - DEBUG - Requesting: http://10.0.0.57:8082/project/23637627-9b41-41d8-9903-f3934d6a741a 2024-12-23 02:24:28,407 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3db06806-22ab-4e93-9a7c-0f9cd5c04a66 2024-12-23 02:24:28,423 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3db06806-22ab-4e93-9a7c-0f9cd5c04a66 2024-12-23 02:24:28,434 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ee49645-e079-48d2-aaa4-c2a0efb048e5 2024-12-23 02:24:28,444 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ee49645-e079-48d2-aaa4-c2a0efb048e5 2024-12-23 02:24:28,454 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/3b96d321-aa12-4a35-9ea8-e28e69481f62 2024-12-23 02:24:28,462 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-12-23 02:24:28,462 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3db06806-22ab-4e93-9a7c-0f9cd5c04a66 2024-12-23 02:24:28,472 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ee49645-e079-48d2-aaa4-c2a0efb048e5 2024-12-23 02:24:28,488 - INFO - Verified VN network id 9 for VN 3db06806-22ab-4e93-9a7c-0f9cd5c04a66 2024-12-23 02:24:28,488 - INFO - Verifications in API Server for VN ctest-vn-74607552 passed 2024-12-23 02:24:28,488 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3db06806-22ab-4e93-9a7c-0f9cd5c04a66 2024-12-23 02:24:28,499 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ee49645-e079-48d2-aaa4-c2a0efb048e5 2024-12-23 02:24:28,508 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ee49645-e079-48d2-aaa4-c2a0efb048e5 2024-12-23 02:24:28,516 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/3b96d321-aa12-4a35-9ea8-e28e69481f62 2024-12-23 02:24:28,531 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-74607552', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88167385', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4445167207775424147', 'uuid-lslong': '11131789545228487270'}, 'enable': 'true', 'created': '2024-12-23T02:24:25', 'last-modified': '2024-12-23T02:24:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.616944'} 2024-12-23 02:24:28,538 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-12-23 02:24:28,538 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74607552 passed 2024-12-23 02:24:28,538 - DEBUG - ====Verifying policy data for ctest-vn-74607552 in API_Server ====== 2024-12-23 02:24:28,539 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-12-23 02:24:28,545 - DEBUG - Requesting: http://10.0.0.57:8082/domain/d130573f-4644-49e9-b724-57a6ac92f9a1 2024-12-23 02:24:28,560 - DEBUG - Requesting: http://10.0.0.57:8082/project/23637627-9b41-41d8-9903-f3934d6a741a 2024-12-23 02:24:28,641 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3db06806-22ab-4e93-9a7c-0f9cd5c04a66 2024-12-23 02:24:28,655 - DEBUG - ==>Verifying data for policy with id: f2b44a34-5af2-4b59-bb9d-db1394afaf09, fqn: ['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-policy-allow-all-42907874'] 2024-12-23 02:24:28,655 - INFO - VN ctest-vn-74607552 Policy verification: verify_vn_policy_in_api_server, status: True 2024-12-23 02:24:28,655 - DEBUG - Verifying the vn in opserver 2024-12-23 02:24:28,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-74607552 virtual network link through opserver 10.0.0.57 2024-12-23 02:24:28,655 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2024-12-23 02:24:28,667 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-74607552', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-74607552?flat'} 2024-12-23 02:24:28,667 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-74607552 is found in opserver 2024-12-23 02:24:28,679 - DEBUG - Do not have enough data to verify VN in agent 2024-12-23 02:24:28,685 - DEBUG - VRF ids for VN ctest-vn-74607552: {} 2024-12-23 02:24:28,752 - DEBUG - Services list from nova: [, , ] 2024-12-23 02:24:29,893 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2489-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2489-1) 2024-12-23 02:24:31,234 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2489-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2489-1) 2024-12-23 02:24:31,234 - INFO - Waiting for VM ctest-TestBasicPolicy-88167385-36368727 to be up.. 2024-12-23 02:24:31,329 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-12-23 02:24:36,420 - DEBUG - VM is in ACTIVE state now 2024-12-23 02:24:36,420 - INFO - VM name : ctest-TestBasicPolicy-88167385-36368727 2024-12-23 02:24:36,504 - DEBUG - VM ctest-TestBasicPolicy-88167385-36368727 ID is 088e88be-34c2-42f0-b6e3-05158021fdaa 2024-12-23 02:24:36,523 - DEBUG - VM ctest-TestBasicPolicy-88167385-36368727 launched on Node cn-jenkins-deploy-platform-ansible-os-2489-1. 2024-12-23 02:24:36,604 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/088e88be-34c2-42f0-b6e3-05158021fdaa 2024-12-23 02:24:36,615 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/4aa082b3-27a5-44de-948a-165ac713ae21 2024-12-23 02:24:39,886 - 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-12-23 02:24:39,886 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88167385-36368727 failed! 2024-12-23 02:24:39,940 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151 is 82.104.32.129 and allocation pool is NOT set 2024-12-23 02:24:42,003 - 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.13 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.40 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 = 1.401/5.265/9.130/3.864 ms') 2024-12-23 02:24:42,003 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-88167385-36368727 passed 2024-12-23 02:24:42,164 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 02:24:42,164 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88167385-36368727, IP 82.104.32.131, Port 22 2024-12-23 02:24:42,234 - 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-12-23 02:24:42,321 - DEBUG - VM ctest-TestBasicPolicy-88167385-36368727 is NOT ready for SSH connections, VM status: ACTIVE 2024-12-23 02:24:47,322 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 02:24:47,322 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88167385-36368727, IP 82.104.32.131, Port 22 2024-12-23 02:24:47,491 - DEBUG - VM ctest-TestBasicPolicy-88167385-36368727 is ready for SSH connections 2024-12-23 02:24:47,491 - INFO - Waiting for VM ctest-TestBasicPolicy-88167385-33484524 to be up.. 2024-12-23 02:24:47,597 - DEBUG - VM is in ACTIVE state now 2024-12-23 02:24:47,597 - INFO - VM name : ctest-TestBasicPolicy-88167385-33484524 2024-12-23 02:24:47,688 - DEBUG - VM ctest-TestBasicPolicy-88167385-33484524 ID is de3d0ed8-dded-48b9-85d8-44f21d0b4178 2024-12-23 02:24:47,688 - DEBUG - VM ctest-TestBasicPolicy-88167385-33484524 launched on Node cn-jenkins-deploy-platform-ansible-os-2489-1. 2024-12-23 02:24:47,773 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine/de3d0ed8-dded-48b9-85d8-44f21d0b4178 2024-12-23 02:24:47,784 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-machine-interface/d6016343-f253-4888-8dc6-5400b1820832 2024-12-23 02:24:49,046 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.356 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.356/2.004/3.652/1.648 ms') 2024-12-23 02:24:49,046 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-88167385-33484524 passed 2024-12-23 02:24:49,204 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 02:24:49,204 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-88167385-33484524, IP 34.58.49.67, Port 22 2024-12-23 02:24:49,359 - DEBUG - VM ctest-TestBasicPolicy-88167385-33484524 is ready for SSH connections 2024-12-23 02:24:49,360 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 02:24:49,360 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 34.58.49.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2024-12-23 02:24:49,360 - DEBUG - ping -s 56 -c 3 -W 1 34.58.49.67 2024-12-23 02:24:53,400 - DEBUG - PING 34.58.49.67 (34.58.49.67): 56 data bytes 64 bytes from 34.58.49.67: seq=0 ttl=63 time=3.460 ms 64 bytes from 34.58.49.67: seq=1 ttl=63 time=0.872 ms 64 bytes from 34.58.49.67: seq=2 ttl=63 time=1.195 ms --- 34.58.49.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.872/1.842/3.460 ms 2024-12-23 02:24:53,400 - INFO - Ping to IP 34.58.49.67 from VM ctest-TestBasicPolicy-88167385-36368727 passed 2024-12-23 02:24:53,587 - DEBUG - Policy Update Response {"network-policy": {"uuid": "f2b44a34-5af2-4b59-bb9d-db1394afaf09", "href": "http://10.0.0.57:8082/network-policy/f2b44a34-5af2-4b59-bb9d-db1394afaf09"}} 2024-12-23 02:24:53,588 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-12-23 02:24:53,588 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 34.58.49.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2024-12-23 02:24:53,588 - DEBUG - ping -s 56 -c 3 -W 1 34.58.49.67 2024-12-23 02:24:56,807 - DEBUG - PING 34.58.49.67 (34.58.49.67): 56 data bytes 64 bytes from 34.58.49.67: seq=0 ttl=63 time=1.426 ms --- 34.58.49.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.426/1.426/1.426 ms 2024-12-23 02:24:56,807 - WARNING - Ping to IP 34.58.49.67 from VM ctest-TestBasicPolicy-88167385-36368727 failed 2024-12-23 02:24:56,807 - INFO - Deleting VM ctest-TestBasicPolicy-88167385-33484524 2024-12-23 02:24:56,886 - INFO - Deleting VM ctest-TestBasicPolicy-88167385-36368727 2024-12-23 02:24:57,282 - INFO - Deleted policy ctest-policy-allow-all-42907874 2024-12-23 02:24:57,282 - INFO - Deleting VN ctest-vn-74607552 2024-12-23 02:24:57,336 - DEBUG - VN 3db06806-22ab-4e93-9a7c-0f9cd5c04a66 still in use: Unable to complete operation on network 3db06806-22ab-4e93-9a7c-0f9cd5c04a66. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0729a415-bbb0-4d67-b4fa-cf4ca6deb7de'] 2024-12-23 02:24:57,336 - WARNING - Deleting VN ctest-vn-74607552 failed..Will retry 2024-12-23 02:24:59,458 - DEBUG - Response for deleting network () 2024-12-23 02:24:59,458 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ee49645-e079-48d2-aaa4-c2a0efb048e5 2024-12-23 02:24:59,467 - DEBUG - Response Code: 404 2024-12-23 02:24:59,467 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-12-23 02:24:59,473 - DEBUG - Requesting: http://10.0.0.57:8082/domain/d130573f-4644-49e9-b724-57a6ac92f9a1 2024-12-23 02:24:59,531 - DEBUG - Requesting: http://10.0.0.57:8082/project/23637627-9b41-41d8-9903-f3934d6a741a 2024-12-23 02:24:59,613 - INFO - Validated that VN ctest-vn-74607552 is not found in API Server 2024-12-23 02:24:59,624 - DEBUG - VN ctest-vn-74607552 is not present in Agent 10.0.0.57 2024-12-23 02:24:59,624 - INFO - Validated that VN ctest-vn-74607552 is not in any agent 2024-12-23 02:24:59,641 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74607552 info 2024-12-23 02:24:59,641 - INFO - Deleting VN ctest-vn-38677151 2024-12-23 02:24:59,763 - DEBUG - Response for deleting network () 2024-12-23 02:24:59,763 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/279bedc1-a030-4cc0-a629-70b2ae81f0c8 2024-12-23 02:24:59,771 - DEBUG - Response Code: 404 2024-12-23 02:24:59,771 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2024-12-23 02:24:59,777 - DEBUG - Requesting: http://10.0.0.57:8082/domain/d130573f-4644-49e9-b724-57a6ac92f9a1 2024-12-23 02:24:59,833 - DEBUG - Requesting: http://10.0.0.57:8082/project/23637627-9b41-41d8-9903-f3934d6a741a 2024-12-23 02:24:59,906 - INFO - Validated that VN ctest-vn-38677151 is not found in API Server 2024-12-23 02:24:59,918 - DEBUG - VN ctest-vn-38677151 is not present in Agent 10.0.0.57 2024-12-23 02:24:59,918 - INFO - Validated that VN ctest-vn-38677151 is not in any agent 2024-12-23 02:24:59,935 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-38677151 info 2024-12-23 02:25:00,196 - DEBUG - No XMPP flaps were noticed during the test
2024-12-23 02:25:00,196 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2024-12-23 02:25:00,196 - INFO - -------------------------------------------------------------------------------- 2024-12-23 02:25:00,990 - INFO - Deleted project: ctest-TestBasicPolicy-88167385, ID : 23637627-9b41-41d8-9903-f3934d6a741a