2025-02-03 19:05:06,968 - INFO - Domain Default found not creating 2025-02-03 19:05:07,184 - INFO - Project ctest-TestBasicPolicy-85188586 not found, creating it 2025-02-03 19:05:08,004 - INFO - Created Project:ctest-TestBasicPolicy-85188586, ID : 32ecc1c7-b26e-44c8-99dc-5bb9d6e54486 2025-02-03 19:05:09,683 - INFO - ================================================================================ 2025-02-03 19:05:09,684 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-02-03 19:05:09,684 - 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-02-03 19:05:09,960 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.20': '0'}} with 2025-02-03 19:05:09,960 - INFO - Initial checks done. Running the testcase now 2025-02-03 19:05:09,960 - INFO - 2025-02-03 19:05:10,594 - DEBUG - Response for create_network : {'network': {'id': '852d69bd-c0a5-4ffa-a6af-81f8f41f215c', 'name': 'ctest-vn-08615394', 'tenant_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'project_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-vn-08615394'], 'port_security_enabled': True, 'description': ''}} 2025-02-03 19:05:10,792 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc194581-ca13-421f-877c-b9dc6c59bacc', 'name': '', 'tenant_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'network_id': '852d69bd-c0a5-4ffa-a6af-81f8f41f215c', 'ip_version': 4, 'cidr': '103.202.187.192/26', 'allocation_pools': [{'start': '103.202.187.194', 'end': '103.202.187.254'}], 'gateway_ip': '103.202.187.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.202.187.194', 'tags': [], 'project_id': '32ecc1c7b26e44c899dc5bb9d6e54486'}} 2025-02-03 19:05:10,813 - INFO - Created VN ctest-vn-08615394 2025-02-03 19:05:10,870 - DEBUG - VN ctest-vn-08615394 UUID is 852d69bd-c0a5-4ffa-a6af-81f8f41f215c 2025-02-03 19:05:11,216 - DEBUG - Response for create_network : {'network': {'id': 'cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5', 'name': 'ctest-vn-43565288', 'tenant_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'project_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-vn-43565288'], 'port_security_enabled': True, 'description': ''}} 2025-02-03 19:05:11,393 - DEBUG - Response for create_subnet : {'subnet': {'id': '345f1c0f-a4a6-431f-af5d-b4c05ed4af4d', 'name': '', 'tenant_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'network_id': 'cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5', 'ip_version': 4, 'cidr': '198.129.157.128/26', 'allocation_pools': [{'start': '198.129.157.130', 'end': '198.129.157.190'}], 'gateway_ip': '198.129.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.129.157.130', 'tags': [], 'project_id': '32ecc1c7b26e44c899dc5bb9d6e54486'}} 2025-02-03 19:05:11,416 - INFO - Created VN ctest-vn-43565288 2025-02-03 19:05:11,474 - DEBUG - VN ctest-vn-43565288 UUID is cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5 2025-02-03 19:05:11,606 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394, 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-85188586:ctest-vn-43565288, 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-02-03 19:05:11,933 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '852d69bd-c0a5-4ffa-a6af-81f8f41f215c', 'name': 'ctest-vn-08615394', 'tenant_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'project_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc194581-ca13-421f-877c-b9dc6c59bacc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-vn-08615394'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-policy-allow-all-68103599']], 'subnet_ipam': [{'subnet_cidr': '103.202.187.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-03 19:05:12,233 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5', 'name': 'ctest-vn-43565288', 'tenant_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'project_id': '32ecc1c7b26e44c899dc5bb9d6e54486', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['345f1c0f-a4a6-431f-af5d-b4c05ed4af4d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-vn-43565288'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-policy-allow-all-68103599']], 'subnet_ipam': [{'subnet_cidr': '198.129.157.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-02-03 19:05:12,410 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-03 19:05:12,719 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-03 19:05:13,044 - DEBUG - Requesting: http://10.0.0.28:8082/domain/b37feb50-4210-4f38-98b4-e53555f7b1bb 2025-02-03 19:05:13,064 - DEBUG - Requesting: http://10.0.0.28:8082/project/32ecc1c7-b26e-44c8-99dc-5bb9d6e54486 2025-02-03 19:05:13,151 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/852d69bd-c0a5-4ffa-a6af-81f8f41f215c 2025-02-03 19:05:13,165 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/852d69bd-c0a5-4ffa-a6af-81f8f41f215c 2025-02-03 19:05:13,179 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f36a1343-e15c-4b6b-bf2f-b2ec4e910d7c 2025-02-03 19:05:13,189 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f36a1343-e15c-4b6b-bf2f-b2ec4e910d7c 2025-02-03 19:05:13,200 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/c9843a10-434c-47b5-99a8-68ecd42955f2 2025-02-03 19:05:13,211 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-03 19:05:13,212 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/852d69bd-c0a5-4ffa-a6af-81f8f41f215c 2025-02-03 19:05:13,228 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f36a1343-e15c-4b6b-bf2f-b2ec4e910d7c 2025-02-03 19:05:13,256 - INFO - Verified VN network id 8 for VN 852d69bd-c0a5-4ffa-a6af-81f8f41f215c 2025-02-03 19:05:13,257 - INFO - Verifications in API Server for VN ctest-vn-08615394 passed 2025-02-03 19:05:13,257 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/852d69bd-c0a5-4ffa-a6af-81f8f41f215c 2025-02-03 19:05:13,273 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f36a1343-e15c-4b6b-bf2f-b2ec4e910d7c 2025-02-03 19:05:13,284 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f36a1343-e15c-4b6b-bf2f-b2ec4e910d7c 2025-02-03 19:05:13,294 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/c9843a10-434c-47b5-99a8-68ecd42955f2 2025-02-03 19:05:13,311 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85188586', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9596442644698189818', 'uuid-lslong': '12010961637467955548'}, 'enable': 'true', 'created': '2025-02-03T19:05:10', 'last-modified': '2025-02-03T19:05:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.404826'} 2025-02-03 19:05:13,322 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-02-03 19:05:13,322 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08615394 passed 2025-02-03 19:05:13,322 - DEBUG - ====Verifying policy data for ctest-vn-08615394 in API_Server ====== 2025-02-03 19:05:13,322 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-03 19:05:13,330 - DEBUG - Requesting: http://10.0.0.28:8082/domain/b37feb50-4210-4f38-98b4-e53555f7b1bb 2025-02-03 19:05:13,346 - DEBUG - Requesting: http://10.0.0.28:8082/project/32ecc1c7-b26e-44c8-99dc-5bb9d6e54486 2025-02-03 19:05:13,427 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/852d69bd-c0a5-4ffa-a6af-81f8f41f215c 2025-02-03 19:05:13,441 - DEBUG - ==>Verifying data for policy with id: 22372a9c-288e-417e-b963-0cafa8d16f4a, fqn: ['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-policy-allow-all-68103599'] 2025-02-03 19:05:13,441 - INFO - VN ctest-vn-08615394 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-03 19:05:13,441 - DEBUG - Verifying the vn in opserver 2025-02-03 19:05:13,442 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394 virtual network link through opserver 10.0.0.28 2025-02-03 19:05:13,442 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2025-02-03 19:05:13,794 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2025-02-03 19:05:13,886 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394?flat'} 2025-02-03 19:05:13,887 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394 is found in opserver 2025-02-03 19:05:13,902 - DEBUG - Do not have enough data to verify VN in agent 2025-02-03 19:05:13,910 - DEBUG - VRF ids for VN ctest-vn-08615394: {} 2025-02-03 19:05:13,910 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-03 19:05:13,917 - DEBUG - Requesting: http://10.0.0.28:8082/domain/b37feb50-4210-4f38-98b4-e53555f7b1bb 2025-02-03 19:05:13,934 - DEBUG - Requesting: http://10.0.0.28:8082/project/32ecc1c7-b26e-44c8-99dc-5bb9d6e54486 2025-02-03 19:05:14,017 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5 2025-02-03 19:05:14,033 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5 2025-02-03 19:05:14,046 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a32c2bce-d8ad-4891-a646-c0cb5c9c2add 2025-02-03 19:05:14,056 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a32c2bce-d8ad-4891-a646-c0cb5c9c2add 2025-02-03 19:05:14,066 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/a5961cb5-0187-4bf8-ac69-b95282a10b45 2025-02-03 19:05:14,075 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-03 19:05:14,075 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5 2025-02-03 19:05:14,088 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a32c2bce-d8ad-4891-a646-c0cb5c9c2add 2025-02-03 19:05:14,113 - INFO - Verified VN network id 9 for VN cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5 2025-02-03 19:05:14,114 - INFO - Verifications in API Server for VN ctest-vn-43565288 passed 2025-02-03 19:05:14,114 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5 2025-02-03 19:05:14,130 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a32c2bce-d8ad-4891-a646-c0cb5c9c2add 2025-02-03 19:05:14,139 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a32c2bce-d8ad-4891-a646-c0cb5c9c2add 2025-02-03 19:05:14,148 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/a5961cb5-0187-4bf8-ac69-b95282a10b45 2025-02-03 19:05:14,165 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-43565288', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85188586', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14933604023093773159', 'uuid-lslong': '12260440417747073189'}, 'enable': 'true', 'created': '2025-02-03T19:05:11', 'last-modified': '2025-02-03T19:05:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.970663'} 2025-02-03 19:05:14,174 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-02-03 19:05:14,175 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43565288 passed 2025-02-03 19:05:14,175 - DEBUG - ====Verifying policy data for ctest-vn-43565288 in API_Server ====== 2025-02-03 19:05:14,175 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-03 19:05:14,182 - DEBUG - Requesting: http://10.0.0.28:8082/domain/b37feb50-4210-4f38-98b4-e53555f7b1bb 2025-02-03 19:05:14,199 - DEBUG - Requesting: http://10.0.0.28:8082/project/32ecc1c7-b26e-44c8-99dc-5bb9d6e54486 2025-02-03 19:05:14,280 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5 2025-02-03 19:05:14,293 - DEBUG - ==>Verifying data for policy with id: 22372a9c-288e-417e-b963-0cafa8d16f4a, fqn: ['default-domain', 'ctest-TestBasicPolicy-85188586', 'ctest-policy-allow-all-68103599'] 2025-02-03 19:05:14,293 - INFO - VN ctest-vn-43565288 Policy verification: verify_vn_policy_in_api_server, status: True 2025-02-03 19:05:14,294 - DEBUG - Verifying the vn in opserver 2025-02-03 19:05:14,294 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-43565288 virtual network link through opserver 10.0.0.28 2025-02-03 19:05:14,294 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks 2025-02-03 19:05:14,308 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-43565288', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-43565288?flat'} 2025-02-03 19:05:14,308 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-43565288 is found in opserver 2025-02-03 19:05:14,322 - DEBUG - Do not have enough data to verify VN in agent 2025-02-03 19:05:14,328 - DEBUG - VRF ids for VN ctest-vn-43565288: {} 2025-02-03 19:05:14,405 - DEBUG - Services list from nova: [, , ] 2025-02-03 19:05:15,677 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2682-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2682-1) 2025-02-03 19:05:16,956 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2682-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2682-1) 2025-02-03 19:05:16,957 - INFO - Waiting for VM ctest-TestBasicPolicy-85188586-72652717 to be up.. 2025-02-03 19:05:17,071 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-02-03 19:05:22,174 - DEBUG - VM is in ACTIVE state now 2025-02-03 19:05:22,175 - INFO - VM name : ctest-TestBasicPolicy-85188586-72652717 2025-02-03 19:05:22,276 - DEBUG - VM ctest-TestBasicPolicy-85188586-72652717 ID is dec1486d-db6f-4c29-b12d-0e029b7a319b 2025-02-03 19:05:22,304 - DEBUG - VM ctest-TestBasicPolicy-85188586-72652717 launched on Node cn-jenkins-deploy-platform-ansible-os-2682-1 2025-02-03 19:05:22,415 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/dec1486d-db6f-4c29-b12d-0e029b7a319b 2025-02-03 19:05:22,430 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/289e86f9-708b-4dd1-be7d-4b21df547a6c 2025-02-03 19:05:25,738 - 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 1032ms') 2025-02-03 19:05:25,738 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85188586-72652717 failed! 2025-02-03 19:05:25,798 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-85188586:ctest-vn-08615394 is 103.202.187.193 and allocation pool is NOT set 2025-02-03 19:05:27,868 - 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.92 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.58 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 = 3.581/4.251/4.922/0.670 ms') 2025-02-03 19:05:27,869 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-85188586-72652717 passed 2025-02-03 19:05:28,026 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 19:05:28,026 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85188586-72652717, IP 103.202.187.195, Port 22 2025-02-03 19:05:28,086 - 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-02-03 19:05:28,182 - DEBUG - VM ctest-TestBasicPolicy-85188586-72652717 is NOT ready for SSH connections, VM status: ACTIVE 2025-02-03 19:05:33,183 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 19:05:33,183 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85188586-72652717, IP 103.202.187.195, Port 22 2025-02-03 19:05:33,365 - DEBUG - VM ctest-TestBasicPolicy-85188586-72652717 is ready for SSH connections 2025-02-03 19:05:33,365 - INFO - Waiting for VM ctest-TestBasicPolicy-85188586-61987860 to be up.. 2025-02-03 19:05:33,471 - DEBUG - VM is in ACTIVE state now 2025-02-03 19:05:33,471 - INFO - VM name : ctest-TestBasicPolicy-85188586-61987860 2025-02-03 19:05:33,580 - DEBUG - VM ctest-TestBasicPolicy-85188586-61987860 ID is 0972e850-4a94-425c-93f0-30546c4f9a5c 2025-02-03 19:05:33,580 - DEBUG - VM ctest-TestBasicPolicy-85188586-61987860 launched on Node cn-jenkins-deploy-platform-ansible-os-2682-1 2025-02-03 19:05:33,684 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine/0972e850-4a94-425c-93f0-30546c4f9a5c 2025-02-03 19:05:33,697 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-machine-interface/61a5a8a0-9c3a-49fe-b1af-3c26453ed4ad 2025-02-03 19:05:34,961 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.721 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.721/2.187/3.653/1.466 ms') 2025-02-03 19:05:34,961 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-85188586-61987860 passed 2025-02-03 19:05:35,122 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 19:05:35,122 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-85188586-61987860, IP 198.129.157.131, Port 22 2025-02-03 19:05:35,301 - DEBUG - VM ctest-TestBasicPolicy-85188586-61987860 is ready for SSH connections 2025-02-03 19:05:35,301 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 19:05:35,301 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.129.157.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2025-02-03 19:05:35,302 - DEBUG - ping -s 56 -c 3 -W 1 198.129.157.131 2025-02-03 19:05:39,477 - DEBUG - PING 198.129.157.131 (198.129.157.131): 56 data bytes 64 bytes from 198.129.157.131: seq=0 ttl=63 time=3.940 ms 64 bytes from 198.129.157.131: seq=1 ttl=63 time=1.392 ms 64 bytes from 198.129.157.131: seq=2 ttl=63 time=1.148 ms --- 198.129.157.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.148/2.160/3.940 ms 2025-02-03 19:05:39,477 - INFO - Ping to IP 198.129.157.131 from VM ctest-TestBasicPolicy-85188586-72652717 passed 2025-02-03 19:05:39,673 - DEBUG - Policy Update Response {"network-policy": {"uuid": "22372a9c-288e-417e-b963-0cafa8d16f4a", "href": "http://10.0.0.28:8082/network-policy/22372a9c-288e-417e-b963-0cafa8d16f4a"}} 2025-02-03 19:05:39,673 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-02-03 19:05:39,673 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 198.129.157.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.28, gateway password: c0ntrail123 2025-02-03 19:05:39,673 - DEBUG - ping -s 56 -c 3 -W 1 198.129.157.131 2025-02-03 19:05:42,908 - DEBUG - PING 198.129.157.131 (198.129.157.131): 56 data bytes 64 bytes from 198.129.157.131: seq=0 ttl=63 time=1.581 ms --- 198.129.157.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.581/1.581/1.581 ms 2025-02-03 19:05:42,908 - WARNING - Ping to IP 198.129.157.131 from VM ctest-TestBasicPolicy-85188586-72652717 failed 2025-02-03 19:05:42,908 - INFO - Deleting VM ctest-TestBasicPolicy-85188586-61987860 2025-02-03 19:05:42,999 - INFO - Deleting VM ctest-TestBasicPolicy-85188586-72652717 2025-02-03 19:05:43,456 - INFO - Deleted policy ctest-policy-allow-all-68103599 2025-02-03 19:05:43,456 - INFO - Deleting VN ctest-vn-43565288 2025-02-03 19:05:43,510 - DEBUG - VN cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5 still in use: Unable to complete operation on network cf3ed1bc-c4d9-4367-aa25-d599f1a7f8a5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-660aa4c0-5487-4bce-a9d2-83c4aeab8618'] 2025-02-03 19:05:43,510 - WARNING - Deleting VN ctest-vn-43565288 failed..Will retry 2025-02-03 19:05:45,670 - DEBUG - Response for deleting network () 2025-02-03 19:05:45,670 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/a32c2bce-d8ad-4891-a646-c0cb5c9c2add 2025-02-03 19:05:45,680 - DEBUG - Response Code: 404 2025-02-03 19:05:45,680 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-03 19:05:45,690 - DEBUG - Requesting: http://10.0.0.28:8082/domain/b37feb50-4210-4f38-98b4-e53555f7b1bb 2025-02-03 19:05:45,752 - DEBUG - Requesting: http://10.0.0.28:8082/project/32ecc1c7-b26e-44c8-99dc-5bb9d6e54486 2025-02-03 19:05:45,836 - INFO - Validated that VN ctest-vn-43565288 is not found in API Server 2025-02-03 19:05:45,850 - DEBUG - VN ctest-vn-43565288 is not present in Agent 10.0.0.28 2025-02-03 19:05:45,850 - INFO - Validated that VN ctest-vn-43565288 is not in any agent 2025-02-03 19:05:45,871 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43565288 info 2025-02-03 19:05:45,872 - INFO - Deleting VN ctest-vn-08615394 2025-02-03 19:05:46,017 - DEBUG - Response for deleting network () 2025-02-03 19:05:46,017 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/f36a1343-e15c-4b6b-bf2f-b2ec4e910d7c 2025-02-03 19:05:46,024 - DEBUG - Response Code: 404 2025-02-03 19:05:46,025 - DEBUG - Requesting: http://10.0.0.28:8082/domains 2025-02-03 19:05:46,034 - DEBUG - Requesting: http://10.0.0.28:8082/domain/b37feb50-4210-4f38-98b4-e53555f7b1bb 2025-02-03 19:05:46,097 - DEBUG - Requesting: http://10.0.0.28:8082/project/32ecc1c7-b26e-44c8-99dc-5bb9d6e54486 2025-02-03 19:05:46,179 - INFO - Validated that VN ctest-vn-08615394 is not found in API Server 2025-02-03 19:05:46,193 - DEBUG - VN ctest-vn-08615394 is not present in Agent 10.0.0.28 2025-02-03 19:05:46,193 - INFO - Validated that VN ctest-vn-08615394 is not in any agent 2025-02-03 19:05:46,215 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08615394 info 2025-02-03 19:05:46,492 - DEBUG - No XMPP flaps were noticed during the test 2025-02-03 19:05:46,492 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:37] 2025-02-03 19:05:46,492 - INFO - -------------------------------------------------------------------------------- 2025-02-03 19:05:47,238 - INFO - Deleted project: ctest-TestBasicPolicy-85188586, ID : 32ecc1c7-b26e-44c8-99dc-5bb9d6e54486