2024-10-23 11:08:34,863 - INFO - Domain Default found not creating 2024-10-23 11:08:35,052 - INFO - Project ctest-TestBasicPolicy-09790161 not found, creating it 2024-10-23 11:08:35,599 - INFO - Created Project:ctest-TestBasicPolicy-09790161, ID : aeeed507-67f9-4c6c-9f0c-bc8afd87f556 2024-10-23 11:08:37,374 - INFO - ================================================================================ 2024-10-23 11:08:37,375 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-23 11:08:37,375 - 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 2024-10-23 11:08:37,643 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.11': '0'}} with 2024-10-23 11:08:37,643 - INFO - Initial checks done. Running the testcase now 2024-10-23 11:08:37,643 - INFO - 2024-10-23 11:08:38,523 - DEBUG - Response for create_network : {'network': {'id': '5434c45a-6f35-459c-a035-b5c982355a3d', 'name': 'ctest-vn-37937317', 'tenant_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'project_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-vn-37937317'], 'port_security_enabled': True, 'description': ''}} 2024-10-23 11:08:39,186 - DEBUG - Response for create_subnet : {'subnet': {'id': '51029d27-99db-4460-93fa-26fdbb707c28', 'name': '', 'tenant_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'network_id': '5434c45a-6f35-459c-a035-b5c982355a3d', 'ip_version': 4, 'cidr': '15.251.99.192/26', 'allocation_pools': [{'start': '15.251.99.194', 'end': '15.251.99.254'}], 'gateway_ip': '15.251.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.251.99.194', 'tags': [], 'project_id': 'aeeed50767f94c6c9f0cbc8afd87f556'}} 2024-10-23 11:08:39,222 - INFO - Created VN ctest-vn-37937317 2024-10-23 11:08:39,292 - DEBUG - VN ctest-vn-37937317 UUID is 5434c45a-6f35-459c-a035-b5c982355a3d 2024-10-23 11:08:39,673 - DEBUG - Response for create_network : {'network': {'id': '5b9efbad-4ad9-4c18-a60d-2301104d9167', 'name': 'ctest-vn-60340358', 'tenant_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'project_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-vn-60340358'], 'port_security_enabled': True, 'description': ''}} 2024-10-23 11:08:39,900 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca513260-0509-43a1-aaab-fb9ad1cb7301', 'name': '', 'tenant_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'network_id': '5b9efbad-4ad9-4c18-a60d-2301104d9167', 'ip_version': 4, 'cidr': '63.181.242.192/26', 'allocation_pools': [{'start': '63.181.242.194', 'end': '63.181.242.254'}], 'gateway_ip': '63.181.242.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.181.242.194', 'tags': [], 'project_id': 'aeeed50767f94c6c9f0cbc8afd87f556'}} 2024-10-23 11:08:39,933 - INFO - Created VN ctest-vn-60340358 2024-10-23 11:08:39,996 - DEBUG - VN ctest-vn-60340358 UUID is 5b9efbad-4ad9-4c18-a60d-2301104d9167 2024-10-23 11:08:40,138 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317, 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-09790161:ctest-vn-60340358, 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] 2024-10-23 11:08:40,495 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5434c45a-6f35-459c-a035-b5c982355a3d', 'name': 'ctest-vn-37937317', 'tenant_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'project_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51029d27-99db-4460-93fa-26fdbb707c28'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-vn-37937317'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-policy-allow-all-16077942']], 'subnet_ipam': [{'subnet_cidr': '15.251.99.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-23 11:08:40,802 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b9efbad-4ad9-4c18-a60d-2301104d9167', 'name': 'ctest-vn-60340358', 'tenant_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'project_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca513260-0509-43a1-aaab-fb9ad1cb7301'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-vn-60340358'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-policy-allow-all-16077942']], 'subnet_ipam': [{'subnet_cidr': '63.181.242.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-23 11:08:40,956 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 11:08:41,295 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 11:08:41,338 - DEBUG - Requesting: http://10.0.0.35:8082/domain/150b0199-a4fe-4355-9e53-d28bec7d44ea 2024-10-23 11:08:41,358 - DEBUG - Requesting: http://10.0.0.35:8082/project/aeeed507-67f9-4c6c-9f0c-bc8afd87f556 2024-10-23 11:08:41,445 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5434c45a-6f35-459c-a035-b5c982355a3d 2024-10-23 11:08:41,465 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5434c45a-6f35-459c-a035-b5c982355a3d 2024-10-23 11:08:41,483 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fe1659e7-505d-486a-95a3-1da8f2c04c8b 2024-10-23 11:08:41,495 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fe1659e7-505d-486a-95a3-1da8f2c04c8b 2024-10-23 11:08:41,505 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/cf00b4b6-4d77-475e-8543-5c7c20023168 2024-10-23 11:08:41,515 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-23 11:08:41,515 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5434c45a-6f35-459c-a035-b5c982355a3d 2024-10-23 11:08:41,531 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fe1659e7-505d-486a-95a3-1da8f2c04c8b 2024-10-23 11:08:41,555 - INFO - Verified VN network id 9 for VN 5434c45a-6f35-459c-a035-b5c982355a3d 2024-10-23 11:08:41,556 - INFO - Verifications in API Server for VN ctest-vn-37937317 passed 2024-10-23 11:08:41,556 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5434c45a-6f35-459c-a035-b5c982355a3d 2024-10-23 11:08:41,575 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fe1659e7-505d-486a-95a3-1da8f2c04c8b 2024-10-23 11:08:41,587 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fe1659e7-505d-486a-95a3-1da8f2c04c8b 2024-10-23 11:08:41,599 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/cf00b4b6-4d77-475e-8543-5c7c20023168 2024-10-23 11:08:41,618 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09790161', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6067690490666763676', 'uuid-lslong': '11544333096911723069'}, 'enable': 'true', 'created': '2024-10-23T11:08:38', 'last-modified': '2024-10-23T11:08:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.155433'} 2024-10-23 11:08:41,627 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-23 11:08:41,628 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37937317 passed 2024-10-23 11:08:41,628 - DEBUG - ====Verifying policy data for ctest-vn-37937317 in API_Server ====== 2024-10-23 11:08:41,628 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 11:08:41,637 - DEBUG - Requesting: http://10.0.0.35:8082/domain/150b0199-a4fe-4355-9e53-d28bec7d44ea 2024-10-23 11:08:41,656 - DEBUG - Requesting: http://10.0.0.35:8082/project/aeeed507-67f9-4c6c-9f0c-bc8afd87f556 2024-10-23 11:08:41,764 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5434c45a-6f35-459c-a035-b5c982355a3d 2024-10-23 11:08:41,789 - DEBUG - ==>Verifying data for policy with id: 2a9b8fad-1af8-465f-a87a-63a459e3f9be, fqn: ['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-policy-allow-all-16077942'] 2024-10-23 11:08:41,789 - INFO - VN ctest-vn-37937317 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-23 11:08:41,789 - DEBUG - Verifying the vn in opserver 2024-10-23 11:08:41,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317 virtual network link through opserver 10.0.0.35 2024-10-23 11:08:41,789 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-10-23 11:08:42,134 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-10-23 11:08:42,207 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317?flat'} 2024-10-23 11:08:42,207 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317 is found in opserver 2024-10-23 11:08:42,220 - DEBUG - Do not have enough data to verify VN in agent 2024-10-23 11:08:42,226 - DEBUG - VRF ids for VN ctest-vn-37937317: {} 2024-10-23 11:08:42,226 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 11:08:42,234 - DEBUG - Requesting: http://10.0.0.35:8082/domain/150b0199-a4fe-4355-9e53-d28bec7d44ea 2024-10-23 11:08:42,250 - DEBUG - Requesting: http://10.0.0.35:8082/project/aeeed507-67f9-4c6c-9f0c-bc8afd87f556 2024-10-23 11:08:42,351 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5b9efbad-4ad9-4c18-a60d-2301104d9167 2024-10-23 11:08:42,373 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5b9efbad-4ad9-4c18-a60d-2301104d9167 2024-10-23 11:08:42,392 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e03c1def-dbe0-4eb4-b5c2-489c1fb40686 2024-10-23 11:08:42,403 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e03c1def-dbe0-4eb4-b5c2-489c1fb40686 2024-10-23 11:08:42,414 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/6fedc4a1-6dfd-42bc-9b54-f21f7e521297 2024-10-23 11:08:42,423 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-23 11:08:42,423 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5b9efbad-4ad9-4c18-a60d-2301104d9167 2024-10-23 11:08:42,439 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e03c1def-dbe0-4eb4-b5c2-489c1fb40686 2024-10-23 11:08:42,463 - INFO - Verified VN network id 10 for VN 5b9efbad-4ad9-4c18-a60d-2301104d9167 2024-10-23 11:08:42,463 - INFO - Verifications in API Server for VN ctest-vn-60340358 passed 2024-10-23 11:08:42,463 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5b9efbad-4ad9-4c18-a60d-2301104d9167 2024-10-23 11:08:42,480 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e03c1def-dbe0-4eb4-b5c2-489c1fb40686 2024-10-23 11:08:42,490 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e03c1def-dbe0-4eb4-b5c2-489c1fb40686 2024-10-23 11:08:42,500 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/6fedc4a1-6dfd-42bc-9b54-f21f7e521297 2024-10-23 11:08:42,516 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-60340358', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09790161', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6601990825475394584', 'uuid-lslong': '11965258272468734311'}, 'enable': 'true', 'created': '2024-10-23T11:08:39', 'last-modified': '2024-10-23T11:08:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.780105'} 2024-10-23 11:08:42,523 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-23 11:08:42,523 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60340358 passed 2024-10-23 11:08:42,523 - DEBUG - ====Verifying policy data for ctest-vn-60340358 in API_Server ====== 2024-10-23 11:08:42,523 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 11:08:42,530 - DEBUG - Requesting: http://10.0.0.35:8082/domain/150b0199-a4fe-4355-9e53-d28bec7d44ea 2024-10-23 11:08:42,545 - DEBUG - Requesting: http://10.0.0.35:8082/project/aeeed507-67f9-4c6c-9f0c-bc8afd87f556 2024-10-23 11:08:42,631 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5b9efbad-4ad9-4c18-a60d-2301104d9167 2024-10-23 11:08:42,647 - DEBUG - ==>Verifying data for policy with id: 2a9b8fad-1af8-465f-a87a-63a459e3f9be, fqn: ['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-policy-allow-all-16077942'] 2024-10-23 11:08:42,647 - INFO - VN ctest-vn-60340358 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-23 11:08:42,647 - DEBUG - Verifying the vn in opserver 2024-10-23 11:08:42,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-60340358 virtual network link through opserver 10.0.0.35 2024-10-23 11:08:42,647 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2024-10-23 11:08:42,661 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-60340358', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-60340358?flat'} 2024-10-23 11:08:42,661 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-60340358 is found in opserver 2024-10-23 11:08:42,674 - DEBUG - Do not have enough data to verify VN in agent 2024-10-23 11:08:42,681 - DEBUG - VRF ids for VN ctest-vn-60340358: {} 2024-10-23 11:08:42,754 - DEBUG - Services list from nova: [, , ] 2024-10-23 11:08:44,019 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2128-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2128-1) 2024-10-23 11:08:45,500 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2128-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2128-1) 2024-10-23 11:08:45,500 - INFO - Waiting for VM ctest-TestBasicPolicy-09790161-75089904 to be up.. 2024-10-23 11:08:45,594 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-23 11:08:50,703 - DEBUG - VM is in ACTIVE state now 2024-10-23 11:08:50,704 - INFO - VM name : ctest-TestBasicPolicy-09790161-75089904 2024-10-23 11:08:50,795 - DEBUG - VM ctest-TestBasicPolicy-09790161-75089904 ID is 19e44ef4-5803-4c7d-868d-356b5999cb32 2024-10-23 11:08:50,817 - DEBUG - VM ctest-TestBasicPolicy-09790161-75089904 launched on Node cn-jenkins-deploy-platform-ansible-os-2128-1 2024-10-23 11:08:50,908 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/19e44ef4-5803-4c7d-868d-356b5999cb32 2024-10-23 11:08:50,921 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/2324bedb-7d72-40c7-9e38-896105b03539 2024-10-23 11:08:54,216 - 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 1030ms') 2024-10-23 11:08:54,216 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09790161-75089904 failed! 2024-10-23 11:08:54,281 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317 is 15.251.99.193 and allocation pool is NOT set 2024-10-23 11:08:56,349 - 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=3.99 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.80 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.797/3.395/3.994/0.598 ms') 2024-10-23 11:08:56,349 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-09790161-75089904 passed 2024-10-23 11:08:56,516 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 11:08:56,517 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09790161-75089904, IP 15.251.99.195, Port 22 2024-10-23 11:08:56,687 - DEBUG - VM ctest-TestBasicPolicy-09790161-75089904 is ready for SSH connections 2024-10-23 11:08:56,687 - INFO - Waiting for VM ctest-TestBasicPolicy-09790161-69000420 to be up.. 2024-10-23 11:08:56,794 - DEBUG - VM is in ACTIVE state now 2024-10-23 11:08:56,794 - INFO - VM name : ctest-TestBasicPolicy-09790161-69000420 2024-10-23 11:08:56,886 - DEBUG - VM ctest-TestBasicPolicy-09790161-69000420 ID is 09fb5bdf-2b87-47c1-aa61-898f517f44eb 2024-10-23 11:08:56,886 - DEBUG - VM ctest-TestBasicPolicy-09790161-69000420 launched on Node cn-jenkins-deploy-platform-ansible-os-2128-1 2024-10-23 11:08:56,978 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/09fb5bdf-2b87-47c1-aa61-898f517f44eb 2024-10-23 11:08:56,990 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/44c9ab7b-55e5-417c-b747-19efaba78a81 2024-10-23 11:08:58,247 - 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.63 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.846 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.846/3.238/5.631/2.392 ms') 2024-10-23 11:08:58,247 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-09790161-69000420 passed 2024-10-23 11:08:58,412 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 11:08:58,413 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-09790161-69000420, IP 63.181.242.195, Port 22 2024-10-23 11:08:58,582 - DEBUG - VM ctest-TestBasicPolicy-09790161-69000420 is ready for SSH connections 2024-10-23 11:08:58,582 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 11:08:58,583 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 63.181.242.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 11:08:58,583 - DEBUG - ping -s 56 -c 3 -W 1 63.181.242.195 2024-10-23 11:09:02,723 - DEBUG - PING 63.181.242.195 (63.181.242.195): 56 data bytes 64 bytes from 63.181.242.195: seq=0 ttl=63 time=4.149 ms 64 bytes from 63.181.242.195: seq=1 ttl=63 time=0.865 ms 64 bytes from 63.181.242.195: seq=2 ttl=63 time=0.901 ms --- 63.181.242.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.865/1.971/4.149 ms 2024-10-23 11:09:02,723 - INFO - Ping to IP 63.181.242.195 from VM ctest-TestBasicPolicy-09790161-75089904 passed 2024-10-23 11:09:02,924 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2a9b8fad-1af8-465f-a87a-63a459e3f9be", "href": "http://10.0.0.35:8082/network-policy/2a9b8fad-1af8-465f-a87a-63a459e3f9be"}} 2024-10-23 11:09:02,924 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-23 11:09:02,924 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 63.181.242.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2024-10-23 11:09:02,924 - DEBUG - ping -s 56 -c 3 -W 1 63.181.242.195 2024-10-23 11:09:06,155 - DEBUG - PING 63.181.242.195 (63.181.242.195): 56 data bytes --- 63.181.242.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-23 11:09:06,155 - WARNING - Ping to IP 63.181.242.195 from VM ctest-TestBasicPolicy-09790161-75089904 failed 2024-10-23 11:09:06,155 - INFO - Deleting VM ctest-TestBasicPolicy-09790161-69000420 2024-10-23 11:09:06,245 - INFO - Deleting VM ctest-TestBasicPolicy-09790161-75089904 2024-10-23 11:09:06,767 - INFO - Deleted policy ctest-policy-allow-all-16077942 2024-10-23 11:09:06,767 - INFO - Deleting VN ctest-vn-60340358 2024-10-23 11:09:06,819 - DEBUG - VN 5b9efbad-4ad9-4c18-a60d-2301104d9167 still in use: Unable to complete operation on network 5b9efbad-4ad9-4c18-a60d-2301104d9167. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f0a4ac9a-6a3f-4cfc-9db4-01349e8790dc'] 2024-10-23 11:09:06,819 - WARNING - Deleting VN ctest-vn-60340358 failed..Will retry 2024-10-23 11:09:08,951 - DEBUG - Response for deleting network () 2024-10-23 11:09:08,952 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e03c1def-dbe0-4eb4-b5c2-489c1fb40686 2024-10-23 11:09:08,966 - DEBUG - Response Code: 404 2024-10-23 11:09:08,967 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 11:09:08,974 - DEBUG - Requesting: http://10.0.0.35:8082/domain/150b0199-a4fe-4355-9e53-d28bec7d44ea 2024-10-23 11:09:08,990 - DEBUG - Requesting: http://10.0.0.35:8082/project/aeeed507-67f9-4c6c-9f0c-bc8afd87f556 2024-10-23 11:09:09,080 - INFO - Validated that VN ctest-vn-60340358 is not found in API Server 2024-10-23 11:09:09,095 - DEBUG - VN ctest-vn-60340358 is not present in Agent 10.0.0.35 2024-10-23 11:09:09,095 - INFO - Validated that VN ctest-vn-60340358 is not in any agent 2024-10-23 11:09:09,114 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-60340358 info 2024-10-23 11:09:09,114 - INFO - Deleting VN ctest-vn-37937317 2024-10-23 11:09:09,258 - DEBUG - Response for deleting network () 2024-10-23 11:09:09,258 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fe1659e7-505d-486a-95a3-1da8f2c04c8b 2024-10-23 11:09:09,272 - DEBUG - Response Code: 404 2024-10-23 11:09:09,273 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2024-10-23 11:09:09,280 - DEBUG - Requesting: http://10.0.0.35:8082/domain/150b0199-a4fe-4355-9e53-d28bec7d44ea 2024-10-23 11:09:09,336 - DEBUG - Requesting: http://10.0.0.35:8082/project/aeeed507-67f9-4c6c-9f0c-bc8afd87f556 2024-10-23 11:09:09,423 - INFO - Validated that VN ctest-vn-37937317 is not found in API Server 2024-10-23 11:09:09,449 - DEBUG - VN ctest-vn-37937317 is not present in Agent 10.0.0.35 2024-10-23 11:09:09,449 - INFO - Validated that VN ctest-vn-37937317 is not in any agent 2024-10-23 11:09:09,470 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-37937317 info 2024-10-23 11:09:09,735 - DEBUG - No XMPP flaps were noticed during the test 2024-10-23 11:09:09,736 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:32] 2024-10-23 11:09:09,736 - INFO - -------------------------------------------------------------------------------- 2024-10-23 11:09:10,518 - INFO - Deleted project: ctest-TestBasicPolicy-09790161, ID : aeeed507-67f9-4c6c-9f0c-bc8afd87f556