2025-01-13 06:53:13,306 - INFO - Domain Default found not creating 2025-01-13 06:53:13,463 - INFO - Project ctest-TestBasicPolicy-98943522 not found, creating it 2025-01-13 06:53:13,942 - INFO - Created Project:ctest-TestBasicPolicy-98943522, ID : c61911a6-49e4-48de-912c-56c6389ed253 2025-01-13 06:53:15,424 - INFO - ================================================================================ 2025-01-13 06:53:15,424 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-13 06:53:15,425 - 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-13 06:53:15,679 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.8': '0'}} with 2025-01-13 06:53:15,679 - INFO - Initial checks done. Running the testcase now 2025-01-13 06:53:15,679 - INFO - 2025-01-13 06:53:16,213 - DEBUG - Response for create_network : {'network': {'id': '9cd97bb2-8189-4f79-80a9-18fffcdff9be', 'name': 'ctest-vn-50647603', 'tenant_id': 'c61911a649e448de912c56c6389ed253', 'project_id': 'c61911a649e448de912c56c6389ed253', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-vn-50647603'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 06:53:16,427 - DEBUG - Response for create_subnet : {'subnet': {'id': '6dbc8dad-bf18-4b37-9e41-0413582c8dfd', 'name': '', 'tenant_id': 'c61911a649e448de912c56c6389ed253', 'network_id': '9cd97bb2-8189-4f79-80a9-18fffcdff9be', 'ip_version': 4, 'cidr': '76.103.161.128/26', 'allocation_pools': [{'start': '76.103.161.130', 'end': '76.103.161.190'}], 'gateway_ip': '76.103.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.103.161.130', 'tags': [], 'project_id': 'c61911a649e448de912c56c6389ed253'}} 2025-01-13 06:53:16,446 - INFO - Created VN ctest-vn-50647603 2025-01-13 06:53:16,500 - DEBUG - VN ctest-vn-50647603 UUID is 9cd97bb2-8189-4f79-80a9-18fffcdff9be 2025-01-13 06:53:16,823 - DEBUG - Response for create_network : {'network': {'id': '89be0e26-ac57-4384-9006-9386ea91da95', 'name': 'ctest-vn-94516618', 'tenant_id': 'c61911a649e448de912c56c6389ed253', 'project_id': 'c61911a649e448de912c56c6389ed253', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-vn-94516618'], 'port_security_enabled': True, 'description': ''}} 2025-01-13 06:53:16,976 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0056883-8525-45e1-8110-b82731fc7f73', 'name': '', 'tenant_id': 'c61911a649e448de912c56c6389ed253', 'network_id': '89be0e26-ac57-4384-9006-9386ea91da95', 'ip_version': 4, 'cidr': '177.77.252.64/26', 'allocation_pools': [{'start': '177.77.252.66', 'end': '177.77.252.126'}], 'gateway_ip': '177.77.252.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.77.252.66', 'tags': [], 'project_id': 'c61911a649e448de912c56c6389ed253'}} 2025-01-13 06:53:16,992 - INFO - Created VN ctest-vn-94516618 2025-01-13 06:53:17,044 - DEBUG - VN ctest-vn-94516618 UUID is 89be0e26-ac57-4384-9006-9386ea91da95 2025-01-13 06:53:17,159 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603, 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-98943522:ctest-vn-94516618, 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-13 06:53:17,460 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9cd97bb2-8189-4f79-80a9-18fffcdff9be', 'name': 'ctest-vn-50647603', 'tenant_id': 'c61911a649e448de912c56c6389ed253', 'project_id': 'c61911a649e448de912c56c6389ed253', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6dbc8dad-bf18-4b37-9e41-0413582c8dfd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-vn-50647603'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-policy-allow-all-62741624']], 'subnet_ipam': [{'subnet_cidr': '76.103.161.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-13 06:53:17,688 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89be0e26-ac57-4384-9006-9386ea91da95', 'name': 'ctest-vn-94516618', 'tenant_id': 'c61911a649e448de912c56c6389ed253', 'project_id': 'c61911a649e448de912c56c6389ed253', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f0056883-8525-45e1-8110-b82731fc7f73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-vn-94516618'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-policy-allow-all-62741624']], 'subnet_ipam': [{'subnet_cidr': '177.77.252.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-13 06:53:17,848 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-01-13 06:53:18,149 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-01-13 06:53:18,177 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6d6ed5dd-c421-4cb3-b682-9a0072126fa5 2025-01-13 06:53:18,190 - DEBUG - Requesting: http://10.0.0.28:8082/project/c61911a6-49e4-48de-912c-56c6389ed253 2025-01-13 06:53:18,265 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9cd97bb2-8189-4f79-80a9-18fffcdff9be 2025-01-13 06:53:18,276 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9cd97bb2-8189-4f79-80a9-18fffcdff9be 2025-01-13 06:53:18,286 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/efd824fd-166d-4921-9dfe-15ba4204b71e 2025-01-13 06:53:18,293 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/efd824fd-166d-4921-9dfe-15ba4204b71e 2025-01-13 06:53:18,301 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/27daa008-d150-49e4-bc67-7eb54583639d 2025-01-13 06:53:18,307 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-13 06:53:18,307 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9cd97bb2-8189-4f79-80a9-18fffcdff9be 2025-01-13 06:53:18,318 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/efd824fd-166d-4921-9dfe-15ba4204b71e 2025-01-13 06:53:18,336 - INFO - Verified VN network id 8 for VN 9cd97bb2-8189-4f79-80a9-18fffcdff9be 2025-01-13 06:53:18,337 - INFO - Verifications in API Server for VN ctest-vn-50647603 passed 2025-01-13 06:53:18,337 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9cd97bb2-8189-4f79-80a9-18fffcdff9be 2025-01-13 06:53:18,346 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/efd824fd-166d-4921-9dfe-15ba4204b71e 2025-01-13 06:53:18,354 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/efd824fd-166d-4921-9dfe-15ba4204b71e 2025-01-13 06:53:18,361 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/27daa008-d150-49e4-bc67-7eb54583639d 2025-01-13 06:53:18,374 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98943522', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11302200746470625145', 'uuid-lslong': '9270968795657140670'}, 'enable': 'true', 'created': '2025-01-13T06:53:16', 'last-modified': '2025-01-13T06:53:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.943439'} 2025-01-13 06:53:18,381 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-13 06:53:18,381 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50647603 passed 2025-01-13 06:53:18,381 - DEBUG - ====Verifying policy data for ctest-vn-50647603 in API_Server ====== 2025-01-13 06:53:18,381 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-01-13 06:53:18,388 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6d6ed5dd-c421-4cb3-b682-9a0072126fa5 2025-01-13 06:53:18,401 - DEBUG - Requesting: http://10.0.0.28:8082/project/c61911a6-49e4-48de-912c-56c6389ed253 2025-01-13 06:53:18,476 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9cd97bb2-8189-4f79-80a9-18fffcdff9be 2025-01-13 06:53:18,486 - DEBUG - ==>Verifying data for policy with id: 2d628c50-521a-4d03-bcf9-3b1b792099e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-policy-allow-all-62741624'] 2025-01-13 06:53:18,487 - INFO - VN ctest-vn-50647603 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-13 06:53:18,487 - DEBUG - Verifying the vn in opserver 2025-01-13 06:53:18,487 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603 virtual network link through opserver 10.0.0.28 2025-01-13 06:53:18,487 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2025-01-13 06:53:18,783 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2025-01-13 06:53:18,835 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603?flat'} 2025-01-13 06:53:18,835 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603 is found in opserver 2025-01-13 06:53:18,846 - DEBUG - Do not have enough data to verify VN in agent 2025-01-13 06:53:18,851 - DEBUG - VRF ids for VN ctest-vn-50647603: {} 2025-01-13 06:53:18,851 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-01-13 06:53:18,858 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6d6ed5dd-c421-4cb3-b682-9a0072126fa5 2025-01-13 06:53:18,869 - DEBUG - Requesting: http://10.0.0.28:8082/project/c61911a6-49e4-48de-912c-56c6389ed253 2025-01-13 06:53:18,937 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/89be0e26-ac57-4384-9006-9386ea91da95 2025-01-13 06:53:18,949 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/89be0e26-ac57-4384-9006-9386ea91da95 2025-01-13 06:53:18,960 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a8fc58e9-a10d-4479-a0ca-898c36fa5369 2025-01-13 06:53:18,969 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a8fc58e9-a10d-4479-a0ca-898c36fa5369 2025-01-13 06:53:18,976 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/49a1f23a-014f-45a7-a5ee-0f1e500c80cb 2025-01-13 06:53:18,983 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-13 06:53:18,983 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/89be0e26-ac57-4384-9006-9386ea91da95 2025-01-13 06:53:18,994 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a8fc58e9-a10d-4479-a0ca-898c36fa5369 2025-01-13 06:53:19,013 - INFO - Verified VN network id 9 for VN 89be0e26-ac57-4384-9006-9386ea91da95 2025-01-13 06:53:19,013 - INFO - Verifications in API Server for VN ctest-vn-94516618 passed 2025-01-13 06:53:19,013 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/89be0e26-ac57-4384-9006-9386ea91da95 2025-01-13 06:53:19,027 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a8fc58e9-a10d-4479-a0ca-898c36fa5369 2025-01-13 06:53:19,035 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a8fc58e9-a10d-4479-a0ca-898c36fa5369 2025-01-13 06:53:19,043 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/49a1f23a-014f-45a7-a5ee-0f1e500c80cb 2025-01-13 06:53:19,058 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-94516618', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98943522', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9925386188034098052', 'uuid-lslong': '10378144598992214677'}, 'enable': 'true', 'created': '2025-01-13T06:53:16', 'last-modified': '2025-01-13T06:53:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.389310'} 2025-01-13 06:53:19,065 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-13 06:53:19,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94516618 passed 2025-01-13 06:53:19,065 - DEBUG - ====Verifying policy data for ctest-vn-94516618 in API_Server ====== 2025-01-13 06:53:19,065 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-01-13 06:53:19,072 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6d6ed5dd-c421-4cb3-b682-9a0072126fa5 2025-01-13 06:53:19,086 - DEBUG - Requesting: http://10.0.0.28:8082/project/c61911a6-49e4-48de-912c-56c6389ed253 2025-01-13 06:53:19,160 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/89be0e26-ac57-4384-9006-9386ea91da95 2025-01-13 06:53:19,170 - DEBUG - ==>Verifying data for policy with id: 2d628c50-521a-4d03-bcf9-3b1b792099e3, fqn: ['default-domain', 'ctest-TestBasicPolicy-98943522', 'ctest-policy-allow-all-62741624'] 2025-01-13 06:53:19,171 - INFO - VN ctest-vn-94516618 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-13 06:53:19,171 - DEBUG - Verifying the vn in opserver 2025-01-13 06:53:19,171 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-94516618 virtual network link through opserver 10.0.0.28 2025-01-13 06:53:19,171 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2025-01-13 06:53:19,181 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-94516618', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-94516618?flat'} 2025-01-13 06:53:19,181 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-94516618 is found in opserver 2025-01-13 06:53:19,194 - DEBUG - Do not have enough data to verify VN in agent 2025-01-13 06:53:19,200 - DEBUG - VRF ids for VN ctest-vn-94516618: {} 2025-01-13 06:53:19,253 - DEBUG - Services list from nova: [, , ] 2025-01-13 06:53:20,340 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2608-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2608-1) 2025-01-13 06:53:21,490 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2608-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2608-1) 2025-01-13 06:53:21,490 - INFO - Waiting for VM ctest-TestBasicPolicy-98943522-08574445 to be up.. 2025-01-13 06:53:21,566 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-13 06:53:26,646 - DEBUG - VM is in ACTIVE state now 2025-01-13 06:53:26,646 - INFO - VM name : ctest-TestBasicPolicy-98943522-08574445 2025-01-13 06:53:26,734 - DEBUG - VM ctest-TestBasicPolicy-98943522-08574445 ID is 0f336425-8dc1-4748-bfb4-6ee5d3f9aef5 2025-01-13 06:53:26,754 - DEBUG - VM ctest-TestBasicPolicy-98943522-08574445 launched on Node cn-jenkins-deploy-platform-ansible-os-2608-1 2025-01-13 06:53:26,825 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/0f336425-8dc1-4748-bfb4-6ee5d3f9aef5 2025-01-13 06:53:26,835 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/5de16f09-7f64-4f5c-991f-1a5054a0b6a4 2025-01-13 06:53:30,089 - 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 1007ms') 2025-01-13 06:53:30,089 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98943522-08574445 failed! 2025-01-13 06:53:30,152 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98943522:ctest-vn-50647603 is 76.103.161.129 and allocation pool is NOT set 2025-01-13 06:53:32,210 - 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=6.76 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.420 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.420/3.590/6.761/3.170 ms') 2025-01-13 06:53:32,210 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98943522-08574445 passed 2025-01-13 06:53:32,364 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 06:53:32,364 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98943522-08574445, IP 76.103.161.131, Port 22 2025-01-13 06:53:32,538 - DEBUG - VM ctest-TestBasicPolicy-98943522-08574445 is ready for SSH connections 2025-01-13 06:53:32,538 - INFO - Waiting for VM ctest-TestBasicPolicy-98943522-04027997 to be up.. 2025-01-13 06:53:32,638 - DEBUG - VM is in ACTIVE state now 2025-01-13 06:53:32,638 - INFO - VM name : ctest-TestBasicPolicy-98943522-04027997 2025-01-13 06:53:32,739 - DEBUG - VM ctest-TestBasicPolicy-98943522-04027997 ID is 77fc4665-646a-46ca-a4c7-28ddeb7adcbb 2025-01-13 06:53:32,739 - DEBUG - VM ctest-TestBasicPolicy-98943522-04027997 launched on Node cn-jenkins-deploy-platform-ansible-os-2608-1 2025-01-13 06:53:32,814 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/77fc4665-646a-46ca-a4c7-28ddeb7adcbb 2025-01-13 06:53:32,823 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/2935dd9e-cf34-4e29-9be4-bfb1f901e63f 2025-01-13 06:53:34,063 - 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.80 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.455 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.455/2.128/3.801/1.673 ms') 2025-01-13 06:53:34,064 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-98943522-04027997 passed 2025-01-13 06:53:34,216 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 06:53:34,216 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98943522-04027997, IP 177.77.252.67, Port 22 2025-01-13 06:53:34,272 - 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-13 06:53:34,348 - DEBUG - VM ctest-TestBasicPolicy-98943522-04027997 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-13 06:53:39,348 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 06:53:39,349 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98943522-04027997, IP 177.77.252.67, Port 22 2025-01-13 06:53:39,504 - DEBUG - VM ctest-TestBasicPolicy-98943522-04027997 is ready for SSH connections 2025-01-13 06:53:39,504 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 06:53:39,504 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 177.77.252.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2025-01-13 06:53:39,504 - DEBUG - ping -s 56 -c 3 -W 1 177.77.252.67 2025-01-13 06:53:43,183 - DEBUG - PING 177.77.252.67 (177.77.252.67): 56 data bytes 64 bytes from 177.77.252.67: seq=0 ttl=63 time=5.037 ms 64 bytes from 177.77.252.67: seq=1 ttl=63 time=0.915 ms 64 bytes from 177.77.252.67: seq=2 ttl=63 time=0.870 ms --- 177.77.252.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.870/2.274/5.037 ms 2025-01-13 06:53:43,184 - INFO - Ping to IP 177.77.252.67 from VM ctest-TestBasicPolicy-98943522-08574445 passed 2025-01-13 06:53:43,368 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2d628c50-521a-4d03-bcf9-3b1b792099e3", "href": "http://10.0.0.28:8082/network-policy/2d628c50-521a-4d03-bcf9-3b1b792099e3"}} 2025-01-13 06:53:43,368 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-13 06:53:43,368 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 177.77.252.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2025-01-13 06:53:43,368 - DEBUG - ping -s 56 -c 3 -W 1 177.77.252.67 2025-01-13 06:53:46,570 - DEBUG - PING 177.77.252.67 (177.77.252.67): 56 data bytes 64 bytes from 177.77.252.67: seq=0 ttl=63 time=1.554 ms --- 177.77.252.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.554/1.554/1.554 ms 2025-01-13 06:53:46,570 - WARNING - Ping to IP 177.77.252.67 from VM ctest-TestBasicPolicy-98943522-08574445 failed 2025-01-13 06:53:46,570 - INFO - Deleting VM ctest-TestBasicPolicy-98943522-04027997 2025-01-13 06:53:46,638 - INFO - Deleting VM ctest-TestBasicPolicy-98943522-08574445 2025-01-13 06:53:46,993 - INFO - Deleted policy ctest-policy-allow-all-62741624 2025-01-13 06:53:46,993 - INFO - Deleting VN ctest-vn-94516618 2025-01-13 06:53:47,026 - DEBUG - VN 89be0e26-ac57-4384-9006-9386ea91da95 still in use: Unable to complete operation on network 89be0e26-ac57-4384-9006-9386ea91da95. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-519e72d0-0f03-4ef0-996b-8ced3afcf7e9'] 2025-01-13 06:53:47,026 - WARNING - Deleting VN ctest-vn-94516618 failed..Will retry 2025-01-13 06:53:49,157 - DEBUG - Response for deleting network () 2025-01-13 06:53:49,157 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a8fc58e9-a10d-4479-a0ca-898c36fa5369 2025-01-13 06:53:49,163 - DEBUG - Response Code: 404 2025-01-13 06:53:49,163 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-01-13 06:53:49,168 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6d6ed5dd-c421-4cb3-b682-9a0072126fa5 2025-01-13 06:53:49,221 - DEBUG - Requesting: http://10.0.0.28:8082/project/c61911a6-49e4-48de-912c-56c6389ed253 2025-01-13 06:53:49,293 - INFO - Validated that VN ctest-vn-94516618 is not found in API Server 2025-01-13 06:53:49,304 - DEBUG - VN ctest-vn-94516618 is not present in Agent 10.0.0.28 2025-01-13 06:53:49,305 - INFO - Validated that VN ctest-vn-94516618 is not in any agent 2025-01-13 06:53:49,320 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-94516618 info 2025-01-13 06:53:49,320 - INFO - Deleting VN ctest-vn-50647603 2025-01-13 06:53:49,447 - DEBUG - Response for deleting network () 2025-01-13 06:53:49,447 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/efd824fd-166d-4921-9dfe-15ba4204b71e 2025-01-13 06:53:49,456 - DEBUG - Response Code: 404 2025-01-13 06:53:49,456 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-01-13 06:53:49,462 - DEBUG - Requesting: http://10.0.0.28:8082/domain/6d6ed5dd-c421-4cb3-b682-9a0072126fa5 2025-01-13 06:53:49,518 - DEBUG - Requesting: http://10.0.0.28:8082/project/c61911a6-49e4-48de-912c-56c6389ed253 2025-01-13 06:53:49,594 - INFO - Validated that VN ctest-vn-50647603 is not found in API Server 2025-01-13 06:53:49,605 - DEBUG - VN ctest-vn-50647603 is not present in Agent 10.0.0.28 2025-01-13 06:53:49,605 - INFO - Validated that VN ctest-vn-50647603 is not in any agent 2025-01-13 06:53:49,621 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-50647603 info 2025-01-13 06:53:49,882 - DEBUG - No XMPP flaps were noticed during the test 2025-01-13 06:53:49,882 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34] 2025-01-13 06:53:49,882 - INFO - -------------------------------------------------------------------------------- 2025-01-13 06:53:50,587 - INFO - Deleted project: ctest-TestBasicPolicy-98943522, ID : c61911a6-49e4-48de-912c-56c6389ed253