2025-04-23 10:11:17,223 - INFO - Domain Default found not creating 2025-04-23 10:11:17,409 - INFO - Project ctest-TestBasicPolicy-68032808 not found, creating it 2025-04-23 10:11:17,983 - INFO - Created Project:ctest-TestBasicPolicy-68032808, ID : 63329528-4341-439b-ae4f-9ae8d82ba1e7 2025-04-23 10:11:19,714 - INFO - ================================================================================ 2025-04-23 10:11:19,714 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-04-23 10:11:19,714 - 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-23 10:11:19,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-04-23 10:11:19,991 - INFO - Initial checks done. Running the testcase now 2025-04-23 10:11:19,991 - INFO - 2025-04-23 10:11:20,620 - DEBUG - Response for create_network : {'network': {'id': 'be9ece6d-5d47-412e-b7eb-33b28de9823f', 'name': 'ctest-vn-57716702', 'tenant_id': '633295284341439bae4f9ae8d82ba1e7', 'project_id': '633295284341439bae4f9ae8d82ba1e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-vn-57716702'], 'port_security_enabled': True, 'description': ''}} 2025-04-23 10:11:20,832 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd39cacbe-5873-4725-b126-d50cb16dba3b', 'name': '', 'tenant_id': '633295284341439bae4f9ae8d82ba1e7', 'network_id': 'be9ece6d-5d47-412e-b7eb-33b28de9823f', 'ip_version': 4, 'cidr': '94.129.62.64/26', 'allocation_pools': [{'start': '94.129.62.66', 'end': '94.129.62.126'}], 'gateway_ip': '94.129.62.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.129.62.66', 'tags': [], 'project_id': '633295284341439bae4f9ae8d82ba1e7'}} 2025-04-23 10:11:20,855 - INFO - Created VN ctest-vn-57716702 2025-04-23 10:11:20,911 - DEBUG - VN ctest-vn-57716702 UUID is be9ece6d-5d47-412e-b7eb-33b28de9823f 2025-04-23 10:11:21,301 - DEBUG - Response for create_network : {'network': {'id': 'd2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c', 'name': 'ctest-vn-45014198', 'tenant_id': '633295284341439bae4f9ae8d82ba1e7', 'project_id': '633295284341439bae4f9ae8d82ba1e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-vn-45014198'], 'port_security_enabled': True, 'description': ''}} 2025-04-23 10:11:21,502 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef4f5020-244a-4713-84f8-0b3344de86b3', 'name': '', 'tenant_id': '633295284341439bae4f9ae8d82ba1e7', 'network_id': 'd2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c', 'ip_version': 4, 'cidr': '102.250.198.0/26', 'allocation_pools': [{'start': '102.250.198.2', 'end': '102.250.198.62'}], 'gateway_ip': '102.250.198.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.250.198.2', 'tags': [], 'project_id': '633295284341439bae4f9ae8d82ba1e7'}} 2025-04-23 10:11:21,531 - INFO - Created VN ctest-vn-45014198 2025-04-23 10:11:21,591 - DEBUG - VN ctest-vn-45014198 UUID is d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c 2025-04-23 10:11:21,723 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702, 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-68032808:ctest-vn-45014198, 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-23 10:11:22,063 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be9ece6d-5d47-412e-b7eb-33b28de9823f', 'name': 'ctest-vn-57716702', 'tenant_id': '633295284341439bae4f9ae8d82ba1e7', 'project_id': '633295284341439bae4f9ae8d82ba1e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d39cacbe-5873-4725-b126-d50cb16dba3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-vn-57716702'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-policy-allow-all-14374204']], 'subnet_ipam': [{'subnet_cidr': '94.129.62.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-23 10:11:22,384 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c', 'name': 'ctest-vn-45014198', 'tenant_id': '633295284341439bae4f9ae8d82ba1e7', 'project_id': '633295284341439bae4f9ae8d82ba1e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef4f5020-244a-4713-84f8-0b3344de86b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-vn-45014198'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-policy-allow-all-14374204']], 'subnet_ipam': [{'subnet_cidr': '102.250.198.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-04-23 10:11:22,547 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-04-23 10:11:22,867 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-04-23 10:11:22,903 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7512974f-1076-4465-92e1-779dc9cd7969 2025-04-23 10:11:22,921 - DEBUG - Requesting: http://10.0.0.130:8082/project/63329528-4341-439b-ae4f-9ae8d82ba1e7 2025-04-23 10:11:23,003 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/be9ece6d-5d47-412e-b7eb-33b28de9823f 2025-04-23 10:11:23,018 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/be9ece6d-5d47-412e-b7eb-33b28de9823f 2025-04-23 10:11:23,033 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d0670599-7659-448a-b1e5-5838b6f7707b 2025-04-23 10:11:23,043 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d0670599-7659-448a-b1e5-5838b6f7707b 2025-04-23 10:11:23,053 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/c708cbcd-5673-485b-963f-35eb56e6a5c5 2025-04-23 10:11:23,062 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-23 10:11:23,063 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/be9ece6d-5d47-412e-b7eb-33b28de9823f 2025-04-23 10:11:23,077 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d0670599-7659-448a-b1e5-5838b6f7707b 2025-04-23 10:11:23,098 - INFO - Verified VN network id 8 for VN be9ece6d-5d47-412e-b7eb-33b28de9823f 2025-04-23 10:11:23,098 - INFO - Verifications in API Server for VN ctest-vn-57716702 passed 2025-04-23 10:11:23,099 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/be9ece6d-5d47-412e-b7eb-33b28de9823f 2025-04-23 10:11:23,114 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d0670599-7659-448a-b1e5-5838b6f7707b 2025-04-23 10:11:23,124 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d0670599-7659-448a-b1e5-5838b6f7707b 2025-04-23 10:11:23,137 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/c708cbcd-5673-485b-963f-35eb56e6a5c5 2025-04-23 10:11:23,156 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68032808', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13735642882638299438', 'uuid-lslong': '13252743170445902399'}, 'enable': 'true', 'created': '2025-04-23T10:11:20', 'last-modified': '2025-04-23T10:11:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.122510'} 2025-04-23 10:11:23,167 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-04-23 10:11:23,168 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57716702 passed 2025-04-23 10:11:23,168 - DEBUG - ====Verifying policy data for ctest-vn-57716702 in API_Server ====== 2025-04-23 10:11:23,168 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-04-23 10:11:23,177 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7512974f-1076-4465-92e1-779dc9cd7969 2025-04-23 10:11:23,192 - DEBUG - Requesting: http://10.0.0.130:8082/project/63329528-4341-439b-ae4f-9ae8d82ba1e7 2025-04-23 10:11:23,289 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/be9ece6d-5d47-412e-b7eb-33b28de9823f 2025-04-23 10:11:23,304 - DEBUG - ==>Verifying data for policy with id: b563d3af-6c31-4b20-9651-ba474fbcb8d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-policy-allow-all-14374204'] 2025-04-23 10:11:23,304 - INFO - VN ctest-vn-57716702 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-23 10:11:23,304 - DEBUG - Verifying the vn in opserver 2025-04-23 10:11:23,304 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702 virtual network link through opserver 10.0.0.130 2025-04-23 10:11:23,305 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-04-23 10:11:23,611 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-04-23 10:11:23,698 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702?flat'} 2025-04-23 10:11:23,698 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702 is found in opserver 2025-04-23 10:11:23,712 - DEBUG - Do not have enough data to verify VN in agent 2025-04-23 10:11:23,720 - DEBUG - VRF ids for VN ctest-vn-57716702: {} 2025-04-23 10:11:23,720 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-04-23 10:11:23,729 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7512974f-1076-4465-92e1-779dc9cd7969 2025-04-23 10:11:23,744 - DEBUG - Requesting: http://10.0.0.130:8082/project/63329528-4341-439b-ae4f-9ae8d82ba1e7 2025-04-23 10:11:23,831 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c 2025-04-23 10:11:23,851 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c 2025-04-23 10:11:23,866 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0e64b8e7-b603-4e61-b59c-6916ad207cd1 2025-04-23 10:11:23,878 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0e64b8e7-b603-4e61-b59c-6916ad207cd1 2025-04-23 10:11:23,889 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5630d1a7-3a84-4e0e-86a9-d85e7888e883 2025-04-23 10:11:23,899 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-23 10:11:23,899 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c 2025-04-23 10:11:23,914 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0e64b8e7-b603-4e61-b59c-6916ad207cd1 2025-04-23 10:11:23,935 - INFO - Verified VN network id 9 for VN d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c 2025-04-23 10:11:23,935 - INFO - Verifications in API Server for VN ctest-vn-45014198 passed 2025-04-23 10:11:23,935 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c 2025-04-23 10:11:23,948 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0e64b8e7-b603-4e61-b59c-6916ad207cd1 2025-04-23 10:11:23,959 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0e64b8e7-b603-4e61-b59c-6916ad207cd1 2025-04-23 10:11:23,970 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5630d1a7-3a84-4e0e-86a9-d85e7888e883 2025-04-23 10:11:23,987 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-45014198', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68032808', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15193876721862396649', 'uuid-lslong': '12226658555203578956'}, 'enable': 'true', 'created': '2025-04-23T10:11:21', 'last-modified': '2025-04-23T10:11:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.672418'} 2025-04-23 10:11:23,996 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-04-23 10:11:23,996 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45014198 passed 2025-04-23 10:11:23,996 - DEBUG - ====Verifying policy data for ctest-vn-45014198 in API_Server ====== 2025-04-23 10:11:23,996 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-04-23 10:11:24,005 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7512974f-1076-4465-92e1-779dc9cd7969 2025-04-23 10:11:24,021 - DEBUG - Requesting: http://10.0.0.130:8082/project/63329528-4341-439b-ae4f-9ae8d82ba1e7 2025-04-23 10:11:24,105 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c 2025-04-23 10:11:24,117 - DEBUG - ==>Verifying data for policy with id: b563d3af-6c31-4b20-9651-ba474fbcb8d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-68032808', 'ctest-policy-allow-all-14374204'] 2025-04-23 10:11:24,117 - INFO - VN ctest-vn-45014198 Policy verification: verify_vn_policy_in_api_server, status: True 2025-04-23 10:11:24,117 - DEBUG - Verifying the vn in opserver 2025-04-23 10:11:24,118 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-45014198 virtual network link through opserver 10.0.0.130 2025-04-23 10:11:24,118 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-04-23 10:11:24,131 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-45014198', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-45014198?flat'} 2025-04-23 10:11:24,131 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-45014198 is found in opserver 2025-04-23 10:11:24,145 - DEBUG - Do not have enough data to verify VN in agent 2025-04-23 10:11:24,154 - DEBUG - VRF ids for VN ctest-vn-45014198: {} 2025-04-23 10:11:24,247 - DEBUG - Services list from nova: [, , ] 2025-04-23 10:11:25,449 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3179-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3179-1) 2025-04-23 10:11:26,982 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3179-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3179-1) 2025-04-23 10:11:26,982 - INFO - Waiting for VM ctest-TestBasicPolicy-68032808-65194067 to be up.. 2025-04-23 10:11:27,078 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-04-23 10:11:32,187 - DEBUG - VM is in ACTIVE state now 2025-04-23 10:11:32,188 - INFO - VM name : ctest-TestBasicPolicy-68032808-65194067 2025-04-23 10:11:32,285 - DEBUG - VM ctest-TestBasicPolicy-68032808-65194067 ID is a37aaac5-d75c-4c29-9fc2-e062bb6d3778 2025-04-23 10:11:32,309 - DEBUG - VM ctest-TestBasicPolicy-68032808-65194067 launched on Node cn-jenkins-deploy-platform-ansible-os-3179-1 2025-04-23 10:11:32,413 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/a37aaac5-d75c-4c29-9fc2-e062bb6d3778 2025-04-23 10:11:32,425 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/c6be7ea5-0c18-40f9-a68b-e914c6fa6fed 2025-04-23 10:11:35,701 - 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 1024ms') 2025-04-23 10:11:35,701 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68032808-65194067 failed! 2025-04-23 10:11:35,771 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-68032808:ctest-vn-57716702 is 94.129.62.65 and allocation pool is NOT set 2025-04-23 10:11:37,848 - 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.97 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.84 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.839/3.406/4.973/1.567 ms') 2025-04-23 10:11:37,848 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68032808-65194067 passed 2025-04-23 10:11:38,007 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 10:11:38,007 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68032808-65194067, IP 94.129.62.67, Port 22 2025-04-23 10:11:38,177 - DEBUG - VM ctest-TestBasicPolicy-68032808-65194067 is ready for SSH connections 2025-04-23 10:11:38,177 - INFO - Waiting for VM ctest-TestBasicPolicy-68032808-04868953 to be up.. 2025-04-23 10:11:38,375 - DEBUG - VM is in ACTIVE state now 2025-04-23 10:11:38,375 - INFO - VM name : ctest-TestBasicPolicy-68032808-04868953 2025-04-23 10:11:38,489 - DEBUG - VM ctest-TestBasicPolicy-68032808-04868953 ID is 94bd21a5-ebb0-4aa5-9241-9d5eb980b2a5 2025-04-23 10:11:38,489 - DEBUG - VM ctest-TestBasicPolicy-68032808-04868953 launched on Node cn-jenkins-deploy-platform-ansible-os-3179-1 2025-04-23 10:11:38,606 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine/94bd21a5-ebb0-4aa5-9241-9d5eb980b2a5 2025-04-23 10:11:38,619 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-machine-interface/cb2f6ee4-44bf-44b5-a530-cb7d6406954e 2025-04-23 10:11:39,893 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=5.15 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.03 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.030/3.089/5.148/2.059 ms') 2025-04-23 10:11:39,893 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-68032808-04868953 passed 2025-04-23 10:11:40,055 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 10:11:40,055 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68032808-04868953, IP 102.250.198.3, Port 22 2025-04-23 10:11:40,121 - 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-04-23 10:11:40,213 - DEBUG - VM ctest-TestBasicPolicy-68032808-04868953 is NOT ready for SSH connections, VM status: ACTIVE 2025-04-23 10:11:45,214 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 10:11:45,214 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68032808-04868953, IP 102.250.198.3, Port 22 2025-04-23 10:11:45,381 - DEBUG - VM ctest-TestBasicPolicy-68032808-04868953 is ready for SSH connections 2025-04-23 10:11:45,381 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 10:11:45,382 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.250.198.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-04-23 10:11:45,382 - DEBUG - ping -s 56 -c 3 -W 1 102.250.198.3 2025-04-23 10:11:49,537 - DEBUG - PING 102.250.198.3 (102.250.198.3): 56 data bytes 64 bytes from 102.250.198.3: seq=0 ttl=63 time=4.018 ms 64 bytes from 102.250.198.3: seq=1 ttl=63 time=1.092 ms 64 bytes from 102.250.198.3: seq=2 ttl=63 time=1.386 ms --- 102.250.198.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.092/2.165/4.018 ms 2025-04-23 10:11:49,537 - INFO - Ping to IP 102.250.198.3 from VM ctest-TestBasicPolicy-68032808-65194067 passed 2025-04-23 10:11:49,746 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b563d3af-6c31-4b20-9651-ba474fbcb8d4", "href": "http://10.0.0.130:8082/network-policy/b563d3af-6c31-4b20-9651-ba474fbcb8d4"}} 2025-04-23 10:11:49,747 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-04-23 10:11:49,747 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 102.250.198.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.130, gateway password: c0ntrail123 2025-04-23 10:11:49,747 - DEBUG - ping -s 56 -c 3 -W 1 102.250.198.3 2025-04-23 10:11:53,006 - DEBUG - PING 102.250.198.3 (102.250.198.3): 56 data bytes 64 bytes from 102.250.198.3: seq=0 ttl=63 time=2.461 ms --- 102.250.198.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.461/2.461/2.461 ms 2025-04-23 10:11:53,006 - WARNING - Ping to IP 102.250.198.3 from VM ctest-TestBasicPolicy-68032808-65194067 failed 2025-04-23 10:11:53,006 - INFO - Deleting VM ctest-TestBasicPolicy-68032808-04868953 2025-04-23 10:11:53,099 - INFO - Deleting VM ctest-TestBasicPolicy-68032808-65194067 2025-04-23 10:11:53,546 - INFO - Deleted policy ctest-policy-allow-all-14374204 2025-04-23 10:11:53,547 - INFO - Deleting VN ctest-vn-45014198 2025-04-23 10:11:53,591 - DEBUG - VN d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c still in use: Unable to complete operation on network d2db7e60-bfaf-4ae9-a9ad-d12d24e66c4c. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-b52d12ab-4249-4d3b-8f9c-8f1e3ae06cf2'] 2025-04-23 10:11:53,591 - WARNING - Deleting VN ctest-vn-45014198 failed..Will retry 2025-04-23 10:11:55,718 - DEBUG - Response for deleting network () 2025-04-23 10:11:55,718 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/0e64b8e7-b603-4e61-b59c-6916ad207cd1 2025-04-23 10:11:55,728 - DEBUG - Response Code: 404 2025-04-23 10:11:55,729 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-04-23 10:11:55,736 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7512974f-1076-4465-92e1-779dc9cd7969 2025-04-23 10:11:55,795 - DEBUG - Requesting: http://10.0.0.130:8082/project/63329528-4341-439b-ae4f-9ae8d82ba1e7 2025-04-23 10:11:55,880 - INFO - Validated that VN ctest-vn-45014198 is not found in API Server 2025-04-23 10:11:55,893 - DEBUG - VN ctest-vn-45014198 is not present in Agent 10.0.0.130 2025-04-23 10:11:55,893 - INFO - Validated that VN ctest-vn-45014198 is not in any agent 2025-04-23 10:11:55,915 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45014198 info 2025-04-23 10:11:55,916 - INFO - Deleting VN ctest-vn-57716702 2025-04-23 10:11:56,042 - DEBUG - Response for deleting network () 2025-04-23 10:11:56,042 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d0670599-7659-448a-b1e5-5838b6f7707b 2025-04-23 10:11:56,049 - DEBUG - Response Code: 404 2025-04-23 10:11:56,049 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-04-23 10:11:56,056 - DEBUG - Requesting: http://10.0.0.130:8082/domain/7512974f-1076-4465-92e1-779dc9cd7969 2025-04-23 10:11:56,113 - DEBUG - Requesting: http://10.0.0.130:8082/project/63329528-4341-439b-ae4f-9ae8d82ba1e7 2025-04-23 10:11:56,198 - INFO - Validated that VN ctest-vn-57716702 is not found in API Server 2025-04-23 10:11:56,212 - DEBUG - VN ctest-vn-57716702 is not present in Agent 10.0.0.130 2025-04-23 10:11:56,212 - INFO - Validated that VN ctest-vn-57716702 is not in any agent 2025-04-23 10:11:56,233 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57716702 info 2025-04-23 10:11:56,495 - DEBUG - No XMPP flaps were noticed during the test 2025-04-23 10:11:56,495 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2025-04-23 10:11:56,495 - INFO - -------------------------------------------------------------------------------- 2025-04-23 10:11:57,229 - INFO - Deleted project: ctest-TestBasicPolicy-68032808, ID : 63329528-4341-439b-ae4f-9ae8d82ba1e7