2025-01-27 02:38:11,371 - INFO - Domain Default found not creating 2025-01-27 02:38:11,545 - INFO - Project ctest-TestBasicPolicy-91061772 not found, creating it 2025-01-27 02:38:12,025 - INFO - Created Project:ctest-TestBasicPolicy-91061772, ID : f5b948a1-10c4-4537-89f3-bd55b6e3ee53 2025-01-27 02:38:13,579 - INFO - ================================================================================ 2025-01-27 02:38:13,579 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-27 02:38:13,579 - 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-01-27 02:38:13,835 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.27': '0'}} with 2025-01-27 02:38:13,835 - INFO - Initial checks done. Running the testcase now 2025-01-27 02:38:13,835 - INFO - 2025-01-27 02:38:14,435 - DEBUG - Response for create_network : {'network': {'id': '8657b82c-7790-4d30-83af-7dc72ea5d357', 'name': 'ctest-vn-58496245', 'tenant_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'project_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-vn-58496245'], 'port_security_enabled': True, 'description': ''}} 2025-01-27 02:38:14,688 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e37fd85-16a5-462d-be09-fedfbbf4be43', 'name': '', 'tenant_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'network_id': '8657b82c-7790-4d30-83af-7dc72ea5d357', 'ip_version': 4, 'cidr': '117.255.49.128/26', 'allocation_pools': [{'start': '117.255.49.130', 'end': '117.255.49.190'}], 'gateway_ip': '117.255.49.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.255.49.130', 'tags': [], 'project_id': 'f5b948a110c4453789f3bd55b6e3ee53'}} 2025-01-27 02:38:14,710 - INFO - Created VN ctest-vn-58496245 2025-01-27 02:38:14,760 - DEBUG - VN ctest-vn-58496245 UUID is 8657b82c-7790-4d30-83af-7dc72ea5d357 2025-01-27 02:38:15,057 - DEBUG - Response for create_network : {'network': {'id': 'd6824c3b-5395-49fc-b06c-d32cfb6eca52', 'name': 'ctest-vn-70296818', 'tenant_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'project_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-vn-70296818'], 'port_security_enabled': True, 'description': ''}} 2025-01-27 02:38:15,275 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3b6c98e-728f-4ea3-9539-49fc14e0c5f8', 'name': '', 'tenant_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'network_id': 'd6824c3b-5395-49fc-b06c-d32cfb6eca52', 'ip_version': 4, 'cidr': '124.82.164.64/26', 'allocation_pools': [{'start': '124.82.164.66', 'end': '124.82.164.126'}], 'gateway_ip': '124.82.164.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.82.164.66', 'tags': [], 'project_id': 'f5b948a110c4453789f3bd55b6e3ee53'}} 2025-01-27 02:38:15,295 - INFO - Created VN ctest-vn-70296818 2025-01-27 02:38:15,344 - DEBUG - VN ctest-vn-70296818 UUID is d6824c3b-5395-49fc-b06c-d32cfb6eca52 2025-01-27 02:38:15,459 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245, 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-91061772:ctest-vn-70296818, 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-01-27 02:38:15,760 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8657b82c-7790-4d30-83af-7dc72ea5d357', 'name': 'ctest-vn-58496245', 'tenant_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'project_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e37fd85-16a5-462d-be09-fedfbbf4be43'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-vn-58496245'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-policy-allow-all-31549253']], 'subnet_ipam': [{'subnet_cidr': '117.255.49.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-27 02:38:16,054 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6824c3b-5395-49fc-b06c-d32cfb6eca52', 'name': 'ctest-vn-70296818', 'tenant_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'project_id': 'f5b948a110c4453789f3bd55b6e3ee53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c3b6c98e-728f-4ea3-9539-49fc14e0c5f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-vn-70296818'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-policy-allow-all-31549253']], 'subnet_ipam': [{'subnet_cidr': '124.82.164.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-27 02:38:16,196 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-27 02:38:16,497 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-27 02:38:16,530 - DEBUG - Requesting: http://10.0.0.42:8082/domain/097b3746-800c-471c-98b2-ef7b211c3f09 2025-01-27 02:38:16,543 - DEBUG - Requesting: http://10.0.0.42:8082/project/f5b948a1-10c4-4537-89f3-bd55b6e3ee53 2025-01-27 02:38:16,615 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/8657b82c-7790-4d30-83af-7dc72ea5d357 2025-01-27 02:38:16,626 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/8657b82c-7790-4d30-83af-7dc72ea5d357 2025-01-27 02:38:16,636 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c97d4b39-fcac-47ac-91b7-9614f78f029d 2025-01-27 02:38:16,645 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c97d4b39-fcac-47ac-91b7-9614f78f029d 2025-01-27 02:38:16,654 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a43e2a8a-d800-47fd-b13c-87f8ce47912c 2025-01-27 02:38:16,663 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-27 02:38:16,663 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/8657b82c-7790-4d30-83af-7dc72ea5d357 2025-01-27 02:38:16,673 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c97d4b39-fcac-47ac-91b7-9614f78f029d 2025-01-27 02:38:16,687 - INFO - Verified VN network id 8 for VN 8657b82c-7790-4d30-83af-7dc72ea5d357 2025-01-27 02:38:16,687 - INFO - Verifications in API Server for VN ctest-vn-58496245 passed 2025-01-27 02:38:16,687 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/8657b82c-7790-4d30-83af-7dc72ea5d357 2025-01-27 02:38:16,697 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c97d4b39-fcac-47ac-91b7-9614f78f029d 2025-01-27 02:38:16,703 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c97d4b39-fcac-47ac-91b7-9614f78f029d 2025-01-27 02:38:16,710 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a43e2a8a-d800-47fd-b13c-87f8ce47912c 2025-01-27 02:38:16,726 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91061772', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9680408425180187952', 'uuid-lslong': '9488941234327507799'}, 'enable': 'true', 'created': '2025-01-27T02:38:14', 'last-modified': '2025-01-27T02:38:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.987481'} 2025-01-27 02:38:16,733 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-27 02:38:16,733 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58496245 passed 2025-01-27 02:38:16,733 - DEBUG - ====Verifying policy data for ctest-vn-58496245 in API_Server ====== 2025-01-27 02:38:16,733 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-27 02:38:16,740 - DEBUG - Requesting: http://10.0.0.42:8082/domain/097b3746-800c-471c-98b2-ef7b211c3f09 2025-01-27 02:38:16,752 - DEBUG - Requesting: http://10.0.0.42:8082/project/f5b948a1-10c4-4537-89f3-bd55b6e3ee53 2025-01-27 02:38:16,821 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/8657b82c-7790-4d30-83af-7dc72ea5d357 2025-01-27 02:38:16,831 - DEBUG - ==>Verifying data for policy with id: be84caea-fbbc-4648-8611-86efb13ac7c6, fqn: ['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-policy-allow-all-31549253'] 2025-01-27 02:38:16,831 - INFO - VN ctest-vn-58496245 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-27 02:38:16,831 - DEBUG - Verifying the vn in opserver 2025-01-27 02:38:16,831 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245 virtual network link through opserver 10.0.0.42 2025-01-27 02:38:16,831 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-01-27 02:38:17,134 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-01-27 02:38:17,217 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245?flat'} 2025-01-27 02:38:17,217 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245 is found in opserver 2025-01-27 02:38:17,229 - DEBUG - Do not have enough data to verify VN in agent 2025-01-27 02:38:17,236 - DEBUG - VRF ids for VN ctest-vn-58496245: {} 2025-01-27 02:38:17,236 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-27 02:38:17,243 - DEBUG - Requesting: http://10.0.0.42:8082/domain/097b3746-800c-471c-98b2-ef7b211c3f09 2025-01-27 02:38:17,256 - DEBUG - Requesting: http://10.0.0.42:8082/project/f5b948a1-10c4-4537-89f3-bd55b6e3ee53 2025-01-27 02:38:17,323 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d6824c3b-5395-49fc-b06c-d32cfb6eca52 2025-01-27 02:38:17,333 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d6824c3b-5395-49fc-b06c-d32cfb6eca52 2025-01-27 02:38:17,341 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/985361fe-14a0-4af7-a550-7fc9cdd52bca 2025-01-27 02:38:17,349 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/985361fe-14a0-4af7-a550-7fc9cdd52bca 2025-01-27 02:38:17,356 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a3c0c2b8-f9b7-4fb0-b148-77f33543a2c8 2025-01-27 02:38:17,363 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-27 02:38:17,363 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d6824c3b-5395-49fc-b06c-d32cfb6eca52 2025-01-27 02:38:17,371 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/985361fe-14a0-4af7-a550-7fc9cdd52bca 2025-01-27 02:38:17,384 - INFO - Verified VN network id 9 for VN d6824c3b-5395-49fc-b06c-d32cfb6eca52 2025-01-27 02:38:17,384 - INFO - Verifications in API Server for VN ctest-vn-70296818 passed 2025-01-27 02:38:17,384 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d6824c3b-5395-49fc-b06c-d32cfb6eca52 2025-01-27 02:38:17,394 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/985361fe-14a0-4af7-a550-7fc9cdd52bca 2025-01-27 02:38:17,401 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/985361fe-14a0-4af7-a550-7fc9cdd52bca 2025-01-27 02:38:17,409 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/a3c0c2b8-f9b7-4fb0-b148-77f33543a2c8 2025-01-27 02:38:17,425 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-70296818', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91061772', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15457000688778037756', 'uuid-lslong': '12712768038310431314'}, 'enable': 'true', 'created': '2025-01-27T02:38:15', 'last-modified': '2025-01-27T02:38:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.455291'} 2025-01-27 02:38:17,432 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-27 02:38:17,432 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70296818 passed 2025-01-27 02:38:17,433 - DEBUG - ====Verifying policy data for ctest-vn-70296818 in API_Server ====== 2025-01-27 02:38:17,433 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-27 02:38:17,440 - DEBUG - Requesting: http://10.0.0.42:8082/domain/097b3746-800c-471c-98b2-ef7b211c3f09 2025-01-27 02:38:17,453 - DEBUG - Requesting: http://10.0.0.42:8082/project/f5b948a1-10c4-4537-89f3-bd55b6e3ee53 2025-01-27 02:38:17,522 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/d6824c3b-5395-49fc-b06c-d32cfb6eca52 2025-01-27 02:38:17,531 - DEBUG - ==>Verifying data for policy with id: be84caea-fbbc-4648-8611-86efb13ac7c6, fqn: ['default-domain', 'ctest-TestBasicPolicy-91061772', 'ctest-policy-allow-all-31549253'] 2025-01-27 02:38:17,531 - INFO - VN ctest-vn-70296818 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-27 02:38:17,531 - DEBUG - Verifying the vn in opserver 2025-01-27 02:38:17,531 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-70296818 virtual network link through opserver 10.0.0.42 2025-01-27 02:38:17,531 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks 2025-01-27 02:38:17,542 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-70296818', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-70296818?flat'} 2025-01-27 02:38:17,542 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-70296818 is found in opserver 2025-01-27 02:38:17,555 - DEBUG - Do not have enough data to verify VN in agent 2025-01-27 02:38:17,561 - DEBUG - VRF ids for VN ctest-vn-70296818: {} 2025-01-27 02:38:17,627 - DEBUG - Services list from nova: [, , ] 2025-01-27 02:38:18,668 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2662-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2662-1) 2025-01-27 02:38:20,029 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2662-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2662-1) 2025-01-27 02:38:20,029 - INFO - Waiting for VM ctest-TestBasicPolicy-91061772-27750222 to be up.. 2025-01-27 02:38:20,142 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-27 02:38:25,243 - DEBUG - VM is in ACTIVE state now 2025-01-27 02:38:25,243 - INFO - VM name : ctest-TestBasicPolicy-91061772-27750222 2025-01-27 02:38:25,333 - DEBUG - VM ctest-TestBasicPolicy-91061772-27750222 ID is e36c14c7-0689-46c6-85bc-fc27f0e8fa60 2025-01-27 02:38:25,359 - DEBUG - VM ctest-TestBasicPolicy-91061772-27750222 launched on Node cn-jenkins-deploy-platform-ansible-os-2662-1 2025-01-27 02:38:25,445 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/e36c14c7-0689-46c6-85bc-fc27f0e8fa60 2025-01-27 02:38:25,454 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/9a744ae9-0c30-4734-acf3-4264ac2ae8c8 2025-01-27 02:38:28,723 - 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 1014ms') 2025-01-27 02:38:28,724 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91061772-27750222 failed! 2025-01-27 02:38:28,776 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-91061772:ctest-vn-58496245 is 117.255.49.129 and allocation pool is NOT set 2025-01-27 02:38:30,839 - 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=10.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.775 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.775/5.819/10.864/5.044 ms') 2025-01-27 02:38:30,839 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-91061772-27750222 passed 2025-01-27 02:38:30,988 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:38:30,988 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91061772-27750222, IP 117.255.49.131, Port 22 2025-01-27 02:38:31,144 - DEBUG - VM ctest-TestBasicPolicy-91061772-27750222 is ready for SSH connections 2025-01-27 02:38:31,144 - INFO - Waiting for VM ctest-TestBasicPolicy-91061772-59811448 to be up.. 2025-01-27 02:38:31,235 - DEBUG - VM is in ACTIVE state now 2025-01-27 02:38:31,235 - INFO - VM name : ctest-TestBasicPolicy-91061772-59811448 2025-01-27 02:38:31,330 - DEBUG - VM ctest-TestBasicPolicy-91061772-59811448 ID is 9793ce1f-4197-430e-87a2-e47bbfc099cb 2025-01-27 02:38:31,330 - DEBUG - VM ctest-TestBasicPolicy-91061772-59811448 launched on Node cn-jenkins-deploy-platform-ansible-os-2662-1 2025-01-27 02:38:31,420 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine/9793ce1f-4197-430e-87a2-e47bbfc099cb 2025-01-27 02:38:31,429 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-machine-interface/2745c9e2-b85e-4988-a4e5-a93472a8d48a 2025-01-27 02:38:32,667 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.44 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.71 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 = 1.710/3.072/4.435/1.362 ms') 2025-01-27 02:38:32,667 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-91061772-59811448 passed 2025-01-27 02:38:32,816 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:38:32,816 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91061772-59811448, IP 124.82.164.67, Port 22 2025-01-27 02:38:32,882 - 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-01-27 02:38:32,969 - DEBUG - VM ctest-TestBasicPolicy-91061772-59811448 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-27 02:38:37,969 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:38:37,969 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-91061772-59811448, IP 124.82.164.67, Port 22 2025-01-27 02:38:38,127 - DEBUG - VM ctest-TestBasicPolicy-91061772-59811448 is ready for SSH connections 2025-01-27 02:38:38,127 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:38:38,127 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.82.164.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-01-27 02:38:38,128 - DEBUG - ping -s 56 -c 3 -W 1 124.82.164.67 2025-01-27 02:38:42,153 - DEBUG - PING 124.82.164.67 (124.82.164.67): 56 data bytes 64 bytes from 124.82.164.67: seq=0 ttl=63 time=4.175 ms 64 bytes from 124.82.164.67: seq=1 ttl=63 time=1.133 ms 64 bytes from 124.82.164.67: seq=2 ttl=63 time=0.730 ms --- 124.82.164.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.730/2.012/4.175 ms 2025-01-27 02:38:42,154 - INFO - Ping to IP 124.82.164.67 from VM ctest-TestBasicPolicy-91061772-27750222 passed 2025-01-27 02:38:42,344 - DEBUG - Policy Update Response {"network-policy": {"uuid": "be84caea-fbbc-4648-8611-86efb13ac7c6", "href": "http://10.0.0.42:8082/network-policy/be84caea-fbbc-4648-8611-86efb13ac7c6"}} 2025-01-27 02:38:42,344 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-27 02:38:42,344 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.82.164.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.42, gateway password: c0ntrail123 2025-01-27 02:38:42,344 - DEBUG - ping -s 56 -c 3 -W 1 124.82.164.67 2025-01-27 02:38:45,586 - DEBUG - PING 124.82.164.67 (124.82.164.67): 56 data bytes 64 bytes from 124.82.164.67: seq=0 ttl=63 time=1.995 ms --- 124.82.164.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.995/1.995/1.995 ms 2025-01-27 02:38:45,586 - WARNING - Ping to IP 124.82.164.67 from VM ctest-TestBasicPolicy-91061772-27750222 failed 2025-01-27 02:38:45,586 - INFO - Deleting VM ctest-TestBasicPolicy-91061772-59811448 2025-01-27 02:38:45,667 - INFO - Deleting VM ctest-TestBasicPolicy-91061772-27750222 2025-01-27 02:38:46,044 - INFO - Deleted policy ctest-policy-allow-all-31549253 2025-01-27 02:38:46,045 - INFO - Deleting VN ctest-vn-70296818 2025-01-27 02:38:46,087 - DEBUG - VN d6824c3b-5395-49fc-b06c-d32cfb6eca52 still in use: Unable to complete operation on network d6824c3b-5395-49fc-b06c-d32cfb6eca52. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-42ee7ca9-831f-4c8d-b64e-60d47d384e55'] 2025-01-27 02:38:46,087 - WARNING - Deleting VN ctest-vn-70296818 failed..Will retry 2025-01-27 02:38:48,183 - DEBUG - Response for deleting network () 2025-01-27 02:38:48,183 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/985361fe-14a0-4af7-a550-7fc9cdd52bca 2025-01-27 02:38:48,188 - DEBUG - Response Code: 404 2025-01-27 02:38:48,188 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-27 02:38:48,195 - DEBUG - Requesting: http://10.0.0.42:8082/domain/097b3746-800c-471c-98b2-ef7b211c3f09 2025-01-27 02:38:48,249 - DEBUG - Requesting: http://10.0.0.42:8082/project/f5b948a1-10c4-4537-89f3-bd55b6e3ee53 2025-01-27 02:38:48,319 - INFO - Validated that VN ctest-vn-70296818 is not found in API Server 2025-01-27 02:38:48,330 - DEBUG - VN ctest-vn-70296818 is not present in Agent 10.0.0.42 2025-01-27 02:38:48,331 - INFO - Validated that VN ctest-vn-70296818 is not in any agent 2025-01-27 02:38:48,349 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-70296818 info 2025-01-27 02:38:48,349 - INFO - Deleting VN ctest-vn-58496245 2025-01-27 02:38:48,439 - DEBUG - Response for deleting network () 2025-01-27 02:38:48,439 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/c97d4b39-fcac-47ac-91b7-9614f78f029d 2025-01-27 02:38:48,445 - DEBUG - Response Code: 404 2025-01-27 02:38:48,445 - DEBUG - Requesting: http://10.0.0.42:8082/domains 2025-01-27 02:38:48,451 - DEBUG - Requesting: http://10.0.0.42:8082/domain/097b3746-800c-471c-98b2-ef7b211c3f09 2025-01-27 02:38:48,506 - DEBUG - Requesting: http://10.0.0.42:8082/project/f5b948a1-10c4-4537-89f3-bd55b6e3ee53 2025-01-27 02:38:48,576 - INFO - Validated that VN ctest-vn-58496245 is not found in API Server 2025-01-27 02:38:48,587 - DEBUG - VN ctest-vn-58496245 is not present in Agent 10.0.0.42 2025-01-27 02:38:48,587 - INFO - Validated that VN ctest-vn-58496245 is not in any agent 2025-01-27 02:38:48,604 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-58496245 info 2025-01-27 02:38:48,858 - DEBUG - No XMPP flaps were noticed during the test 2025-01-27 02:38:48,858 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-01-27 02:38:48,858 - INFO - -------------------------------------------------------------------------------- 2025-01-27 02:38:49,530 - INFO - Deleted project: ctest-TestBasicPolicy-91061772, ID : f5b948a1-10c4-4537-89f3-bd55b6e3ee53