2024-11-07 02:19:38,266 - INFO - Domain Default found not creating 2024-11-07 02:19:38,438 - INFO - Project ctest-TestBasicPolicy-14153725 not found, creating it 2024-11-07 02:19:38,923 - INFO - Created Project:ctest-TestBasicPolicy-14153725, ID : 0f214649-bdbc-4cea-8f4b-bcb9b571f6a3 2024-11-07 02:19:40,486 - INFO - ================================================================================ 2024-11-07 02:19:40,486 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-07 02:19:40,486 - 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-11-07 02:19:40,749 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.0.0.35': '0'}} with 2024-11-07 02:19:40,749 - INFO - Initial checks done. Running the testcase now 2024-11-07 02:19:40,749 - INFO - 2024-11-07 02:19:41,305 - DEBUG - Response for create_network : {'network': {'id': 'c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2', 'name': 'ctest-vn-16340668', 'tenant_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'project_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-vn-16340668'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:19:41,502 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e348c29-e822-434a-9c18-7e353e9a1bd1', 'name': '', 'tenant_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'network_id': 'c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2', 'ip_version': 4, 'cidr': '209.133.251.128/26', 'allocation_pools': [{'start': '209.133.251.130', 'end': '209.133.251.190'}], 'gateway_ip': '209.133.251.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.133.251.130', 'tags': [], 'project_id': '0f214649bdbc4cea8f4bbcb9b571f6a3'}} 2024-11-07 02:19:41,521 - INFO - Created VN ctest-vn-16340668 2024-11-07 02:19:41,580 - DEBUG - VN ctest-vn-16340668 UUID is c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2 2024-11-07 02:19:41,896 - DEBUG - Response for create_network : {'network': {'id': '5c3d4389-7e4e-43aa-b7cd-7a779c957ff2', 'name': 'ctest-vn-30655867', 'tenant_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'project_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-vn-30655867'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:19:42,063 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e778653-3f7f-4701-8707-5b15bfd5fabb', 'name': '', 'tenant_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'network_id': '5c3d4389-7e4e-43aa-b7cd-7a779c957ff2', 'ip_version': 4, 'cidr': '160.144.20.192/26', 'allocation_pools': [{'start': '160.144.20.194', 'end': '160.144.20.254'}], 'gateway_ip': '160.144.20.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.144.20.194', 'tags': [], 'project_id': '0f214649bdbc4cea8f4bbcb9b571f6a3'}} 2024-11-07 02:19:42,081 - INFO - Created VN ctest-vn-30655867 2024-11-07 02:19:42,136 - DEBUG - VN ctest-vn-30655867 UUID is 5c3d4389-7e4e-43aa-b7cd-7a779c957ff2 2024-11-07 02:19:42,300 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668, 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-14153725:ctest-vn-30655867, 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-11-07 02:19:42,621 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2', 'name': 'ctest-vn-16340668', 'tenant_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'project_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e348c29-e822-434a-9c18-7e353e9a1bd1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-vn-16340668'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-policy-allow-all-09497090']], 'subnet_ipam': [{'subnet_cidr': '209.133.251.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:19:42,862 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c3d4389-7e4e-43aa-b7cd-7a779c957ff2', 'name': 'ctest-vn-30655867', 'tenant_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'project_id': '0f214649bdbc4cea8f4bbcb9b571f6a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e778653-3f7f-4701-8707-5b15bfd5fabb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-vn-30655867'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-policy-allow-all-09497090']], 'subnet_ipam': [{'subnet_cidr': '160.144.20.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 02:19:43,020 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-07 02:19:43,322 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-07 02:19:43,351 - DEBUG - Requesting: http://10.0.0.35:8082/domain/8ea297b5-6dc9-4b36-8c3d-981cc6c77d16 2024-11-07 02:19:43,370 - DEBUG - Requesting: http://10.0.0.35:8082/project/0f214649-bdbc-4cea-8f4b-bcb9b571f6a3 2024-11-07 02:19:43,455 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2 2024-11-07 02:19:43,470 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2 2024-11-07 02:19:43,482 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/33745635-088a-4fd9-adc4-55faaf57e470 2024-11-07 02:19:43,490 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/33745635-088a-4fd9-adc4-55faaf57e470 2024-11-07 02:19:43,497 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d7468a40-a78a-4840-ba56-3ad894ce4d2d 2024-11-07 02:19:43,504 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 02:19:43,504 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2 2024-11-07 02:19:43,519 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/33745635-088a-4fd9-adc4-55faaf57e470 2024-11-07 02:19:43,544 - INFO - Verified VN network id 9 for VN c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2 2024-11-07 02:19:43,544 - INFO - Verifications in API Server for VN ctest-vn-16340668 passed 2024-11-07 02:19:43,544 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2 2024-11-07 02:19:43,558 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/33745635-088a-4fd9-adc4-55faaf57e470 2024-11-07 02:19:43,568 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/33745635-088a-4fd9-adc4-55faaf57e470 2024-11-07 02:19:43,579 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d7468a40-a78a-4840-ba56-3ad894ce4d2d 2024-11-07 02:19:43,591 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14153725', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14013734209292815286', 'uuid-lslong': '11369974257944525778'}, 'enable': 'true', 'created': '2024-11-07T02:19:41', 'last-modified': '2024-11-07T02:19:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005131'} 2024-11-07 02:19:43,598 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 02:19:43,598 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16340668 passed 2024-11-07 02:19:43,598 - DEBUG - ====Verifying policy data for ctest-vn-16340668 in API_Server ====== 2024-11-07 02:19:43,598 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-07 02:19:43,603 - DEBUG - Requesting: http://10.0.0.35:8082/domain/8ea297b5-6dc9-4b36-8c3d-981cc6c77d16 2024-11-07 02:19:43,615 - DEBUG - Requesting: http://10.0.0.35:8082/project/0f214649-bdbc-4cea-8f4b-bcb9b571f6a3 2024-11-07 02:19:43,696 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c27ac903-f1a3-4bb6-9dca-4358ce1e7bd2 2024-11-07 02:19:43,710 - DEBUG - ==>Verifying data for policy with id: 7f753229-3b5a-4457-b5c2-64e0a84c6a2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-policy-allow-all-09497090'] 2024-11-07 02:19:43,710 - INFO - VN ctest-vn-16340668 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 02:19:43,710 - DEBUG - Verifying the vn in opserver 2024-11-07 02:19:43,710 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668 virtual network link through opserver 10.0.0.35 2024-11-07 02:19:43,710 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-11-07 02:19:44,007 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-11-07 02:19:44,063 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668?flat'} 2024-11-07 02:19:44,063 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668 is found in opserver 2024-11-07 02:19:44,074 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 02:19:44,080 - DEBUG - VRF ids for VN ctest-vn-16340668: {} 2024-11-07 02:19:44,080 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-07 02:19:44,085 - DEBUG - Requesting: http://10.0.0.35:8082/domain/8ea297b5-6dc9-4b36-8c3d-981cc6c77d16 2024-11-07 02:19:44,099 - DEBUG - Requesting: http://10.0.0.35:8082/project/0f214649-bdbc-4cea-8f4b-bcb9b571f6a3 2024-11-07 02:19:44,177 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5c3d4389-7e4e-43aa-b7cd-7a779c957ff2 2024-11-07 02:19:44,191 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5c3d4389-7e4e-43aa-b7cd-7a779c957ff2 2024-11-07 02:19:44,204 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/3d717d31-729f-4bf5-8856-be74b0a47928 2024-11-07 02:19:44,213 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/3d717d31-729f-4bf5-8856-be74b0a47928 2024-11-07 02:19:44,220 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d0f3b471-474f-40ef-9a7b-e009124ee309 2024-11-07 02:19:44,228 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 02:19:44,228 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5c3d4389-7e4e-43aa-b7cd-7a779c957ff2 2024-11-07 02:19:44,240 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/3d717d31-729f-4bf5-8856-be74b0a47928 2024-11-07 02:19:44,257 - INFO - Verified VN network id 10 for VN 5c3d4389-7e4e-43aa-b7cd-7a779c957ff2 2024-11-07 02:19:44,257 - INFO - Verifications in API Server for VN ctest-vn-30655867 passed 2024-11-07 02:19:44,257 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5c3d4389-7e4e-43aa-b7cd-7a779c957ff2 2024-11-07 02:19:44,269 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/3d717d31-729f-4bf5-8856-be74b0a47928 2024-11-07 02:19:44,278 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/3d717d31-729f-4bf5-8856-be74b0a47928 2024-11-07 02:19:44,290 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d0f3b471-474f-40ef-9a7b-e009124ee309 2024-11-07 02:19:44,302 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-30655867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14153725', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6646542882877359018', 'uuid-lslong': '13244376733313236978'}, 'enable': 'true', 'created': '2024-11-07T02:19:41', 'last-modified': '2024-11-07T02:19:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466698'} 2024-11-07 02:19:44,308 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 02:19:44,308 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30655867 passed 2024-11-07 02:19:44,308 - DEBUG - ====Verifying policy data for ctest-vn-30655867 in API_Server ====== 2024-11-07 02:19:44,309 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-07 02:19:44,314 - DEBUG - Requesting: http://10.0.0.35:8082/domain/8ea297b5-6dc9-4b36-8c3d-981cc6c77d16 2024-11-07 02:19:44,327 - DEBUG - Requesting: http://10.0.0.35:8082/project/0f214649-bdbc-4cea-8f4b-bcb9b571f6a3 2024-11-07 02:19:44,407 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5c3d4389-7e4e-43aa-b7cd-7a779c957ff2 2024-11-07 02:19:44,419 - DEBUG - ==>Verifying data for policy with id: 7f753229-3b5a-4457-b5c2-64e0a84c6a2e, fqn: ['default-domain', 'ctest-TestBasicPolicy-14153725', 'ctest-policy-allow-all-09497090'] 2024-11-07 02:19:44,419 - INFO - VN ctest-vn-30655867 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 02:19:44,419 - DEBUG - Verifying the vn in opserver 2024-11-07 02:19:44,419 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-30655867 virtual network link through opserver 10.0.0.35 2024-11-07 02:19:44,419 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-11-07 02:19:44,432 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-30655867', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-30655867?flat'} 2024-11-07 02:19:44,433 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-30655867 is found in opserver 2024-11-07 02:19:44,444 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 02:19:44,449 - DEBUG - VRF ids for VN ctest-vn-30655867: {} 2024-11-07 02:19:44,499 - DEBUG - Services list from nova: [, , ] 2024-11-07 02:19:45,632 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2207-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2207-1) 2024-11-07 02:19:46,832 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2207-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2207-1) 2024-11-07 02:19:46,832 - INFO - Waiting for VM ctest-TestBasicPolicy-14153725-05716055 to be up.. 2024-11-07 02:19:46,916 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 02:19:52,001 - DEBUG - VM is in ACTIVE state now 2024-11-07 02:19:52,001 - INFO - VM name : ctest-TestBasicPolicy-14153725-05716055 2024-11-07 02:19:52,086 - DEBUG - VM ctest-TestBasicPolicy-14153725-05716055 ID is 18dfd775-54fa-4b92-9248-95e2b6492455 2024-11-07 02:19:52,104 - DEBUG - VM ctest-TestBasicPolicy-14153725-05716055 launched on Node cn-jenkins-deploy-platform-ansible-os-2207-1. 2024-11-07 02:19:52,184 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/18dfd775-54fa-4b92-9248-95e2b6492455 2024-11-07 02:19:52,196 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/90819eba-9e1e-4d07-8036-c623f0999349 2024-11-07 02:19:55,455 - 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 1003ms') 2024-11-07 02:19:55,456 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14153725-05716055 failed! 2024-11-07 02:19:55,512 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14153725:ctest-vn-16340668 is 209.133.251.129 and allocation pool is NOT set 2024-11-07 02:19:57,575 - 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=4.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.371 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 = 0.371/2.518/4.665/2.147 ms') 2024-11-07 02:19:57,575 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14153725-05716055 passed 2024-11-07 02:19:57,732 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:19:57,732 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14153725-05716055, IP 209.133.251.131, Port 22 2024-11-07 02:19:57,896 - DEBUG - VM ctest-TestBasicPolicy-14153725-05716055 is ready for SSH connections 2024-11-07 02:19:57,896 - INFO - Waiting for VM ctest-TestBasicPolicy-14153725-64306801 to be up.. 2024-11-07 02:19:57,974 - DEBUG - VM is in ACTIVE state now 2024-11-07 02:19:57,975 - INFO - VM name : ctest-TestBasicPolicy-14153725-64306801 2024-11-07 02:19:58,061 - DEBUG - VM ctest-TestBasicPolicy-14153725-64306801 ID is 13ff5843-fa99-45bd-a188-ca1ae529a187 2024-11-07 02:19:58,062 - DEBUG - VM ctest-TestBasicPolicy-14153725-64306801 launched on Node cn-jenkins-deploy-platform-ansible-os-2207-1. 2024-11-07 02:19:58,151 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/13ff5843-fa99-45bd-a188-ca1ae529a187 2024-11-07 02:19:58,161 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/fcc68fbb-1a64-40f9-88a5-bf850a9fb2b2 2024-11-07 02:19:59,417 - 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.78 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.386 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.386/1.585/2.784/1.199 ms') 2024-11-07 02:19:59,418 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-14153725-64306801 passed 2024-11-07 02:19:59,572 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:19:59,572 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14153725-64306801, IP 160.144.20.195, Port 22 2024-11-07 02:19:59,727 - DEBUG - VM ctest-TestBasicPolicy-14153725-64306801 is ready for SSH connections 2024-11-07 02:19:59,727 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:19:59,727 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 160.144.20.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-11-07 02:19:59,727 - DEBUG - ping -s 56 -c 3 -W 1 160.144.20.195 2024-11-07 02:20:03,425 - DEBUG - PING 160.144.20.195 (160.144.20.195): 56 data bytes 64 bytes from 160.144.20.195: seq=0 ttl=63 time=3.272 ms 64 bytes from 160.144.20.195: seq=1 ttl=63 time=0.807 ms 64 bytes from 160.144.20.195: seq=2 ttl=63 time=0.958 ms --- 160.144.20.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.807/1.679/3.272 ms 2024-11-07 02:20:03,425 - INFO - Ping to IP 160.144.20.195 from VM ctest-TestBasicPolicy-14153725-05716055 passed 2024-11-07 02:20:03,616 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7f753229-3b5a-4457-b5c2-64e0a84c6a2e", "href": "http://10.0.0.35:8082/network-policy/7f753229-3b5a-4457-b5c2-64e0a84c6a2e"}} 2024-11-07 02:20:03,616 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 02:20:03,616 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 160.144.20.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-11-07 02:20:03,616 - DEBUG - ping -s 56 -c 3 -W 1 160.144.20.195 2024-11-07 02:20:06,842 - DEBUG - PING 160.144.20.195 (160.144.20.195): 56 data bytes 64 bytes from 160.144.20.195: seq=0 ttl=63 time=2.240 ms --- 160.144.20.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.240/2.240/2.240 ms 2024-11-07 02:20:06,842 - WARNING - Ping to IP 160.144.20.195 from VM ctest-TestBasicPolicy-14153725-05716055 failed 2024-11-07 02:20:06,842 - INFO - Deleting VM ctest-TestBasicPolicy-14153725-64306801 2024-11-07 02:20:06,907 - INFO - Deleting VM ctest-TestBasicPolicy-14153725-05716055 2024-11-07 02:20:07,318 - INFO - Deleted policy ctest-policy-allow-all-09497090 2024-11-07 02:20:07,318 - INFO - Deleting VN ctest-vn-30655867 2024-11-07 02:20:07,355 - DEBUG - VN 5c3d4389-7e4e-43aa-b7cd-7a779c957ff2 still in use: Unable to complete operation on network 5c3d4389-7e4e-43aa-b7cd-7a779c957ff2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ace0e7df-2501-4620-94bc-bc6d171c3eac'] 2024-11-07 02:20:07,355 - WARNING - Deleting VN ctest-vn-30655867 failed..Will retry 2024-11-07 02:20:09,480 - DEBUG - Response for deleting network () 2024-11-07 02:20:09,480 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/3d717d31-729f-4bf5-8856-be74b0a47928 2024-11-07 02:20:09,485 - DEBUG - Response Code: 404 2024-11-07 02:20:09,486 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-07 02:20:09,491 - DEBUG - Requesting: http://10.0.0.35:8082/domain/8ea297b5-6dc9-4b36-8c3d-981cc6c77d16 2024-11-07 02:20:09,547 - DEBUG - Requesting: http://10.0.0.35:8082/project/0f214649-bdbc-4cea-8f4b-bcb9b571f6a3 2024-11-07 02:20:09,623 - INFO - Validated that VN ctest-vn-30655867 is not found in API Server 2024-11-07 02:20:09,637 - DEBUG - VN ctest-vn-30655867 is not present in Agent 10.0.0.35 2024-11-07 02:20:09,637 - INFO - Validated that VN ctest-vn-30655867 is not in any agent 2024-11-07 02:20:09,654 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30655867 info 2024-11-07 02:20:09,654 - INFO - Deleting VN ctest-vn-16340668 2024-11-07 02:20:09,779 - DEBUG - Response for deleting network () 2024-11-07 02:20:09,779 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/33745635-088a-4fd9-adc4-55faaf57e470 2024-11-07 02:20:09,785 - DEBUG - Response Code: 404 2024-11-07 02:20:09,785 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-11-07 02:20:09,791 - DEBUG - Requesting: http://10.0.0.35:8082/domain/8ea297b5-6dc9-4b36-8c3d-981cc6c77d16 2024-11-07 02:20:09,847 - DEBUG - Requesting: http://10.0.0.35:8082/project/0f214649-bdbc-4cea-8f4b-bcb9b571f6a3 2024-11-07 02:20:09,929 - INFO - Validated that VN ctest-vn-16340668 is not found in API Server 2024-11-07 02:20:09,940 - DEBUG - VN ctest-vn-16340668 is not present in Agent 10.0.0.35 2024-11-07 02:20:09,940 - INFO - Validated that VN ctest-vn-16340668 is not in any agent 2024-11-07 02:20:09,957 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-16340668 info 2024-11-07 02:20:10,213 - DEBUG - No XMPP flaps were noticed during the test 2024-11-07 02:20:10,213 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-11-07 02:20:10,213 - INFO - -------------------------------------------------------------------------------- 2024-11-07 02:20:10,910 - INFO - Deleted project: ctest-TestBasicPolicy-14153725, ID : 0f214649-bdbc-4cea-8f4b-bcb9b571f6a3