2025-03-29 18:37:51,786 - INFO - Domain Default found not creating 2025-03-29 18:37:51,942 - INFO - Project ctest-TestBasicPolicy-62274567 not found, creating it 2025-03-29 18:37:52,429 - INFO - Created Project:ctest-TestBasicPolicy-62274567, ID : 9a60fb08-6577-4f06-8b7a-7ce0e3977fc8 2025-03-29 18:37:53,986 - INFO - ================================================================================ 2025-03-29 18:37:53,986 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-29 18:37:53,986 - 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-29 18:37:54,239 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.5': '0'}} with 2025-03-29 18:37:54,239 - INFO - Initial checks done. Running the testcase now 2025-03-29 18:37:54,239 - INFO - 2025-03-29 18:37:54,839 - DEBUG - Response for create_network : {'network': {'id': '2d893dd4-55c6-4762-819e-a33cb4163ad4', 'name': 'ctest-vn-83751746', 'tenant_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'project_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-vn-83751746'], 'port_security_enabled': True, 'description': ''}} 2025-03-29 18:37:55,042 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b35a51a7-085b-40c7-ac7d-e1ef7d1e4c82', 'name': '', 'tenant_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'network_id': '2d893dd4-55c6-4762-819e-a33cb4163ad4', 'ip_version': 4, 'cidr': '189.18.80.0/26', 'allocation_pools': [{'start': '189.18.80.2', 'end': '189.18.80.62'}], 'gateway_ip': '189.18.80.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.18.80.2', 'tags': [], 'project_id': '9a60fb0865774f068b7a7ce0e3977fc8'}} 2025-03-29 18:37:55,062 - INFO - Created VN ctest-vn-83751746 2025-03-29 18:37:55,117 - DEBUG - VN ctest-vn-83751746 UUID is 2d893dd4-55c6-4762-819e-a33cb4163ad4 2025-03-29 18:37:55,458 - DEBUG - Response for create_network : {'network': {'id': '15f03d25-997b-4fb7-afcd-996861cd2454', 'name': 'ctest-vn-77219973', 'tenant_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'project_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-vn-77219973'], 'port_security_enabled': True, 'description': ''}} 2025-03-29 18:37:55,623 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e00a7c1-b7d1-4c86-a673-368c1b7b2c96', 'name': '', 'tenant_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'network_id': '15f03d25-997b-4fb7-afcd-996861cd2454', 'ip_version': 4, 'cidr': '62.55.193.192/26', 'allocation_pools': [{'start': '62.55.193.194', 'end': '62.55.193.254'}], 'gateway_ip': '62.55.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.55.193.194', 'tags': [], 'project_id': '9a60fb0865774f068b7a7ce0e3977fc8'}} 2025-03-29 18:37:55,644 - INFO - Created VN ctest-vn-77219973 2025-03-29 18:37:55,697 - DEBUG - VN ctest-vn-77219973 UUID is 15f03d25-997b-4fb7-afcd-996861cd2454 2025-03-29 18:37:55,814 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746, 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-62274567:ctest-vn-77219973, 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-29 18:37:56,129 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d893dd4-55c6-4762-819e-a33cb4163ad4', 'name': 'ctest-vn-83751746', 'tenant_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'project_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b35a51a7-085b-40c7-ac7d-e1ef7d1e4c82'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-vn-83751746'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-policy-allow-all-85076541']], 'subnet_ipam': [{'subnet_cidr': '189.18.80.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-29 18:37:56,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15f03d25-997b-4fb7-afcd-996861cd2454', 'name': 'ctest-vn-77219973', 'tenant_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'project_id': '9a60fb0865774f068b7a7ce0e3977fc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e00a7c1-b7d1-4c86-a673-368c1b7b2c96'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-vn-77219973'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-policy-allow-all-85076541']], 'subnet_ipam': [{'subnet_cidr': '62.55.193.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-29 18:37:56,537 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-29 18:37:56,882 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-29 18:37:56,910 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3a2ad91-5d8c-4c77-9082-b6363471b9eb 2025-03-29 18:37:56,924 - DEBUG - Requesting: http://10.0.0.27:8082/project/9a60fb08-6577-4f06-8b7a-7ce0e3977fc8 2025-03-29 18:37:57,001 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2d893dd4-55c6-4762-819e-a33cb4163ad4 2025-03-29 18:37:57,013 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2d893dd4-55c6-4762-819e-a33cb4163ad4 2025-03-29 18:37:57,023 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3a3e6774-65c8-4cd9-9302-ec6ce698489a 2025-03-29 18:37:57,031 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3a3e6774-65c8-4cd9-9302-ec6ce698489a 2025-03-29 18:37:57,039 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/55d282c6-020d-4a6c-bf1e-04d61326e24d 2025-03-29 18:37:57,045 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-29 18:37:57,045 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2d893dd4-55c6-4762-819e-a33cb4163ad4 2025-03-29 18:37:57,058 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3a3e6774-65c8-4cd9-9302-ec6ce698489a 2025-03-29 18:37:57,075 - INFO - Verified VN network id 8 for VN 2d893dd4-55c6-4762-819e-a33cb4163ad4 2025-03-29 18:37:57,075 - INFO - Verifications in API Server for VN ctest-vn-83751746 passed 2025-03-29 18:37:57,075 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2d893dd4-55c6-4762-819e-a33cb4163ad4 2025-03-29 18:37:57,085 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3a3e6774-65c8-4cd9-9302-ec6ce698489a 2025-03-29 18:37:57,092 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3a3e6774-65c8-4cd9-9302-ec6ce698489a 2025-03-29 18:37:57,099 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/55d282c6-020d-4a6c-bf1e-04d61326e24d 2025-03-29 18:37:57,112 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62274567', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3281221785697535842', 'uuid-lslong': '9340082158327708372'}, 'enable': 'true', 'created': '2025-03-29T18:37:54', 'last-modified': '2025-03-29T18:37:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.013824'} 2025-03-29 18:37:57,119 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-29 18:37:57,119 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83751746 passed 2025-03-29 18:37:57,119 - DEBUG - ====Verifying policy data for ctest-vn-83751746 in API_Server ====== 2025-03-29 18:37:57,119 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-29 18:37:57,125 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3a2ad91-5d8c-4c77-9082-b6363471b9eb 2025-03-29 18:37:57,138 - DEBUG - Requesting: http://10.0.0.27:8082/project/9a60fb08-6577-4f06-8b7a-7ce0e3977fc8 2025-03-29 18:37:57,209 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2d893dd4-55c6-4762-819e-a33cb4163ad4 2025-03-29 18:37:57,219 - DEBUG - ==>Verifying data for policy with id: 0a0a71c6-4a89-4534-b3f1-bf22974459b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-policy-allow-all-85076541'] 2025-03-29 18:37:57,220 - INFO - VN ctest-vn-83751746 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-29 18:37:57,220 - DEBUG - Verifying the vn in opserver 2025-03-29 18:37:57,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746 virtual network link through opserver 10.0.0.27 2025-03-29 18:37:57,220 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-29 18:37:57,551 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-29 18:37:57,606 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746?flat'} 2025-03-29 18:37:57,606 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746 is found in opserver 2025-03-29 18:37:57,618 - DEBUG - Do not have enough data to verify VN in agent 2025-03-29 18:37:57,623 - DEBUG - VRF ids for VN ctest-vn-83751746: {} 2025-03-29 18:37:57,624 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-29 18:37:57,630 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3a2ad91-5d8c-4c77-9082-b6363471b9eb 2025-03-29 18:37:57,644 - DEBUG - Requesting: http://10.0.0.27:8082/project/9a60fb08-6577-4f06-8b7a-7ce0e3977fc8 2025-03-29 18:37:57,718 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/15f03d25-997b-4fb7-afcd-996861cd2454 2025-03-29 18:37:57,731 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/15f03d25-997b-4fb7-afcd-996861cd2454 2025-03-29 18:37:57,742 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d4b46501-47cb-4968-a67a-2308eda00907 2025-03-29 18:37:57,749 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d4b46501-47cb-4968-a67a-2308eda00907 2025-03-29 18:37:57,764 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/4e4d04e8-4425-4e33-9666-c0721dcf19cd 2025-03-29 18:37:57,771 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-29 18:37:57,772 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/15f03d25-997b-4fb7-afcd-996861cd2454 2025-03-29 18:37:57,782 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d4b46501-47cb-4968-a67a-2308eda00907 2025-03-29 18:37:57,796 - INFO - Verified VN network id 9 for VN 15f03d25-997b-4fb7-afcd-996861cd2454 2025-03-29 18:37:57,796 - INFO - Verifications in API Server for VN ctest-vn-77219973 passed 2025-03-29 18:37:57,796 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/15f03d25-997b-4fb7-afcd-996861cd2454 2025-03-29 18:37:57,808 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d4b46501-47cb-4968-a67a-2308eda00907 2025-03-29 18:37:57,815 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d4b46501-47cb-4968-a67a-2308eda00907 2025-03-29 18:37:57,822 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/4e4d04e8-4425-4e33-9666-c0721dcf19cd 2025-03-29 18:37:57,834 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-77219973', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-62274567', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1580830700905123767', 'uuid-lslong': '12667950000459555924'}, 'enable': 'true', 'created': '2025-03-29T18:37:55', 'last-modified': '2025-03-29T18:37:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.479552'} 2025-03-29 18:37:57,841 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-29 18:37:57,841 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77219973 passed 2025-03-29 18:37:57,841 - DEBUG - ====Verifying policy data for ctest-vn-77219973 in API_Server ====== 2025-03-29 18:37:57,841 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-29 18:37:57,847 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3a2ad91-5d8c-4c77-9082-b6363471b9eb 2025-03-29 18:37:57,861 - DEBUG - Requesting: http://10.0.0.27:8082/project/9a60fb08-6577-4f06-8b7a-7ce0e3977fc8 2025-03-29 18:37:57,970 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/15f03d25-997b-4fb7-afcd-996861cd2454 2025-03-29 18:37:57,982 - DEBUG - ==>Verifying data for policy with id: 0a0a71c6-4a89-4534-b3f1-bf22974459b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-62274567', 'ctest-policy-allow-all-85076541'] 2025-03-29 18:37:57,982 - INFO - VN ctest-vn-77219973 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-29 18:37:57,982 - DEBUG - Verifying the vn in opserver 2025-03-29 18:37:57,982 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-77219973 virtual network link through opserver 10.0.0.27 2025-03-29 18:37:57,982 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-03-29 18:37:57,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-77219973', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-77219973?flat'} 2025-03-29 18:37:57,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-77219973 is found in opserver 2025-03-29 18:37:58,005 - DEBUG - Do not have enough data to verify VN in agent 2025-03-29 18:37:58,011 - DEBUG - VRF ids for VN ctest-vn-77219973: {} 2025-03-29 18:37:58,074 - DEBUG - Services list from nova: [, , ] 2025-03-29 18:37:59,179 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3001-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3001-1) 2025-03-29 18:38:00,565 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3001-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3001-1) 2025-03-29 18:38:00,566 - INFO - Waiting for VM ctest-TestBasicPolicy-62274567-92360583 to be up.. 2025-03-29 18:38:00,649 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-29 18:38:05,732 - DEBUG - VM is in ACTIVE state now 2025-03-29 18:38:05,733 - INFO - VM name : ctest-TestBasicPolicy-62274567-92360583 2025-03-29 18:38:05,812 - DEBUG - VM ctest-TestBasicPolicy-62274567-92360583 ID is 99949bb8-6ed6-433e-8d66-e46ab4468004 2025-03-29 18:38:05,831 - DEBUG - VM ctest-TestBasicPolicy-62274567-92360583 launched on Node cn-jenkins-deploy-platform-ansible-os-3001-1 2025-03-29 18:38:05,905 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/99949bb8-6ed6-433e-8d66-e46ab4468004 2025-03-29 18:38:05,914 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/12fb43fe-29b3-4f92-8104-b9e58d65979e 2025-03-29 18:38:09,180 - 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 1022ms') 2025-03-29 18:38:09,181 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62274567-92360583 failed! 2025-03-29 18:38:09,241 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-62274567:ctest-vn-83751746 is 189.18.80.1 and allocation pool is NOT set 2025-03-29 18:38:11,307 - 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=9.98 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.32 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 = 2.315/6.147/9.980/3.832 ms') 2025-03-29 18:38:11,307 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-62274567-92360583 passed 2025-03-29 18:38:11,469 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-29 18:38:11,470 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62274567-92360583, IP 189.18.80.3, Port 22 2025-03-29 18:38:11,629 - DEBUG - VM ctest-TestBasicPolicy-62274567-92360583 is ready for SSH connections 2025-03-29 18:38:11,629 - INFO - Waiting for VM ctest-TestBasicPolicy-62274567-08597171 to be up.. 2025-03-29 18:38:11,714 - DEBUG - VM is in ACTIVE state now 2025-03-29 18:38:11,714 - INFO - VM name : ctest-TestBasicPolicy-62274567-08597171 2025-03-29 18:38:11,797 - DEBUG - VM ctest-TestBasicPolicy-62274567-08597171 ID is a32649d5-f32d-4728-bdb4-8166bc4aa949 2025-03-29 18:38:11,797 - DEBUG - VM ctest-TestBasicPolicy-62274567-08597171 launched on Node cn-jenkins-deploy-platform-ansible-os-3001-1 2025-03-29 18:38:11,884 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine/a32649d5-f32d-4728-bdb4-8166bc4aa949 2025-03-29 18:38:11,898 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-machine-interface/56897765-1e32-4a75-b2b8-80390b53e7a6 2025-03-29 18:38:13,159 - 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=5.01 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=2.16 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.163/3.584/5.005/1.421 ms') 2025-03-29 18:38:13,159 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-62274567-08597171 passed 2025-03-29 18:38:13,309 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-29 18:38:13,309 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62274567-08597171, IP 62.55.193.195, Port 22 2025-03-29 18:38:13,365 - 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-29 18:38:13,443 - DEBUG - VM ctest-TestBasicPolicy-62274567-08597171 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-29 18:38:18,444 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-29 18:38:18,444 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-62274567-08597171, IP 62.55.193.195, Port 22 2025-03-29 18:38:18,611 - DEBUG - VM ctest-TestBasicPolicy-62274567-08597171 is ready for SSH connections 2025-03-29 18:38:18,611 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-29 18:38:18,611 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.55.193.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-03-29 18:38:18,612 - DEBUG - ping -s 56 -c 3 -W 1 62.55.193.195 2025-03-29 18:38:22,688 - DEBUG - PING 62.55.193.195 (62.55.193.195): 56 data bytes 64 bytes from 62.55.193.195: seq=0 ttl=63 time=4.310 ms 64 bytes from 62.55.193.195: seq=1 ttl=63 time=1.017 ms 64 bytes from 62.55.193.195: seq=2 ttl=63 time=0.898 ms --- 62.55.193.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.898/2.075/4.310 ms 2025-03-29 18:38:22,688 - INFO - Ping to IP 62.55.193.195 from VM ctest-TestBasicPolicy-62274567-92360583 passed 2025-03-29 18:38:22,877 - DEBUG - Policy Update Response {"network-policy": {"uuid": "0a0a71c6-4a89-4534-b3f1-bf22974459b1", "href": "http://10.0.0.27:8082/network-policy/0a0a71c6-4a89-4534-b3f1-bf22974459b1"}} 2025-03-29 18:38:22,877 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-29 18:38:22,877 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 62.55.193.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.27, gateway password: c0ntrail123 2025-03-29 18:38:22,878 - DEBUG - ping -s 56 -c 3 -W 1 62.55.193.195 2025-03-29 18:38:26,097 - DEBUG - PING 62.55.193.195 (62.55.193.195): 56 data bytes 64 bytes from 62.55.193.195: seq=0 ttl=63 time=1.575 ms --- 62.55.193.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.575/1.575/1.575 ms 2025-03-29 18:38:26,097 - WARNING - Ping to IP 62.55.193.195 from VM ctest-TestBasicPolicy-62274567-92360583 failed 2025-03-29 18:38:26,098 - INFO - Deleting VM ctest-TestBasicPolicy-62274567-08597171 2025-03-29 18:38:26,164 - INFO - Deleting VM ctest-TestBasicPolicy-62274567-92360583 2025-03-29 18:38:26,559 - INFO - Deleted policy ctest-policy-allow-all-85076541 2025-03-29 18:38:26,560 - INFO - Deleting VN ctest-vn-77219973 2025-03-29 18:38:26,595 - DEBUG - VN 15f03d25-997b-4fb7-afcd-996861cd2454 still in use: Unable to complete operation on network 15f03d25-997b-4fb7-afcd-996861cd2454. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-1a8998d6-f597-4529-8d88-9919afc0b86b'] 2025-03-29 18:38:26,596 - WARNING - Deleting VN ctest-vn-77219973 failed..Will retry 2025-03-29 18:38:28,710 - DEBUG - Response for deleting network () 2025-03-29 18:38:28,710 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d4b46501-47cb-4968-a67a-2308eda00907 2025-03-29 18:38:28,719 - DEBUG - Response Code: 404 2025-03-29 18:38:28,719 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-29 18:38:28,725 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3a2ad91-5d8c-4c77-9082-b6363471b9eb 2025-03-29 18:38:28,779 - DEBUG - Requesting: http://10.0.0.27:8082/project/9a60fb08-6577-4f06-8b7a-7ce0e3977fc8 2025-03-29 18:38:28,860 - INFO - Validated that VN ctest-vn-77219973 is not found in API Server 2025-03-29 18:38:28,871 - DEBUG - VN ctest-vn-77219973 is not present in Agent 10.0.0.27 2025-03-29 18:38:28,871 - INFO - Validated that VN ctest-vn-77219973 is not in any agent 2025-03-29 18:38:28,889 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-77219973 info 2025-03-29 18:38:28,890 - INFO - Deleting VN ctest-vn-83751746 2025-03-29 18:38:29,009 - DEBUG - Response for deleting network () 2025-03-29 18:38:29,009 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/3a3e6774-65c8-4cd9-9302-ec6ce698489a 2025-03-29 18:38:29,014 - DEBUG - Response Code: 404 2025-03-29 18:38:29,014 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-03-29 18:38:29,025 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3a2ad91-5d8c-4c77-9082-b6363471b9eb 2025-03-29 18:38:29,079 - DEBUG - Requesting: http://10.0.0.27:8082/project/9a60fb08-6577-4f06-8b7a-7ce0e3977fc8 2025-03-29 18:38:29,183 - INFO - Validated that VN ctest-vn-83751746 is not found in API Server 2025-03-29 18:38:29,199 - DEBUG - VN ctest-vn-83751746 is not present in Agent 10.0.0.27 2025-03-29 18:38:29,199 - INFO - Validated that VN ctest-vn-83751746 is not in any agent 2025-03-29 18:38:29,221 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83751746 info 2025-03-29 18:38:29,494 - DEBUG - No XMPP flaps were noticed during the test 2025-03-29 18:38:29,494 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-03-29 18:38:29,494 - INFO - -------------------------------------------------------------------------------- 2025-03-29 18:38:30,261 - INFO - Deleted project: ctest-TestBasicPolicy-62274567, ID : 9a60fb08-6577-4f06-8b7a-7ce0e3977fc8