2025-03-13 02:25:17,879 - INFO - Domain Default found not creating 2025-03-13 02:25:18,062 - INFO - Project ctest-TestBasicPolicy-13786569 not found, creating it 2025-03-13 02:25:18,731 - INFO - Created Project:ctest-TestBasicPolicy-13786569, ID : 4493ac3d-2c94-47d5-a08c-314b1c13933c 2025-03-13 02:25:20,478 - INFO - ================================================================================ 2025-03-13 02:25:20,478 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-13 02:25:20,479 - 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 2025-03-13 02:25:20,742 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.18': '0'}} with 2025-03-13 02:25:20,742 - INFO - Initial checks done. Running the testcase now 2025-03-13 02:25:20,742 - INFO - 2025-03-13 02:25:21,352 - DEBUG - Response for create_network : {'network': {'id': '158caffa-b888-4a44-924c-732bc778f7b4', 'name': 'ctest-vn-15504252', 'tenant_id': '4493ac3d2c9447d5a08c314b1c13933c', 'project_id': '4493ac3d2c9447d5a08c314b1c13933c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-vn-15504252'], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:25:21,545 - DEBUG - Response for create_subnet : {'subnet': {'id': '234da1ad-d83f-45f6-99d3-ca51d52a143d', 'name': '', 'tenant_id': '4493ac3d2c9447d5a08c314b1c13933c', 'network_id': '158caffa-b888-4a44-924c-732bc778f7b4', 'ip_version': 4, 'cidr': '29.13.243.128/26', 'allocation_pools': [{'start': '29.13.243.130', 'end': '29.13.243.190'}], 'gateway_ip': '29.13.243.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.13.243.130', 'tags': [], 'project_id': '4493ac3d2c9447d5a08c314b1c13933c'}} 2025-03-13 02:25:21,570 - INFO - Created VN ctest-vn-15504252 2025-03-13 02:25:21,622 - DEBUG - VN ctest-vn-15504252 UUID is 158caffa-b888-4a44-924c-732bc778f7b4 2025-03-13 02:25:21,955 - DEBUG - Response for create_network : {'network': {'id': 'e224ccfa-aaca-4e79-9a5b-3821d7142759', 'name': 'ctest-vn-63012799', 'tenant_id': '4493ac3d2c9447d5a08c314b1c13933c', 'project_id': '4493ac3d2c9447d5a08c314b1c13933c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-vn-63012799'], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:25:22,158 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abe5727d-dcb4-479e-aebc-05e975c198f0', 'name': '', 'tenant_id': '4493ac3d2c9447d5a08c314b1c13933c', 'network_id': 'e224ccfa-aaca-4e79-9a5b-3821d7142759', 'ip_version': 4, 'cidr': '188.131.44.192/26', 'allocation_pools': [{'start': '188.131.44.194', 'end': '188.131.44.254'}], 'gateway_ip': '188.131.44.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.131.44.194', 'tags': [], 'project_id': '4493ac3d2c9447d5a08c314b1c13933c'}} 2025-03-13 02:25:22,184 - INFO - Created VN ctest-vn-63012799 2025-03-13 02:25:22,242 - DEBUG - VN ctest-vn-63012799 UUID is e224ccfa-aaca-4e79-9a5b-3821d7142759 2025-03-13 02:25:22,368 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252, 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-13786569:ctest-vn-63012799, 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] 2025-03-13 02:25:22,695 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '158caffa-b888-4a44-924c-732bc778f7b4', 'name': 'ctest-vn-15504252', 'tenant_id': '4493ac3d2c9447d5a08c314b1c13933c', 'project_id': '4493ac3d2c9447d5a08c314b1c13933c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['234da1ad-d83f-45f6-99d3-ca51d52a143d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-vn-15504252'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-policy-allow-all-30897675']], 'subnet_ipam': [{'subnet_cidr': '29.13.243.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:25:23,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e224ccfa-aaca-4e79-9a5b-3821d7142759', 'name': 'ctest-vn-63012799', 'tenant_id': '4493ac3d2c9447d5a08c314b1c13933c', 'project_id': '4493ac3d2c9447d5a08c314b1c13933c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['abe5727d-dcb4-479e-aebc-05e975c198f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-vn-63012799'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-policy-allow-all-30897675']], 'subnet_ipam': [{'subnet_cidr': '188.131.44.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-13 02:25:23,162 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-13 02:25:23,476 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-13 02:25:23,512 - DEBUG - Requesting: http://10.0.0.34:8082/domain/3ebe5fa0-4640-4a3f-b28d-66abac261115 2025-03-13 02:25:23,530 - DEBUG - Requesting: http://10.0.0.34:8082/project/4493ac3d-2c94-47d5-a08c-314b1c13933c 2025-03-13 02:25:23,613 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/158caffa-b888-4a44-924c-732bc778f7b4 2025-03-13 02:25:23,626 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/158caffa-b888-4a44-924c-732bc778f7b4 2025-03-13 02:25:23,636 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/329f1b3c-07e5-495e-ad8b-85676b5a5131 2025-03-13 02:25:23,646 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/329f1b3c-07e5-495e-ad8b-85676b5a5131 2025-03-13 02:25:23,655 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/b38bbb5e-5ca3-4967-aa4c-e263c1091aaf 2025-03-13 02:25:23,663 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-13 02:25:23,663 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/158caffa-b888-4a44-924c-732bc778f7b4 2025-03-13 02:25:23,672 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/329f1b3c-07e5-495e-ad8b-85676b5a5131 2025-03-13 02:25:23,690 - INFO - Verified VN network id 9 for VN 158caffa-b888-4a44-924c-732bc778f7b4 2025-03-13 02:25:23,690 - INFO - Verifications in API Server for VN ctest-vn-15504252 passed 2025-03-13 02:25:23,690 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/158caffa-b888-4a44-924c-732bc778f7b4 2025-03-13 02:25:23,701 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/329f1b3c-07e5-495e-ad8b-85676b5a5131 2025-03-13 02:25:23,710 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/329f1b3c-07e5-495e-ad8b-85676b5a5131 2025-03-13 02:25:23,719 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/b38bbb5e-5ca3-4967-aa4c-e263c1091aaf 2025-03-13 02:25:23,737 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13786569', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1552809462908602948', 'uuid-lslong': '10541927459634870196'}, 'enable': 'true', 'created': '2025-03-13T02:25:21', 'last-modified': '2025-03-13T02:25:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068756'} 2025-03-13 02:25:23,746 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-13 02:25:23,746 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15504252 passed 2025-03-13 02:25:23,746 - DEBUG - ====Verifying policy data for ctest-vn-15504252 in API_Server ====== 2025-03-13 02:25:23,746 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-13 02:25:23,754 - DEBUG - Requesting: http://10.0.0.34:8082/domain/3ebe5fa0-4640-4a3f-b28d-66abac261115 2025-03-13 02:25:23,770 - DEBUG - Requesting: http://10.0.0.34:8082/project/4493ac3d-2c94-47d5-a08c-314b1c13933c 2025-03-13 02:25:23,850 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/158caffa-b888-4a44-924c-732bc778f7b4 2025-03-13 02:25:23,862 - DEBUG - ==>Verifying data for policy with id: 6ffc3a6a-152f-4e61-a77e-7c10f34aff59, fqn: ['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-policy-allow-all-30897675'] 2025-03-13 02:25:23,862 - INFO - VN ctest-vn-15504252 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-13 02:25:23,863 - DEBUG - Verifying the vn in opserver 2025-03-13 02:25:23,863 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252 virtual network link through opserver 10.0.0.34 2025-03-13 02:25:23,863 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2025-03-13 02:25:24,163 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2025-03-13 02:25:24,235 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252?flat'} 2025-03-13 02:25:24,235 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252 is found in opserver 2025-03-13 02:25:24,248 - DEBUG - Do not have enough data to verify VN in agent 2025-03-13 02:25:24,255 - DEBUG - VRF ids for VN ctest-vn-15504252: {} 2025-03-13 02:25:24,255 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-13 02:25:24,262 - DEBUG - Requesting: http://10.0.0.34:8082/domain/3ebe5fa0-4640-4a3f-b28d-66abac261115 2025-03-13 02:25:24,276 - DEBUG - Requesting: http://10.0.0.34:8082/project/4493ac3d-2c94-47d5-a08c-314b1c13933c 2025-03-13 02:25:24,355 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e224ccfa-aaca-4e79-9a5b-3821d7142759 2025-03-13 02:25:24,369 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e224ccfa-aaca-4e79-9a5b-3821d7142759 2025-03-13 02:25:24,381 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ea3db411-2532-4797-9d0d-134359dbc100 2025-03-13 02:25:24,390 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ea3db411-2532-4797-9d0d-134359dbc100 2025-03-13 02:25:24,400 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/6ef7d68d-bdee-42d7-9b8e-f5dd30539bc4 2025-03-13 02:25:24,410 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-13 02:25:24,410 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e224ccfa-aaca-4e79-9a5b-3821d7142759 2025-03-13 02:25:24,422 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ea3db411-2532-4797-9d0d-134359dbc100 2025-03-13 02:25:24,440 - INFO - Verified VN network id 10 for VN e224ccfa-aaca-4e79-9a5b-3821d7142759 2025-03-13 02:25:24,441 - INFO - Verifications in API Server for VN ctest-vn-63012799 passed 2025-03-13 02:25:24,441 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e224ccfa-aaca-4e79-9a5b-3821d7142759 2025-03-13 02:25:24,453 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ea3db411-2532-4797-9d0d-134359dbc100 2025-03-13 02:25:24,462 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ea3db411-2532-4797-9d0d-134359dbc100 2025-03-13 02:25:24,471 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/6ef7d68d-bdee-42d7-9b8e-f5dd30539bc4 2025-03-13 02:25:24,487 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-63012799', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13786569', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16295374728712572537', 'uuid-lslong': '11122545422715070297'}, 'enable': 'true', 'created': '2025-03-13T02:25:21', 'last-modified': '2025-03-13T02:25:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.559474'} 2025-03-13 02:25:24,495 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-03-13 02:25:24,495 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63012799 passed 2025-03-13 02:25:24,496 - DEBUG - ====Verifying policy data for ctest-vn-63012799 in API_Server ====== 2025-03-13 02:25:24,496 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-13 02:25:24,504 - DEBUG - Requesting: http://10.0.0.34:8082/domain/3ebe5fa0-4640-4a3f-b28d-66abac261115 2025-03-13 02:25:24,520 - DEBUG - Requesting: http://10.0.0.34:8082/project/4493ac3d-2c94-47d5-a08c-314b1c13933c 2025-03-13 02:25:24,601 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/e224ccfa-aaca-4e79-9a5b-3821d7142759 2025-03-13 02:25:24,611 - DEBUG - ==>Verifying data for policy with id: 6ffc3a6a-152f-4e61-a77e-7c10f34aff59, fqn: ['default-domain', 'ctest-TestBasicPolicy-13786569', 'ctest-policy-allow-all-30897675'] 2025-03-13 02:25:24,611 - INFO - VN ctest-vn-63012799 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-13 02:25:24,611 - DEBUG - Verifying the vn in opserver 2025-03-13 02:25:24,611 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-63012799 virtual network link through opserver 10.0.0.34 2025-03-13 02:25:24,611 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks 2025-03-13 02:25:24,625 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-63012799', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-63012799?flat'} 2025-03-13 02:25:24,625 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-63012799 is found in opserver 2025-03-13 02:25:24,639 - DEBUG - Do not have enough data to verify VN in agent 2025-03-13 02:25:24,645 - DEBUG - VRF ids for VN ctest-vn-63012799: {} 2025-03-13 02:25:24,713 - DEBUG - Services list from nova: [, , ] 2025-03-13 02:25:25,958 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2858-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2858-1) 2025-03-13 02:25:27,343 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2858-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2858-1) 2025-03-13 02:25:27,344 - INFO - Waiting for VM ctest-TestBasicPolicy-13786569-67222261 to be up.. 2025-03-13 02:25:27,465 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-13 02:25:32,561 - DEBUG - VM is in ACTIVE state now 2025-03-13 02:25:32,561 - INFO - VM name : ctest-TestBasicPolicy-13786569-67222261 2025-03-13 02:25:32,655 - DEBUG - VM ctest-TestBasicPolicy-13786569-67222261 ID is b8196c6c-d22c-4838-8951-1d7f03eb5d06 2025-03-13 02:25:32,681 - DEBUG - VM ctest-TestBasicPolicy-13786569-67222261 launched on Node cn-jenkins-deploy-platform-ansible-os-2858-1 2025-03-13 02:25:32,774 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/b8196c6c-d22c-4838-8951-1d7f03eb5d06 2025-03-13 02:25:32,786 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/826710dc-a7ba-42ec-9bc8-4288bc607a40 2025-03-13 02:25:36,070 - 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') 2025-03-13 02:25:36,070 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13786569-67222261 failed! 2025-03-13 02:25:36,130 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-13786569:ctest-vn-15504252 is 29.13.243.129 and allocation pool is NOT set 2025-03-13 02:25:38,187 - 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=7.63 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.493 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.493/4.061/7.630/3.568 ms') 2025-03-13 02:25:38,187 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-13786569-67222261 passed 2025-03-13 02:25:38,342 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:25:38,343 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13786569-67222261, IP 29.13.243.131, Port 22 2025-03-13 02:25:38,513 - DEBUG - VM ctest-TestBasicPolicy-13786569-67222261 is ready for SSH connections 2025-03-13 02:25:38,513 - INFO - Waiting for VM ctest-TestBasicPolicy-13786569-76449642 to be up.. 2025-03-13 02:25:38,611 - DEBUG - VM is in ACTIVE state now 2025-03-13 02:25:38,612 - INFO - VM name : ctest-TestBasicPolicy-13786569-76449642 2025-03-13 02:25:38,702 - DEBUG - VM ctest-TestBasicPolicy-13786569-76449642 ID is d364a701-171b-47bd-9451-5c3b01f67bf8 2025-03-13 02:25:38,702 - DEBUG - VM ctest-TestBasicPolicy-13786569-76449642 launched on Node cn-jenkins-deploy-platform-ansible-os-2858-1 2025-03-13 02:25:38,813 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine/d364a701-171b-47bd-9451-5c3b01f67bf8 2025-03-13 02:25:38,824 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-machine-interface/d2dc6aa0-b1cf-41c7-af3d-ba5da03e28bd 2025-03-13 02:25:40,080 - 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.33 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.73 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 = 2.731/3.028/3.326/0.297 ms') 2025-03-13 02:25:40,080 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-13786569-76449642 passed 2025-03-13 02:25:40,230 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:25:40,230 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13786569-76449642, IP 188.131.44.195, Port 22 2025-03-13 02:25:40,290 - 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': ''} 2025-03-13 02:25:40,384 - DEBUG - VM ctest-TestBasicPolicy-13786569-76449642 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-13 02:25:45,385 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:25:45,385 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-13786569-76449642, IP 188.131.44.195, Port 22 2025-03-13 02:25:45,552 - DEBUG - VM ctest-TestBasicPolicy-13786569-76449642 is ready for SSH connections 2025-03-13 02:25:45,552 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:25:45,552 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.131.44.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2025-03-13 02:25:45,552 - DEBUG - ping -s 56 -c 3 -W 1 188.131.44.195 2025-03-13 02:25:49,651 - DEBUG - PING 188.131.44.195 (188.131.44.195): 56 data bytes 64 bytes from 188.131.44.195: seq=0 ttl=63 time=3.307 ms 64 bytes from 188.131.44.195: seq=1 ttl=63 time=0.977 ms 64 bytes from 188.131.44.195: seq=2 ttl=63 time=0.896 ms --- 188.131.44.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.896/1.726/3.307 ms 2025-03-13 02:25:49,651 - INFO - Ping to IP 188.131.44.195 from VM ctest-TestBasicPolicy-13786569-67222261 passed 2025-03-13 02:25:49,830 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6ffc3a6a-152f-4e61-a77e-7c10f34aff59", "href": "http://10.0.0.34:8082/network-policy/6ffc3a6a-152f-4e61-a77e-7c10f34aff59"}} 2025-03-13 02:25:49,830 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-13 02:25:49,830 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 188.131.44.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.34, gateway password: c0ntrail123 2025-03-13 02:25:49,831 - DEBUG - ping -s 56 -c 3 -W 1 188.131.44.195 2025-03-13 02:25:53,064 - DEBUG - PING 188.131.44.195 (188.131.44.195): 56 data bytes 64 bytes from 188.131.44.195: seq=0 ttl=63 time=1.808 ms --- 188.131.44.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.808/1.808/1.808 ms 2025-03-13 02:25:53,064 - WARNING - Ping to IP 188.131.44.195 from VM ctest-TestBasicPolicy-13786569-67222261 failed 2025-03-13 02:25:53,064 - INFO - Deleting VM ctest-TestBasicPolicy-13786569-76449642 2025-03-13 02:25:53,149 - INFO - Deleting VM ctest-TestBasicPolicy-13786569-67222261 2025-03-13 02:25:53,564 - INFO - Deleted policy ctest-policy-allow-all-30897675 2025-03-13 02:25:53,564 - INFO - Deleting VN ctest-vn-63012799 2025-03-13 02:25:53,613 - DEBUG - VN e224ccfa-aaca-4e79-9a5b-3821d7142759 still in use: Unable to complete operation on network e224ccfa-aaca-4e79-9a5b-3821d7142759. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-606c200e-f2ad-42d5-93eb-7ca019ca7a08'] 2025-03-13 02:25:53,613 - WARNING - Deleting VN ctest-vn-63012799 failed..Will retry 2025-03-13 02:25:55,744 - DEBUG - Response for deleting network () 2025-03-13 02:25:55,745 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/ea3db411-2532-4797-9d0d-134359dbc100 2025-03-13 02:25:55,752 - DEBUG - Response Code: 404 2025-03-13 02:25:55,752 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-13 02:25:55,763 - DEBUG - Requesting: http://10.0.0.34:8082/domain/3ebe5fa0-4640-4a3f-b28d-66abac261115 2025-03-13 02:25:55,819 - DEBUG - Requesting: http://10.0.0.34:8082/project/4493ac3d-2c94-47d5-a08c-314b1c13933c 2025-03-13 02:25:55,907 - INFO - Validated that VN ctest-vn-63012799 is not found in API Server 2025-03-13 02:25:55,920 - DEBUG - VN ctest-vn-63012799 is not present in Agent 10.0.0.34 2025-03-13 02:25:55,920 - INFO - Validated that VN ctest-vn-63012799 is not in any agent 2025-03-13 02:25:55,945 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-63012799 info 2025-03-13 02:25:55,945 - INFO - Deleting VN ctest-vn-15504252 2025-03-13 02:25:56,074 - DEBUG - Response for deleting network () 2025-03-13 02:25:56,074 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/329f1b3c-07e5-495e-ad8b-85676b5a5131 2025-03-13 02:25:56,082 - DEBUG - Response Code: 404 2025-03-13 02:25:56,083 - DEBUG - Requesting: http://10.0.0.34:8082/domains 2025-03-13 02:25:56,089 - DEBUG - Requesting: http://10.0.0.34:8082/domain/3ebe5fa0-4640-4a3f-b28d-66abac261115 2025-03-13 02:25:56,144 - DEBUG - Requesting: http://10.0.0.34:8082/project/4493ac3d-2c94-47d5-a08c-314b1c13933c 2025-03-13 02:25:56,216 - INFO - Validated that VN ctest-vn-15504252 is not found in API Server 2025-03-13 02:25:56,230 - DEBUG - VN ctest-vn-15504252 is not present in Agent 10.0.0.34 2025-03-13 02:25:56,230 - INFO - Validated that VN ctest-vn-15504252 is not in any agent 2025-03-13 02:25:56,250 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-15504252 info 2025-03-13 02:25:56,506 - DEBUG - No XMPP flaps were noticed during the test
2025-03-13 02:25:56,506 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-03-13 02:25:56,506 - INFO - -------------------------------------------------------------------------------- 2025-03-13 02:25:57,237 - INFO - Deleted project: ctest-TestBasicPolicy-13786569, ID : 4493ac3d-2c94-47d5-a08c-314b1c13933c