2025-04-14 02:36:29,863 - INFO - Domain Default found not creating 2025-04-14 02:36:30,045 - INFO - Project ctest-TestBasicPolicy-33406390 not found, creating it 2025-04-14 02:36:30,540 - INFO - Created Project:ctest-TestBasicPolicy-33406390, ID : 2429970c-c9b8-417e-a666-ac7f9ea9dd9b 2025-04-14 02:36:32,177 - INFO - ================================================================================ 2025-04-14 02:36:32,177 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-14 02:36:32,177 - 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-04-14 02:36:32,444 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-04-14 02:36:32,444 - INFO - Initial checks done. Running the testcase now 2025-04-14 02:36:32,444 - INFO - 2025-04-14 02:36:33,044 - DEBUG - Response for create_network : {'network': {'id': '11f341f1-c000-4b58-a51d-d959ddb4a7a5', 'name': 'ctest-vn-60953388', 'tenant_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'project_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-vn-60953388'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 02:36:33,236 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c80f5beb-9103-460e-93c6-c35edef4f5e6', 'name': '', 'tenant_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'network_id': '11f341f1-c000-4b58-a51d-d959ddb4a7a5', 'ip_version': 4, 'cidr': '171.242.131.0/26', 'allocation_pools': [{'start': '171.242.131.2', 'end': '171.242.131.62'}], 'gateway_ip': '171.242.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.242.131.2', 'tags': [], 'project_id': '2429970cc9b8417ea666ac7f9ea9dd9b'}} 2025-04-14 02:36:33,256 - INFO - Created VN ctest-vn-60953388 2025-04-14 02:36:33,312 - DEBUG - VN ctest-vn-60953388 UUID is 11f341f1-c000-4b58-a51d-d959ddb4a7a5 2025-04-14 02:36:33,652 - DEBUG - Response for create_network : {'network': {'id': 'b45e4ca8-224e-4a26-a867-b36d9f17f309', 'name': 'ctest-vn-30419355', 'tenant_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'project_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-vn-30419355'], 'port_security_enabled': True, 'description': ''}} 2025-04-14 02:36:33,848 - DEBUG - Response for create_subnet : {'subnet': {'id': '770da697-5766-4678-9152-bb897b1c657f', 'name': '', 'tenant_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'network_id': 'b45e4ca8-224e-4a26-a867-b36d9f17f309', 'ip_version': 4, 'cidr': '67.186.27.128/26', 'allocation_pools': [{'start': '67.186.27.130', 'end': '67.186.27.190'}], 'gateway_ip': '67.186.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.186.27.130', 'tags': [], 'project_id': '2429970cc9b8417ea666ac7f9ea9dd9b'}} 2025-04-14 02:36:33,872 - INFO - Created VN ctest-vn-30419355 2025-04-14 02:36:33,928 - DEBUG - VN ctest-vn-30419355 UUID is b45e4ca8-224e-4a26-a867-b36d9f17f309 2025-04-14 02:36:34,049 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388, 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-33406390:ctest-vn-30419355, 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-04-14 02:36:34,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11f341f1-c000-4b58-a51d-d959ddb4a7a5', 'name': 'ctest-vn-60953388', 'tenant_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'project_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c80f5beb-9103-460e-93c6-c35edef4f5e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-vn-60953388'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-policy-allow-all-98221522']], 'subnet_ipam': [{'subnet_cidr': '171.242.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-14 02:36:34,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b45e4ca8-224e-4a26-a867-b36d9f17f309', 'name': 'ctest-vn-30419355', 'tenant_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'project_id': '2429970cc9b8417ea666ac7f9ea9dd9b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['770da697-5766-4678-9152-bb897b1c657f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-vn-30419355'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-policy-allow-all-98221522']], 'subnet_ipam': [{'subnet_cidr': '67.186.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-14 02:36:34,824 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 02:36:35,169 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 02:36:35,203 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5999823a-460c-4028-8fff-64f69b82e7fb 2025-04-14 02:36:35,220 - DEBUG - Requesting: http://10.0.0.254:8082/project/2429970c-c9b8-417e-a666-ac7f9ea9dd9b 2025-04-14 02:36:35,302 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/11f341f1-c000-4b58-a51d-d959ddb4a7a5 2025-04-14 02:36:35,316 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/11f341f1-c000-4b58-a51d-d959ddb4a7a5 2025-04-14 02:36:35,327 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc0c481d-2f01-484e-b0a1-2d8f5cafe7e9 2025-04-14 02:36:35,336 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc0c481d-2f01-484e-b0a1-2d8f5cafe7e9 2025-04-14 02:36:35,345 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/27b1dd3d-f43b-4e2c-a330-8a27912cbeb0 2025-04-14 02:36:35,352 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-14 02:36:35,353 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/11f341f1-c000-4b58-a51d-d959ddb4a7a5 2025-04-14 02:36:35,364 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc0c481d-2f01-484e-b0a1-2d8f5cafe7e9 2025-04-14 02:36:35,385 - INFO - Verified VN network id 8 for VN 11f341f1-c000-4b58-a51d-d959ddb4a7a5 2025-04-14 02:36:35,385 - INFO - Verifications in API Server for VN ctest-vn-60953388 passed 2025-04-14 02:36:35,385 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/11f341f1-c000-4b58-a51d-d959ddb4a7a5 2025-04-14 02:36:35,397 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc0c481d-2f01-484e-b0a1-2d8f5cafe7e9 2025-04-14 02:36:35,405 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc0c481d-2f01-484e-b0a1-2d8f5cafe7e9 2025-04-14 02:36:35,416 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/27b1dd3d-f43b-4e2c-a330-8a27912cbeb0 2025-04-14 02:36:35,430 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33406390', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1293450024549632856', 'uuid-lslong': '11897904770577639333'}, 'enable': 'true', 'created': '2025-04-14T02:36:33', 'last-modified': '2025-04-14T02:36:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.083788'} 2025-04-14 02:36:35,438 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-14 02:36:35,438 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60953388 passed 2025-04-14 02:36:35,438 - DEBUG - ====Verifying policy data for ctest-vn-60953388 in API_Server ====== 2025-04-14 02:36:35,438 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 02:36:35,445 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5999823a-460c-4028-8fff-64f69b82e7fb 2025-04-14 02:36:35,458 - DEBUG - Requesting: http://10.0.0.254:8082/project/2429970c-c9b8-417e-a666-ac7f9ea9dd9b 2025-04-14 02:36:35,538 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/11f341f1-c000-4b58-a51d-d959ddb4a7a5 2025-04-14 02:36:35,549 - DEBUG - ==>Verifying data for policy with id: bad014c6-71b4-4457-80b5-d8310141e366, fqn: ['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-policy-allow-all-98221522'] 2025-04-14 02:36:35,549 - INFO - VN ctest-vn-60953388 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-14 02:36:35,549 - DEBUG - Verifying the vn in opserver 2025-04-14 02:36:35,550 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388 virtual network link through opserver 10.0.0.254 2025-04-14 02:36:35,550 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-14 02:36:35,877 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-14 02:36:35,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388?flat'} 2025-04-14 02:36:35,941 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388 is found in opserver 2025-04-14 02:36:35,954 - DEBUG - Do not have enough data to verify VN in agent 2025-04-14 02:36:35,960 - DEBUG - VRF ids for VN ctest-vn-60953388: {} 2025-04-14 02:36:35,960 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 02:36:35,968 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5999823a-460c-4028-8fff-64f69b82e7fb 2025-04-14 02:36:35,982 - DEBUG - Requesting: http://10.0.0.254:8082/project/2429970c-c9b8-417e-a666-ac7f9ea9dd9b 2025-04-14 02:36:36,060 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b45e4ca8-224e-4a26-a867-b36d9f17f309 2025-04-14 02:36:36,075 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b45e4ca8-224e-4a26-a867-b36d9f17f309 2025-04-14 02:36:36,089 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c96662ff-5749-47c4-9888-fef34314c150 2025-04-14 02:36:36,099 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c96662ff-5749-47c4-9888-fef34314c150 2025-04-14 02:36:36,107 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f7f4feea-46fa-43f2-8f86-7b6f617e14de 2025-04-14 02:36:36,115 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-14 02:36:36,115 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b45e4ca8-224e-4a26-a867-b36d9f17f309 2025-04-14 02:36:36,126 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c96662ff-5749-47c4-9888-fef34314c150 2025-04-14 02:36:36,144 - INFO - Verified VN network id 9 for VN b45e4ca8-224e-4a26-a867-b36d9f17f309 2025-04-14 02:36:36,144 - INFO - Verifications in API Server for VN ctest-vn-30419355 passed 2025-04-14 02:36:36,144 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b45e4ca8-224e-4a26-a867-b36d9f17f309 2025-04-14 02:36:36,157 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c96662ff-5749-47c4-9888-fef34314c150 2025-04-14 02:36:36,166 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c96662ff-5749-47c4-9888-fef34314c150 2025-04-14 02:36:36,177 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f7f4feea-46fa-43f2-8f86-7b6f617e14de 2025-04-14 02:36:36,193 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-30419355', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33406390', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12996909859651602982', 'uuid-lslong': '12134865004375044873'}, 'enable': 'true', 'created': '2025-04-14T02:36:33', 'last-modified': '2025-04-14T02:36:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.584655'} 2025-04-14 02:36:36,201 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-14 02:36:36,201 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30419355 passed 2025-04-14 02:36:36,201 - DEBUG - ====Verifying policy data for ctest-vn-30419355 in API_Server ====== 2025-04-14 02:36:36,201 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 02:36:36,209 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5999823a-460c-4028-8fff-64f69b82e7fb 2025-04-14 02:36:36,225 - DEBUG - Requesting: http://10.0.0.254:8082/project/2429970c-c9b8-417e-a666-ac7f9ea9dd9b 2025-04-14 02:36:36,310 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b45e4ca8-224e-4a26-a867-b36d9f17f309 2025-04-14 02:36:36,322 - DEBUG - ==>Verifying data for policy with id: bad014c6-71b4-4457-80b5-d8310141e366, fqn: ['default-domain', 'ctest-TestBasicPolicy-33406390', 'ctest-policy-allow-all-98221522'] 2025-04-14 02:36:36,322 - INFO - VN ctest-vn-30419355 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-14 02:36:36,322 - DEBUG - Verifying the vn in opserver 2025-04-14 02:36:36,322 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-30419355 virtual network link through opserver 10.0.0.254 2025-04-14 02:36:36,322 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-04-14 02:36:36,338 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-30419355', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-30419355?flat'} 2025-04-14 02:36:36,338 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-30419355 is found in opserver 2025-04-14 02:36:36,351 - DEBUG - Do not have enough data to verify VN in agent 2025-04-14 02:36:36,358 - DEBUG - VRF ids for VN ctest-vn-30419355: {} 2025-04-14 02:36:36,428 - DEBUG - Services list from nova: [, , ] 2025-04-14 02:36:37,535 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3089-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3089-1) 2025-04-14 02:36:38,951 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3089-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3089-1) 2025-04-14 02:36:38,951 - INFO - Waiting for VM ctest-TestBasicPolicy-33406390-59215986 to be up.. 2025-04-14 02:36:39,063 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-14 02:36:44,158 - DEBUG - VM is in ACTIVE state now 2025-04-14 02:36:44,158 - INFO - VM name : ctest-TestBasicPolicy-33406390-59215986 2025-04-14 02:36:44,250 - DEBUG - VM ctest-TestBasicPolicy-33406390-59215986 ID is 80b16a53-d804-4414-8d4a-e4a0fc814623 2025-04-14 02:36:44,275 - DEBUG - VM ctest-TestBasicPolicy-33406390-59215986 launched on Node cn-jenkins-deploy-platform-ansible-os-3089-1 2025-04-14 02:36:44,373 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/80b16a53-d804-4414-8d4a-e4a0fc814623 2025-04-14 02:36:44,386 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/155748a8-27d0-4b7d-93b5-e6e384c5e8ac 2025-04-14 02:36:47,671 - 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 1021ms') 2025-04-14 02:36:47,671 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33406390-59215986 failed! 2025-04-14 02:36:47,728 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-33406390:ctest-vn-60953388 is 171.242.131.1 and allocation pool is NOT set 2025-04-14 02:36:49,789 - 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.42 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.11 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.113/4.266/6.419/2.153 ms') 2025-04-14 02:36:49,789 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-33406390-59215986 passed 2025-04-14 02:36:49,944 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 02:36:49,944 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33406390-59215986, IP 171.242.131.3, Port 22 2025-04-14 02:36:50,000 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-04-14 02:36:50,102 - DEBUG - VM ctest-TestBasicPolicy-33406390-59215986 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-14 02:36:55,103 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 02:36:55,103 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33406390-59215986, IP 171.242.131.3, Port 22 2025-04-14 02:36:55,264 - DEBUG - VM ctest-TestBasicPolicy-33406390-59215986 is ready for SSH connections 2025-04-14 02:36:55,264 - INFO - Waiting for VM ctest-TestBasicPolicy-33406390-18845510 to be up.. 2025-04-14 02:36:55,350 - DEBUG - VM is in ACTIVE state now 2025-04-14 02:36:55,350 - INFO - VM name : ctest-TestBasicPolicy-33406390-18845510 2025-04-14 02:36:55,441 - DEBUG - VM ctest-TestBasicPolicy-33406390-18845510 ID is 71c62c1e-544e-4190-970f-3a14676a2b1e 2025-04-14 02:36:55,441 - DEBUG - VM ctest-TestBasicPolicy-33406390-18845510 launched on Node cn-jenkins-deploy-platform-ansible-os-3089-1 2025-04-14 02:36:55,522 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/71c62c1e-544e-4190-970f-3a14676a2b1e 2025-04-14 02:36:55,534 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/4b22506a-12da-4dc6-87b5-a9917f32b4a7 2025-04-14 02:36:56,777 - 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=2.87 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.452 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.452/1.661/2.871/1.209 ms') 2025-04-14 02:36:56,777 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-33406390-18845510 passed 2025-04-14 02:36:56,936 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 02:36:56,936 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-33406390-18845510, IP 67.186.27.131, Port 22 2025-04-14 02:36:57,106 - DEBUG - VM ctest-TestBasicPolicy-33406390-18845510 is ready for SSH connections 2025-04-14 02:36:57,106 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 02:36:57,106 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 67.186.27.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-14 02:36:57,106 - DEBUG - ping -s 56 -c 3 -W 1 67.186.27.131 2025-04-14 02:37:01,190 - DEBUG - PING 67.186.27.131 (67.186.27.131): 56 data bytes 64 bytes from 67.186.27.131: seq=0 ttl=63 time=3.446 ms 64 bytes from 67.186.27.131: seq=1 ttl=63 time=1.560 ms 64 bytes from 67.186.27.131: seq=2 ttl=63 time=1.052 ms --- 67.186.27.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.052/2.019/3.446 ms 2025-04-14 02:37:01,191 - INFO - Ping to IP 67.186.27.131 from VM ctest-TestBasicPolicy-33406390-59215986 passed 2025-04-14 02:37:01,388 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bad014c6-71b4-4457-80b5-d8310141e366", "href": "http://10.0.0.254:8082/network-policy/bad014c6-71b4-4457-80b5-d8310141e366"}} 2025-04-14 02:37:01,388 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-14 02:37:01,388 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 67.186.27.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-04-14 02:37:01,389 - DEBUG - ping -s 56 -c 3 -W 1 67.186.27.131 2025-04-14 02:37:04,620 - DEBUG - PING 67.186.27.131 (67.186.27.131): 56 data bytes 64 bytes from 67.186.27.131: seq=0 ttl=63 time=1.975 ms --- 67.186.27.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.975/1.975/1.975 ms 2025-04-14 02:37:04,620 - WARNING - Ping to IP 67.186.27.131 from VM ctest-TestBasicPolicy-33406390-59215986 failed 2025-04-14 02:37:04,620 - INFO - Deleting VM ctest-TestBasicPolicy-33406390-18845510 2025-04-14 02:37:04,698 - INFO - Deleting VM ctest-TestBasicPolicy-33406390-59215986 2025-04-14 02:37:05,164 - INFO - Deleted policy ctest-policy-allow-all-98221522 2025-04-14 02:37:05,165 - INFO - Deleting VN ctest-vn-30419355 2025-04-14 02:37:05,205 - DEBUG - VN b45e4ca8-224e-4a26-a867-b36d9f17f309 still in use: Unable to complete operation on network b45e4ca8-224e-4a26-a867-b36d9f17f309. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-325e370e-99bf-405f-894d-1a1301677146'] 2025-04-14 02:37:05,205 - WARNING - Deleting VN ctest-vn-30419355 failed..Will retry 2025-04-14 02:37:07,320 - DEBUG - Response for deleting network () 2025-04-14 02:37:07,320 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c96662ff-5749-47c4-9888-fef34314c150 2025-04-14 02:37:07,327 - DEBUG - Response Code: 404 2025-04-14 02:37:07,328 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 02:37:07,334 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5999823a-460c-4028-8fff-64f69b82e7fb 2025-04-14 02:37:07,392 - DEBUG - Requesting: http://10.0.0.254:8082/project/2429970c-c9b8-417e-a666-ac7f9ea9dd9b 2025-04-14 02:37:07,480 - INFO - Validated that VN ctest-vn-30419355 is not found in API Server 2025-04-14 02:37:07,491 - DEBUG - VN ctest-vn-30419355 is not present in Agent 10.0.0.254 2025-04-14 02:37:07,491 - INFO - Validated that VN ctest-vn-30419355 is not in any agent 2025-04-14 02:37:07,509 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30419355 info 2025-04-14 02:37:07,510 - INFO - Deleting VN ctest-vn-60953388 2025-04-14 02:37:07,628 - DEBUG - Response for deleting network () 2025-04-14 02:37:07,628 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cc0c481d-2f01-484e-b0a1-2d8f5cafe7e9 2025-04-14 02:37:07,634 - DEBUG - Response Code: 404 2025-04-14 02:37:07,634 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-04-14 02:37:07,640 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5999823a-460c-4028-8fff-64f69b82e7fb 2025-04-14 02:37:07,694 - DEBUG - Requesting: http://10.0.0.254:8082/project/2429970c-c9b8-417e-a666-ac7f9ea9dd9b 2025-04-14 02:37:07,773 - INFO - Validated that VN ctest-vn-60953388 is not found in API Server 2025-04-14 02:37:07,787 - DEBUG - VN ctest-vn-60953388 is not present in Agent 10.0.0.254 2025-04-14 02:37:07,787 - INFO - Validated that VN ctest-vn-60953388 is not in any agent 2025-04-14 02:37:07,806 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60953388 info 2025-04-14 02:37:08,068 - DEBUG - No XMPP flaps were noticed during the test
2025-04-14 02:37:08,068 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-04-14 02:37:08,068 - INFO - -------------------------------------------------------------------------------- 2025-04-14 02:37:08,792 - INFO - Deleted project: ctest-TestBasicPolicy-33406390, ID : 2429970c-c9b8-417e-a666-ac7f9ea9dd9b