2025-04-04 15:05:02,642 - INFO - Domain Default found not creating 2025-04-04 15:05:02,816 - INFO - Project ctest-TestBasicPolicy-77511954 not found, creating it 2025-04-04 15:05:03,319 - INFO - Created Project:ctest-TestBasicPolicy-77511954, ID : 0cabdf2d-3236-4b08-ad0e-27b1795f213a 2025-04-04 15:05:04,841 - INFO - ================================================================================ 2025-04-04 15:05:04,841 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-04 15:05:04,841 - 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-04 15:05:05,103 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.7': '0'}} with 2025-04-04 15:05:05,103 - INFO - Initial checks done. Running the testcase now 2025-04-04 15:05:05,103 - INFO - 2025-04-04 15:05:05,675 - DEBUG - Response for create_network : {'network': {'id': 'bc587a68-6ce2-4dde-b41e-0db7f35cb068', 'name': 'ctest-vn-37044663', 'tenant_id': '0cabdf2d32364b08ad0e27b1795f213a', 'project_id': '0cabdf2d32364b08ad0e27b1795f213a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-vn-37044663'], 'port_security_enabled': True, 'description': ''}} 2025-04-04 15:05:05,899 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3653492-6a59-4c25-8024-c3d03ba18750', 'name': '', 'tenant_id': '0cabdf2d32364b08ad0e27b1795f213a', 'network_id': 'bc587a68-6ce2-4dde-b41e-0db7f35cb068', 'ip_version': 4, 'cidr': '123.121.207.192/26', 'allocation_pools': [{'start': '123.121.207.194', 'end': '123.121.207.254'}], 'gateway_ip': '123.121.207.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.121.207.194', 'tags': [], 'project_id': '0cabdf2d32364b08ad0e27b1795f213a'}} 2025-04-04 15:05:05,921 - INFO - Created VN ctest-vn-37044663 2025-04-04 15:05:05,975 - DEBUG - VN ctest-vn-37044663 UUID is bc587a68-6ce2-4dde-b41e-0db7f35cb068 2025-04-04 15:05:06,338 - DEBUG - Response for create_network : {'network': {'id': '5284f1e9-3831-4a75-9568-c5561ab8e5d4', 'name': 'ctest-vn-39071860', 'tenant_id': '0cabdf2d32364b08ad0e27b1795f213a', 'project_id': '0cabdf2d32364b08ad0e27b1795f213a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-vn-39071860'], 'port_security_enabled': True, 'description': ''}} 2025-04-04 15:05:06,532 - DEBUG - Response for create_subnet : {'subnet': {'id': '94e12ec1-1028-4e6f-9d64-598caab9a378', 'name': '', 'tenant_id': '0cabdf2d32364b08ad0e27b1795f213a', 'network_id': '5284f1e9-3831-4a75-9568-c5561ab8e5d4', 'ip_version': 4, 'cidr': '32.34.32.192/26', 'allocation_pools': [{'start': '32.34.32.194', 'end': '32.34.32.254'}], 'gateway_ip': '32.34.32.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.34.32.194', 'tags': [], 'project_id': '0cabdf2d32364b08ad0e27b1795f213a'}} 2025-04-04 15:05:06,553 - INFO - Created VN ctest-vn-39071860 2025-04-04 15:05:06,620 - DEBUG - VN ctest-vn-39071860 UUID is 5284f1e9-3831-4a75-9568-c5561ab8e5d4 2025-04-04 15:05:06,746 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663, 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-77511954:ctest-vn-39071860, 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-04 15:05:07,080 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc587a68-6ce2-4dde-b41e-0db7f35cb068', 'name': 'ctest-vn-37044663', 'tenant_id': '0cabdf2d32364b08ad0e27b1795f213a', 'project_id': '0cabdf2d32364b08ad0e27b1795f213a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3653492-6a59-4c25-8024-c3d03ba18750'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-vn-37044663'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-policy-allow-all-88241856']], 'subnet_ipam': [{'subnet_cidr': '123.121.207.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-04 15:05:07,407 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5284f1e9-3831-4a75-9568-c5561ab8e5d4', 'name': 'ctest-vn-39071860', 'tenant_id': '0cabdf2d32364b08ad0e27b1795f213a', 'project_id': '0cabdf2d32364b08ad0e27b1795f213a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94e12ec1-1028-4e6f-9d64-598caab9a378'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-vn-39071860'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-policy-allow-all-88241856']], 'subnet_ipam': [{'subnet_cidr': '32.34.32.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-04 15:05:07,580 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-04 15:05:07,899 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-04 15:05:07,930 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f0d8f5f7-f0cc-46f4-8244-26a3d69404ec 2025-04-04 15:05:07,945 - DEBUG - Requesting: http://10.0.0.12:8082/project/0cabdf2d-3236-4b08-ad0e-27b1795f213a 2025-04-04 15:05:08,021 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/bc587a68-6ce2-4dde-b41e-0db7f35cb068 2025-04-04 15:05:08,034 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/bc587a68-6ce2-4dde-b41e-0db7f35cb068 2025-04-04 15:05:08,047 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0ecbfc22-4d09-4d0a-9961-8dc4660b6dc5 2025-04-04 15:05:08,058 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0ecbfc22-4d09-4d0a-9961-8dc4660b6dc5 2025-04-04 15:05:08,067 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2e86cb2c-899a-4881-a126-82b2e695aef6 2025-04-04 15:05:08,076 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-04 15:05:08,076 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/bc587a68-6ce2-4dde-b41e-0db7f35cb068 2025-04-04 15:05:08,087 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0ecbfc22-4d09-4d0a-9961-8dc4660b6dc5 2025-04-04 15:05:08,105 - INFO - Verified VN network id 9 for VN bc587a68-6ce2-4dde-b41e-0db7f35cb068 2025-04-04 15:05:08,105 - INFO - Verifications in API Server for VN ctest-vn-37044663 passed 2025-04-04 15:05:08,105 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/bc587a68-6ce2-4dde-b41e-0db7f35cb068 2025-04-04 15:05:08,117 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0ecbfc22-4d09-4d0a-9961-8dc4660b6dc5 2025-04-04 15:05:08,126 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0ecbfc22-4d09-4d0a-9961-8dc4660b6dc5 2025-04-04 15:05:08,136 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/2e86cb2c-899a-4881-a126-82b2e695aef6 2025-04-04 15:05:08,154 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77511954', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13571732066002947550', 'uuid-lslong': '12978826259841462376'}, 'enable': 'true', 'created': '2025-04-04T15:05:05', 'last-modified': '2025-04-04T15:05:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.109538'} 2025-04-04 15:05:08,163 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-04-04 15:05:08,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37044663 passed 2025-04-04 15:05:08,164 - DEBUG - ====Verifying policy data for ctest-vn-37044663 in API_Server ====== 2025-04-04 15:05:08,164 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-04 15:05:08,172 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f0d8f5f7-f0cc-46f4-8244-26a3d69404ec 2025-04-04 15:05:08,188 - DEBUG - Requesting: http://10.0.0.12:8082/project/0cabdf2d-3236-4b08-ad0e-27b1795f213a 2025-04-04 15:05:08,267 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/bc587a68-6ce2-4dde-b41e-0db7f35cb068 2025-04-04 15:05:08,282 - DEBUG - ==>Verifying data for policy with id: 8b3da9d1-ec2c-49c9-801b-8f962155044d, fqn: ['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-policy-allow-all-88241856'] 2025-04-04 15:05:08,282 - INFO - VN ctest-vn-37044663 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-04 15:05:08,283 - DEBUG - Verifying the vn in opserver 2025-04-04 15:05:08,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663 virtual network link through opserver 10.0.0.12 2025-04-04 15:05:08,283 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-04-04 15:05:08,587 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-04-04 15:05:08,659 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663?flat'} 2025-04-04 15:05:08,659 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663 is found in opserver 2025-04-04 15:05:08,680 - DEBUG - Do not have enough data to verify VN in agent 2025-04-04 15:05:08,690 - DEBUG - VRF ids for VN ctest-vn-37044663: {} 2025-04-04 15:05:08,690 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-04 15:05:08,701 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f0d8f5f7-f0cc-46f4-8244-26a3d69404ec 2025-04-04 15:05:08,722 - DEBUG - Requesting: http://10.0.0.12:8082/project/0cabdf2d-3236-4b08-ad0e-27b1795f213a 2025-04-04 15:05:08,817 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/5284f1e9-3831-4a75-9568-c5561ab8e5d4 2025-04-04 15:05:08,838 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/5284f1e9-3831-4a75-9568-c5561ab8e5d4 2025-04-04 15:05:08,855 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087c24d2-8704-4570-a34f-16100a8196f7 2025-04-04 15:05:08,873 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087c24d2-8704-4570-a34f-16100a8196f7 2025-04-04 15:05:08,889 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/ede35a97-c0cb-40cf-a6ae-65296258d495 2025-04-04 15:05:08,908 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-04 15:05:08,908 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/5284f1e9-3831-4a75-9568-c5561ab8e5d4 2025-04-04 15:05:08,925 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087c24d2-8704-4570-a34f-16100a8196f7 2025-04-04 15:05:08,953 - INFO - Verified VN network id 10 for VN 5284f1e9-3831-4a75-9568-c5561ab8e5d4 2025-04-04 15:05:08,953 - INFO - Verifications in API Server for VN ctest-vn-39071860 passed 2025-04-04 15:05:08,953 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/5284f1e9-3831-4a75-9568-c5561ab8e5d4 2025-04-04 15:05:08,971 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087c24d2-8704-4570-a34f-16100a8196f7 2025-04-04 15:05:08,988 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087c24d2-8704-4570-a34f-16100a8196f7 2025-04-04 15:05:09,003 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/ede35a97-c0cb-40cf-a6ae-65296258d495 2025-04-04 15:05:09,030 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-39071860', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77511954', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5946143392008325749', 'uuid-lslong': '10766071882835355092'}, 'enable': 'true', 'created': '2025-04-04T15:05:06', 'last-modified': '2025-04-04T15:05:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.699642'} 2025-04-04 15:05:09,040 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-04 15:05:09,041 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39071860 passed 2025-04-04 15:05:09,041 - DEBUG - ====Verifying policy data for ctest-vn-39071860 in API_Server ====== 2025-04-04 15:05:09,041 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-04 15:05:09,058 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f0d8f5f7-f0cc-46f4-8244-26a3d69404ec 2025-04-04 15:05:09,077 - DEBUG - Requesting: http://10.0.0.12:8082/project/0cabdf2d-3236-4b08-ad0e-27b1795f213a 2025-04-04 15:05:09,155 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/5284f1e9-3831-4a75-9568-c5561ab8e5d4 2025-04-04 15:05:09,167 - DEBUG - ==>Verifying data for policy with id: 8b3da9d1-ec2c-49c9-801b-8f962155044d, fqn: ['default-domain', 'ctest-TestBasicPolicy-77511954', 'ctest-policy-allow-all-88241856'] 2025-04-04 15:05:09,167 - INFO - VN ctest-vn-39071860 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-04 15:05:09,167 - DEBUG - Verifying the vn in opserver 2025-04-04 15:05:09,167 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-39071860 virtual network link through opserver 10.0.0.12 2025-04-04 15:05:09,167 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks 2025-04-04 15:05:09,181 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-39071860', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-39071860?flat'} 2025-04-04 15:05:09,181 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-39071860 is found in opserver 2025-04-04 15:05:09,195 - DEBUG - Do not have enough data to verify VN in agent 2025-04-04 15:05:09,201 - DEBUG - VRF ids for VN ctest-vn-39071860: {} 2025-04-04 15:05:09,266 - DEBUG - Services list from nova: [, , ] 2025-04-04 15:05:10,326 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3033-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3033-1) 2025-04-04 15:05:11,865 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3033-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3033-1) 2025-04-04 15:05:11,865 - INFO - Waiting for VM ctest-TestBasicPolicy-77511954-45960306 to be up.. 2025-04-04 15:05:11,959 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-04 15:05:17,052 - DEBUG - VM is in ACTIVE state now 2025-04-04 15:05:17,053 - INFO - VM name : ctest-TestBasicPolicy-77511954-45960306 2025-04-04 15:05:17,144 - DEBUG - VM ctest-TestBasicPolicy-77511954-45960306 ID is 4bb2b84f-c73d-492a-aa99-f20950f0b228 2025-04-04 15:05:17,170 - DEBUG - VM ctest-TestBasicPolicy-77511954-45960306 launched on Node cn-jenkins-deploy-platform-ansible-os-3033-1 2025-04-04 15:05:17,255 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/4bb2b84f-c73d-492a-aa99-f20950f0b228 2025-04-04 15:05:17,265 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/cd37648c-bce4-431a-a399-12da7a8f123e 2025-04-04 15:05:20,534 - 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-04-04 15:05:20,534 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77511954-45960306 failed! 2025-04-04 15:05:20,600 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-77511954:ctest-vn-37044663 is 123.121.207.193 and allocation pool is NOT set 2025-04-04 15:05:22,659 - 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=8.68 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.03 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.025/4.854/8.684/3.829 ms') 2025-04-04 15:05:22,660 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-77511954-45960306 passed 2025-04-04 15:05:22,816 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-04 15:05:22,816 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77511954-45960306, IP 123.121.207.195, Port 22 2025-04-04 15:05:22,882 - 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-04 15:05:22,999 - DEBUG - VM ctest-TestBasicPolicy-77511954-45960306 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-04 15:05:28,000 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-04 15:05:28,000 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77511954-45960306, IP 123.121.207.195, Port 22 2025-04-04 15:05:28,159 - DEBUG - VM ctest-TestBasicPolicy-77511954-45960306 is ready for SSH connections 2025-04-04 15:05:28,159 - INFO - Waiting for VM ctest-TestBasicPolicy-77511954-01307731 to be up.. 2025-04-04 15:05:28,262 - DEBUG - VM is in ACTIVE state now 2025-04-04 15:05:28,262 - INFO - VM name : ctest-TestBasicPolicy-77511954-01307731 2025-04-04 15:05:28,348 - DEBUG - VM ctest-TestBasicPolicy-77511954-01307731 ID is c77180ef-8369-46a3-aca2-62c52dfa8685 2025-04-04 15:05:28,348 - DEBUG - VM ctest-TestBasicPolicy-77511954-01307731 launched on Node cn-jenkins-deploy-platform-ansible-os-3033-1 2025-04-04 15:05:28,428 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine/c77180ef-8369-46a3-aca2-62c52dfa8685 2025-04-04 15:05:28,440 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-machine-interface/86583aca-f433-4904-9a71-858a3bb9cc43 2025-04-04 15:05:29,693 - 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.97 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.504 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 = 0.504/1.734/2.965/1.230 ms') 2025-04-04 15:05:29,694 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-77511954-01307731 passed 2025-04-04 15:05:29,852 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-04 15:05:29,852 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-77511954-01307731, IP 32.34.32.195, Port 22 2025-04-04 15:05:30,007 - DEBUG - VM ctest-TestBasicPolicy-77511954-01307731 is ready for SSH connections 2025-04-04 15:05:30,007 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-04 15:05:30,008 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 32.34.32.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-04-04 15:05:30,008 - DEBUG - ping -s 56 -c 3 -W 1 32.34.32.195 2025-04-04 15:05:34,132 - DEBUG - PING 32.34.32.195 (32.34.32.195): 56 data bytes 64 bytes from 32.34.32.195: seq=0 ttl=63 time=4.913 ms 64 bytes from 32.34.32.195: seq=1 ttl=63 time=0.890 ms 64 bytes from 32.34.32.195: seq=2 ttl=63 time=0.870 ms --- 32.34.32.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.870/2.224/4.913 ms 2025-04-04 15:05:34,132 - INFO - Ping to IP 32.34.32.195 from VM ctest-TestBasicPolicy-77511954-45960306 passed 2025-04-04 15:05:34,323 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8b3da9d1-ec2c-49c9-801b-8f962155044d", "href": "http://10.0.0.12:8082/network-policy/8b3da9d1-ec2c-49c9-801b-8f962155044d"}} 2025-04-04 15:05:34,324 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-04 15:05:34,324 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 32.34.32.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.12, gateway password: c0ntrail123 2025-04-04 15:05:34,324 - DEBUG - ping -s 56 -c 3 -W 1 32.34.32.195 2025-04-04 15:05:37,573 - DEBUG - PING 32.34.32.195 (32.34.32.195): 56 data bytes 64 bytes from 32.34.32.195: seq=0 ttl=63 time=1.719 ms --- 32.34.32.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.719/1.719/1.719 ms 2025-04-04 15:05:37,573 - WARNING - Ping to IP 32.34.32.195 from VM ctest-TestBasicPolicy-77511954-45960306 failed 2025-04-04 15:05:37,573 - INFO - Deleting VM ctest-TestBasicPolicy-77511954-01307731 2025-04-04 15:05:37,685 - INFO - Deleting VM ctest-TestBasicPolicy-77511954-45960306 2025-04-04 15:05:38,189 - INFO - Deleted policy ctest-policy-allow-all-88241856 2025-04-04 15:05:38,189 - INFO - Deleting VN ctest-vn-39071860 2025-04-04 15:05:38,239 - DEBUG - VN 5284f1e9-3831-4a75-9568-c5561ab8e5d4 still in use: Unable to complete operation on network 5284f1e9-3831-4a75-9568-c5561ab8e5d4. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c21bf008-99c3-40c5-9c20-a96730eebb69'] 2025-04-04 15:05:38,239 - WARNING - Deleting VN ctest-vn-39071860 failed..Will retry 2025-04-04 15:05:40,365 - DEBUG - Response for deleting network () 2025-04-04 15:05:40,365 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087c24d2-8704-4570-a34f-16100a8196f7 2025-04-04 15:05:40,373 - DEBUG - Response Code: 404 2025-04-04 15:05:40,373 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-04 15:05:40,391 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f0d8f5f7-f0cc-46f4-8244-26a3d69404ec 2025-04-04 15:05:40,455 - DEBUG - Requesting: http://10.0.0.12:8082/project/0cabdf2d-3236-4b08-ad0e-27b1795f213a 2025-04-04 15:05:40,542 - INFO - Validated that VN ctest-vn-39071860 is not found in API Server 2025-04-04 15:05:40,559 - DEBUG - VN ctest-vn-39071860 is not present in Agent 10.0.0.12 2025-04-04 15:05:40,559 - INFO - Validated that VN ctest-vn-39071860 is not in any agent 2025-04-04 15:05:40,578 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-39071860 info 2025-04-04 15:05:40,578 - INFO - Deleting VN ctest-vn-37044663 2025-04-04 15:05:40,707 - DEBUG - Response for deleting network () 2025-04-04 15:05:40,707 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/0ecbfc22-4d09-4d0a-9961-8dc4660b6dc5 2025-04-04 15:05:40,714 - DEBUG - Response Code: 404 2025-04-04 15:05:40,714 - DEBUG - Requesting: http://10.0.0.12:8082/domains 2025-04-04 15:05:40,720 - DEBUG - Requesting: http://10.0.0.12:8082/domain/f0d8f5f7-f0cc-46f4-8244-26a3d69404ec 2025-04-04 15:05:40,778 - DEBUG - Requesting: http://10.0.0.12:8082/project/0cabdf2d-3236-4b08-ad0e-27b1795f213a 2025-04-04 15:05:40,863 - INFO - Validated that VN ctest-vn-37044663 is not found in API Server 2025-04-04 15:05:40,876 - DEBUG - VN ctest-vn-37044663 is not present in Agent 10.0.0.12 2025-04-04 15:05:40,876 - INFO - Validated that VN ctest-vn-37044663 is not in any agent 2025-04-04 15:05:40,894 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-37044663 info 2025-04-04 15:05:41,158 - DEBUG - No XMPP flaps were noticed during the test 2025-04-04 15:05:41,158 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2025-04-04 15:05:41,158 - INFO - -------------------------------------------------------------------------------- 2025-04-04 15:05:41,891 - INFO - Deleted project: ctest-TestBasicPolicy-77511954, ID : 0cabdf2d-3236-4b08-ad0e-27b1795f213a