2024-10-28 13:24:41,519 - INFO - Domain Default found not creating 2024-10-28 13:24:41,706 - INFO - Project ctest-TestBasicPolicy-00987501 not found, creating it 2024-10-28 13:24:42,250 - INFO - Created Project:ctest-TestBasicPolicy-00987501, ID : 11e506db-ad65-45a4-8733-32f28f3ba2f2 2024-10-28 13:24:43,918 - INFO - ================================================================================ 2024-10-28 13:24:43,919 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-28 13:24:43,919 - 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-28 13:24:44,189 - DEBUG - Nothing to compare xmpp stats {'10.0.0.52': {'10.20.0.8': '0'}} with 2024-10-28 13:24:44,190 - INFO - Initial checks done. Running the testcase now 2024-10-28 13:24:44,190 - INFO - 2024-10-28 13:24:44,792 - DEBUG - Response for create_network : {'network': {'id': 'd17c87d9-7bc5-4a87-9471-4e71a6674ad2', 'name': 'ctest-vn-39805984', 'tenant_id': '11e506dbad6545a4873332f28f3ba2f2', 'project_id': '11e506dbad6545a4873332f28f3ba2f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-vn-39805984'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 13:24:45,013 - DEBUG - Response for create_subnet : {'subnet': {'id': '2caead6d-1936-48f4-a6c5-94c2d0e58e0d', 'name': '', 'tenant_id': '11e506dbad6545a4873332f28f3ba2f2', 'network_id': 'd17c87d9-7bc5-4a87-9471-4e71a6674ad2', 'ip_version': 4, 'cidr': '216.124.153.128/26', 'allocation_pools': [{'start': '216.124.153.130', 'end': '216.124.153.190'}], 'gateway_ip': '216.124.153.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.124.153.130', 'tags': [], 'project_id': '11e506dbad6545a4873332f28f3ba2f2'}} 2024-10-28 13:24:45,033 - INFO - Created VN ctest-vn-39805984 2024-10-28 13:24:45,094 - DEBUG - VN ctest-vn-39805984 UUID is d17c87d9-7bc5-4a87-9471-4e71a6674ad2 2024-10-28 13:24:45,454 - DEBUG - Response for create_network : {'network': {'id': '2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1', 'name': 'ctest-vn-63613816', 'tenant_id': '11e506dbad6545a4873332f28f3ba2f2', 'project_id': '11e506dbad6545a4873332f28f3ba2f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-vn-63613816'], 'port_security_enabled': True, 'description': ''}} 2024-10-28 13:24:45,697 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c2da947-aee8-4449-9273-83281bd13675', 'name': '', 'tenant_id': '11e506dbad6545a4873332f28f3ba2f2', 'network_id': '2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1', 'ip_version': 4, 'cidr': '105.108.197.192/26', 'allocation_pools': [{'start': '105.108.197.194', 'end': '105.108.197.254'}], 'gateway_ip': '105.108.197.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.108.197.194', 'tags': [], 'project_id': '11e506dbad6545a4873332f28f3ba2f2'}} 2024-10-28 13:24:45,724 - INFO - Created VN ctest-vn-63613816 2024-10-28 13:24:45,786 - DEBUG - VN ctest-vn-63613816 UUID is 2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1 2024-10-28 13:24:45,919 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984, 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-00987501:ctest-vn-63613816, 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-28 13:24:46,250 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd17c87d9-7bc5-4a87-9471-4e71a6674ad2', 'name': 'ctest-vn-39805984', 'tenant_id': '11e506dbad6545a4873332f28f3ba2f2', 'project_id': '11e506dbad6545a4873332f28f3ba2f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2caead6d-1936-48f4-a6c5-94c2d0e58e0d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-vn-39805984'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-policy-allow-all-29676893']], 'subnet_ipam': [{'subnet_cidr': '216.124.153.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 13:24:46,651 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1', 'name': 'ctest-vn-63613816', 'tenant_id': '11e506dbad6545a4873332f28f3ba2f2', 'project_id': '11e506dbad6545a4873332f28f3ba2f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c2da947-aee8-4449-9273-83281bd13675'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-vn-63613816'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-policy-allow-all-29676893']], 'subnet_ipam': [{'subnet_cidr': '105.108.197.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-28 13:24:46,842 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 13:24:47,158 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 13:24:47,235 - DEBUG - Requesting: http://10.0.0.52:8082/domain/9d6a080c-da13-4094-a721-2b615a7711a0 2024-10-28 13:24:47,283 - DEBUG - Requesting: http://10.0.0.52:8082/project/11e506db-ad65-45a4-8733-32f28f3ba2f2 2024-10-28 13:24:47,371 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/d17c87d9-7bc5-4a87-9471-4e71a6674ad2 2024-10-28 13:24:47,392 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/d17c87d9-7bc5-4a87-9471-4e71a6674ad2 2024-10-28 13:24:47,409 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/2db0df59-c012-4344-9e7a-ab5976ff4892 2024-10-28 13:24:47,422 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/2db0df59-c012-4344-9e7a-ab5976ff4892 2024-10-28 13:24:47,431 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/ad9837c3-6bf1-42bb-9b12-32effae14889 2024-10-28 13:24:47,441 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 13:24:47,441 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/d17c87d9-7bc5-4a87-9471-4e71a6674ad2 2024-10-28 13:24:47,455 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/2db0df59-c012-4344-9e7a-ab5976ff4892 2024-10-28 13:24:47,484 - INFO - Verified VN network id 9 for VN d17c87d9-7bc5-4a87-9471-4e71a6674ad2 2024-10-28 13:24:47,484 - INFO - Verifications in API Server for VN ctest-vn-39805984 passed 2024-10-28 13:24:47,484 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/d17c87d9-7bc5-4a87-9471-4e71a6674ad2 2024-10-28 13:24:47,498 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/2db0df59-c012-4344-9e7a-ab5976ff4892 2024-10-28 13:24:47,510 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/2db0df59-c012-4344-9e7a-ab5976ff4892 2024-10-28 13:24:47,526 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/ad9837c3-6bf1-42bb-9b12-32effae14889 2024-10-28 13:24:47,545 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00987501', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15095089419193240199', 'uuid-lslong': '10696416840011696850'}, 'enable': 'true', 'created': '2024-10-28T13:24:44', 'last-modified': '2024-10-28T13:24:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.324985'} 2024-10-28 13:24:47,555 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-28 13:24:47,555 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39805984 passed 2024-10-28 13:24:47,555 - DEBUG - ====Verifying policy data for ctest-vn-39805984 in API_Server ====== 2024-10-28 13:24:47,555 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 13:24:47,565 - DEBUG - Requesting: http://10.0.0.52:8082/domain/9d6a080c-da13-4094-a721-2b615a7711a0 2024-10-28 13:24:47,582 - DEBUG - Requesting: http://10.0.0.52:8082/project/11e506db-ad65-45a4-8733-32f28f3ba2f2 2024-10-28 13:24:47,673 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/d17c87d9-7bc5-4a87-9471-4e71a6674ad2 2024-10-28 13:24:47,689 - DEBUG - ==>Verifying data for policy with id: b54298f7-22cc-45a4-badd-1229d40cb111, fqn: ['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-policy-allow-all-29676893'] 2024-10-28 13:24:47,689 - INFO - VN ctest-vn-39805984 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 13:24:47,689 - DEBUG - Verifying the vn in opserver 2024-10-28 13:24:47,689 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984 virtual network link through opserver 10.0.0.52 2024-10-28 13:24:47,689 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-10-28 13:24:47,986 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-10-28 13:24:48,053 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984?flat'} 2024-10-28 13:24:48,053 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984 is found in opserver 2024-10-28 13:24:48,064 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 13:24:48,069 - DEBUG - VRF ids for VN ctest-vn-39805984: {} 2024-10-28 13:24:48,069 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 13:24:48,075 - DEBUG - Requesting: http://10.0.0.52:8082/domain/9d6a080c-da13-4094-a721-2b615a7711a0 2024-10-28 13:24:48,088 - DEBUG - Requesting: http://10.0.0.52:8082/project/11e506db-ad65-45a4-8733-32f28f3ba2f2 2024-10-28 13:24:48,167 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1 2024-10-28 13:24:48,187 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1 2024-10-28 13:24:48,201 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/4f75a678-66ab-4633-acf9-bedc3e529966 2024-10-28 13:24:48,211 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/4f75a678-66ab-4633-acf9-bedc3e529966 2024-10-28 13:24:48,221 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/70b0cf7d-03e1-42bc-a2d0-d34dcbad4625 2024-10-28 13:24:48,229 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 13:24:48,229 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1 2024-10-28 13:24:48,242 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/4f75a678-66ab-4633-acf9-bedc3e529966 2024-10-28 13:24:48,263 - INFO - Verified VN network id 10 for VN 2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1 2024-10-28 13:24:48,263 - INFO - Verifications in API Server for VN ctest-vn-63613816 passed 2024-10-28 13:24:48,264 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1 2024-10-28 13:24:48,282 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/4f75a678-66ab-4633-acf9-bedc3e529966 2024-10-28 13:24:48,295 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/4f75a678-66ab-4633-acf9-bedc3e529966 2024-10-28 13:24:48,305 - DEBUG - Requesting: http://10.0.0.52:8082/route-target/70b0cf7d-03e1-42bc-a2d0-d34dcbad4625 2024-10-28 13:24:48,322 - DEBUG - Control-node 10.0.0.52 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-63613816', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00987501', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3325169425267575580', 'uuid-lslong': '12241260132844440785'}, 'enable': 'true', 'created': '2024-10-28T13:24:45', 'last-modified': '2024-10-28T13:24:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.773578'} 2024-10-28 13:24:48,332 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-28 13:24:48,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63613816 passed 2024-10-28 13:24:48,332 - DEBUG - ====Verifying policy data for ctest-vn-63613816 in API_Server ====== 2024-10-28 13:24:48,332 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 13:24:48,340 - DEBUG - Requesting: http://10.0.0.52:8082/domain/9d6a080c-da13-4094-a721-2b615a7711a0 2024-10-28 13:24:48,357 - DEBUG - Requesting: http://10.0.0.52:8082/project/11e506db-ad65-45a4-8733-32f28f3ba2f2 2024-10-28 13:24:48,448 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-network/2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1 2024-10-28 13:24:48,464 - DEBUG - ==>Verifying data for policy with id: b54298f7-22cc-45a4-badd-1229d40cb111, fqn: ['default-domain', 'ctest-TestBasicPolicy-00987501', 'ctest-policy-allow-all-29676893'] 2024-10-28 13:24:48,464 - INFO - VN ctest-vn-63613816 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-28 13:24:48,464 - DEBUG - Verifying the vn in opserver 2024-10-28 13:24:48,464 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-63613816 virtual network link through opserver 10.0.0.52 2024-10-28 13:24:48,464 - DEBUG - Requesting: http://10.0.0.52:8081/analytics/uves/virtual-networks 2024-10-28 13:24:48,477 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-63613816', 'href': 'http://10.0.0.52:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-63613816?flat'} 2024-10-28 13:24:48,478 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-63613816 is found in opserver 2024-10-28 13:24:48,491 - DEBUG - Do not have enough data to verify VN in agent 2024-10-28 13:24:48,498 - DEBUG - VRF ids for VN ctest-vn-63613816: {} 2024-10-28 13:24:48,567 - DEBUG - Services list from nova: [, , ] 2024-10-28 13:24:49,834 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2160-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2160-1) 2024-10-28 13:24:51,135 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2160-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2160-1) 2024-10-28 13:24:51,135 - INFO - Waiting for VM ctest-TestBasicPolicy-00987501-98724146 to be up.. 2024-10-28 13:24:51,273 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-28 13:24:56,368 - DEBUG - VM is in ACTIVE state now 2024-10-28 13:24:56,369 - INFO - VM name : ctest-TestBasicPolicy-00987501-98724146 2024-10-28 13:24:56,463 - DEBUG - VM ctest-TestBasicPolicy-00987501-98724146 ID is ae0e84d2-0c06-402b-9ff4-b1ce38a2cf47 2024-10-28 13:24:56,484 - DEBUG - VM ctest-TestBasicPolicy-00987501-98724146 launched on Node cn-jenkins-deploy-platform-ansible-os-2160-1 2024-10-28 13:24:56,579 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/ae0e84d2-0c06-402b-9ff4-b1ce38a2cf47 2024-10-28 13:24:56,589 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/98746980-458a-4e32-ad24-2d3bfd0f2df5 2024-10-28 13:24:59,869 - 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-28 13:24:59,870 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00987501-98724146 failed! 2024-10-28 13:24:59,930 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-00987501:ctest-vn-39805984 is 216.124.153.129 and allocation pool is NOT set 2024-10-28 13:25:01,997 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=8.38 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.538 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 = 0.538/4.458/8.379/3.920 ms') 2024-10-28 13:25:01,997 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00987501-98724146 passed 2024-10-28 13:25:02,162 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:25:02,162 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00987501-98724146, IP 216.124.153.131, Port 22 2024-10-28 13:25:02,335 - DEBUG - VM ctest-TestBasicPolicy-00987501-98724146 is ready for SSH connections 2024-10-28 13:25:02,335 - INFO - Waiting for VM ctest-TestBasicPolicy-00987501-86021336 to be up.. 2024-10-28 13:25:02,448 - DEBUG - VM is in ACTIVE state now 2024-10-28 13:25:02,448 - INFO - VM name : ctest-TestBasicPolicy-00987501-86021336 2024-10-28 13:25:02,544 - DEBUG - VM ctest-TestBasicPolicy-00987501-86021336 ID is d5c0e970-4504-40be-b934-d91870f60ffb 2024-10-28 13:25:02,544 - DEBUG - VM ctest-TestBasicPolicy-00987501-86021336 launched on Node cn-jenkins-deploy-platform-ansible-os-2160-1 2024-10-28 13:25:02,653 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine/d5c0e970-4504-40be-b934-d91870f60ffb 2024-10-28 13:25:02,667 - DEBUG - Requesting: http://10.0.0.52:8082/virtual-machine-interface/51acf23b-2adb-4d71-a123-20208b615de6 2024-10-28 13:25:03,933 - 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=4.66 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.80 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.796/3.226/4.656/1.430 ms') 2024-10-28 13:25:03,934 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-00987501-86021336 passed 2024-10-28 13:25:04,098 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:25:04,098 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00987501-86021336, IP 105.108.197.195, Port 22 2024-10-28 13:25:04,253 - DEBUG - VM ctest-TestBasicPolicy-00987501-86021336 is ready for SSH connections 2024-10-28 13:25:04,254 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:25:04,254 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.108.197.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-10-28 13:25:04,254 - DEBUG - ping -s 56 -c 3 -W 1 105.108.197.195 2024-10-28 13:25:08,341 - DEBUG - PING 105.108.197.195 (105.108.197.195): 56 data bytes 64 bytes from 105.108.197.195: seq=0 ttl=63 time=4.238 ms 64 bytes from 105.108.197.195: seq=1 ttl=63 time=0.957 ms 64 bytes from 105.108.197.195: seq=2 ttl=63 time=0.975 ms --- 105.108.197.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.957/2.056/4.238 ms 2024-10-28 13:25:08,341 - INFO - Ping to IP 105.108.197.195 from VM ctest-TestBasicPolicy-00987501-98724146 passed 2024-10-28 13:25:08,549 - DEBUG - Policy Update Response {"network-policy": {"uuid": "b54298f7-22cc-45a4-badd-1229d40cb111", "href": "http://10.0.0.52:8082/network-policy/b54298f7-22cc-45a4-badd-1229d40cb111"}} 2024-10-28 13:25:08,550 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-28 13:25:08,550 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.108.197.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.52, gateway password: c0ntrail123 2024-10-28 13:25:08,550 - DEBUG - ping -s 56 -c 3 -W 1 105.108.197.195 2024-10-28 13:25:11,776 - DEBUG - PING 105.108.197.195 (105.108.197.195): 56 data bytes 64 bytes from 105.108.197.195: seq=0 ttl=63 time=1.366 ms --- 105.108.197.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.366/1.366/1.366 ms 2024-10-28 13:25:11,776 - WARNING - Ping to IP 105.108.197.195 from VM ctest-TestBasicPolicy-00987501-98724146 failed 2024-10-28 13:25:11,776 - INFO - Deleting VM ctest-TestBasicPolicy-00987501-86021336 2024-10-28 13:25:11,881 - INFO - Deleting VM ctest-TestBasicPolicy-00987501-98724146 2024-10-28 13:25:12,398 - INFO - Deleted policy ctest-policy-allow-all-29676893 2024-10-28 13:25:12,398 - INFO - Deleting VN ctest-vn-63613816 2024-10-28 13:25:12,461 - DEBUG - VN 2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1 still in use: Unable to complete operation on network 2e255ff9-8b10-4b1c-a9e1-b13bdd580cd1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-ac92b6b2-e424-44dc-b595-a98a9e3fd916'] 2024-10-28 13:25:12,461 - WARNING - Deleting VN ctest-vn-63613816 failed..Will retry 2024-10-28 13:25:14,601 - DEBUG - Response for deleting network () 2024-10-28 13:25:14,601 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/4f75a678-66ab-4633-acf9-bedc3e529966 2024-10-28 13:25:14,612 - DEBUG - Response Code: 404 2024-10-28 13:25:14,612 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 13:25:14,619 - DEBUG - Requesting: http://10.0.0.52:8082/domain/9d6a080c-da13-4094-a721-2b615a7711a0 2024-10-28 13:25:14,686 - DEBUG - Requesting: http://10.0.0.52:8082/project/11e506db-ad65-45a4-8733-32f28f3ba2f2 2024-10-28 13:25:14,771 - INFO - Validated that VN ctest-vn-63613816 is not found in API Server 2024-10-28 13:25:14,784 - DEBUG - VN ctest-vn-63613816 is not present in Agent 10.0.0.52 2024-10-28 13:25:14,784 - INFO - Validated that VN ctest-vn-63613816 is not in any agent 2024-10-28 13:25:14,804 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-63613816 info 2024-10-28 13:25:14,804 - INFO - Deleting VN ctest-vn-39805984 2024-10-28 13:25:14,947 - DEBUG - Response for deleting network () 2024-10-28 13:25:14,947 - DEBUG - Requesting: http://10.0.0.52:8082/routing-instance/2db0df59-c012-4344-9e7a-ab5976ff4892 2024-10-28 13:25:14,955 - DEBUG - Response Code: 404 2024-10-28 13:25:14,955 - DEBUG - Requesting: http://10.0.0.52:8082/domains 2024-10-28 13:25:14,963 - DEBUG - Requesting: http://10.0.0.52:8082/domain/9d6a080c-da13-4094-a721-2b615a7711a0 2024-10-28 13:25:15,022 - DEBUG - Requesting: http://10.0.0.52:8082/project/11e506db-ad65-45a4-8733-32f28f3ba2f2 2024-10-28 13:25:15,110 - INFO - Validated that VN ctest-vn-39805984 is not found in API Server 2024-10-28 13:25:15,125 - DEBUG - VN ctest-vn-39805984 is not present in Agent 10.0.0.52 2024-10-28 13:25:15,125 - INFO - Validated that VN ctest-vn-39805984 is not in any agent 2024-10-28 13:25:15,144 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-39805984 info 2024-10-28 13:25:15,415 - DEBUG - No XMPP flaps were noticed during the test 2024-10-28 13:25:15,415 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:32] 2024-10-28 13:25:15,415 - INFO - -------------------------------------------------------------------------------- 2024-10-28 13:25:16,135 - INFO - Deleted project: ctest-TestBasicPolicy-00987501, ID : 11e506db-ad65-45a4-8733-32f28f3ba2f2