2024-10-24 14:33:15,516 - INFO - Domain Default found not creating 2024-10-24 14:33:15,695 - INFO - Project ctest-TestBasicPolicy-68175458 not found, creating it 2024-10-24 14:33:16,175 - INFO - Created Project:ctest-TestBasicPolicy-68175458, ID : 030df691-e583-4a5d-8f37-53da6e92d116 2024-10-24 14:33:17,722 - INFO - ================================================================================ 2024-10-24 14:33:17,722 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-24 14:33:17,722 - 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-24 14:33:17,980 - DEBUG - Nothing to compare xmpp stats {'10.0.0.54': {'10.20.0.17': '0'}} with 2024-10-24 14:33:17,980 - INFO - Initial checks done. Running the testcase now 2024-10-24 14:33:17,980 - INFO - 2024-10-24 14:33:18,554 - DEBUG - Response for create_network : {'network': {'id': '1b28457e-1fb9-40a0-9595-c5e2faeae9cd', 'name': 'ctest-vn-17988529', 'tenant_id': '030df691e5834a5d8f3753da6e92d116', 'project_id': '030df691e5834a5d8f3753da6e92d116', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-vn-17988529'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 14:33:18,745 - DEBUG - Response for create_subnet : {'subnet': {'id': '151d8672-cfb3-40db-ac86-c6aada281ab4', 'name': '', 'tenant_id': '030df691e5834a5d8f3753da6e92d116', 'network_id': '1b28457e-1fb9-40a0-9595-c5e2faeae9cd', 'ip_version': 4, 'cidr': '195.103.208.128/26', 'allocation_pools': [{'start': '195.103.208.130', 'end': '195.103.208.190'}], 'gateway_ip': '195.103.208.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.103.208.130', 'tags': [], 'project_id': '030df691e5834a5d8f3753da6e92d116'}} 2024-10-24 14:33:18,769 - INFO - Created VN ctest-vn-17988529 2024-10-24 14:33:18,826 - DEBUG - VN ctest-vn-17988529 UUID is 1b28457e-1fb9-40a0-9595-c5e2faeae9cd 2024-10-24 14:33:19,156 - DEBUG - Response for create_network : {'network': {'id': '7dec2325-af4b-4eb2-879b-c3049cfc4b8f', 'name': 'ctest-vn-80972663', 'tenant_id': '030df691e5834a5d8f3753da6e92d116', 'project_id': '030df691e5834a5d8f3753da6e92d116', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-vn-80972663'], 'port_security_enabled': True, 'description': ''}} 2024-10-24 14:33:19,363 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0e4896b-9a6d-49cd-b01f-51d5a7524c99', 'name': '', 'tenant_id': '030df691e5834a5d8f3753da6e92d116', 'network_id': '7dec2325-af4b-4eb2-879b-c3049cfc4b8f', 'ip_version': 4, 'cidr': '4.90.28.192/26', 'allocation_pools': [{'start': '4.90.28.194', 'end': '4.90.28.254'}], 'gateway_ip': '4.90.28.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.90.28.194', 'tags': [], 'project_id': '030df691e5834a5d8f3753da6e92d116'}} 2024-10-24 14:33:19,385 - INFO - Created VN ctest-vn-80972663 2024-10-24 14:33:19,442 - DEBUG - VN ctest-vn-80972663 UUID is 7dec2325-af4b-4eb2-879b-c3049cfc4b8f 2024-10-24 14:33:19,568 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529, 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-68175458:ctest-vn-80972663, 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-24 14:33:19,895 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b28457e-1fb9-40a0-9595-c5e2faeae9cd', 'name': 'ctest-vn-17988529', 'tenant_id': '030df691e5834a5d8f3753da6e92d116', 'project_id': '030df691e5834a5d8f3753da6e92d116', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['151d8672-cfb3-40db-ac86-c6aada281ab4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-vn-17988529'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-policy-allow-all-06787313']], 'subnet_ipam': [{'subnet_cidr': '195.103.208.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 14:33:20,162 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7dec2325-af4b-4eb2-879b-c3049cfc4b8f', 'name': 'ctest-vn-80972663', 'tenant_id': '030df691e5834a5d8f3753da6e92d116', 'project_id': '030df691e5834a5d8f3753da6e92d116', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0e4896b-9a6d-49cd-b01f-51d5a7524c99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-vn-80972663'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-policy-allow-all-06787313']], 'subnet_ipam': [{'subnet_cidr': '4.90.28.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-24 14:33:20,330 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-10-24 14:33:20,627 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-10-24 14:33:20,661 - DEBUG - Requesting: http://10.0.0.54:8082/domain/b019e5e2-57b9-4a6f-8789-7bc862205117 2024-10-24 14:33:20,679 - DEBUG - Requesting: http://10.0.0.54:8082/project/030df691-e583-4a5d-8f37-53da6e92d116 2024-10-24 14:33:20,766 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/1b28457e-1fb9-40a0-9595-c5e2faeae9cd 2024-10-24 14:33:20,783 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/1b28457e-1fb9-40a0-9595-c5e2faeae9cd 2024-10-24 14:33:20,798 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f33a2275-a1a4-45a3-b6fe-7d0cafca2385 2024-10-24 14:33:20,810 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f33a2275-a1a4-45a3-b6fe-7d0cafca2385 2024-10-24 14:33:20,821 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/8f4624f9-f725-44c2-8215-1ed3c5814735 2024-10-24 14:33:20,831 - DEBUG - Route Targets: ['target:64512:8000004'] 2024-10-24 14:33:20,831 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/1b28457e-1fb9-40a0-9595-c5e2faeae9cd 2024-10-24 14:33:20,849 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f33a2275-a1a4-45a3-b6fe-7d0cafca2385 2024-10-24 14:33:20,875 - INFO - Verified VN network id 9 for VN 1b28457e-1fb9-40a0-9595-c5e2faeae9cd 2024-10-24 14:33:20,875 - INFO - Verifications in API Server for VN ctest-vn-17988529 passed 2024-10-24 14:33:20,875 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/1b28457e-1fb9-40a0-9595-c5e2faeae9cd 2024-10-24 14:33:20,893 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f33a2275-a1a4-45a3-b6fe-7d0cafca2385 2024-10-24 14:33:20,905 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f33a2275-a1a4-45a3-b6fe-7d0cafca2385 2024-10-24 14:33:20,918 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/8f4624f9-f725-44c2-8215-1ed3c5814735 2024-10-24 14:33:20,933 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68175458', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1956890446092910752', 'uuid-lslong': '10778738861844130253'}, 'enable': 'true', 'created': '2024-10-24T14:33:18', 'last-modified': '2024-10-24T14:33:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.072448'} 2024-10-24 14:33:20,940 - DEBUG - Route Targets: ['target:64512:8000004'] 2024-10-24 14:33:20,941 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17988529 passed 2024-10-24 14:33:20,941 - DEBUG - ====Verifying policy data for ctest-vn-17988529 in API_Server ====== 2024-10-24 14:33:20,941 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-10-24 14:33:20,948 - DEBUG - Requesting: http://10.0.0.54:8082/domain/b019e5e2-57b9-4a6f-8789-7bc862205117 2024-10-24 14:33:20,964 - DEBUG - Requesting: http://10.0.0.54:8082/project/030df691-e583-4a5d-8f37-53da6e92d116 2024-10-24 14:33:21,052 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/1b28457e-1fb9-40a0-9595-c5e2faeae9cd 2024-10-24 14:33:21,067 - DEBUG - ==>Verifying data for policy with id: 15f1ad0e-3e4d-4080-99af-c7742eb4e545, fqn: ['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-policy-allow-all-06787313'] 2024-10-24 14:33:21,067 - INFO - VN ctest-vn-17988529 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 14:33:21,067 - DEBUG - Verifying the vn in opserver 2024-10-24 14:33:21,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529 virtual network link through opserver 10.0.0.54 2024-10-24 14:33:21,067 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2024-10-24 14:33:21,362 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2024-10-24 14:33:21,425 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529?flat'} 2024-10-24 14:33:21,425 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529 is found in opserver 2024-10-24 14:33:21,438 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 14:33:21,443 - DEBUG - VRF ids for VN ctest-vn-17988529: {} 2024-10-24 14:33:21,443 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-10-24 14:33:21,450 - DEBUG - Requesting: http://10.0.0.54:8082/domain/b019e5e2-57b9-4a6f-8789-7bc862205117 2024-10-24 14:33:21,464 - DEBUG - Requesting: http://10.0.0.54:8082/project/030df691-e583-4a5d-8f37-53da6e92d116 2024-10-24 14:33:21,543 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7dec2325-af4b-4eb2-879b-c3049cfc4b8f 2024-10-24 14:33:21,559 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7dec2325-af4b-4eb2-879b-c3049cfc4b8f 2024-10-24 14:33:21,574 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/2ea2ad01-e713-4f2c-8fcd-374fde5aa056 2024-10-24 14:33:21,583 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/2ea2ad01-e713-4f2c-8fcd-374fde5aa056 2024-10-24 14:33:21,592 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/103a7718-cbdf-403b-b715-bef17e2cf5fc 2024-10-24 14:33:21,600 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 14:33:21,600 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7dec2325-af4b-4eb2-879b-c3049cfc4b8f 2024-10-24 14:33:21,615 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/2ea2ad01-e713-4f2c-8fcd-374fde5aa056 2024-10-24 14:33:21,638 - INFO - Verified VN network id 10 for VN 7dec2325-af4b-4eb2-879b-c3049cfc4b8f 2024-10-24 14:33:21,638 - INFO - Verifications in API Server for VN ctest-vn-80972663 passed 2024-10-24 14:33:21,638 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7dec2325-af4b-4eb2-879b-c3049cfc4b8f 2024-10-24 14:33:21,653 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/2ea2ad01-e713-4f2c-8fcd-374fde5aa056 2024-10-24 14:33:21,663 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/2ea2ad01-e713-4f2c-8fcd-374fde5aa056 2024-10-24 14:33:21,675 - DEBUG - Requesting: http://10.0.0.54:8082/route-target/103a7718-cbdf-403b-b715-bef17e2cf5fc 2024-10-24 14:33:21,692 - DEBUG - Control-node 10.0.0.54 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-80972663', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68175458', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9073665994006417074', 'uuid-lslong': '9771618241091488655'}, 'enable': 'true', 'created': '2024-10-24T14:33:19', 'last-modified': '2024-10-24T14:33:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.564574'} 2024-10-24 14:33:21,700 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-24 14:33:21,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80972663 passed 2024-10-24 14:33:21,700 - DEBUG - ====Verifying policy data for ctest-vn-80972663 in API_Server ====== 2024-10-24 14:33:21,700 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-10-24 14:33:21,708 - DEBUG - Requesting: http://10.0.0.54:8082/domain/b019e5e2-57b9-4a6f-8789-7bc862205117 2024-10-24 14:33:21,723 - DEBUG - Requesting: http://10.0.0.54:8082/project/030df691-e583-4a5d-8f37-53da6e92d116 2024-10-24 14:33:21,812 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-network/7dec2325-af4b-4eb2-879b-c3049cfc4b8f 2024-10-24 14:33:21,832 - DEBUG - ==>Verifying data for policy with id: 15f1ad0e-3e4d-4080-99af-c7742eb4e545, fqn: ['default-domain', 'ctest-TestBasicPolicy-68175458', 'ctest-policy-allow-all-06787313'] 2024-10-24 14:33:21,832 - INFO - VN ctest-vn-80972663 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-24 14:33:21,832 - DEBUG - Verifying the vn in opserver 2024-10-24 14:33:21,832 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-80972663 virtual network link through opserver 10.0.0.54 2024-10-24 14:33:21,832 - DEBUG - Requesting: http://10.0.0.54:8081/analytics/uves/virtual-networks 2024-10-24 14:33:21,846 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-80972663', 'href': 'http://10.0.0.54:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-80972663?flat'} 2024-10-24 14:33:21,846 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-80972663 is found in opserver 2024-10-24 14:33:21,857 - DEBUG - Do not have enough data to verify VN in agent 2024-10-24 14:33:21,863 - DEBUG - VRF ids for VN ctest-vn-80972663: {} 2024-10-24 14:33:21,923 - DEBUG - Services list from nova: [, , ] 2024-10-24 14:33:22,959 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2141-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2141-1) 2024-10-24 14:33:24,243 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2141-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2141-1) 2024-10-24 14:33:24,243 - INFO - Waiting for VM ctest-TestBasicPolicy-68175458-77596399 to be up.. 2024-10-24 14:33:24,339 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-24 14:33:29,449 - DEBUG - VM is in ACTIVE state now 2024-10-24 14:33:29,449 - INFO - VM name : ctest-TestBasicPolicy-68175458-77596399 2024-10-24 14:33:29,545 - DEBUG - VM ctest-TestBasicPolicy-68175458-77596399 ID is f67643dd-d52d-4a78-a388-ee177c380404 2024-10-24 14:33:29,567 - DEBUG - VM ctest-TestBasicPolicy-68175458-77596399 launched on Node cn-jenkins-deploy-platform-ansible-os-2141-1 2024-10-24 14:33:29,652 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/f67643dd-d52d-4a78-a388-ee177c380404 2024-10-24 14:33:29,664 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/550c9d34-8b02-49be-846e-fa4a9024b36d 2024-10-24 14:33:32,939 - 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 1017ms') 2024-10-24 14:33:32,940 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68175458-77596399 failed! 2024-10-24 14:33:33,026 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-68175458:ctest-vn-17988529 is 195.103.208.129 and allocation pool is NOT set 2024-10-24 14:33:35,094 - 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=7.43 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.423 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.423/3.924/7.425/3.501 ms') 2024-10-24 14:33:35,094 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-68175458-77596399 passed 2024-10-24 14:33:35,266 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:33:35,266 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68175458-77596399, IP 195.103.208.131, Port 22 2024-10-24 14:33:35,422 - DEBUG - VM ctest-TestBasicPolicy-68175458-77596399 is ready for SSH connections 2024-10-24 14:33:35,422 - INFO - Waiting for VM ctest-TestBasicPolicy-68175458-67782108 to be up.. 2024-10-24 14:33:35,507 - DEBUG - VM is in ACTIVE state now 2024-10-24 14:33:35,507 - INFO - VM name : ctest-TestBasicPolicy-68175458-67782108 2024-10-24 14:33:35,588 - DEBUG - VM ctest-TestBasicPolicy-68175458-67782108 ID is 6b6ed05b-de67-4118-b755-ced56b5a51dc 2024-10-24 14:33:35,588 - DEBUG - VM ctest-TestBasicPolicy-68175458-67782108 launched on Node cn-jenkins-deploy-platform-ansible-os-2141-1 2024-10-24 14:33:35,674 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine/6b6ed05b-de67-4118-b755-ced56b5a51dc 2024-10-24 14:33:35,687 - DEBUG - Requesting: http://10.0.0.54:8082/virtual-machine-interface/646bb076-5dac-4922-aca0-5424358c8b43 2024-10-24 14:33:36,948 - 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.91 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.981 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.981/2.446/3.912/1.465 ms') 2024-10-24 14:33:36,948 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-68175458-67782108 passed 2024-10-24 14:33:37,110 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:33:37,110 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-68175458-67782108, IP 4.90.28.195, Port 22 2024-10-24 14:33:37,266 - DEBUG - VM ctest-TestBasicPolicy-68175458-67782108 is ready for SSH connections 2024-10-24 14:33:37,266 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:33:37,266 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 4.90.28.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.54, gateway password: c0ntrail123 2024-10-24 14:33:37,266 - DEBUG - ping -s 56 -c 3 -W 1 4.90.28.195 2024-10-24 14:33:41,271 - DEBUG - PING 4.90.28.195 (4.90.28.195): 56 data bytes 64 bytes from 4.90.28.195: seq=0 ttl=63 time=3.498 ms 64 bytes from 4.90.28.195: seq=1 ttl=63 time=0.938 ms 64 bytes from 4.90.28.195: seq=2 ttl=63 time=0.846 ms --- 4.90.28.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.846/1.760/3.498 ms 2024-10-24 14:33:41,271 - INFO - Ping to IP 4.90.28.195 from VM ctest-TestBasicPolicy-68175458-77596399 passed 2024-10-24 14:33:41,470 - DEBUG - Policy Update Response {"network-policy": {"uuid": "15f1ad0e-3e4d-4080-99af-c7742eb4e545", "href": "http://10.0.0.54:8082/network-policy/15f1ad0e-3e4d-4080-99af-c7742eb4e545"}} 2024-10-24 14:33:41,470 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-24 14:33:41,470 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 4.90.28.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.54, gateway password: c0ntrail123 2024-10-24 14:33:41,470 - DEBUG - ping -s 56 -c 3 -W 1 4.90.28.195 2024-10-24 14:33:44,689 - DEBUG - PING 4.90.28.195 (4.90.28.195): 56 data bytes 64 bytes from 4.90.28.195: seq=0 ttl=63 time=1.493 ms --- 4.90.28.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.493/1.493/1.493 ms 2024-10-24 14:33:44,689 - WARNING - Ping to IP 4.90.28.195 from VM ctest-TestBasicPolicy-68175458-77596399 failed 2024-10-24 14:33:44,689 - INFO - Deleting VM ctest-TestBasicPolicy-68175458-67782108 2024-10-24 14:33:44,762 - INFO - Deleting VM ctest-TestBasicPolicy-68175458-77596399 2024-10-24 14:33:45,934 - INFO - Deleted policy ctest-policy-allow-all-06787313 2024-10-24 14:33:45,935 - INFO - Deleting VN ctest-vn-80972663 2024-10-24 14:33:45,975 - DEBUG - VN 7dec2325-af4b-4eb2-879b-c3049cfc4b8f still in use: Unable to complete operation on network 7dec2325-af4b-4eb2-879b-c3049cfc4b8f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-beaa9bc9-02af-4a8f-8b07-1fa367f9826c'] 2024-10-24 14:33:45,976 - WARNING - Deleting VN ctest-vn-80972663 failed..Will retry 2024-10-24 14:33:48,090 - DEBUG - Response for deleting network () 2024-10-24 14:33:48,090 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/2ea2ad01-e713-4f2c-8fcd-374fde5aa056 2024-10-24 14:33:48,096 - DEBUG - Response Code: 404 2024-10-24 14:33:48,097 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-10-24 14:33:48,108 - DEBUG - Requesting: http://10.0.0.54:8082/domain/b019e5e2-57b9-4a6f-8789-7bc862205117 2024-10-24 14:33:48,168 - DEBUG - Requesting: http://10.0.0.54:8082/project/030df691-e583-4a5d-8f37-53da6e92d116 2024-10-24 14:33:48,249 - INFO - Validated that VN ctest-vn-80972663 is not found in API Server 2024-10-24 14:33:48,261 - DEBUG - VN ctest-vn-80972663 is not present in Agent 10.0.0.54 2024-10-24 14:33:48,261 - INFO - Validated that VN ctest-vn-80972663 is not in any agent 2024-10-24 14:33:48,279 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-80972663 info 2024-10-24 14:33:48,279 - INFO - Deleting VN ctest-vn-17988529 2024-10-24 14:33:48,404 - DEBUG - Response for deleting network () 2024-10-24 14:33:48,404 - DEBUG - Requesting: http://10.0.0.54:8082/routing-instance/f33a2275-a1a4-45a3-b6fe-7d0cafca2385 2024-10-24 14:33:48,412 - DEBUG - Response Code: 404 2024-10-24 14:33:48,412 - DEBUG - Requesting: http://10.0.0.54:8082/domains 2024-10-24 14:33:48,419 - DEBUG - Requesting: http://10.0.0.54:8082/domain/b019e5e2-57b9-4a6f-8789-7bc862205117 2024-10-24 14:33:48,477 - DEBUG - Requesting: http://10.0.0.54:8082/project/030df691-e583-4a5d-8f37-53da6e92d116 2024-10-24 14:33:48,563 - INFO - Validated that VN ctest-vn-17988529 is not found in API Server 2024-10-24 14:33:48,575 - DEBUG - VN ctest-vn-17988529 is not present in Agent 10.0.0.54 2024-10-24 14:33:48,575 - INFO - Validated that VN ctest-vn-17988529 is not in any agent 2024-10-24 14:33:48,591 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17988529 info 2024-10-24 14:33:48,844 - DEBUG - No XMPP flaps were noticed during the test 2024-10-24 14:33:48,844 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-10-24 14:33:48,844 - INFO - -------------------------------------------------------------------------------- 2024-10-24 14:33:49,566 - INFO - Deleted project: ctest-TestBasicPolicy-68175458, ID : 030df691-e583-4a5d-8f37-53da6e92d116