2025-03-27 03:55:17,695 - INFO - Domain Default found not creating 2025-03-27 03:55:17,889 - INFO - Project ctest-TestBasicPolicy-99649603 not found, creating it 2025-03-27 03:55:18,374 - INFO - Created Project:ctest-TestBasicPolicy-99649603, ID : 50f87f90-bb44-4716-8f14-817d1fbbbf0d 2025-03-27 03:55:19,980 - INFO - ================================================================================ 2025-03-27 03:55:19,981 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-27 03:55:19,981 - 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-27 03:55:20,240 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.20': '0'}} with 2025-03-27 03:55:20,240 - INFO - Initial checks done. Running the testcase now 2025-03-27 03:55:20,240 - INFO - 2025-03-27 03:55:20,832 - DEBUG - Response for create_network : {'network': {'id': 'b6e82602-960a-4685-a966-4e32641a1f89', 'name': 'ctest-vn-78083222', 'tenant_id': '50f87f90bb4447168f14817d1fbbbf0d', 'project_id': '50f87f90bb4447168f14817d1fbbbf0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99649603', 'ctest-vn-78083222'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 03:55:21,025 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb565e70-3aac-4b6c-b9aa-562e25c738ea', 'name': '', 'tenant_id': '50f87f90bb4447168f14817d1fbbbf0d', 'network_id': 'b6e82602-960a-4685-a966-4e32641a1f89', 'ip_version': 4, 'cidr': '53.192.234.192/26', 'allocation_pools': [{'start': '53.192.234.194', 'end': '53.192.234.254'}], 'gateway_ip': '53.192.234.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.192.234.194', 'tags': [], 'project_id': '50f87f90bb4447168f14817d1fbbbf0d'}} 2025-03-27 03:55:21,049 - INFO - Created VN ctest-vn-78083222 2025-03-27 03:55:21,104 - DEBUG - VN ctest-vn-78083222 UUID is b6e82602-960a-4685-a966-4e32641a1f89 2025-03-27 03:55:21,412 - DEBUG - Response for create_network : {'network': {'id': 'e796e0ad-291b-41fe-bf7b-f417c7c75183', 'name': 'ctest-vn-97599400', 'tenant_id': '50f87f90bb4447168f14817d1fbbbf0d', 'project_id': '50f87f90bb4447168f14817d1fbbbf0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99649603', 'ctest-vn-97599400'], 'port_security_enabled': True, 'description': ''}} 2025-03-27 03:55:21,636 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d1c9443-1e97-4870-b26d-6f737fba1804', 'name': '', 'tenant_id': '50f87f90bb4447168f14817d1fbbbf0d', 'network_id': 'e796e0ad-291b-41fe-bf7b-f417c7c75183', 'ip_version': 4, 'cidr': '134.86.222.192/26', 'allocation_pools': [{'start': '134.86.222.194', 'end': '134.86.222.254'}], 'gateway_ip': '134.86.222.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.86.222.194', 'tags': [], 'project_id': '50f87f90bb4447168f14817d1fbbbf0d'}} 2025-03-27 03:55:21,658 - INFO - Created VN ctest-vn-97599400 2025-03-27 03:55:21,712 - DEBUG - VN ctest-vn-97599400 UUID is e796e0ad-291b-41fe-bf7b-f417c7c75183 2025-03-27 03:55:21,834 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99649603:ctest-vn-78083222, 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-99649603:ctest-vn-97599400, 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-27 03:55:22,150 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6e82602-960a-4685-a966-4e32641a1f89', 'name': 'ctest-vn-78083222', 'tenant_id': '50f87f90bb4447168f14817d1fbbbf0d', 'project_id': '50f87f90bb4447168f14817d1fbbbf0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb565e70-3aac-4b6c-b9aa-562e25c738ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99649603', 'ctest-vn-78083222'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99649603', 'ctest-policy-allow-all-58743502']], 'subnet_ipam': [{'subnet_cidr': '53.192.234.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 03:55:22,388 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e796e0ad-291b-41fe-bf7b-f417c7c75183', 'name': 'ctest-vn-97599400', 'tenant_id': '50f87f90bb4447168f14817d1fbbbf0d', 'project_id': '50f87f90bb4447168f14817d1fbbbf0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d1c9443-1e97-4870-b26d-6f737fba1804'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99649603', 'ctest-vn-97599400'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99649603', 'ctest-policy-allow-all-58743502']], 'subnet_ipam': [{'subnet_cidr': '134.86.222.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-27 03:55:22,548 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-27 03:55:22,846 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-27 03:55:22,880 - DEBUG - Requesting: http://10.0.0.40:8082/domain/ca30c62f-2eec-4273-83ff-f72d188cdb78 2025-03-27 03:55:22,895 - DEBUG - Requesting: http://10.0.0.40:8082/project/50f87f90-bb44-4716-8f14-817d1fbbbf0d 2025-03-27 03:55:22,971 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b6e82602-960a-4685-a966-4e32641a1f89 2025-03-27 03:55:22,984 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b6e82602-960a-4685-a966-4e32641a1f89 2025-03-27 03:55:22,994 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/d9af7ffb-1636-4ba0-b673-c604d03618aa 2025-03-27 03:55:23,004 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/d9af7ffb-1636-4ba0-b673-c604d03618aa 2025-03-27 03:55:23,013 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/823c25ca-1cee-4533-8965-3f19cbb0459f 2025-03-27 03:55:23,021 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 03:55:23,021 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b6e82602-960a-4685-a966-4e32641a1f89 2025-03-27 03:55:23,034 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/d9af7ffb-1636-4ba0-b673-c604d03618aa 2025-03-27 03:55:23,052 - INFO - Verified VN network id 8 for VN b6e82602-960a-4685-a966-4e32641a1f89 2025-03-27 03:55:23,052 - INFO - Verifications in API Server for VN ctest-vn-78083222 passed 2025-03-27 03:55:23,052 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b6e82602-960a-4685-a966-4e32641a1f89 2025-03-27 03:55:23,065 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/d9af7ffb-1636-4ba0-b673-c604d03618aa 2025-03-27 03:55:23,073 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/d9af7ffb-1636-4ba0-b673-c604d03618aa 2025-03-27 03:55:23,082 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/823c25ca-1cee-4533-8965-3f19cbb0459f 2025-03-27 03:55:23,098 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99649603:ctest-vn-78083222', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99649603', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13179826102048802437', 'uuid-lslong': '12206529818369073033'}, 'enable': 'true', 'created': '2025-03-27T03:55:20', 'last-modified': '2025-03-27T03:55:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978037'} 2025-03-27 03:55:23,107 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-27 03:55:23,107 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78083222 passed 2025-03-27 03:55:23,107 - DEBUG - ====Verifying policy data for ctest-vn-78083222 in API_Server ====== 2025-03-27 03:55:23,107 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-27 03:55:23,114 - DEBUG - Requesting: http://10.0.0.40:8082/domain/ca30c62f-2eec-4273-83ff-f72d188cdb78 2025-03-27 03:55:23,129 - DEBUG - Requesting: http://10.0.0.40:8082/project/50f87f90-bb44-4716-8f14-817d1fbbbf0d 2025-03-27 03:55:23,209 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/b6e82602-960a-4685-a966-4e32641a1f89 2025-03-27 03:55:23,220 - DEBUG - ==>Verifying data for policy with id: 4d4fdb9f-1e43-4ae0-a169-717a1167a1f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-99649603', 'ctest-policy-allow-all-58743502'] 2025-03-27 03:55:23,220 - INFO - VN ctest-vn-78083222 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 03:55:23,220 - DEBUG - Verifying the vn in opserver 2025-03-27 03:55:23,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99649603:ctest-vn-78083222 virtual network link through opserver 10.0.0.40 2025-03-27 03:55:23,220 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2025-03-27 03:55:23,520 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2025-03-27 03:55:23,588 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99649603:ctest-vn-78083222', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99649603:ctest-vn-78083222?flat'} 2025-03-27 03:55:23,588 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99649603:ctest-vn-78083222 is found in opserver 2025-03-27 03:55:23,599 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 03:55:23,605 - DEBUG - VRF ids for VN ctest-vn-78083222: {} 2025-03-27 03:55:23,605 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-27 03:55:23,612 - DEBUG - Requesting: http://10.0.0.40:8082/domain/ca30c62f-2eec-4273-83ff-f72d188cdb78 2025-03-27 03:55:23,625 - DEBUG - Requesting: http://10.0.0.40:8082/project/50f87f90-bb44-4716-8f14-817d1fbbbf0d 2025-03-27 03:55:23,699 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e796e0ad-291b-41fe-bf7b-f417c7c75183 2025-03-27 03:55:23,713 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e796e0ad-291b-41fe-bf7b-f417c7c75183 2025-03-27 03:55:23,724 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7c65ff9a-173e-4909-8960-e5d071e5f737 2025-03-27 03:55:23,733 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7c65ff9a-173e-4909-8960-e5d071e5f737 2025-03-27 03:55:23,742 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/3c52079c-d8a7-4f47-a7cb-04d27afcac0b 2025-03-27 03:55:23,753 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 03:55:23,753 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e796e0ad-291b-41fe-bf7b-f417c7c75183 2025-03-27 03:55:23,766 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7c65ff9a-173e-4909-8960-e5d071e5f737 2025-03-27 03:55:23,784 - INFO - Verified VN network id 9 for VN e796e0ad-291b-41fe-bf7b-f417c7c75183 2025-03-27 03:55:23,785 - INFO - Verifications in API Server for VN ctest-vn-97599400 passed 2025-03-27 03:55:23,785 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e796e0ad-291b-41fe-bf7b-f417c7c75183 2025-03-27 03:55:23,797 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7c65ff9a-173e-4909-8960-e5d071e5f737 2025-03-27 03:55:23,805 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7c65ff9a-173e-4909-8960-e5d071e5f737 2025-03-27 03:55:23,814 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/3c52079c-d8a7-4f47-a7cb-04d27afcac0b 2025-03-27 03:55:23,830 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99649603:ctest-vn-97599400', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99649603', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16687772503591567870', 'uuid-lslong': '13797890266352800131'}, 'enable': 'true', 'created': '2025-03-27T03:55:21', 'last-modified': '2025-03-27T03:55:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.470236'} 2025-03-27 03:55:23,836 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-27 03:55:23,837 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97599400 passed 2025-03-27 03:55:23,837 - DEBUG - ====Verifying policy data for ctest-vn-97599400 in API_Server ====== 2025-03-27 03:55:23,837 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-27 03:55:23,846 - DEBUG - Requesting: http://10.0.0.40:8082/domain/ca30c62f-2eec-4273-83ff-f72d188cdb78 2025-03-27 03:55:23,860 - DEBUG - Requesting: http://10.0.0.40:8082/project/50f87f90-bb44-4716-8f14-817d1fbbbf0d 2025-03-27 03:55:23,938 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/e796e0ad-291b-41fe-bf7b-f417c7c75183 2025-03-27 03:55:23,949 - DEBUG - ==>Verifying data for policy with id: 4d4fdb9f-1e43-4ae0-a169-717a1167a1f0, fqn: ['default-domain', 'ctest-TestBasicPolicy-99649603', 'ctest-policy-allow-all-58743502'] 2025-03-27 03:55:23,949 - INFO - VN ctest-vn-97599400 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-27 03:55:23,949 - DEBUG - Verifying the vn in opserver 2025-03-27 03:55:23,949 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99649603:ctest-vn-97599400 virtual network link through opserver 10.0.0.40 2025-03-27 03:55:23,949 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2025-03-27 03:55:23,963 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99649603:ctest-vn-97599400', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99649603:ctest-vn-97599400?flat'} 2025-03-27 03:55:23,963 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99649603:ctest-vn-97599400 is found in opserver 2025-03-27 03:55:23,975 - DEBUG - Do not have enough data to verify VN in agent 2025-03-27 03:55:23,980 - DEBUG - VRF ids for VN ctest-vn-97599400: {} 2025-03-27 03:55:24,049 - DEBUG - Services list from nova: [, , ] 2025-03-27 03:55:25,148 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2968-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2968-1) 2025-03-27 03:55:26,496 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2968-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2968-1) 2025-03-27 03:55:26,496 - INFO - Waiting for VM ctest-TestBasicPolicy-99649603-81362908 to be up.. 2025-03-27 03:55:26,594 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-27 03:55:31,682 - DEBUG - VM is in ACTIVE state now 2025-03-27 03:55:31,683 - INFO - VM name : ctest-TestBasicPolicy-99649603-81362908 2025-03-27 03:55:31,773 - DEBUG - VM ctest-TestBasicPolicy-99649603-81362908 ID is 92f94cdc-ad0d-4c4d-a4a4-0eb2ed4050e8 2025-03-27 03:55:31,798 - DEBUG - VM ctest-TestBasicPolicy-99649603-81362908 launched on Node cn-jenkins-deploy-platform-ansible-os-2968-1 2025-03-27 03:55:31,889 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/92f94cdc-ad0d-4c4d-a4a4-0eb2ed4050e8 2025-03-27 03:55:31,900 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/691d97e6-21f8-4a84-9d76-63e3a9da4ea3 2025-03-27 03:55:35,156 - 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 1009ms') 2025-03-27 03:55:35,157 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99649603-81362908 failed! 2025-03-27 03:55:35,212 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99649603:ctest-vn-78083222 is 53.192.234.193 and allocation pool is NOT set 2025-03-27 03:55:37,278 - 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.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.39 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 = 1.391/2.871/4.351/1.480 ms') 2025-03-27 03:55:37,279 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99649603-81362908 passed 2025-03-27 03:55:37,437 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 03:55:37,437 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99649603-81362908, IP 53.192.234.195, Port 22 2025-03-27 03:55:37,506 - 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-03-27 03:55:37,605 - DEBUG - VM ctest-TestBasicPolicy-99649603-81362908 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-27 03:55:42,606 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 03:55:42,607 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99649603-81362908, IP 53.192.234.195, Port 22 2025-03-27 03:55:42,772 - DEBUG - VM ctest-TestBasicPolicy-99649603-81362908 is ready for SSH connections 2025-03-27 03:55:42,772 - INFO - Waiting for VM ctest-TestBasicPolicy-99649603-78888067 to be up.. 2025-03-27 03:55:42,860 - DEBUG - VM is in ACTIVE state now 2025-03-27 03:55:42,860 - INFO - VM name : ctest-TestBasicPolicy-99649603-78888067 2025-03-27 03:55:42,947 - DEBUG - VM ctest-TestBasicPolicy-99649603-78888067 ID is 89ab315c-4565-4d48-8b5f-e14e10d92204 2025-03-27 03:55:42,948 - DEBUG - VM ctest-TestBasicPolicy-99649603-78888067 launched on Node cn-jenkins-deploy-platform-ansible-os-2968-1 2025-03-27 03:55:43,041 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine/89ab315c-4565-4d48-8b5f-e14e10d92204 2025-03-27 03:55:43,052 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-machine-interface/c4117643-067d-45ac-b227-8a7efbd68b5f 2025-03-27 03:55:44,297 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.51 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.502 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.502/2.007/3.513/1.505 ms') 2025-03-27 03:55:44,297 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-99649603-78888067 passed 2025-03-27 03:55:44,452 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 03:55:44,452 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99649603-78888067, IP 134.86.222.195, Port 22 2025-03-27 03:55:44,622 - DEBUG - VM ctest-TestBasicPolicy-99649603-78888067 is ready for SSH connections 2025-03-27 03:55:44,622 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 03:55:44,622 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 134.86.222.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2025-03-27 03:55:44,622 - DEBUG - ping -s 56 -c 3 -W 1 134.86.222.195 2025-03-27 03:55:48,720 - DEBUG - PING 134.86.222.195 (134.86.222.195): 56 data bytes 64 bytes from 134.86.222.195: seq=0 ttl=63 time=4.893 ms 64 bytes from 134.86.222.195: seq=1 ttl=63 time=1.116 ms 64 bytes from 134.86.222.195: seq=2 ttl=63 time=1.083 ms --- 134.86.222.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.083/2.364/4.893 ms 2025-03-27 03:55:48,720 - INFO - Ping to IP 134.86.222.195 from VM ctest-TestBasicPolicy-99649603-81362908 passed 2025-03-27 03:55:48,912 - DEBUG - Policy Update Response {"network-policy": {"uuid": "4d4fdb9f-1e43-4ae0-a169-717a1167a1f0", "href": "http://10.0.0.40:8082/network-policy/4d4fdb9f-1e43-4ae0-a169-717a1167a1f0"}} 2025-03-27 03:55:48,912 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-27 03:55:48,912 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 134.86.222.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.40, gateway password: c0ntrail123 2025-03-27 03:55:48,912 - DEBUG - ping -s 56 -c 3 -W 1 134.86.222.195 2025-03-27 03:55:52,138 - DEBUG - PING 134.86.222.195 (134.86.222.195): 56 data bytes 64 bytes from 134.86.222.195: seq=0 ttl=63 time=1.635 ms --- 134.86.222.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.635/1.635/1.635 ms 2025-03-27 03:55:52,138 - WARNING - Ping to IP 134.86.222.195 from VM ctest-TestBasicPolicy-99649603-81362908 failed 2025-03-27 03:55:52,138 - INFO - Deleting VM ctest-TestBasicPolicy-99649603-78888067 2025-03-27 03:55:52,236 - INFO - Deleting VM ctest-TestBasicPolicy-99649603-81362908 2025-03-27 03:55:52,693 - INFO - Deleted policy ctest-policy-allow-all-58743502 2025-03-27 03:55:52,693 - INFO - Deleting VN ctest-vn-97599400 2025-03-27 03:55:52,744 - DEBUG - VN e796e0ad-291b-41fe-bf7b-f417c7c75183 still in use: Unable to complete operation on network e796e0ad-291b-41fe-bf7b-f417c7c75183. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-8cbe472f-a6bf-42fb-91c0-cc57d0820883'] 2025-03-27 03:55:52,745 - WARNING - Deleting VN ctest-vn-97599400 failed..Will retry 2025-03-27 03:55:54,866 - DEBUG - Response for deleting network () 2025-03-27 03:55:54,866 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7c65ff9a-173e-4909-8960-e5d071e5f737 2025-03-27 03:55:54,876 - DEBUG - Response Code: 404 2025-03-27 03:55:54,876 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-27 03:55:54,885 - DEBUG - Requesting: http://10.0.0.40:8082/domain/ca30c62f-2eec-4273-83ff-f72d188cdb78 2025-03-27 03:55:54,943 - DEBUG - Requesting: http://10.0.0.40:8082/project/50f87f90-bb44-4716-8f14-817d1fbbbf0d 2025-03-27 03:55:55,020 - INFO - Validated that VN ctest-vn-97599400 is not found in API Server 2025-03-27 03:55:55,032 - DEBUG - VN ctest-vn-97599400 is not present in Agent 10.0.0.40 2025-03-27 03:55:55,032 - INFO - Validated that VN ctest-vn-97599400 is not in any agent 2025-03-27 03:55:55,051 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97599400 info 2025-03-27 03:55:55,052 - INFO - Deleting VN ctest-vn-78083222 2025-03-27 03:55:55,170 - DEBUG - Response for deleting network () 2025-03-27 03:55:55,171 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/d9af7ffb-1636-4ba0-b673-c604d03618aa 2025-03-27 03:55:55,180 - DEBUG - Response Code: 404 2025-03-27 03:55:55,180 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-03-27 03:55:55,186 - DEBUG - Requesting: http://10.0.0.40:8082/domain/ca30c62f-2eec-4273-83ff-f72d188cdb78 2025-03-27 03:55:55,242 - DEBUG - Requesting: http://10.0.0.40:8082/project/50f87f90-bb44-4716-8f14-817d1fbbbf0d 2025-03-27 03:55:55,316 - INFO - Validated that VN ctest-vn-78083222 is not found in API Server 2025-03-27 03:55:55,328 - DEBUG - VN ctest-vn-78083222 is not present in Agent 10.0.0.40 2025-03-27 03:55:55,328 - INFO - Validated that VN ctest-vn-78083222 is not in any agent 2025-03-27 03:55:55,346 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-78083222 info 2025-03-27 03:55:55,613 - DEBUG - No XMPP flaps were noticed during the test 2025-03-27 03:55:55,614 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36] 2025-03-27 03:55:55,614 - INFO - -------------------------------------------------------------------------------- 2025-03-27 03:55:56,331 - INFO - Deleted project: ctest-TestBasicPolicy-99649603, ID : 50f87f90-bb44-4716-8f14-817d1fbbbf0d