2024-08-21 09:06:17,221 - INFO - Domain Default found not creating 2024-08-21 09:06:17,430 - INFO - Project ctest-TestBasicPolicy-24328848 not found, creating it 2024-08-21 09:06:17,919 - INFO - Created Project:ctest-TestBasicPolicy-24328848, ID : 3387891f-337c-455a-bf9d-7b6d9f9ecd85 2024-08-21 09:06:19,503 - INFO - ================================================================================ 2024-08-21 09:06:19,503 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-21 09:06:19,503 - 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 09:06:19,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.28': '0'}} with 2024-08-21 09:06:19,759 - INFO - Initial checks done. Running the testcase now 2024-08-21 09:06:19,759 - INFO - 2024-08-21 09:06:20,334 - DEBUG - Response for create_network : {'network': {'id': '712bb64e-5697-44b4-9c26-1fa726c97ba3', 'name': 'ctest-vn-89658483', 'tenant_id': '3387891f337c455abf9d7b6d9f9ecd85', 'project_id': '3387891f337c455abf9d7b6d9f9ecd85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-vn-89658483'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 09:06:20,560 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a05ab8d1-d94c-4ee4-bf01-cfd35814ef0c', 'name': '', 'tenant_id': '3387891f337c455abf9d7b6d9f9ecd85', 'network_id': '712bb64e-5697-44b4-9c26-1fa726c97ba3', 'ip_version': 4, 'cidr': '205.2.98.64/26', 'allocation_pools': [{'start': '205.2.98.66', 'end': '205.2.98.126'}], 'gateway_ip': '205.2.98.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.2.98.66', 'tags': [], 'project_id': '3387891f337c455abf9d7b6d9f9ecd85'}} 2024-08-21 09:06:20,580 - INFO - Created VN ctest-vn-89658483 2024-08-21 09:06:20,633 - DEBUG - VN ctest-vn-89658483 UUID is 712bb64e-5697-44b4-9c26-1fa726c97ba3 2024-08-21 09:06:20,935 - DEBUG - Response for create_network : {'network': {'id': '37742b3d-675c-4020-8436-0e5c319200bf', 'name': 'ctest-vn-67641174', 'tenant_id': '3387891f337c455abf9d7b6d9f9ecd85', 'project_id': '3387891f337c455abf9d7b6d9f9ecd85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-vn-67641174'], 'port_security_enabled': True, 'description': ''}} 2024-08-21 09:06:21,121 - DEBUG - Response for create_subnet : {'subnet': {'id': '2de8c2c1-eab8-4b39-9bc9-2bf2bfa03d45', 'name': '', 'tenant_id': '3387891f337c455abf9d7b6d9f9ecd85', 'network_id': '37742b3d-675c-4020-8436-0e5c319200bf', 'ip_version': 4, 'cidr': '22.234.96.128/26', 'allocation_pools': [{'start': '22.234.96.130', 'end': '22.234.96.190'}], 'gateway_ip': '22.234.96.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.234.96.130', 'tags': [], 'project_id': '3387891f337c455abf9d7b6d9f9ecd85'}} 2024-08-21 09:06:21,142 - INFO - Created VN ctest-vn-67641174 2024-08-21 09:06:21,197 - DEBUG - VN ctest-vn-67641174 UUID is 37742b3d-675c-4020-8436-0e5c319200bf 2024-08-21 09:06:21,325 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483, 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-24328848:ctest-vn-67641174, 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 09:06:21,642 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '712bb64e-5697-44b4-9c26-1fa726c97ba3', 'name': 'ctest-vn-89658483', 'tenant_id': '3387891f337c455abf9d7b6d9f9ecd85', 'project_id': '3387891f337c455abf9d7b6d9f9ecd85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a05ab8d1-d94c-4ee4-bf01-cfd35814ef0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-vn-89658483'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-policy-allow-all-16994407']], 'subnet_ipam': [{'subnet_cidr': '205.2.98.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 09:06:21,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37742b3d-675c-4020-8436-0e5c319200bf', 'name': 'ctest-vn-67641174', 'tenant_id': '3387891f337c455abf9d7b6d9f9ecd85', 'project_id': '3387891f337c455abf9d7b6d9f9ecd85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2de8c2c1-eab8-4b39-9bc9-2bf2bfa03d45'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-vn-67641174'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-policy-allow-all-16994407']], 'subnet_ipam': [{'subnet_cidr': '22.234.96.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-21 09:06:22,057 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-21 09:06:22,357 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-21 09:06:22,393 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c71d6dcd-4970-4416-ad48-05f2e0e07161 2024-08-21 09:06:22,408 - DEBUG - Requesting: http://10.0.0.23:8082/project/3387891f-337c-455a-bf9d-7b6d9f9ecd85 2024-08-21 09:06:22,482 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/712bb64e-5697-44b4-9c26-1fa726c97ba3 2024-08-21 09:06:22,493 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/712bb64e-5697-44b4-9c26-1fa726c97ba3 2024-08-21 09:06:22,501 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/60d3c3e2-ed8c-45c7-9fe3-90c27d461f33 2024-08-21 09:06:22,509 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/60d3c3e2-ed8c-45c7-9fe3-90c27d461f33 2024-08-21 09:06:22,516 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/fb91ed17-94e3-495e-82a7-51627e0a88c1 2024-08-21 09:06:22,523 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 09:06:22,523 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/712bb64e-5697-44b4-9c26-1fa726c97ba3 2024-08-21 09:06:22,531 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/60d3c3e2-ed8c-45c7-9fe3-90c27d461f33 2024-08-21 09:06:22,545 - INFO - Verified VN network id 9 for VN 712bb64e-5697-44b4-9c26-1fa726c97ba3 2024-08-21 09:06:22,546 - INFO - Verifications in API Server for VN ctest-vn-89658483 passed 2024-08-21 09:06:22,546 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/712bb64e-5697-44b4-9c26-1fa726c97ba3 2024-08-21 09:06:22,555 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/60d3c3e2-ed8c-45c7-9fe3-90c27d461f33 2024-08-21 09:06:22,562 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/60d3c3e2-ed8c-45c7-9fe3-90c27d461f33 2024-08-21 09:06:22,569 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/fb91ed17-94e3-495e-82a7-51627e0a88c1 2024-08-21 09:06:22,583 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24328848', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8154811997860873396', 'uuid-lslong': '11251715521802501027'}, 'enable': 'true', 'created': '2024-08-21T09:06:20', 'last-modified': '2024-08-21T09:06:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963660'} 2024-08-21 09:06:22,589 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-21 09:06:22,590 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89658483 passed 2024-08-21 09:06:22,590 - DEBUG - ====Verifying policy data for ctest-vn-89658483 in API_Server ====== 2024-08-21 09:06:22,590 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-21 09:06:22,596 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c71d6dcd-4970-4416-ad48-05f2e0e07161 2024-08-21 09:06:22,609 - DEBUG - Requesting: http://10.0.0.23:8082/project/3387891f-337c-455a-bf9d-7b6d9f9ecd85 2024-08-21 09:06:22,679 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/712bb64e-5697-44b4-9c26-1fa726c97ba3 2024-08-21 09:06:22,687 - DEBUG - ==>Verifying data for policy with id: deb22332-8ccd-4db9-b7ee-f89024c5b3d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-policy-allow-all-16994407'] 2024-08-21 09:06:22,687 - INFO - VN ctest-vn-89658483 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 09:06:22,687 - DEBUG - Verifying the vn in opserver 2024-08-21 09:06:22,687 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483 virtual network link through opserver 10.0.0.23 2024-08-21 09:06:22,688 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-08-21 09:06:22,982 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-08-21 09:06:23,044 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483?flat'} 2024-08-21 09:06:23,044 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483 is found in opserver 2024-08-21 09:06:23,055 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 09:06:23,061 - DEBUG - VRF ids for VN ctest-vn-89658483: {} 2024-08-21 09:06:23,061 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-21 09:06:23,067 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c71d6dcd-4970-4416-ad48-05f2e0e07161 2024-08-21 09:06:23,082 - DEBUG - Requesting: http://10.0.0.23:8082/project/3387891f-337c-455a-bf9d-7b6d9f9ecd85 2024-08-21 09:06:23,150 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37742b3d-675c-4020-8436-0e5c319200bf 2024-08-21 09:06:23,162 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37742b3d-675c-4020-8436-0e5c319200bf 2024-08-21 09:06:23,171 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8d5d8496-8d0e-40c3-8587-b3e047bea498 2024-08-21 09:06:23,178 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8d5d8496-8d0e-40c3-8587-b3e047bea498 2024-08-21 09:06:23,186 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/a7c53259-c954-41cc-ab1c-022f2ded3198 2024-08-21 09:06:23,193 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 09:06:23,193 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37742b3d-675c-4020-8436-0e5c319200bf 2024-08-21 09:06:23,202 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8d5d8496-8d0e-40c3-8587-b3e047bea498 2024-08-21 09:06:23,216 - INFO - Verified VN network id 10 for VN 37742b3d-675c-4020-8436-0e5c319200bf 2024-08-21 09:06:23,216 - INFO - Verifications in API Server for VN ctest-vn-67641174 passed 2024-08-21 09:06:23,216 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37742b3d-675c-4020-8436-0e5c319200bf 2024-08-21 09:06:23,225 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8d5d8496-8d0e-40c3-8587-b3e047bea498 2024-08-21 09:06:23,233 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8d5d8496-8d0e-40c3-8587-b3e047bea498 2024-08-21 09:06:23,240 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/a7c53259-c954-41cc-ab1c-022f2ded3198 2024-08-21 09:06:23,254 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-67641174', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24328848', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3995866312111570976', 'uuid-lslong': '9526817850880295103'}, 'enable': 'true', 'created': '2024-08-21T09:06:20', 'last-modified': '2024-08-21T09:06:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.389382'} 2024-08-21 09:06:23,260 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-21 09:06:23,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67641174 passed 2024-08-21 09:06:23,261 - DEBUG - ====Verifying policy data for ctest-vn-67641174 in API_Server ====== 2024-08-21 09:06:23,261 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-21 09:06:23,267 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c71d6dcd-4970-4416-ad48-05f2e0e07161 2024-08-21 09:06:23,279 - DEBUG - Requesting: http://10.0.0.23:8082/project/3387891f-337c-455a-bf9d-7b6d9f9ecd85 2024-08-21 09:06:23,350 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/37742b3d-675c-4020-8436-0e5c319200bf 2024-08-21 09:06:23,360 - DEBUG - ==>Verifying data for policy with id: deb22332-8ccd-4db9-b7ee-f89024c5b3d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-24328848', 'ctest-policy-allow-all-16994407'] 2024-08-21 09:06:23,360 - INFO - VN ctest-vn-67641174 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-21 09:06:23,360 - DEBUG - Verifying the vn in opserver 2024-08-21 09:06:23,360 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-67641174 virtual network link through opserver 10.0.0.23 2024-08-21 09:06:23,360 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-08-21 09:06:23,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-67641174', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-67641174?flat'} 2024-08-21 09:06:23,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-67641174 is found in opserver 2024-08-21 09:06:23,384 - DEBUG - Do not have enough data to verify VN in agent 2024-08-21 09:06:23,390 - DEBUG - VRF ids for VN ctest-vn-67641174: {} 2024-08-21 09:06:23,446 - DEBUG - Services list from nova: [, , ] 2024-08-21 09:06:24,465 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1680-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1680-1) 2024-08-21 09:06:25,727 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1680-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1680-1) 2024-08-21 09:06:25,727 - INFO - Waiting for VM ctest-TestBasicPolicy-24328848-70854739 to be up.. 2024-08-21 09:06:25,816 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-21 09:06:30,895 - DEBUG - VM is in ACTIVE state now 2024-08-21 09:06:30,895 - INFO - VM name : ctest-TestBasicPolicy-24328848-70854739 2024-08-21 09:06:30,970 - DEBUG - VM ctest-TestBasicPolicy-24328848-70854739 ID is 1982b4d8-d820-41f3-8dbb-a3e361442891 2024-08-21 09:06:30,988 - DEBUG - VM ctest-TestBasicPolicy-24328848-70854739 launched on Node cn-jenkins-deploy-platform-ansible-os-1680-1 2024-08-21 09:06:31,064 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/1982b4d8-d820-41f3-8dbb-a3e361442891 2024-08-21 09:06:31,073 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/cdfeb750-b5d8-4b87-ac0a-98300f72671d 2024-08-21 09:06:34,339 - 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 09:06:34,339 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-24328848-70854739 failed! 2024-08-21 09:06:34,393 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-24328848:ctest-vn-89658483 is 205.2.98.65 and allocation pool is NOT set 2024-08-21 09:06:36,459 - 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=2.73 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.71 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 = 1.711/2.220/2.729/0.509 ms') 2024-08-21 09:06:36,459 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-24328848-70854739 passed 2024-08-21 09:06:36,609 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 09:06:36,609 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-24328848-70854739, IP 205.2.98.67, Port 22 2024-08-21 09:06:36,764 - DEBUG - VM ctest-TestBasicPolicy-24328848-70854739 is ready for SSH connections 2024-08-21 09:06:36,764 - INFO - Waiting for VM ctest-TestBasicPolicy-24328848-05315472 to be up.. 2024-08-21 09:06:36,857 - DEBUG - VM is in ACTIVE state now 2024-08-21 09:06:36,857 - INFO - VM name : ctest-TestBasicPolicy-24328848-05315472 2024-08-21 09:06:36,965 - DEBUG - VM ctest-TestBasicPolicy-24328848-05315472 ID is b6b5565a-9dbb-48e1-91cd-c652e5f62a24 2024-08-21 09:06:36,965 - DEBUG - VM ctest-TestBasicPolicy-24328848-05315472 launched on Node cn-jenkins-deploy-platform-ansible-os-1680-1 2024-08-21 09:06:37,062 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/b6b5565a-9dbb-48e1-91cd-c652e5f62a24 2024-08-21 09:06:37,074 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/603f4b5c-aee0-4356-84ca-d67c34104bd2 2024-08-21 09:06:38,315 - 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.85 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.528 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.528/1.691/2.854/1.163 ms') 2024-08-21 09:06:38,315 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-24328848-05315472 passed 2024-08-21 09:06:38,465 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 09:06:38,465 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-24328848-05315472, IP 22.234.96.131, Port 22 2024-08-21 09:06:38,620 - DEBUG - VM ctest-TestBasicPolicy-24328848-05315472 is ready for SSH connections 2024-08-21 09:06:38,620 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 09:06:38,621 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.234.96.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-08-21 09:06:38,621 - DEBUG - ping -s 56 -c 3 -W 1 22.234.96.131 2024-08-21 09:06:42,601 - DEBUG - PING 22.234.96.131 (22.234.96.131): 56 data bytes 64 bytes from 22.234.96.131: seq=0 ttl=63 time=4.110 ms 64 bytes from 22.234.96.131: seq=1 ttl=63 time=0.823 ms 64 bytes from 22.234.96.131: seq=2 ttl=63 time=0.777 ms --- 22.234.96.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.777/1.903/4.110 ms 2024-08-21 09:06:42,602 - INFO - Ping to IP 22.234.96.131 from VM ctest-TestBasicPolicy-24328848-70854739 passed 2024-08-21 09:06:42,780 - DEBUG - Policy Update Response {"network-policy": {"uuid": "deb22332-8ccd-4db9-b7ee-f89024c5b3d0", "href": "http://10.0.0.23:8082/network-policy/deb22332-8ccd-4db9-b7ee-f89024c5b3d0"}} 2024-08-21 09:06:42,781 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-21 09:06:42,781 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 22.234.96.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-08-21 09:06:42,781 - DEBUG - ping -s 56 -c 3 -W 1 22.234.96.131 2024-08-21 09:06:45,983 - DEBUG - PING 22.234.96.131 (22.234.96.131): 56 data bytes 64 bytes from 22.234.96.131: seq=0 ttl=63 time=1.479 ms --- 22.234.96.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.479/1.479/1.479 ms 2024-08-21 09:06:45,983 - WARNING - Ping to IP 22.234.96.131 from VM ctest-TestBasicPolicy-24328848-70854739 failed 2024-08-21 09:06:45,983 - INFO - Deleting VM ctest-TestBasicPolicy-24328848-05315472 2024-08-21 09:06:46,046 - INFO - Deleting VM ctest-TestBasicPolicy-24328848-70854739 2024-08-21 09:06:46,435 - INFO - Deleted policy ctest-policy-allow-all-16994407 2024-08-21 09:06:46,435 - INFO - Deleting VN ctest-vn-67641174 2024-08-21 09:06:46,474 - DEBUG - VN 37742b3d-675c-4020-8436-0e5c319200bf still in use: Unable to complete operation on network 37742b3d-675c-4020-8436-0e5c319200bf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-22dd77e2-0355-489c-bea0-074092cfd340'] 2024-08-21 09:06:46,474 - WARNING - Deleting VN ctest-vn-67641174 failed..Will retry 2024-08-21 09:06:48,573 - DEBUG - Response for deleting network () 2024-08-21 09:06:48,574 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8d5d8496-8d0e-40c3-8587-b3e047bea498 2024-08-21 09:06:48,579 - DEBUG - Response Code: 404 2024-08-21 09:06:48,579 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-21 09:06:48,588 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c71d6dcd-4970-4416-ad48-05f2e0e07161 2024-08-21 09:06:48,641 - DEBUG - Requesting: http://10.0.0.23:8082/project/3387891f-337c-455a-bf9d-7b6d9f9ecd85 2024-08-21 09:06:48,711 - INFO - Validated that VN ctest-vn-67641174 is not found in API Server 2024-08-21 09:06:48,723 - DEBUG - VN ctest-vn-67641174 is not present in Agent 10.0.0.23 2024-08-21 09:06:48,723 - INFO - Validated that VN ctest-vn-67641174 is not in any agent 2024-08-21 09:06:48,740 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-67641174 info 2024-08-21 09:06:48,740 - INFO - Deleting VN ctest-vn-89658483 2024-08-21 09:06:48,843 - DEBUG - Response for deleting network () 2024-08-21 09:06:48,843 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/60d3c3e2-ed8c-45c7-9fe3-90c27d461f33 2024-08-21 09:06:48,850 - DEBUG - Response Code: 404 2024-08-21 09:06:48,850 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-08-21 09:06:48,857 - DEBUG - Requesting: http://10.0.0.23:8082/domain/c71d6dcd-4970-4416-ad48-05f2e0e07161 2024-08-21 09:06:48,913 - DEBUG - Requesting: http://10.0.0.23:8082/project/3387891f-337c-455a-bf9d-7b6d9f9ecd85 2024-08-21 09:06:48,984 - INFO - Validated that VN ctest-vn-89658483 is not found in API Server 2024-08-21 09:06:48,998 - DEBUG - VN ctest-vn-89658483 is not present in Agent 10.0.0.23 2024-08-21 09:06:48,998 - INFO - Validated that VN ctest-vn-89658483 is not in any agent 2024-08-21 09:06:49,018 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-89658483 info 2024-08-21 09:06:49,283 - DEBUG - No XMPP flaps were noticed during the test
2024-08-21 09:06:49,283 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-08-21 09:06:49,283 - INFO - -------------------------------------------------------------------------------- 2024-08-21 09:06:49,966 - INFO - Deleted project: ctest-TestBasicPolicy-24328848, ID : 3387891f-337c-455a-bf9d-7b6d9f9ecd85