2024-08-24 10:26:01,720 - INFO - Domain Default found not creating 2024-08-24 10:26:01,885 - INFO - Project ctest-TestBasicPolicy-03347845 not found, creating it 2024-08-24 10:26:02,374 - INFO - Created Project:ctest-TestBasicPolicy-03347845, ID : ce151cc1-9bd5-4085-a709-f590c4592b01 2024-08-24 10:26:03,879 - INFO - ================================================================================ 2024-08-24 10:26:03,879 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-24 10:26:03,879 - 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-24 10:26:04,139 - DEBUG - Nothing to compare xmpp stats {'10.0.0.46': {'10.20.0.22': '0'}} with 2024-08-24 10:26:04,139 - INFO - Initial checks done. Running the testcase now 2024-08-24 10:26:04,139 - INFO - 2024-08-24 10:26:04,693 - DEBUG - Response for create_network : {'network': {'id': '79c946b4-da78-4d68-b363-0f40c501fc31', 'name': 'ctest-vn-19187495', 'tenant_id': 'ce151cc19bd54085a709f590c4592b01', 'project_id': 'ce151cc19bd54085a709f590c4592b01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-vn-19187495'], 'port_security_enabled': True, 'description': ''}} 2024-08-24 10:26:04,896 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f9d3221-ad79-4fc4-b56f-3d22c68576ee', 'name': '', 'tenant_id': 'ce151cc19bd54085a709f590c4592b01', 'network_id': '79c946b4-da78-4d68-b363-0f40c501fc31', 'ip_version': 4, 'cidr': '45.0.158.0/26', 'allocation_pools': [{'start': '45.0.158.2', 'end': '45.0.158.62'}], 'gateway_ip': '45.0.158.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.0.158.2', 'tags': [], 'project_id': 'ce151cc19bd54085a709f590c4592b01'}} 2024-08-24 10:26:04,917 - INFO - Created VN ctest-vn-19187495 2024-08-24 10:26:04,966 - DEBUG - VN ctest-vn-19187495 UUID is 79c946b4-da78-4d68-b363-0f40c501fc31 2024-08-24 10:26:05,257 - DEBUG - Response for create_network : {'network': {'id': '572395f3-c27d-4f61-bb25-56e83278a223', 'name': 'ctest-vn-59782633', 'tenant_id': 'ce151cc19bd54085a709f590c4592b01', 'project_id': 'ce151cc19bd54085a709f590c4592b01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-vn-59782633'], 'port_security_enabled': True, 'description': ''}} 2024-08-24 10:26:05,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '542644b5-9f27-46d4-b55a-19f8ccee9219', 'name': '', 'tenant_id': 'ce151cc19bd54085a709f590c4592b01', 'network_id': '572395f3-c27d-4f61-bb25-56e83278a223', 'ip_version': 4, 'cidr': '125.222.61.0/26', 'allocation_pools': [{'start': '125.222.61.2', 'end': '125.222.61.62'}], 'gateway_ip': '125.222.61.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.222.61.2', 'tags': [], 'project_id': 'ce151cc19bd54085a709f590c4592b01'}} 2024-08-24 10:26:05,466 - INFO - Created VN ctest-vn-59782633 2024-08-24 10:26:05,518 - DEBUG - VN ctest-vn-59782633 UUID is 572395f3-c27d-4f61-bb25-56e83278a223 2024-08-24 10:26:05,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495, 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-03347845:ctest-vn-59782633, 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-24 10:26:05,925 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '79c946b4-da78-4d68-b363-0f40c501fc31', 'name': 'ctest-vn-19187495', 'tenant_id': 'ce151cc19bd54085a709f590c4592b01', 'project_id': 'ce151cc19bd54085a709f590c4592b01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9f9d3221-ad79-4fc4-b56f-3d22c68576ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-vn-19187495'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-policy-allow-all-53791402']], 'subnet_ipam': [{'subnet_cidr': '45.0.158.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-24 10:26:06,202 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '572395f3-c27d-4f61-bb25-56e83278a223', 'name': 'ctest-vn-59782633', 'tenant_id': 'ce151cc19bd54085a709f590c4592b01', 'project_id': 'ce151cc19bd54085a709f590c4592b01', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['542644b5-9f27-46d4-b55a-19f8ccee9219'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-vn-59782633'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-policy-allow-all-53791402']], 'subnet_ipam': [{'subnet_cidr': '125.222.61.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-24 10:26:06,322 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-24 10:26:06,625 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-24 10:26:06,659 - DEBUG - Requesting: http://10.0.0.46:8082/domain/3f692a4d-bbe1-46b2-bc8c-d9780b45dcd7 2024-08-24 10:26:06,674 - DEBUG - Requesting: http://10.0.0.46:8082/project/ce151cc1-9bd5-4085-a709-f590c4592b01 2024-08-24 10:26:06,748 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/79c946b4-da78-4d68-b363-0f40c501fc31 2024-08-24 10:26:06,757 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/79c946b4-da78-4d68-b363-0f40c501fc31 2024-08-24 10:26:06,765 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/0f3f9de1-7676-403a-bc91-8aaafa33e499 2024-08-24 10:26:06,772 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/0f3f9de1-7676-403a-bc91-8aaafa33e499 2024-08-24 10:26:06,778 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/2de90ee6-1bf9-4c78-b767-3720451f56e9 2024-08-24 10:26:06,785 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-24 10:26:06,785 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/79c946b4-da78-4d68-b363-0f40c501fc31 2024-08-24 10:26:06,792 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/0f3f9de1-7676-403a-bc91-8aaafa33e499 2024-08-24 10:26:06,804 - INFO - Verified VN network id 9 for VN 79c946b4-da78-4d68-b363-0f40c501fc31 2024-08-24 10:26:06,804 - INFO - Verifications in API Server for VN ctest-vn-19187495 passed 2024-08-24 10:26:06,804 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/79c946b4-da78-4d68-b363-0f40c501fc31 2024-08-24 10:26:06,812 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/0f3f9de1-7676-403a-bc91-8aaafa33e499 2024-08-24 10:26:06,818 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/0f3f9de1-7676-403a-bc91-8aaafa33e499 2024-08-24 10:26:06,824 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/2de90ee6-1bf9-4c78-b767-3720451f56e9 2024-08-24 10:26:06,836 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03347845', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8775623091481496936', 'uuid-lslong': '12926192126341020721'}, 'enable': 'true', 'created': '2024-08-24T10:26:04', 'last-modified': '2024-08-24T10:26:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934213'} 2024-08-24 10:26:06,843 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-24 10:26:06,843 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19187495 passed 2024-08-24 10:26:06,843 - DEBUG - ====Verifying policy data for ctest-vn-19187495 in API_Server ====== 2024-08-24 10:26:06,844 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-24 10:26:06,849 - DEBUG - Requesting: http://10.0.0.46:8082/domain/3f692a4d-bbe1-46b2-bc8c-d9780b45dcd7 2024-08-24 10:26:06,861 - DEBUG - Requesting: http://10.0.0.46:8082/project/ce151cc1-9bd5-4085-a709-f590c4592b01 2024-08-24 10:26:06,934 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/79c946b4-da78-4d68-b363-0f40c501fc31 2024-08-24 10:26:06,943 - DEBUG - ==>Verifying data for policy with id: 75b8cb96-a5d7-4c2d-9576-d6bd40879c46, fqn: ['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-policy-allow-all-53791402'] 2024-08-24 10:26:06,943 - INFO - VN ctest-vn-19187495 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-24 10:26:06,943 - DEBUG - Verifying the vn in opserver 2024-08-24 10:26:06,943 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495 virtual network link through opserver 10.0.0.46 2024-08-24 10:26:06,943 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2024-08-24 10:26:07,236 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2024-08-24 10:26:07,302 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495?flat'} 2024-08-24 10:26:07,302 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495 is found in opserver 2024-08-24 10:26:07,312 - DEBUG - Do not have enough data to verify VN in agent 2024-08-24 10:26:07,317 - DEBUG - VRF ids for VN ctest-vn-19187495: {} 2024-08-24 10:26:07,317 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-24 10:26:07,322 - DEBUG - Requesting: http://10.0.0.46:8082/domain/3f692a4d-bbe1-46b2-bc8c-d9780b45dcd7 2024-08-24 10:26:07,335 - DEBUG - Requesting: http://10.0.0.46:8082/project/ce151cc1-9bd5-4085-a709-f590c4592b01 2024-08-24 10:26:07,405 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/572395f3-c27d-4f61-bb25-56e83278a223 2024-08-24 10:26:07,415 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/572395f3-c27d-4f61-bb25-56e83278a223 2024-08-24 10:26:07,424 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1a109dd4-72d5-4d50-ba07-b69ea8edbb63 2024-08-24 10:26:07,431 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1a109dd4-72d5-4d50-ba07-b69ea8edbb63 2024-08-24 10:26:07,438 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/c08085af-019d-40df-a212-8e5afacc043c 2024-08-24 10:26:07,444 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-24 10:26:07,444 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/572395f3-c27d-4f61-bb25-56e83278a223 2024-08-24 10:26:07,453 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1a109dd4-72d5-4d50-ba07-b69ea8edbb63 2024-08-24 10:26:07,465 - INFO - Verified VN network id 10 for VN 572395f3-c27d-4f61-bb25-56e83278a223 2024-08-24 10:26:07,465 - INFO - Verifications in API Server for VN ctest-vn-59782633 passed 2024-08-24 10:26:07,465 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/572395f3-c27d-4f61-bb25-56e83278a223 2024-08-24 10:26:07,473 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1a109dd4-72d5-4d50-ba07-b69ea8edbb63 2024-08-24 10:26:07,481 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1a109dd4-72d5-4d50-ba07-b69ea8edbb63 2024-08-24 10:26:07,487 - DEBUG - Requesting: http://10.0.0.46:8082/route-target/c08085af-019d-40df-a212-8e5afacc043c 2024-08-24 10:26:07,499 - DEBUG - Control-node 10.0.0.46 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-59782633', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03347845', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6279027179657187169', 'uuid-lslong': '13485280214509986339'}, 'enable': 'true', 'created': '2024-08-24T10:26:05', 'last-modified': '2024-08-24T10:26:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.363440'} 2024-08-24 10:26:07,505 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-24 10:26:07,505 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59782633 passed 2024-08-24 10:26:07,506 - DEBUG - ====Verifying policy data for ctest-vn-59782633 in API_Server ====== 2024-08-24 10:26:07,506 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-24 10:26:07,512 - DEBUG - Requesting: http://10.0.0.46:8082/domain/3f692a4d-bbe1-46b2-bc8c-d9780b45dcd7 2024-08-24 10:26:07,526 - DEBUG - Requesting: http://10.0.0.46:8082/project/ce151cc1-9bd5-4085-a709-f590c4592b01 2024-08-24 10:26:07,602 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-network/572395f3-c27d-4f61-bb25-56e83278a223 2024-08-24 10:26:07,610 - DEBUG - ==>Verifying data for policy with id: 75b8cb96-a5d7-4c2d-9576-d6bd40879c46, fqn: ['default-domain', 'ctest-TestBasicPolicy-03347845', 'ctest-policy-allow-all-53791402'] 2024-08-24 10:26:07,610 - INFO - VN ctest-vn-59782633 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-24 10:26:07,610 - DEBUG - Verifying the vn in opserver 2024-08-24 10:26:07,610 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-59782633 virtual network link through opserver 10.0.0.46 2024-08-24 10:26:07,610 - DEBUG - Requesting: http://10.0.0.46:8081/analytics/uves/virtual-networks 2024-08-24 10:26:07,622 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-59782633', 'href': 'http://10.0.0.46:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-59782633?flat'} 2024-08-24 10:26:07,622 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-59782633 is found in opserver 2024-08-24 10:26:07,637 - DEBUG - Do not have enough data to verify VN in agent 2024-08-24 10:26:07,642 - DEBUG - VRF ids for VN ctest-vn-59782633: {} 2024-08-24 10:26:07,705 - DEBUG - Services list from nova: [, , ] 2024-08-24 10:26:08,739 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1747-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1747-1) 2024-08-24 10:26:10,051 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1747-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1747-1) 2024-08-24 10:26:10,052 - INFO - Waiting for VM ctest-TestBasicPolicy-03347845-99090740 to be up.. 2024-08-24 10:26:10,149 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-24 10:26:15,297 - DEBUG - VM is in ACTIVE state now 2024-08-24 10:26:15,297 - INFO - VM name : ctest-TestBasicPolicy-03347845-99090740 2024-08-24 10:26:15,450 - DEBUG - VM ctest-TestBasicPolicy-03347845-99090740 ID is fb24602d-c32f-4f31-b1a2-dcc5b9bb0a57 2024-08-24 10:26:15,473 - DEBUG - VM ctest-TestBasicPolicy-03347845-99090740 launched on Node cn-jenkins-deploy-platform-ansible-os-1747-1 2024-08-24 10:26:15,648 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/fb24602d-c32f-4f31-b1a2-dcc5b9bb0a57 2024-08-24 10:26:15,666 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/7b984ffa-dbc5-4bc9-b8bd-1d0388ce9bd8 2024-08-24 10:26:18,956 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1030ms') 2024-08-24 10:26:18,956 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03347845-99090740 failed! 2024-08-24 10:26:19,014 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-03347845:ctest-vn-19187495 is 45.0.158.1 and allocation pool is NOT set 2024-08-24 10:26:21,077 - 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.54 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.598 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.598/1.568/2.539/0.970 ms') 2024-08-24 10:26:21,077 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-03347845-99090740 passed 2024-08-24 10:26:21,226 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 10:26:21,226 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03347845-99090740, IP 45.0.158.3, Port 22 2024-08-24 10:26:21,382 - DEBUG - VM ctest-TestBasicPolicy-03347845-99090740 is ready for SSH connections 2024-08-24 10:26:21,382 - INFO - Waiting for VM ctest-TestBasicPolicy-03347845-62313224 to be up.. 2024-08-24 10:26:21,462 - DEBUG - VM is in ACTIVE state now 2024-08-24 10:26:21,462 - INFO - VM name : ctest-TestBasicPolicy-03347845-62313224 2024-08-24 10:26:21,540 - DEBUG - VM ctest-TestBasicPolicy-03347845-62313224 ID is 51216916-0dd9-4c2e-b864-5eea12d40ae5 2024-08-24 10:26:21,540 - DEBUG - VM ctest-TestBasicPolicy-03347845-62313224 launched on Node cn-jenkins-deploy-platform-ansible-os-1747-1 2024-08-24 10:26:21,623 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine/51216916-0dd9-4c2e-b864-5eea12d40ae5 2024-08-24 10:26:21,634 - DEBUG - Requesting: http://10.0.0.46:8082/virtual-machine-interface/c4a672f8-3ded-49ec-9773-c0b7ec22c037 2024-08-24 10:26:22,873 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=4.17 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.417 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.417/2.295/4.174/1.878 ms') 2024-08-24 10:26:22,874 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-03347845-62313224 passed 2024-08-24 10:26:23,026 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 10:26:23,026 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-03347845-62313224, IP 125.222.61.3, Port 22 2024-08-24 10:26:23,193 - DEBUG - VM ctest-TestBasicPolicy-03347845-62313224 is ready for SSH connections 2024-08-24 10:26:23,193 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 10:26:23,193 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 125.222.61.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2024-08-24 10:26:23,194 - DEBUG - ping -s 56 -c 3 -W 1 125.222.61.3 2024-08-24 10:26:26,895 - DEBUG - PING 125.222.61.3 (125.222.61.3): 56 data bytes 64 bytes from 125.222.61.3: seq=0 ttl=63 time=4.559 ms 64 bytes from 125.222.61.3: seq=1 ttl=63 time=0.879 ms 64 bytes from 125.222.61.3: seq=2 ttl=63 time=1.049 ms --- 125.222.61.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.879/2.162/4.559 ms 2024-08-24 10:26:26,895 - INFO - Ping to IP 125.222.61.3 from VM ctest-TestBasicPolicy-03347845-99090740 passed 2024-08-24 10:26:27,078 - DEBUG - Policy Update Response {"network-policy": {"uuid": "75b8cb96-a5d7-4c2d-9576-d6bd40879c46", "href": "http://10.0.0.46:8082/network-policy/75b8cb96-a5d7-4c2d-9576-d6bd40879c46"}} 2024-08-24 10:26:27,078 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-24 10:26:27,078 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 125.222.61.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.46, gateway password: c0ntrail123 2024-08-24 10:26:27,078 - DEBUG - ping -s 56 -c 3 -W 1 125.222.61.3 2024-08-24 10:26:30,288 - DEBUG - PING 125.222.61.3 (125.222.61.3): 56 data bytes 64 bytes from 125.222.61.3: seq=0 ttl=63 time=1.429 ms --- 125.222.61.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.429/1.429/1.429 ms 2024-08-24 10:26:30,288 - WARNING - Ping to IP 125.222.61.3 from VM ctest-TestBasicPolicy-03347845-99090740 failed 2024-08-24 10:26:30,288 - INFO - Deleting VM ctest-TestBasicPolicy-03347845-62313224 2024-08-24 10:26:30,356 - INFO - Deleting VM ctest-TestBasicPolicy-03347845-99090740 2024-08-24 10:26:30,802 - INFO - Deleted policy ctest-policy-allow-all-53791402 2024-08-24 10:26:30,803 - INFO - Deleting VN ctest-vn-59782633 2024-08-24 10:26:30,848 - DEBUG - VN 572395f3-c27d-4f61-bb25-56e83278a223 still in use: Unable to complete operation on network 572395f3-c27d-4f61-bb25-56e83278a223. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4b06c474-4bda-4768-aa6f-ec4664cd1098'] 2024-08-24 10:26:30,848 - WARNING - Deleting VN ctest-vn-59782633 failed..Will retry 2024-08-24 10:26:32,955 - DEBUG - Response for deleting network () 2024-08-24 10:26:32,956 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/1a109dd4-72d5-4d50-ba07-b69ea8edbb63 2024-08-24 10:26:32,962 - DEBUG - Response Code: 404 2024-08-24 10:26:32,962 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-24 10:26:32,969 - DEBUG - Requesting: http://10.0.0.46:8082/domain/3f692a4d-bbe1-46b2-bc8c-d9780b45dcd7 2024-08-24 10:26:33,024 - DEBUG - Requesting: http://10.0.0.46:8082/project/ce151cc1-9bd5-4085-a709-f590c4592b01 2024-08-24 10:26:33,094 - INFO - Validated that VN ctest-vn-59782633 is not found in API Server 2024-08-24 10:26:33,107 - DEBUG - VN ctest-vn-59782633 is not present in Agent 10.0.0.46 2024-08-24 10:26:33,107 - INFO - Validated that VN ctest-vn-59782633 is not in any agent 2024-08-24 10:26:33,124 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59782633 info 2024-08-24 10:26:33,124 - INFO - Deleting VN ctest-vn-19187495 2024-08-24 10:26:33,232 - DEBUG - Response for deleting network () 2024-08-24 10:26:33,232 - DEBUG - Requesting: http://10.0.0.46:8082/routing-instance/0f3f9de1-7676-403a-bc91-8aaafa33e499 2024-08-24 10:26:33,237 - DEBUG - Response Code: 404 2024-08-24 10:26:33,237 - DEBUG - Requesting: http://10.0.0.46:8082/domains 2024-08-24 10:26:33,247 - DEBUG - Requesting: http://10.0.0.46:8082/domain/3f692a4d-bbe1-46b2-bc8c-d9780b45dcd7 2024-08-24 10:26:33,299 - DEBUG - Requesting: http://10.0.0.46:8082/project/ce151cc1-9bd5-4085-a709-f590c4592b01 2024-08-24 10:26:33,367 - INFO - Validated that VN ctest-vn-19187495 is not found in API Server 2024-08-24 10:26:33,378 - DEBUG - VN ctest-vn-19187495 is not present in Agent 10.0.0.46 2024-08-24 10:26:33,378 - INFO - Validated that VN ctest-vn-19187495 is not in any agent 2024-08-24 10:26:33,392 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-19187495 info 2024-08-24 10:26:33,648 - DEBUG - No XMPP flaps were noticed during the test
2024-08-24 10:26:33,648 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-08-24 10:26:33,648 - INFO - -------------------------------------------------------------------------------- 2024-08-24 10:26:34,353 - INFO - Deleted project: ctest-TestBasicPolicy-03347845, ID : ce151cc1-9bd5-4085-a709-f590c4592b01