2025-01-12 22:11:05,240 - INFO - Domain Default found not creating 2025-01-12 22:11:05,383 - INFO - Project ctest-TestBasicPolicy-64161650 not found, creating it 2025-01-12 22:11:05,835 - INFO - Created Project:ctest-TestBasicPolicy-64161650, ID : 916786a7-03d9-4060-b897-403fddfb86ad 2025-01-12 22:11:07,282 - INFO - ================================================================================ 2025-01-12 22:11:07,282 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-12 22:11:07,282 - 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-12 22:11:07,548 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.13': '0'}} with 2025-01-12 22:11:07,548 - INFO - Initial checks done. Running the testcase now 2025-01-12 22:11:07,548 - INFO - 2025-01-12 22:11:08,094 - DEBUG - Response for create_network : {'network': {'id': 'b83916bb-b9b6-41fd-9e25-b026513d3387', 'name': 'ctest-vn-45378183', 'tenant_id': '916786a703d94060b897403fddfb86ad', 'project_id': '916786a703d94060b897403fddfb86ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-vn-45378183'], 'port_security_enabled': True, 'description': ''}} 2025-01-12 22:11:08,253 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ccd3a85b-9c6a-45d4-ba96-658389655df6', 'name': '', 'tenant_id': '916786a703d94060b897403fddfb86ad', 'network_id': 'b83916bb-b9b6-41fd-9e25-b026513d3387', 'ip_version': 4, 'cidr': '168.225.64.128/26', 'allocation_pools': [{'start': '168.225.64.130', 'end': '168.225.64.190'}], 'gateway_ip': '168.225.64.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.225.64.130', 'tags': [], 'project_id': '916786a703d94060b897403fddfb86ad'}} 2025-01-12 22:11:08,271 - INFO - Created VN ctest-vn-45378183 2025-01-12 22:11:08,322 - DEBUG - VN ctest-vn-45378183 UUID is b83916bb-b9b6-41fd-9e25-b026513d3387 2025-01-12 22:11:08,628 - DEBUG - Response for create_network : {'network': {'id': '3c750cc3-f076-4b63-95b1-e2a0ca091588', 'name': 'ctest-vn-23068185', 'tenant_id': '916786a703d94060b897403fddfb86ad', 'project_id': '916786a703d94060b897403fddfb86ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-vn-23068185'], 'port_security_enabled': True, 'description': ''}} 2025-01-12 22:11:08,790 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4a1ad6b-56f1-4712-a109-6874df5163ed', 'name': '', 'tenant_id': '916786a703d94060b897403fddfb86ad', 'network_id': '3c750cc3-f076-4b63-95b1-e2a0ca091588', 'ip_version': 4, 'cidr': '9.30.156.192/26', 'allocation_pools': [{'start': '9.30.156.194', 'end': '9.30.156.254'}], 'gateway_ip': '9.30.156.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.30.156.194', 'tags': [], 'project_id': '916786a703d94060b897403fddfb86ad'}} 2025-01-12 22:11:08,811 - INFO - Created VN ctest-vn-23068185 2025-01-12 22:11:08,862 - DEBUG - VN ctest-vn-23068185 UUID is 3c750cc3-f076-4b63-95b1-e2a0ca091588 2025-01-12 22:11:08,977 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183, 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-64161650:ctest-vn-23068185, 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-12 22:11:09,274 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b83916bb-b9b6-41fd-9e25-b026513d3387', 'name': 'ctest-vn-45378183', 'tenant_id': '916786a703d94060b897403fddfb86ad', 'project_id': '916786a703d94060b897403fddfb86ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ccd3a85b-9c6a-45d4-ba96-658389655df6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-vn-45378183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-policy-allow-all-69772473']], 'subnet_ipam': [{'subnet_cidr': '168.225.64.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-12 22:11:09,515 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3c750cc3-f076-4b63-95b1-e2a0ca091588', 'name': 'ctest-vn-23068185', 'tenant_id': '916786a703d94060b897403fddfb86ad', 'project_id': '916786a703d94060b897403fddfb86ad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c4a1ad6b-56f1-4712-a109-6874df5163ed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-vn-23068185'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-policy-allow-all-69772473']], 'subnet_ipam': [{'subnet_cidr': '9.30.156.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-12 22:11:09,682 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-12 22:11:09,976 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-12 22:11:10,003 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8a9eb7da-be38-4b11-b3c7-c84256293d59 2025-01-12 22:11:10,017 - DEBUG - Requesting: http://10.0.0.29:8082/project/916786a7-03d9-4060-b897-403fddfb86ad 2025-01-12 22:11:10,096 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b83916bb-b9b6-41fd-9e25-b026513d3387 2025-01-12 22:11:10,107 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b83916bb-b9b6-41fd-9e25-b026513d3387 2025-01-12 22:11:10,117 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0fd878fe-ef18-4aef-89c7-c235907620ee 2025-01-12 22:11:10,125 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0fd878fe-ef18-4aef-89c7-c235907620ee 2025-01-12 22:11:10,132 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/d94ace60-c2ea-40e7-88aa-e6194327d058 2025-01-12 22:11:10,140 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-12 22:11:10,140 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b83916bb-b9b6-41fd-9e25-b026513d3387 2025-01-12 22:11:10,150 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0fd878fe-ef18-4aef-89c7-c235907620ee 2025-01-12 22:11:10,168 - INFO - Verified VN network id 8 for VN b83916bb-b9b6-41fd-9e25-b026513d3387 2025-01-12 22:11:10,168 - INFO - Verifications in API Server for VN ctest-vn-45378183 passed 2025-01-12 22:11:10,168 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b83916bb-b9b6-41fd-9e25-b026513d3387 2025-01-12 22:11:10,181 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0fd878fe-ef18-4aef-89c7-c235907620ee 2025-01-12 22:11:10,188 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0fd878fe-ef18-4aef-89c7-c235907620ee 2025-01-12 22:11:10,195 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/d94ace60-c2ea-40e7-88aa-e6194327d058 2025-01-12 22:11:10,210 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64161650', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13274666372181672445', 'uuid-lslong': '11395708110749119367'}, 'enable': 'true', 'created': '2025-01-12T22:11:08', 'last-modified': '2025-01-12T22:11:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964454'} 2025-01-12 22:11:10,219 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-12 22:11:10,219 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45378183 passed 2025-01-12 22:11:10,219 - DEBUG - ====Verifying policy data for ctest-vn-45378183 in API_Server ====== 2025-01-12 22:11:10,219 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-12 22:11:10,224 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8a9eb7da-be38-4b11-b3c7-c84256293d59 2025-01-12 22:11:10,235 - DEBUG - Requesting: http://10.0.0.29:8082/project/916786a7-03d9-4060-b897-403fddfb86ad 2025-01-12 22:11:10,313 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/b83916bb-b9b6-41fd-9e25-b026513d3387 2025-01-12 22:11:10,324 - DEBUG - ==>Verifying data for policy with id: a1bac66b-ded8-4779-917c-b1459eb4d180, fqn: ['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-policy-allow-all-69772473'] 2025-01-12 22:11:10,324 - INFO - VN ctest-vn-45378183 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-12 22:11:10,324 - DEBUG - Verifying the vn in opserver 2025-01-12 22:11:10,325 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183 virtual network link through opserver 10.0.0.29 2025-01-12 22:11:10,325 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2025-01-12 22:11:10,617 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2025-01-12 22:11:10,667 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183?flat'} 2025-01-12 22:11:10,667 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183 is found in opserver 2025-01-12 22:11:10,679 - DEBUG - Do not have enough data to verify VN in agent 2025-01-12 22:11:10,685 - DEBUG - VRF ids for VN ctest-vn-45378183: {} 2025-01-12 22:11:10,686 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-12 22:11:10,691 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8a9eb7da-be38-4b11-b3c7-c84256293d59 2025-01-12 22:11:10,701 - DEBUG - Requesting: http://10.0.0.29:8082/project/916786a7-03d9-4060-b897-403fddfb86ad 2025-01-12 22:11:10,771 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3c750cc3-f076-4b63-95b1-e2a0ca091588 2025-01-12 22:11:10,784 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3c750cc3-f076-4b63-95b1-e2a0ca091588 2025-01-12 22:11:10,793 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/af1f0f6d-dd8b-443e-9222-4389903be8c6 2025-01-12 22:11:10,801 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/af1f0f6d-dd8b-443e-9222-4389903be8c6 2025-01-12 22:11:10,809 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/31a794cc-f94f-4ef8-a8a1-6fc64778b558 2025-01-12 22:11:10,816 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-12 22:11:10,816 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3c750cc3-f076-4b63-95b1-e2a0ca091588 2025-01-12 22:11:10,826 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/af1f0f6d-dd8b-443e-9222-4389903be8c6 2025-01-12 22:11:10,840 - INFO - Verified VN network id 9 for VN 3c750cc3-f076-4b63-95b1-e2a0ca091588 2025-01-12 22:11:10,840 - INFO - Verifications in API Server for VN ctest-vn-23068185 passed 2025-01-12 22:11:10,840 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3c750cc3-f076-4b63-95b1-e2a0ca091588 2025-01-12 22:11:10,851 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/af1f0f6d-dd8b-443e-9222-4389903be8c6 2025-01-12 22:11:10,859 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/af1f0f6d-dd8b-443e-9222-4389903be8c6 2025-01-12 22:11:10,866 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/31a794cc-f94f-4ef8-a8a1-6fc64778b558 2025-01-12 22:11:10,880 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-23068185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64161650', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4356402250243263331', 'uuid-lslong': '10786651762741286280'}, 'enable': 'true', 'created': '2025-01-12T22:11:08', 'last-modified': '2025-01-12T22:11:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.399251'} 2025-01-12 22:11:10,886 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-12 22:11:10,887 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23068185 passed 2025-01-12 22:11:10,887 - DEBUG - ====Verifying policy data for ctest-vn-23068185 in API_Server ====== 2025-01-12 22:11:10,887 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-12 22:11:10,893 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8a9eb7da-be38-4b11-b3c7-c84256293d59 2025-01-12 22:11:10,904 - DEBUG - Requesting: http://10.0.0.29:8082/project/916786a7-03d9-4060-b897-403fddfb86ad 2025-01-12 22:11:10,974 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/3c750cc3-f076-4b63-95b1-e2a0ca091588 2025-01-12 22:11:10,983 - DEBUG - ==>Verifying data for policy with id: a1bac66b-ded8-4779-917c-b1459eb4d180, fqn: ['default-domain', 'ctest-TestBasicPolicy-64161650', 'ctest-policy-allow-all-69772473'] 2025-01-12 22:11:10,983 - INFO - VN ctest-vn-23068185 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-12 22:11:10,983 - DEBUG - Verifying the vn in opserver 2025-01-12 22:11:10,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-23068185 virtual network link through opserver 10.0.0.29 2025-01-12 22:11:10,983 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2025-01-12 22:11:10,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-23068185', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-23068185?flat'} 2025-01-12 22:11:10,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-23068185 is found in opserver 2025-01-12 22:11:11,006 - DEBUG - Do not have enough data to verify VN in agent 2025-01-12 22:11:11,013 - DEBUG - VRF ids for VN ctest-vn-23068185: {} 2025-01-12 22:11:11,075 - DEBUG - Services list from nova: [, , ] 2025-01-12 22:11:12,079 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2603-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2603-1) 2025-01-12 22:11:13,341 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2603-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2603-1) 2025-01-12 22:11:13,341 - INFO - Waiting for VM ctest-TestBasicPolicy-64161650-45942932 to be up.. 2025-01-12 22:11:13,422 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-12 22:11:18,520 - DEBUG - VM is in ACTIVE state now 2025-01-12 22:11:18,520 - INFO - VM name : ctest-TestBasicPolicy-64161650-45942932 2025-01-12 22:11:18,610 - DEBUG - VM ctest-TestBasicPolicy-64161650-45942932 ID is f4d28090-bc5a-4f14-b2c6-3d279b072847 2025-01-12 22:11:18,634 - DEBUG - VM ctest-TestBasicPolicy-64161650-45942932 launched on Node cn-jenkins-deploy-platform-ansible-os-2603-1 2025-01-12 22:11:18,727 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/f4d28090-bc5a-4f14-b2c6-3d279b072847 2025-01-12 22:11:18,737 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/73e51c03-8504-4e31-9729-56c697196cbb 2025-01-12 22:11:21,996 - 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 1015ms') 2025-01-12 22:11:21,996 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64161650-45942932 failed! 2025-01-12 22:11:22,054 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64161650:ctest-vn-45378183 is 168.225.64.129 and allocation pool is NOT set 2025-01-12 22:11:24,117 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=4.55 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.40 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 = 1.398/2.976/4.554/1.578 ms') 2025-01-12 22:11:24,117 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64161650-45942932 passed 2025-01-12 22:11:24,270 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-12 22:11:24,270 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64161650-45942932, IP 168.225.64.131, Port 22 2025-01-12 22:11:24,429 - DEBUG - VM ctest-TestBasicPolicy-64161650-45942932 is ready for SSH connections 2025-01-12 22:11:24,430 - INFO - Waiting for VM ctest-TestBasicPolicy-64161650-62430163 to be up.. 2025-01-12 22:11:24,510 - DEBUG - VM is in ACTIVE state now 2025-01-12 22:11:24,510 - INFO - VM name : ctest-TestBasicPolicy-64161650-62430163 2025-01-12 22:11:24,583 - DEBUG - VM ctest-TestBasicPolicy-64161650-62430163 ID is 601a16df-daa2-4d40-97ed-23dff857ffd6 2025-01-12 22:11:24,584 - DEBUG - VM ctest-TestBasicPolicy-64161650-62430163 launched on Node cn-jenkins-deploy-platform-ansible-os-2603-1 2025-01-12 22:11:24,662 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/601a16df-daa2-4d40-97ed-23dff857ffd6 2025-01-12 22:11:24,671 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/53b592ad-8f06-44f4-9318-d893e82e6f88 2025-01-12 22:11:25,913 - 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.16 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.42 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.420/2.790/4.161/1.370 ms') 2025-01-12 22:11:25,913 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-64161650-62430163 passed 2025-01-12 22:11:26,066 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-12 22:11:26,066 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64161650-62430163, IP 9.30.156.195, Port 22 2025-01-12 22:11:26,122 - 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-12 22:11:26,198 - DEBUG - VM ctest-TestBasicPolicy-64161650-62430163 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-12 22:11:31,198 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-12 22:11:31,198 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64161650-62430163, IP 9.30.156.195, Port 22 2025-01-12 22:11:31,349 - DEBUG - VM ctest-TestBasicPolicy-64161650-62430163 is ready for SSH connections 2025-01-12 22:11:31,349 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-12 22:11:31,350 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 9.30.156.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2025-01-12 22:11:31,350 - DEBUG - ping -s 56 -c 3 -W 1 9.30.156.195 2025-01-12 22:11:35,016 - DEBUG - PING 9.30.156.195 (9.30.156.195): 56 data bytes 64 bytes from 9.30.156.195: seq=0 ttl=63 time=4.257 ms 64 bytes from 9.30.156.195: seq=1 ttl=63 time=0.888 ms 64 bytes from 9.30.156.195: seq=2 ttl=63 time=0.804 ms --- 9.30.156.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.804/1.983/4.257 ms 2025-01-12 22:11:35,016 - INFO - Ping to IP 9.30.156.195 from VM ctest-TestBasicPolicy-64161650-45942932 passed 2025-01-12 22:11:35,206 - DEBUG - Policy Update Response {"network-policy": {"uuid": "a1bac66b-ded8-4779-917c-b1459eb4d180", "href": "http://10.0.0.29:8082/network-policy/a1bac66b-ded8-4779-917c-b1459eb4d180"}} 2025-01-12 22:11:35,206 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-12 22:11:35,206 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 9.30.156.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2025-01-12 22:11:35,206 - DEBUG - ping -s 56 -c 3 -W 1 9.30.156.195 2025-01-12 22:11:38,418 - DEBUG - PING 9.30.156.195 (9.30.156.195): 56 data bytes 64 bytes from 9.30.156.195: seq=0 ttl=63 time=2.020 ms --- 9.30.156.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.020/2.020/2.020 ms 2025-01-12 22:11:38,418 - WARNING - Ping to IP 9.30.156.195 from VM ctest-TestBasicPolicy-64161650-45942932 failed 2025-01-12 22:11:38,418 - INFO - Deleting VM ctest-TestBasicPolicy-64161650-62430163 2025-01-12 22:11:38,492 - INFO - Deleting VM ctest-TestBasicPolicy-64161650-45942932 2025-01-12 22:11:38,887 - INFO - Deleted policy ctest-policy-allow-all-69772473 2025-01-12 22:11:38,888 - INFO - Deleting VN ctest-vn-23068185 2025-01-12 22:11:38,921 - DEBUG - VN 3c750cc3-f076-4b63-95b1-e2a0ca091588 still in use: Unable to complete operation on network 3c750cc3-f076-4b63-95b1-e2a0ca091588. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-5db06a37-e972-4b14-a033-29ee510a4edd'] 2025-01-12 22:11:38,921 - WARNING - Deleting VN ctest-vn-23068185 failed..Will retry 2025-01-12 22:11:41,057 - DEBUG - Response for deleting network () 2025-01-12 22:11:41,057 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/af1f0f6d-dd8b-443e-9222-4389903be8c6 2025-01-12 22:11:41,062 - DEBUG - Response Code: 404 2025-01-12 22:11:41,062 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-12 22:11:41,069 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8a9eb7da-be38-4b11-b3c7-c84256293d59 2025-01-12 22:11:41,124 - DEBUG - Requesting: http://10.0.0.29:8082/project/916786a7-03d9-4060-b897-403fddfb86ad 2025-01-12 22:11:41,201 - INFO - Validated that VN ctest-vn-23068185 is not found in API Server 2025-01-12 22:11:41,211 - DEBUG - VN ctest-vn-23068185 is not present in Agent 10.0.0.29 2025-01-12 22:11:41,212 - INFO - Validated that VN ctest-vn-23068185 is not in any agent 2025-01-12 22:11:41,226 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23068185 info 2025-01-12 22:11:41,226 - INFO - Deleting VN ctest-vn-45378183 2025-01-12 22:11:41,336 - DEBUG - Response for deleting network () 2025-01-12 22:11:41,336 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/0fd878fe-ef18-4aef-89c7-c235907620ee 2025-01-12 22:11:41,342 - DEBUG - Response Code: 404 2025-01-12 22:11:41,342 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2025-01-12 22:11:41,348 - DEBUG - Requesting: http://10.0.0.29:8082/domain/8a9eb7da-be38-4b11-b3c7-c84256293d59 2025-01-12 22:11:41,404 - DEBUG - Requesting: http://10.0.0.29:8082/project/916786a7-03d9-4060-b897-403fddfb86ad 2025-01-12 22:11:41,474 - INFO - Validated that VN ctest-vn-45378183 is not found in API Server 2025-01-12 22:11:41,485 - DEBUG - VN ctest-vn-45378183 is not present in Agent 10.0.0.29 2025-01-12 22:11:41,485 - INFO - Validated that VN ctest-vn-45378183 is not in any agent 2025-01-12 22:11:41,501 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45378183 info 2025-01-12 22:11:41,757 - DEBUG - No XMPP flaps were noticed during the test 2025-01-12 22:11:41,758 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:34] 2025-01-12 22:11:41,758 - INFO - -------------------------------------------------------------------------------- 2025-01-12 22:11:42,446 - INFO - Deleted project: ctest-TestBasicPolicy-64161650, ID : 916786a7-03d9-4060-b897-403fddfb86ad