2024-09-11 19:24:05,493 - INFO - Domain Default found not creating 2024-09-11 19:24:05,690 - INFO - Project ctest-TestBasicPolicy-73624063 not found, creating it 2024-09-11 19:24:06,360 - INFO - Created Project:ctest-TestBasicPolicy-73624063, ID : 4df90dd4-c3cf-4181-bd18-c7947bc2cf05 2024-09-11 19:24:07,890 - INFO - ================================================================================ 2024-09-11 19:24:07,890 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-11 19:24:07,890 - 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-11 19:24:08,145 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2024-09-11 19:24:08,145 - INFO - Initial checks done. Running the testcase now 2024-09-11 19:24:08,145 - INFO - 2024-09-11 19:24:09,459 - DEBUG - Response for create_network : {'network': {'id': '6abb22df-4dca-454c-be7e-f7ae37163f9c', 'name': 'ctest-vn-52732919', 'tenant_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'project_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-vn-52732919'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 19:24:09,697 - DEBUG - Response for create_subnet : {'subnet': {'id': '0bceb304-30bd-4bb7-87a3-946d761dc640', 'name': '', 'tenant_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'network_id': '6abb22df-4dca-454c-be7e-f7ae37163f9c', 'ip_version': 4, 'cidr': '196.251.252.0/26', 'allocation_pools': [{'start': '196.251.252.2', 'end': '196.251.252.62'}], 'gateway_ip': '196.251.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.251.252.2', 'tags': [], 'project_id': '4df90dd4c3cf4181bd18c7947bc2cf05'}} 2024-09-11 19:24:09,715 - INFO - Created VN ctest-vn-52732919 2024-09-11 19:24:09,773 - DEBUG - VN ctest-vn-52732919 UUID is 6abb22df-4dca-454c-be7e-f7ae37163f9c 2024-09-11 19:24:10,074 - DEBUG - Response for create_network : {'network': {'id': 'b0f835bb-3907-4802-bece-070ed71be4cf', 'name': 'ctest-vn-35281226', 'tenant_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'project_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-vn-35281226'], 'port_security_enabled': True, 'description': ''}} 2024-09-11 19:24:10,244 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b12c220c-938d-4e43-b06d-1d96a95aa7a9', 'name': '', 'tenant_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'network_id': 'b0f835bb-3907-4802-bece-070ed71be4cf', 'ip_version': 4, 'cidr': '85.18.132.128/26', 'allocation_pools': [{'start': '85.18.132.130', 'end': '85.18.132.190'}], 'gateway_ip': '85.18.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.18.132.130', 'tags': [], 'project_id': '4df90dd4c3cf4181bd18c7947bc2cf05'}} 2024-09-11 19:24:10,264 - INFO - Created VN ctest-vn-35281226 2024-09-11 19:24:10,321 - DEBUG - VN ctest-vn-35281226 UUID is b0f835bb-3907-4802-bece-070ed71be4cf 2024-09-11 19:24:10,439 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919, 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-73624063:ctest-vn-35281226, 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-11 19:24:10,745 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6abb22df-4dca-454c-be7e-f7ae37163f9c', 'name': 'ctest-vn-52732919', 'tenant_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'project_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0bceb304-30bd-4bb7-87a3-946d761dc640'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-vn-52732919'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-policy-allow-all-17946723']], 'subnet_ipam': [{'subnet_cidr': '196.251.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 19:24:10,993 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0f835bb-3907-4802-bece-070ed71be4cf', 'name': 'ctest-vn-35281226', 'tenant_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'project_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b12c220c-938d-4e43-b06d-1d96a95aa7a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-vn-35281226'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-policy-allow-all-17946723']], 'subnet_ipam': [{'subnet_cidr': '85.18.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-11 19:24:11,165 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-11 19:24:11,471 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-11 19:24:11,503 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5a112774-58aa-4a68-8a95-0a54db660d4a 2024-09-11 19:24:11,521 - DEBUG - Requesting: http://10.0.0.41:8082/project/4df90dd4-c3cf-4181-bd18-c7947bc2cf05 2024-09-11 19:24:11,603 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6abb22df-4dca-454c-be7e-f7ae37163f9c 2024-09-11 19:24:11,618 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6abb22df-4dca-454c-be7e-f7ae37163f9c 2024-09-11 19:24:11,631 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d9a3e3a5-22b7-4155-9527-df0100107c15 2024-09-11 19:24:11,640 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d9a3e3a5-22b7-4155-9527-df0100107c15 2024-09-11 19:24:11,648 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/11c3509b-467b-45cd-8ff1-5d54205049d8 2024-09-11 19:24:11,656 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 19:24:11,656 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6abb22df-4dca-454c-be7e-f7ae37163f9c 2024-09-11 19:24:11,669 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d9a3e3a5-22b7-4155-9527-df0100107c15 2024-09-11 19:24:11,688 - INFO - Verified VN network id 7 for VN 6abb22df-4dca-454c-be7e-f7ae37163f9c 2024-09-11 19:24:11,689 - INFO - Verifications in API Server for VN ctest-vn-52732919 passed 2024-09-11 19:24:11,689 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6abb22df-4dca-454c-be7e-f7ae37163f9c 2024-09-11 19:24:11,702 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d9a3e3a5-22b7-4155-9527-df0100107c15 2024-09-11 19:24:11,710 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d9a3e3a5-22b7-4155-9527-df0100107c15 2024-09-11 19:24:11,717 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/11c3509b-467b-45cd-8ff1-5d54205049d8 2024-09-11 19:24:11,730 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73624063', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7690779131143406924', 'uuid-lslong': '13726681041892425628'}, 'enable': 'true', 'created': '2024-09-11T19:24:09', 'last-modified': '2024-09-11T19:24:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009333'} 2024-09-11 19:24:11,737 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-11 19:24:11,737 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52732919 passed 2024-09-11 19:24:11,738 - DEBUG - ====Verifying policy data for ctest-vn-52732919 in API_Server ====== 2024-09-11 19:24:11,738 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-11 19:24:11,745 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5a112774-58aa-4a68-8a95-0a54db660d4a 2024-09-11 19:24:11,759 - DEBUG - Requesting: http://10.0.0.41:8082/project/4df90dd4-c3cf-4181-bd18-c7947bc2cf05 2024-09-11 19:24:11,845 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6abb22df-4dca-454c-be7e-f7ae37163f9c 2024-09-11 19:24:11,858 - DEBUG - ==>Verifying data for policy with id: dd8743ce-e444-4530-b687-c18b3c68fe54, fqn: ['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-policy-allow-all-17946723'] 2024-09-11 19:24:11,858 - INFO - VN ctest-vn-52732919 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 19:24:11,858 - DEBUG - Verifying the vn in opserver 2024-09-11 19:24:11,858 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919 virtual network link through opserver 10.0.0.41 2024-09-11 19:24:11,858 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-09-11 19:24:12,155 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-09-11 19:24:12,217 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919?flat'} 2024-09-11 19:24:12,217 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919 is found in opserver 2024-09-11 19:24:12,229 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 19:24:12,235 - DEBUG - VRF ids for VN ctest-vn-52732919: {} 2024-09-11 19:24:12,235 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-11 19:24:12,242 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5a112774-58aa-4a68-8a95-0a54db660d4a 2024-09-11 19:24:12,256 - DEBUG - Requesting: http://10.0.0.41:8082/project/4df90dd4-c3cf-4181-bd18-c7947bc2cf05 2024-09-11 19:24:12,337 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b0f835bb-3907-4802-bece-070ed71be4cf 2024-09-11 19:24:12,355 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b0f835bb-3907-4802-bece-070ed71be4cf 2024-09-11 19:24:12,372 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c9ac26e7-3bb3-4a98-889b-64f79b1030b5 2024-09-11 19:24:12,381 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c9ac26e7-3bb3-4a98-889b-64f79b1030b5 2024-09-11 19:24:12,389 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f4cae598-c2ef-43c1-8e2b-f630f48a3897 2024-09-11 19:24:12,397 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 19:24:12,397 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b0f835bb-3907-4802-bece-070ed71be4cf 2024-09-11 19:24:12,413 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c9ac26e7-3bb3-4a98-889b-64f79b1030b5 2024-09-11 19:24:12,437 - INFO - Verified VN network id 8 for VN b0f835bb-3907-4802-bece-070ed71be4cf 2024-09-11 19:24:12,437 - INFO - Verifications in API Server for VN ctest-vn-35281226 passed 2024-09-11 19:24:12,438 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b0f835bb-3907-4802-bece-070ed71be4cf 2024-09-11 19:24:12,456 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c9ac26e7-3bb3-4a98-889b-64f79b1030b5 2024-09-11 19:24:12,467 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c9ac26e7-3bb3-4a98-889b-64f79b1030b5 2024-09-11 19:24:12,477 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f4cae598-c2ef-43c1-8e2b-f630f48a3897 2024-09-11 19:24:12,492 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-35281226', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73624063', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12752001423131494402', 'uuid-lslong': '13748934472728569039'}, 'enable': 'true', 'created': '2024-09-11T19:24:10', 'last-modified': '2024-09-11T19:24:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.521088'} 2024-09-11 19:24:12,499 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-11 19:24:12,499 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35281226 passed 2024-09-11 19:24:12,499 - DEBUG - ====Verifying policy data for ctest-vn-35281226 in API_Server ====== 2024-09-11 19:24:12,499 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-11 19:24:12,506 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5a112774-58aa-4a68-8a95-0a54db660d4a 2024-09-11 19:24:12,521 - DEBUG - Requesting: http://10.0.0.41:8082/project/4df90dd4-c3cf-4181-bd18-c7947bc2cf05 2024-09-11 19:24:12,599 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b0f835bb-3907-4802-bece-070ed71be4cf 2024-09-11 19:24:12,612 - DEBUG - ==>Verifying data for policy with id: dd8743ce-e444-4530-b687-c18b3c68fe54, fqn: ['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-policy-allow-all-17946723'] 2024-09-11 19:24:12,612 - INFO - VN ctest-vn-35281226 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-11 19:24:12,612 - DEBUG - Verifying the vn in opserver 2024-09-11 19:24:12,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-35281226 virtual network link through opserver 10.0.0.41 2024-09-11 19:24:12,612 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2024-09-11 19:24:12,623 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-35281226', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-35281226?flat'} 2024-09-11 19:24:12,623 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-35281226 is found in opserver 2024-09-11 19:24:12,634 - DEBUG - Do not have enough data to verify VN in agent 2024-09-11 19:24:12,639 - DEBUG - VRF ids for VN ctest-vn-35281226: {} 2024-09-11 19:24:12,691 - DEBUG - Services list from nova: [, , ] 2024-09-11 19:24:13,707 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1900-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1900-1) 2024-09-11 19:24:17,117 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1900-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1900-1) 2024-09-11 19:24:17,117 - INFO - Waiting for VM ctest-TestBasicPolicy-73624063-52468380 to be up.. 2024-09-11 19:24:17,203 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-11 19:24:22,288 - DEBUG - VM is in ACTIVE state now 2024-09-11 19:24:22,288 - INFO - VM name : ctest-TestBasicPolicy-73624063-52468380 2024-09-11 19:24:22,377 - DEBUG - VM ctest-TestBasicPolicy-73624063-52468380 ID is 4afa2a91-c91c-4c56-bb7c-7e0689807c82 2024-09-11 19:24:22,397 - DEBUG - VM ctest-TestBasicPolicy-73624063-52468380 launched on Node cn-jenkins-deploy-platform-ansible-os-1900-1 2024-09-11 19:24:22,480 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/4afa2a91-c91c-4c56-bb7c-7e0689807c82 2024-09-11 19:24:22,490 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/755a70c2-be9b-4965-9d1e-77944c0bf759 2024-09-11 19:24:25,784 - 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 1032ms') 2024-09-11 19:24:25,785 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73624063-52468380 failed! 2024-09-11 19:24:25,845 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919 is 196.251.252.1 and allocation pool is NOT set 2024-09-11 19:24:29,903 - 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 1004ms') 2024-09-11 19:24:29,903 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73624063-52468380 failed! 2024-09-11 19:24:29,961 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919 is 196.251.252.1 and allocation pool is NOT set 2024-09-11 19:24:32,023 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.92 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.62 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.622/2.769/3.917/1.147 ms') 2024-09-11 19:24:32,024 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73624063-52468380 passed 2024-09-11 19:24:32,189 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 19:24:32,190 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73624063-52468380, IP 196.251.252.3, Port 22 2024-09-11 19:24:32,345 - DEBUG - VM ctest-TestBasicPolicy-73624063-52468380 is ready for SSH connections 2024-09-11 19:24:32,346 - INFO - Waiting for VM ctest-TestBasicPolicy-73624063-94383928 to be up.. 2024-09-11 19:24:32,434 - DEBUG - VM is in ACTIVE state now 2024-09-11 19:24:32,434 - INFO - VM name : ctest-TestBasicPolicy-73624063-94383928 2024-09-11 19:24:32,526 - DEBUG - VM ctest-TestBasicPolicy-73624063-94383928 ID is 7bf154a4-4fbd-462d-9f13-f181c41066ea 2024-09-11 19:24:32,526 - DEBUG - VM ctest-TestBasicPolicy-73624063-94383928 launched on Node cn-jenkins-deploy-platform-ansible-os-1900-1 2024-09-11 19:24:32,611 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine/7bf154a4-4fbd-462d-9f13-f181c41066ea 2024-09-11 19:24:32,621 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-machine-interface/5f8cdee5-ee62-40da-8c56-4d3bfa952408 2024-09-11 19:24:33,870 - 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=2.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.395 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 = 0.395/1.569/2.743/1.174 ms') 2024-09-11 19:24:33,870 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-73624063-94383928 passed 2024-09-11 19:24:34,029 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 19:24:34,029 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73624063-94383928, IP 85.18.132.131, Port 22 2024-09-11 19:24:34,185 - DEBUG - VM ctest-TestBasicPolicy-73624063-94383928 is ready for SSH connections 2024-09-11 19:24:34,185 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 19:24:34,185 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 85.18.132.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-09-11 19:24:34,185 - DEBUG - ping -s 56 -c 3 -W 1 85.18.132.131 2024-09-11 19:24:38,194 - DEBUG - PING 85.18.132.131 (85.18.132.131): 56 data bytes 64 bytes from 85.18.132.131: seq=0 ttl=63 time=3.806 ms 64 bytes from 85.18.132.131: seq=1 ttl=63 time=0.891 ms 64 bytes from 85.18.132.131: seq=2 ttl=63 time=0.756 ms --- 85.18.132.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.756/1.817/3.806 ms 2024-09-11 19:24:38,194 - INFO - Ping to IP 85.18.132.131 from VM ctest-TestBasicPolicy-73624063-52468380 passed 2024-09-11 19:24:38,381 - DEBUG - Policy Update Response {"network-policy": {"uuid": "dd8743ce-e444-4530-b687-c18b3c68fe54", "href": "http://10.0.0.41:8082/network-policy/dd8743ce-e444-4530-b687-c18b3c68fe54"}} 2024-09-11 19:24:38,381 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-11 19:24:38,381 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 85.18.132.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.41, gateway password: c0ntrail123 2024-09-11 19:24:38,381 - DEBUG - ping -s 56 -c 3 -W 1 85.18.132.131 2024-09-11 19:24:41,578 - DEBUG - PING 85.18.132.131 (85.18.132.131): 56 data bytes --- 85.18.132.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-09-11 19:24:41,579 - WARNING - Ping to IP 85.18.132.131 from VM ctest-TestBasicPolicy-73624063-52468380 failed 2024-09-11 19:24:41,579 - INFO - Deleting VM ctest-TestBasicPolicy-73624063-94383928 2024-09-11 19:24:42,757 - INFO - Deleting VM ctest-TestBasicPolicy-73624063-52468380 2024-09-11 19:24:43,193 - INFO - Deleted policy ctest-policy-allow-all-17946723 2024-09-11 19:24:43,194 - INFO - Deleting VN ctest-vn-35281226 2024-09-11 19:24:43,230 - DEBUG - VN b0f835bb-3907-4802-bece-070ed71be4cf still in use: Unable to complete operation on network b0f835bb-3907-4802-bece-070ed71be4cf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-94214988-d640-4f96-8de2-799a63640628'] 2024-09-11 19:24:43,231 - WARNING - Deleting VN ctest-vn-35281226 failed..Will retry 2024-09-11 19:24:45,419 - DEBUG - Response for deleting network () 2024-09-11 19:24:45,419 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c9ac26e7-3bb3-4a98-889b-64f79b1030b5 2024-09-11 19:24:45,424 - DEBUG - Response Code: 404 2024-09-11 19:24:45,424 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-11 19:24:45,430 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5a112774-58aa-4a68-8a95-0a54db660d4a 2024-09-11 19:24:45,488 - DEBUG - Requesting: http://10.0.0.41:8082/project/4df90dd4-c3cf-4181-bd18-c7947bc2cf05 2024-09-11 19:24:45,568 - INFO - Validated that VN ctest-vn-35281226 is not found in API Server 2024-09-11 19:24:45,579 - DEBUG - VN ctest-vn-35281226 is not present in Agent 10.0.0.41 2024-09-11 19:24:45,579 - INFO - Validated that VN ctest-vn-35281226 is not in any agent 2024-09-11 19:24:45,595 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-35281226 info 2024-09-11 19:24:45,595 - INFO - Deleting VN ctest-vn-52732919 2024-09-11 19:24:45,698 - DEBUG - Response for deleting network () 2024-09-11 19:24:45,698 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d9a3e3a5-22b7-4155-9527-df0100107c15 2024-09-11 19:24:45,704 - DEBUG - Response Code: 404 2024-09-11 19:24:45,704 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2024-09-11 19:24:45,709 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5a112774-58aa-4a68-8a95-0a54db660d4a 2024-09-11 19:24:45,767 - DEBUG - Requesting: http://10.0.0.41:8082/project/4df90dd4-c3cf-4181-bd18-c7947bc2cf05 2024-09-11 19:24:45,854 - INFO - Validated that VN ctest-vn-52732919 is not found in API Server 2024-09-11 19:24:45,865 - DEBUG - VN ctest-vn-52732919 is not present in Agent 10.0.0.41 2024-09-11 19:24:45,865 - INFO - Validated that VN ctest-vn-52732919 is not in any agent 2024-09-11 19:24:45,883 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-52732919 info 2024-09-11 19:24:46,136 - DEBUG - No XMPP flaps were noticed during the test 2024-09-11 19:24:46,136 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:39] 2024-09-11 19:24:46,136 - INFO - -------------------------------------------------------------------------------- 2024-09-11 19:24:46,835 - INFO - Deleted project: ctest-TestBasicPolicy-73624063, ID : 4df90dd4-c3cf-4181-bd18-c7947bc2cf05