2024-08-21 14:45:23,626 - INFO - Domain Default found not creating 2024-08-21 14:45:23,799 - INFO - Project ctest-TestBasicPolicy-64524616 not found, creating it 2024-08-21 14:45:24,280 - INFO - Created Project:ctest-TestBasicPolicy-64524616, ID : 0986456e-7db7-4943-b83f-e78cd40f9723 2024-08-21 14:45:25,834 - INFO - ================================================================================ 2024-08-21 14:45:25,835 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-21 14:45:25,835 - 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-08-21 14:45:26,090 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with 2024-08-21 14:45:26,090 - INFO - Initial checks done. Running the testcase now 2024-08-21 14:45:26,090 - INFO - 2024-08-21 14:45:26,645 - DEBUG - Response for create_network : {'network': {'id': '10a5e52e-54c4-4db3-998f-dd53dbdd9957', 'name': 'ctest-vn-70862688', 'tenant_id': '0986456e7db74943b83fe78cd40f9723', 'project_id': '0986456e7db74943b83fe78cd40f9723', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-vn-70862688'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 14:45:26,799 - DEBUG - Response for create_subnet : {'subnet': {'id': '3af6c487-5042-438b-a7b7-e8aa76dd4a9a', 'name': '', 'tenant_id': '0986456e7db74943b83fe78cd40f9723', 'network_id': '10a5e52e-54c4-4db3-998f-dd53dbdd9957', 'ip_version': 4, 'cidr': '135.74.22.64/26', 'allocation_pools': [{'start': '135.74.22.66', 'end': '135.74.22.126'}], 'gateway_ip': '135.74.22.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.74.22.66', 'tags': [], 'project_id': '0986456e7db74943b83fe78cd40f9723'}} 2024-08-21 14:45:26,819 - INFO - Created VN ctest-vn-70862688 2024-08-21 14:45:26,869 - DEBUG - VN ctest-vn-70862688 UUID is 10a5e52e-54c4-4db3-998f-dd53dbdd9957 2024-08-21 14:45:27,176 - DEBUG - Response for create_network : {'network': {'id': '11553bd9-2721-47f7-a82f-b5f11c52e9c0', 'name': 'ctest-vn-13727542', 'tenant_id': '0986456e7db74943b83fe78cd40f9723', 'project_id': '0986456e7db74943b83fe78cd40f9723', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-vn-13727542'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 14:45:27,384 - DEBUG - Response for create_subnet : {'subnet': {'id': '00a50c6d-9400-456b-b109-192f2776a4da', 'name': '', 'tenant_id': '0986456e7db74943b83fe78cd40f9723', 'network_id': '11553bd9-2721-47f7-a82f-b5f11c52e9c0', 'ip_version': 4, 'cidr': '186.253.1.64/26', 'allocation_pools': [{'start': '186.253.1.66', 'end': '186.253.1.126'}], 'gateway_ip': '186.253.1.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.253.1.66', 'tags': [], 'project_id': '0986456e7db74943b83fe78cd40f9723'}} 2024-08-21 14:45:27,404 - INFO - Created VN ctest-vn-13727542 2024-08-21 14:45:27,457 - DEBUG - VN ctest-vn-13727542 UUID is 11553bd9-2721-47f7-a82f-b5f11c52e9c0 2024-08-21 14:45:27,572 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688, 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-64524616:ctest-vn-13727542, 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-08-21 14:45:27,866 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '10a5e52e-54c4-4db3-998f-dd53dbdd9957', 'name': 'ctest-vn-70862688', 'tenant_id': '0986456e7db74943b83fe78cd40f9723', 'project_id': '0986456e7db74943b83fe78cd40f9723', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3af6c487-5042-438b-a7b7-e8aa76dd4a9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-vn-70862688'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-policy-allow-all-75333300']], 'subnet_ipam': [{'subnet_cidr': '135.74.22.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 14:45:28,104 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11553bd9-2721-47f7-a82f-b5f11c52e9c0', 'name': 'ctest-vn-13727542', 'tenant_id': '0986456e7db74943b83fe78cd40f9723', 'project_id': '0986456e7db74943b83fe78cd40f9723', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00a50c6d-9400-456b-b109-192f2776a4da'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-vn-13727542'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-policy-allow-all-75333300']], 'subnet_ipam': [{'subnet_cidr': '186.253.1.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 14:45:28,272 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-08-21 14:45:28,569 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-08-21 14:45:28,603 - DEBUG - Requesting: http://10.0.0.33:8082/domain/faa00ce0-8b62-47bc-a31c-2243cdfd0b29 2024-08-21 14:45:28,616 - DEBUG - Requesting: http://10.0.0.33:8082/project/0986456e-7db7-4943-b83f-e78cd40f9723 2024-08-21 14:45:28,686 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10a5e52e-54c4-4db3-998f-dd53dbdd9957 2024-08-21 14:45:28,696 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10a5e52e-54c4-4db3-998f-dd53dbdd9957 2024-08-21 14:45:28,705 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fcbccac9-080c-4611-91ea-b8eee7fec21f 2024-08-21 14:45:28,712 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fcbccac9-080c-4611-91ea-b8eee7fec21f 2024-08-21 14:45:28,721 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4ae9b690-03ae-424a-b534-fff6f8031e56 2024-08-21 14:45:28,728 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 14:45:28,728 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10a5e52e-54c4-4db3-998f-dd53dbdd9957 2024-08-21 14:45:28,736 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fcbccac9-080c-4611-91ea-b8eee7fec21f 2024-08-21 14:45:28,748 - INFO - Verified VN network id 9 for VN 10a5e52e-54c4-4db3-998f-dd53dbdd9957 2024-08-21 14:45:28,748 - INFO - Verifications in API Server for VN ctest-vn-70862688 passed 2024-08-21 14:45:28,748 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10a5e52e-54c4-4db3-998f-dd53dbdd9957 2024-08-21 14:45:28,757 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fcbccac9-080c-4611-91ea-b8eee7fec21f 2024-08-21 14:45:28,763 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fcbccac9-080c-4611-91ea-b8eee7fec21f 2024-08-21 14:45:28,770 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4ae9b690-03ae-424a-b534-fff6f8031e56 2024-08-21 14:45:28,782 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64524616', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1199616862917512627', 'uuid-lslong': '11065306161713355095'}, 'enable': 'true', 'created': '2024-08-21T14:45:26', 'last-modified': '2024-08-21T14:45:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934885'} 2024-08-21 14:45:28,789 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 14:45:28,789 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70862688 passed 2024-08-21 14:45:28,789 - DEBUG - ====Verifying policy data for ctest-vn-70862688 in API_Server ====== 2024-08-21 14:45:28,789 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-08-21 14:45:28,796 - DEBUG - Requesting: http://10.0.0.33:8082/domain/faa00ce0-8b62-47bc-a31c-2243cdfd0b29 2024-08-21 14:45:28,808 - DEBUG - Requesting: http://10.0.0.33:8082/project/0986456e-7db7-4943-b83f-e78cd40f9723 2024-08-21 14:45:28,873 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/10a5e52e-54c4-4db3-998f-dd53dbdd9957 2024-08-21 14:45:28,881 - DEBUG - ==>Verifying data for policy with id: ede33556-76a1-496c-bdf2-cf7160c64c97, fqn: ['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-policy-allow-all-75333300'] 2024-08-21 14:45:28,881 - INFO - VN ctest-vn-70862688 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 14:45:28,881 - DEBUG - Verifying the vn in opserver 2024-08-21 14:45:28,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688 virtual network link through opserver 10.0.0.33 2024-08-21 14:45:28,882 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-08-21 14:45:29,176 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-08-21 14:45:29,236 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688?flat'} 2024-08-21 14:45:29,236 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688 is found in opserver 2024-08-21 14:45:29,246 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 14:45:29,252 - DEBUG - VRF ids for VN ctest-vn-70862688: {} 2024-08-21 14:45:29,252 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-08-21 14:45:29,258 - DEBUG - Requesting: http://10.0.0.33:8082/domain/faa00ce0-8b62-47bc-a31c-2243cdfd0b29 2024-08-21 14:45:29,269 - DEBUG - Requesting: http://10.0.0.33:8082/project/0986456e-7db7-4943-b83f-e78cd40f9723 2024-08-21 14:45:29,337 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/11553bd9-2721-47f7-a82f-b5f11c52e9c0 2024-08-21 14:45:29,349 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/11553bd9-2721-47f7-a82f-b5f11c52e9c0 2024-08-21 14:45:29,357 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ef382add-ad82-4566-baa6-494fad4daf77 2024-08-21 14:45:29,364 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ef382add-ad82-4566-baa6-494fad4daf77 2024-08-21 14:45:29,371 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/62e2e275-feff-42f0-9f19-63b496d96e60 2024-08-21 14:45:29,377 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 14:45:29,377 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/11553bd9-2721-47f7-a82f-b5f11c52e9c0 2024-08-21 14:45:29,385 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ef382add-ad82-4566-baa6-494fad4daf77 2024-08-21 14:45:29,397 - INFO - Verified VN network id 10 for VN 11553bd9-2721-47f7-a82f-b5f11c52e9c0 2024-08-21 14:45:29,397 - INFO - Verifications in API Server for VN ctest-vn-13727542 passed 2024-08-21 14:45:29,397 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/11553bd9-2721-47f7-a82f-b5f11c52e9c0 2024-08-21 14:45:29,408 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ef382add-ad82-4566-baa6-494fad4daf77 2024-08-21 14:45:29,415 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ef382add-ad82-4566-baa6-494fad4daf77 2024-08-21 14:45:29,422 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/62e2e275-feff-42f0-9f19-63b496d96e60 2024-08-21 14:45:29,435 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-13727542', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64524616', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1248970275515615223', 'uuid-lslong': '12119105169444235712'}, 'enable': 'true', 'created': '2024-08-21T14:45:27', 'last-modified': '2024-08-21T14:45:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.352088'} 2024-08-21 14:45:29,442 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 14:45:29,442 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13727542 passed 2024-08-21 14:45:29,442 - DEBUG - ====Verifying policy data for ctest-vn-13727542 in API_Server ====== 2024-08-21 14:45:29,442 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-08-21 14:45:29,449 - DEBUG - Requesting: http://10.0.0.33:8082/domain/faa00ce0-8b62-47bc-a31c-2243cdfd0b29 2024-08-21 14:45:29,461 - DEBUG - Requesting: http://10.0.0.33:8082/project/0986456e-7db7-4943-b83f-e78cd40f9723 2024-08-21 14:45:29,529 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/11553bd9-2721-47f7-a82f-b5f11c52e9c0 2024-08-21 14:45:29,537 - DEBUG - ==>Verifying data for policy with id: ede33556-76a1-496c-bdf2-cf7160c64c97, fqn: ['default-domain', 'ctest-TestBasicPolicy-64524616', 'ctest-policy-allow-all-75333300'] 2024-08-21 14:45:29,537 - INFO - VN ctest-vn-13727542 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 14:45:29,537 - DEBUG - Verifying the vn in opserver 2024-08-21 14:45:29,537 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-13727542 virtual network link through opserver 10.0.0.33 2024-08-21 14:45:29,537 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2024-08-21 14:45:29,548 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-13727542', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-13727542?flat'} 2024-08-21 14:45:29,548 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-13727542 is found in opserver 2024-08-21 14:45:29,559 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 14:45:29,565 - DEBUG - VRF ids for VN ctest-vn-13727542: {} 2024-08-21 14:45:29,618 - DEBUG - Services list from nova: [, , ] 2024-08-21 14:45:30,637 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1691-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1691-1) 2024-08-21 14:45:31,934 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1691-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1691-1) 2024-08-21 14:45:31,934 - INFO - Waiting for VM ctest-TestBasicPolicy-64524616-37344592 to be up.. 2024-08-21 14:45:32,036 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 14:45:37,139 - DEBUG - VM is in ACTIVE state now 2024-08-21 14:45:37,140 - INFO - VM name : ctest-TestBasicPolicy-64524616-37344592 2024-08-21 14:45:37,225 - DEBUG - VM ctest-TestBasicPolicy-64524616-37344592 ID is aa2e29ed-e912-444a-8d73-fae24f1f62f8 2024-08-21 14:45:37,249 - DEBUG - VM ctest-TestBasicPolicy-64524616-37344592 launched on Node cn-jenkins-deploy-platform-ansible-os-1691-1 2024-08-21 14:45:37,343 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/aa2e29ed-e912-444a-8d73-fae24f1f62f8 2024-08-21 14:45:37,354 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/6193234e-b0fe-4842-9b2e-10359df25b74 2024-08-21 14:45:40,638 - 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 1027ms') 2024-08-21 14:45:40,638 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64524616-37344592 failed! 2024-08-21 14:45:40,693 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-64524616:ctest-vn-70862688 is 135.74.22.65 and allocation pool is NOT set 2024-08-21 14:45:42,749 - 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.29 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 1000ms\r\nrtt min/avg/max/mdev = 0.423/1.857/3.291/1.434 ms') 2024-08-21 14:45:42,749 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-64524616-37344592 passed 2024-08-21 14:45:42,897 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:45:42,897 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64524616-37344592, IP 135.74.22.67, Port 22 2024-08-21 14:45:43,048 - DEBUG - VM ctest-TestBasicPolicy-64524616-37344592 is ready for SSH connections 2024-08-21 14:45:43,048 - INFO - Waiting for VM ctest-TestBasicPolicy-64524616-68733064 to be up.. 2024-08-21 14:45:43,133 - DEBUG - VM is in ACTIVE state now 2024-08-21 14:45:43,133 - INFO - VM name : ctest-TestBasicPolicy-64524616-68733064 2024-08-21 14:45:43,216 - DEBUG - VM ctest-TestBasicPolicy-64524616-68733064 ID is 27e81fdc-15b4-41be-a7f5-04854415f141 2024-08-21 14:45:43,216 - DEBUG - VM ctest-TestBasicPolicy-64524616-68733064 launched on Node cn-jenkins-deploy-platform-ansible-os-1691-1 2024-08-21 14:45:43,298 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine/27e81fdc-15b4-41be-a7f5-04854415f141 2024-08-21 14:45:43,306 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-machine-interface/196a639d-3ee5-443d-abba-62ea1326f3c6 2024-08-21 14:45:44,542 - 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=2.71 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.452 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.452/1.580/2.708/1.128 ms') 2024-08-21 14:45:44,542 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-64524616-68733064 passed 2024-08-21 14:45:44,692 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:45:44,693 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-64524616-68733064, IP 186.253.1.67, Port 22 2024-08-21 14:45:44,848 - DEBUG - VM ctest-TestBasicPolicy-64524616-68733064 is ready for SSH connections 2024-08-21 14:45:44,848 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:45:44,848 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 186.253.1.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-08-21 14:45:44,849 - DEBUG - ping -s 56 -c 3 -W 1 186.253.1.67 2024-08-21 14:45:48,561 - DEBUG - PING 186.253.1.67 (186.253.1.67): 56 data bytes 64 bytes from 186.253.1.67: seq=0 ttl=63 time=3.333 ms 64 bytes from 186.253.1.67: seq=1 ttl=63 time=0.808 ms 64 bytes from 186.253.1.67: seq=2 ttl=63 time=0.866 ms --- 186.253.1.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.808/1.669/3.333 ms 2024-08-21 14:45:48,561 - INFO - Ping to IP 186.253.1.67 from VM ctest-TestBasicPolicy-64524616-37344592 passed 2024-08-21 14:45:48,736 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ede33556-76a1-496c-bdf2-cf7160c64c97", "href": "http://10.0.0.33:8082/network-policy/ede33556-76a1-496c-bdf2-cf7160c64c97"}} 2024-08-21 14:45:48,736 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 14:45:48,737 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 186.253.1.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.33, gateway password: c0ntrail123 2024-08-21 14:45:48,737 - DEBUG - ping -s 56 -c 3 -W 1 186.253.1.67 2024-08-21 14:45:51,930 - DEBUG - PING 186.253.1.67 (186.253.1.67): 56 data bytes 64 bytes from 186.253.1.67: seq=0 ttl=63 time=1.555 ms --- 186.253.1.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.555/1.555/1.555 ms 2024-08-21 14:45:51,930 - WARNING - Ping to IP 186.253.1.67 from VM ctest-TestBasicPolicy-64524616-37344592 failed 2024-08-21 14:45:51,930 - INFO - Deleting VM ctest-TestBasicPolicy-64524616-68733064 2024-08-21 14:45:51,991 - INFO - Deleting VM ctest-TestBasicPolicy-64524616-37344592 2024-08-21 14:45:52,402 - INFO - Deleted policy ctest-policy-allow-all-75333300 2024-08-21 14:45:52,402 - INFO - Deleting VN ctest-vn-13727542 2024-08-21 14:45:52,449 - DEBUG - VN 11553bd9-2721-47f7-a82f-b5f11c52e9c0 still in use: Unable to complete operation on network 11553bd9-2721-47f7-a82f-b5f11c52e9c0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fa9cd737-71a2-4a67-afa6-b16ec02534e7'] 2024-08-21 14:45:52,450 - WARNING - Deleting VN ctest-vn-13727542 failed..Will retry 2024-08-21 14:45:54,587 - DEBUG - Response for deleting network () 2024-08-21 14:45:54,587 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ef382add-ad82-4566-baa6-494fad4daf77 2024-08-21 14:45:54,596 - DEBUG - Response Code: 404 2024-08-21 14:45:54,596 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-08-21 14:45:54,602 - DEBUG - Requesting: http://10.0.0.33:8082/domain/faa00ce0-8b62-47bc-a31c-2243cdfd0b29 2024-08-21 14:45:54,663 - DEBUG - Requesting: http://10.0.0.33:8082/project/0986456e-7db7-4943-b83f-e78cd40f9723 2024-08-21 14:45:54,747 - INFO - Validated that VN ctest-vn-13727542 is not found in API Server 2024-08-21 14:45:54,759 - DEBUG - VN ctest-vn-13727542 is not present in Agent 10.0.0.33 2024-08-21 14:45:54,759 - INFO - Validated that VN ctest-vn-13727542 is not in any agent 2024-08-21 14:45:54,776 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-13727542 info 2024-08-21 14:45:54,776 - INFO - Deleting VN ctest-vn-70862688 2024-08-21 14:45:54,897 - DEBUG - Response for deleting network () 2024-08-21 14:45:54,897 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fcbccac9-080c-4611-91ea-b8eee7fec21f 2024-08-21 14:45:54,902 - DEBUG - Response Code: 404 2024-08-21 14:45:54,902 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2024-08-21 14:45:54,911 - DEBUG - Requesting: http://10.0.0.33:8082/domain/faa00ce0-8b62-47bc-a31c-2243cdfd0b29 2024-08-21 14:45:54,966 - DEBUG - Requesting: http://10.0.0.33:8082/project/0986456e-7db7-4943-b83f-e78cd40f9723 2024-08-21 14:45:55,037 - INFO - Validated that VN ctest-vn-70862688 is not found in API Server 2024-08-21 14:45:55,049 - DEBUG - VN ctest-vn-70862688 is not present in Agent 10.0.0.33 2024-08-21 14:45:55,049 - INFO - Validated that VN ctest-vn-70862688 is not in any agent 2024-08-21 14:45:55,068 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-70862688 info 2024-08-21 14:45:55,324 - DEBUG - No XMPP flaps were noticed during the test 2024-08-21 14:45:55,325 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-08-21 14:45:55,325 - INFO - -------------------------------------------------------------------------------- 2024-08-21 14:45:56,007 - INFO - Deleted project: ctest-TestBasicPolicy-64524616, ID : 0986456e-7db7-4943-b83f-e78cd40f9723