2024-10-26 18:25:41,418 - INFO - Domain Default found not creating 2024-10-26 18:25:41,609 - INFO - Project ctest-TestBasicPolicy-43474375 not found, creating it 2024-10-26 18:25:42,145 - INFO - Created Project:ctest-TestBasicPolicy-43474375, ID : 68056034-9340-4ac8-9489-3a73d1352571 2024-10-26 18:25:43,764 - INFO - ================================================================================ 2024-10-26 18:25:43,764 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-26 18:25:43,765 - 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-26 18:25:44,022 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.13': '0'}} with 2024-10-26 18:25:44,022 - INFO - Initial checks done. Running the testcase now 2024-10-26 18:25:44,022 - INFO - 2024-10-26 18:25:44,647 - DEBUG - Response for create_network : {'network': {'id': '70cb3698-0b09-48c2-ab2f-7ccbe48af013', 'name': 'ctest-vn-69796552', 'tenant_id': '6805603493404ac894893a73d1352571', 'project_id': '6805603493404ac894893a73d1352571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-vn-69796552'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 18:25:44,846 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4c74584-42e2-430c-86f8-60ba79bbb3d4', 'name': '', 'tenant_id': '6805603493404ac894893a73d1352571', 'network_id': '70cb3698-0b09-48c2-ab2f-7ccbe48af013', 'ip_version': 4, 'cidr': '218.73.138.64/26', 'allocation_pools': [{'start': '218.73.138.66', 'end': '218.73.138.126'}], 'gateway_ip': '218.73.138.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.73.138.66', 'tags': [], 'project_id': '6805603493404ac894893a73d1352571'}} 2024-10-26 18:25:44,871 - INFO - Created VN ctest-vn-69796552 2024-10-26 18:25:44,931 - DEBUG - VN ctest-vn-69796552 UUID is 70cb3698-0b09-48c2-ab2f-7ccbe48af013 2024-10-26 18:25:45,277 - DEBUG - Response for create_network : {'network': {'id': 'f527e484-f030-4203-a1a7-8d85f64451b0', 'name': 'ctest-vn-54967372', 'tenant_id': '6805603493404ac894893a73d1352571', 'project_id': '6805603493404ac894893a73d1352571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-vn-54967372'], 'port_security_enabled': True, 'description': ''}} 2024-10-26 18:25:45,533 - DEBUG - Response for create_subnet : {'subnet': {'id': '4b8fa75f-a1eb-44d6-b764-71b53102b4ca', 'name': '', 'tenant_id': '6805603493404ac894893a73d1352571', 'network_id': 'f527e484-f030-4203-a1a7-8d85f64451b0', 'ip_version': 4, 'cidr': '222.16.214.0/26', 'allocation_pools': [{'start': '222.16.214.2', 'end': '222.16.214.62'}], 'gateway_ip': '222.16.214.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.16.214.2', 'tags': [], 'project_id': '6805603493404ac894893a73d1352571'}} 2024-10-26 18:25:45,556 - INFO - Created VN ctest-vn-54967372 2024-10-26 18:25:45,615 - DEBUG - VN ctest-vn-54967372 UUID is f527e484-f030-4203-a1a7-8d85f64451b0 2024-10-26 18:25:45,725 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552, 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-43474375:ctest-vn-54967372, 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-26 18:25:46,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70cb3698-0b09-48c2-ab2f-7ccbe48af013', 'name': 'ctest-vn-69796552', 'tenant_id': '6805603493404ac894893a73d1352571', 'project_id': '6805603493404ac894893a73d1352571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4c74584-42e2-430c-86f8-60ba79bbb3d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-vn-69796552'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-policy-allow-all-81645443']], 'subnet_ipam': [{'subnet_cidr': '218.73.138.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-26 18:25:46,427 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f527e484-f030-4203-a1a7-8d85f64451b0', 'name': 'ctest-vn-54967372', 'tenant_id': '6805603493404ac894893a73d1352571', 'project_id': '6805603493404ac894893a73d1352571', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4b8fa75f-a1eb-44d6-b764-71b53102b4ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-vn-54967372'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-policy-allow-all-81645443']], 'subnet_ipam': [{'subnet_cidr': '222.16.214.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-26 18:25:46,575 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-26 18:25:46,890 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-26 18:25:46,927 - DEBUG - Requesting: http://10.0.0.23:8082/domain/35daf014-ccfb-422d-806b-5407e865394c 2024-10-26 18:25:46,942 - DEBUG - Requesting: http://10.0.0.23:8082/project/68056034-9340-4ac8-9489-3a73d1352571 2024-10-26 18:25:47,040 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70cb3698-0b09-48c2-ab2f-7ccbe48af013 2024-10-26 18:25:47,056 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70cb3698-0b09-48c2-ab2f-7ccbe48af013 2024-10-26 18:25:47,071 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fe2319e-4742-4a4d-9f73-1d1bb71ff6da 2024-10-26 18:25:47,081 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fe2319e-4742-4a4d-9f73-1d1bb71ff6da 2024-10-26 18:25:47,090 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/13d697a7-e026-4228-888e-96d7caa1b4f0 2024-10-26 18:25:47,099 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-26 18:25:47,099 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70cb3698-0b09-48c2-ab2f-7ccbe48af013 2024-10-26 18:25:47,113 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fe2319e-4742-4a4d-9f73-1d1bb71ff6da 2024-10-26 18:25:47,135 - INFO - Verified VN network id 8 for VN 70cb3698-0b09-48c2-ab2f-7ccbe48af013 2024-10-26 18:25:47,135 - INFO - Verifications in API Server for VN ctest-vn-69796552 passed 2024-10-26 18:25:47,135 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70cb3698-0b09-48c2-ab2f-7ccbe48af013 2024-10-26 18:25:47,152 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fe2319e-4742-4a4d-9f73-1d1bb71ff6da 2024-10-26 18:25:47,162 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fe2319e-4742-4a4d-9f73-1d1bb71ff6da 2024-10-26 18:25:47,172 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/13d697a7-e026-4228-888e-96d7caa1b4f0 2024-10-26 18:25:47,188 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43474375', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8127649979168278722', 'uuid-lslong': '12335215119545593875'}, 'enable': 'true', 'created': '2024-10-26T18:25:44', 'last-modified': '2024-10-26T18:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.130465'} 2024-10-26 18:25:47,195 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-26 18:25:47,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69796552 passed 2024-10-26 18:25:47,195 - DEBUG - ====Verifying policy data for ctest-vn-69796552 in API_Server ====== 2024-10-26 18:25:47,195 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-26 18:25:47,202 - DEBUG - Requesting: http://10.0.0.23:8082/domain/35daf014-ccfb-422d-806b-5407e865394c 2024-10-26 18:25:47,216 - DEBUG - Requesting: http://10.0.0.23:8082/project/68056034-9340-4ac8-9489-3a73d1352571 2024-10-26 18:25:47,309 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/70cb3698-0b09-48c2-ab2f-7ccbe48af013 2024-10-26 18:25:47,325 - DEBUG - ==>Verifying data for policy with id: bdad5f14-3b3e-4f30-8f36-2089ae3d13ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-policy-allow-all-81645443'] 2024-10-26 18:25:47,325 - INFO - VN ctest-vn-69796552 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-26 18:25:47,325 - DEBUG - Verifying the vn in opserver 2024-10-26 18:25:47,325 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552 virtual network link through opserver 10.0.0.23 2024-10-26 18:25:47,326 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-10-26 18:25:47,631 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-10-26 18:25:47,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552?flat'} 2024-10-26 18:25:47,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552 is found in opserver 2024-10-26 18:25:47,722 - DEBUG - Do not have enough data to verify VN in agent 2024-10-26 18:25:47,732 - DEBUG - VRF ids for VN ctest-vn-69796552: {} 2024-10-26 18:25:47,732 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-26 18:25:47,741 - DEBUG - Requesting: http://10.0.0.23:8082/domain/35daf014-ccfb-422d-806b-5407e865394c 2024-10-26 18:25:47,762 - DEBUG - Requesting: http://10.0.0.23:8082/project/68056034-9340-4ac8-9489-3a73d1352571 2024-10-26 18:25:47,855 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f527e484-f030-4203-a1a7-8d85f64451b0 2024-10-26 18:25:47,877 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f527e484-f030-4203-a1a7-8d85f64451b0 2024-10-26 18:25:47,894 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8121532b-ef1a-4bb4-908e-d21306ccae62 2024-10-26 18:25:47,908 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8121532b-ef1a-4bb4-908e-d21306ccae62 2024-10-26 18:25:47,926 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/cc96367a-c21d-48e7-b474-1cd128e1f555 2024-10-26 18:25:47,939 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-26 18:25:47,940 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f527e484-f030-4203-a1a7-8d85f64451b0 2024-10-26 18:25:47,960 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8121532b-ef1a-4bb4-908e-d21306ccae62 2024-10-26 18:25:47,992 - INFO - Verified VN network id 9 for VN f527e484-f030-4203-a1a7-8d85f64451b0 2024-10-26 18:25:47,992 - INFO - Verifications in API Server for VN ctest-vn-54967372 passed 2024-10-26 18:25:47,992 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f527e484-f030-4203-a1a7-8d85f64451b0 2024-10-26 18:25:48,007 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8121532b-ef1a-4bb4-908e-d21306ccae62 2024-10-26 18:25:48,020 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8121532b-ef1a-4bb4-908e-d21306ccae62 2024-10-26 18:25:48,033 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/cc96367a-c21d-48e7-b474-1cd128e1f555 2024-10-26 18:25:48,056 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-54967372', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43474375', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17665339323000570371', 'uuid-lslong': '11648434567718916528'}, 'enable': 'true', 'created': '2024-10-26T18:25:45', 'last-modified': '2024-10-26T18:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.714064'} 2024-10-26 18:25:48,066 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-26 18:25:48,066 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54967372 passed 2024-10-26 18:25:48,066 - DEBUG - ====Verifying policy data for ctest-vn-54967372 in API_Server ====== 2024-10-26 18:25:48,066 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-26 18:25:48,075 - DEBUG - Requesting: http://10.0.0.23:8082/domain/35daf014-ccfb-422d-806b-5407e865394c 2024-10-26 18:25:48,094 - DEBUG - Requesting: http://10.0.0.23:8082/project/68056034-9340-4ac8-9489-3a73d1352571 2024-10-26 18:25:48,189 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f527e484-f030-4203-a1a7-8d85f64451b0 2024-10-26 18:25:48,205 - DEBUG - ==>Verifying data for policy with id: bdad5f14-3b3e-4f30-8f36-2089ae3d13ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-43474375', 'ctest-policy-allow-all-81645443'] 2024-10-26 18:25:48,205 - INFO - VN ctest-vn-54967372 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-26 18:25:48,205 - DEBUG - Verifying the vn in opserver 2024-10-26 18:25:48,206 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-54967372 virtual network link through opserver 10.0.0.23 2024-10-26 18:25:48,206 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-10-26 18:25:48,219 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-54967372', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-54967372?flat'} 2024-10-26 18:25:48,219 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-54967372 is found in opserver 2024-10-26 18:25:48,236 - DEBUG - Do not have enough data to verify VN in agent 2024-10-26 18:25:48,243 - DEBUG - VRF ids for VN ctest-vn-54967372: {} 2024-10-26 18:25:48,317 - DEBUG - Services list from nova: [, , ] 2024-10-26 18:25:49,549 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2152-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2152-1) 2024-10-26 18:25:50,844 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2152-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2152-1) 2024-10-26 18:25:50,844 - INFO - Waiting for VM ctest-TestBasicPolicy-43474375-13690975 to be up.. 2024-10-26 18:25:50,951 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-26 18:25:56,051 - DEBUG - VM is in ACTIVE state now 2024-10-26 18:25:56,052 - INFO - VM name : ctest-TestBasicPolicy-43474375-13690975 2024-10-26 18:25:56,141 - DEBUG - VM ctest-TestBasicPolicy-43474375-13690975 ID is 91159286-2820-4d86-9bbb-1491111e9512 2024-10-26 18:25:56,162 - DEBUG - VM ctest-TestBasicPolicy-43474375-13690975 launched on Node cn-jenkins-deploy-platform-ansible-os-2152-1 2024-10-26 18:25:56,258 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/91159286-2820-4d86-9bbb-1491111e9512 2024-10-26 18:25:56,270 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/e657b6ad-a76d-42a1-9f12-c4abd2a8968d 2024-10-26 18:25:59,520 - 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 1008ms') 2024-10-26 18:25:59,520 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43474375-13690975 failed! 2024-10-26 18:25:59,579 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-43474375:ctest-vn-69796552 is 218.73.138.65 and allocation pool is NOT set 2024-10-26 18:26:01,649 - 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.73 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.23 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 = 1.234/4.984/8.734/3.750 ms') 2024-10-26 18:26:01,649 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43474375-13690975 passed 2024-10-26 18:26:01,811 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 18:26:01,811 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43474375-13690975, IP 218.73.138.67, Port 22 2024-10-26 18:26:01,967 - DEBUG - VM ctest-TestBasicPolicy-43474375-13690975 is ready for SSH connections 2024-10-26 18:26:01,967 - INFO - Waiting for VM ctest-TestBasicPolicy-43474375-21289444 to be up.. 2024-10-26 18:26:02,071 - DEBUG - VM is in ACTIVE state now 2024-10-26 18:26:02,071 - INFO - VM name : ctest-TestBasicPolicy-43474375-21289444 2024-10-26 18:26:02,176 - DEBUG - VM ctest-TestBasicPolicy-43474375-21289444 ID is 381725bf-715c-4166-9ad8-ccb8ad289c1b 2024-10-26 18:26:02,176 - DEBUG - VM ctest-TestBasicPolicy-43474375-21289444 launched on Node cn-jenkins-deploy-platform-ansible-os-2152-1 2024-10-26 18:26:02,262 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/381725bf-715c-4166-9ad8-ccb8ad289c1b 2024-10-26 18:26:02,274 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/8b31f78b-f611-4bf6-8109-959ee1a29c2a 2024-10-26 18:26:03,534 - 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.60 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.08 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 = 1.084/2.344/3.604/1.260 ms') 2024-10-26 18:26:03,535 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-43474375-21289444 passed 2024-10-26 18:26:03,695 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 18:26:03,695 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43474375-21289444, IP 222.16.214.3, Port 22 2024-10-26 18:26:03,865 - DEBUG - VM ctest-TestBasicPolicy-43474375-21289444 is ready for SSH connections 2024-10-26 18:26:03,865 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 18:26:03,866 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.16.214.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-10-26 18:26:03,866 - DEBUG - ping -s 56 -c 3 -W 1 222.16.214.3 2024-10-26 18:26:07,992 - DEBUG - PING 222.16.214.3 (222.16.214.3): 56 data bytes 64 bytes from 222.16.214.3: seq=0 ttl=63 time=3.825 ms 64 bytes from 222.16.214.3: seq=1 ttl=63 time=1.062 ms 64 bytes from 222.16.214.3: seq=2 ttl=63 time=1.069 ms --- 222.16.214.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.062/1.985/3.825 ms 2024-10-26 18:26:07,992 - INFO - Ping to IP 222.16.214.3 from VM ctest-TestBasicPolicy-43474375-13690975 passed 2024-10-26 18:26:08,195 - DEBUG - Policy Update Response {"network-policy": {"uuid": "bdad5f14-3b3e-4f30-8f36-2089ae3d13ec", "href": "http://10.0.0.23:8082/network-policy/bdad5f14-3b3e-4f30-8f36-2089ae3d13ec"}} 2024-10-26 18:26:08,195 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-26 18:26:08,196 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 222.16.214.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-10-26 18:26:08,196 - DEBUG - ping -s 56 -c 3 -W 1 222.16.214.3 2024-10-26 18:26:11,400 - DEBUG - PING 222.16.214.3 (222.16.214.3): 56 data bytes 64 bytes from 222.16.214.3: seq=0 ttl=63 time=1.436 ms --- 222.16.214.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.436/1.436/1.436 ms 2024-10-26 18:26:11,400 - WARNING - Ping to IP 222.16.214.3 from VM ctest-TestBasicPolicy-43474375-13690975 failed 2024-10-26 18:26:11,401 - INFO - Deleting VM ctest-TestBasicPolicy-43474375-21289444 2024-10-26 18:26:11,474 - INFO - Deleting VM ctest-TestBasicPolicy-43474375-13690975 2024-10-26 18:26:11,969 - INFO - Deleted policy ctest-policy-allow-all-81645443 2024-10-26 18:26:11,970 - INFO - Deleting VN ctest-vn-54967372 2024-10-26 18:26:12,018 - DEBUG - VN f527e484-f030-4203-a1a7-8d85f64451b0 still in use: Unable to complete operation on network f527e484-f030-4203-a1a7-8d85f64451b0. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-50f2cffe-ea53-4fb9-9f41-030abb25ab6c'] 2024-10-26 18:26:12,018 - WARNING - Deleting VN ctest-vn-54967372 failed..Will retry 2024-10-26 18:26:14,140 - DEBUG - Response for deleting network () 2024-10-26 18:26:14,140 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8121532b-ef1a-4bb4-908e-d21306ccae62 2024-10-26 18:26:14,147 - DEBUG - Response Code: 404 2024-10-26 18:26:14,148 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-26 18:26:14,157 - DEBUG - Requesting: http://10.0.0.23:8082/domain/35daf014-ccfb-422d-806b-5407e865394c 2024-10-26 18:26:14,220 - DEBUG - Requesting: http://10.0.0.23:8082/project/68056034-9340-4ac8-9489-3a73d1352571 2024-10-26 18:26:14,302 - INFO - Validated that VN ctest-vn-54967372 is not found in API Server 2024-10-26 18:26:14,316 - DEBUG - VN ctest-vn-54967372 is not present in Agent 10.0.0.23 2024-10-26 18:26:14,316 - INFO - Validated that VN ctest-vn-54967372 is not in any agent 2024-10-26 18:26:14,337 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-54967372 info 2024-10-26 18:26:14,337 - INFO - Deleting VN ctest-vn-69796552 2024-10-26 18:26:14,476 - DEBUG - Response for deleting network () 2024-10-26 18:26:14,476 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fe2319e-4742-4a4d-9f73-1d1bb71ff6da 2024-10-26 18:26:14,483 - DEBUG - Response Code: 404 2024-10-26 18:26:14,483 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-26 18:26:14,491 - DEBUG - Requesting: http://10.0.0.23:8082/domain/35daf014-ccfb-422d-806b-5407e865394c 2024-10-26 18:26:14,551 - DEBUG - Requesting: http://10.0.0.23:8082/project/68056034-9340-4ac8-9489-3a73d1352571 2024-10-26 18:26:14,636 - INFO - Validated that VN ctest-vn-69796552 is not found in API Server 2024-10-26 18:26:14,651 - DEBUG - VN ctest-vn-69796552 is not present in Agent 10.0.0.23 2024-10-26 18:26:14,651 - INFO - Validated that VN ctest-vn-69796552 is not in any agent 2024-10-26 18:26:14,670 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-69796552 info 2024-10-26 18:26:14,926 - DEBUG - No XMPP flaps were noticed during the test 2024-10-26 18:26:14,926 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-10-26 18:26:14,926 - INFO - -------------------------------------------------------------------------------- 2024-10-26 18:26:15,623 - INFO - Deleted project: ctest-TestBasicPolicy-43474375, ID : 68056034-9340-4ac8-9489-3a73d1352571