2024-11-07 15:40:38,826 - INFO - Domain Default found not creating 2024-11-07 15:40:39,007 - INFO - Project ctest-TestBasicPolicy-63094984 not found, creating it 2024-11-07 15:40:39,512 - INFO - Created Project:ctest-TestBasicPolicy-63094984, ID : 1252ccee-29a1-432b-bad6-32509a48a8b8 2024-11-07 15:40:41,217 - INFO - ================================================================================ 2024-11-07 15:40:41,217 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-07 15:40:41,217 - 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-11-07 15:40:41,478 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.6': '0'}} with 2024-11-07 15:40:41,479 - INFO - Initial checks done. Running the testcase now 2024-11-07 15:40:41,479 - INFO - 2024-11-07 15:40:42,162 - DEBUG - Response for create_network : {'network': {'id': '94449167-17a1-4a9f-a991-b2ebd5fc7590', 'name': 'ctest-vn-68862221', 'tenant_id': '1252ccee29a1432bbad632509a48a8b8', 'project_id': '1252ccee29a1432bbad632509a48a8b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-vn-68862221'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 15:40:42,396 - DEBUG - Response for create_subnet : {'subnet': {'id': '95a33836-3989-4873-b491-1cb648d52f7d', 'name': '', 'tenant_id': '1252ccee29a1432bbad632509a48a8b8', 'network_id': '94449167-17a1-4a9f-a991-b2ebd5fc7590', 'ip_version': 4, 'cidr': '171.1.66.192/26', 'allocation_pools': [{'start': '171.1.66.194', 'end': '171.1.66.254'}], 'gateway_ip': '171.1.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.1.66.194', 'tags': [], 'project_id': '1252ccee29a1432bbad632509a48a8b8'}} 2024-11-07 15:40:42,418 - INFO - Created VN ctest-vn-68862221 2024-11-07 15:40:42,479 - DEBUG - VN ctest-vn-68862221 UUID is 94449167-17a1-4a9f-a991-b2ebd5fc7590 2024-11-07 15:40:42,831 - DEBUG - Response for create_network : {'network': {'id': 'a7dd89e9-e2fc-466a-be12-b2b9622ea83a', 'name': 'ctest-vn-92624202', 'tenant_id': '1252ccee29a1432bbad632509a48a8b8', 'project_id': '1252ccee29a1432bbad632509a48a8b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-vn-92624202'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 15:40:43,034 - DEBUG - Response for create_subnet : {'subnet': {'id': '16f033d2-8588-4e6c-a5f7-59ffafcd4022', 'name': '', 'tenant_id': '1252ccee29a1432bbad632509a48a8b8', 'network_id': 'a7dd89e9-e2fc-466a-be12-b2b9622ea83a', 'ip_version': 4, 'cidr': '178.20.203.0/26', 'allocation_pools': [{'start': '178.20.203.2', 'end': '178.20.203.62'}], 'gateway_ip': '178.20.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.20.203.2', 'tags': [], 'project_id': '1252ccee29a1432bbad632509a48a8b8'}} 2024-11-07 15:40:43,056 - INFO - Created VN ctest-vn-92624202 2024-11-07 15:40:43,119 - DEBUG - VN ctest-vn-92624202 UUID is a7dd89e9-e2fc-466a-be12-b2b9622ea83a 2024-11-07 15:40:43,255 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221, 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-63094984:ctest-vn-92624202, 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-11-07 15:40:43,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94449167-17a1-4a9f-a991-b2ebd5fc7590', 'name': 'ctest-vn-68862221', 'tenant_id': '1252ccee29a1432bbad632509a48a8b8', 'project_id': '1252ccee29a1432bbad632509a48a8b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95a33836-3989-4873-b491-1cb648d52f7d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-vn-68862221'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-policy-allow-all-04051515']], 'subnet_ipam': [{'subnet_cidr': '171.1.66.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 15:40:43,857 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7dd89e9-e2fc-466a-be12-b2b9622ea83a', 'name': 'ctest-vn-92624202', 'tenant_id': '1252ccee29a1432bbad632509a48a8b8', 'project_id': '1252ccee29a1432bbad632509a48a8b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['16f033d2-8588-4e6c-a5f7-59ffafcd4022'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-vn-92624202'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-policy-allow-all-04051515']], 'subnet_ipam': [{'subnet_cidr': '178.20.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 15:40:44,051 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-07 15:40:44,386 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-07 15:40:44,420 - DEBUG - Requesting: http://10.0.0.30:8082/domain/68b5d7e3-d1e0-495e-b7cd-1b245ea3cb81 2024-11-07 15:40:44,436 - DEBUG - Requesting: http://10.0.0.30:8082/project/1252ccee-29a1-432b-bad6-32509a48a8b8 2024-11-07 15:40:44,521 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/94449167-17a1-4a9f-a991-b2ebd5fc7590 2024-11-07 15:40:44,538 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/94449167-17a1-4a9f-a991-b2ebd5fc7590 2024-11-07 15:40:44,554 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2df1af56-db8e-4107-83a6-43c3d51873d6 2024-11-07 15:40:44,564 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2df1af56-db8e-4107-83a6-43c3d51873d6 2024-11-07 15:40:44,575 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/1509e60c-17b1-47aa-b136-c41bd4283ea8 2024-11-07 15:40:44,584 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 15:40:44,584 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/94449167-17a1-4a9f-a991-b2ebd5fc7590 2024-11-07 15:40:44,599 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2df1af56-db8e-4107-83a6-43c3d51873d6 2024-11-07 15:40:44,621 - INFO - Verified VN network id 8 for VN 94449167-17a1-4a9f-a991-b2ebd5fc7590 2024-11-07 15:40:44,622 - INFO - Verifications in API Server for VN ctest-vn-68862221 passed 2024-11-07 15:40:44,622 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/94449167-17a1-4a9f-a991-b2ebd5fc7590 2024-11-07 15:40:44,637 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2df1af56-db8e-4107-83a6-43c3d51873d6 2024-11-07 15:40:44,647 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2df1af56-db8e-4107-83a6-43c3d51873d6 2024-11-07 15:40:44,656 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/1509e60c-17b1-47aa-b136-c41bd4283ea8 2024-11-07 15:40:44,672 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63094984', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10683824087993764511', 'uuid-lslong': '12218743990010017168'}, 'enable': 'true', 'created': '2024-11-07T15:40:42', 'last-modified': '2024-11-07T15:40:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.096695'} 2024-11-07 15:40:44,680 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 15:40:44,680 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68862221 passed 2024-11-07 15:40:44,681 - DEBUG - ====Verifying policy data for ctest-vn-68862221 in API_Server ====== 2024-11-07 15:40:44,681 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-07 15:40:44,688 - DEBUG - Requesting: http://10.0.0.30:8082/domain/68b5d7e3-d1e0-495e-b7cd-1b245ea3cb81 2024-11-07 15:40:44,704 - DEBUG - Requesting: http://10.0.0.30:8082/project/1252ccee-29a1-432b-bad6-32509a48a8b8 2024-11-07 15:40:44,790 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/94449167-17a1-4a9f-a991-b2ebd5fc7590 2024-11-07 15:40:44,805 - DEBUG - ==>Verifying data for policy with id: 7d9d0246-7eca-4654-ae33-1c4d0a87e2ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-policy-allow-all-04051515'] 2024-11-07 15:40:44,805 - INFO - VN ctest-vn-68862221 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 15:40:44,805 - DEBUG - Verifying the vn in opserver 2024-11-07 15:40:44,805 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221 virtual network link through opserver 10.0.0.30 2024-11-07 15:40:44,806 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-11-07 15:40:45,142 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-11-07 15:40:45,222 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221?flat'} 2024-11-07 15:40:45,222 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221 is found in opserver 2024-11-07 15:40:45,235 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 15:40:45,241 - DEBUG - VRF ids for VN ctest-vn-68862221: {} 2024-11-07 15:40:45,241 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-07 15:40:45,249 - DEBUG - Requesting: http://10.0.0.30:8082/domain/68b5d7e3-d1e0-495e-b7cd-1b245ea3cb81 2024-11-07 15:40:45,264 - DEBUG - Requesting: http://10.0.0.30:8082/project/1252ccee-29a1-432b-bad6-32509a48a8b8 2024-11-07 15:40:45,361 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a7dd89e9-e2fc-466a-be12-b2b9622ea83a 2024-11-07 15:40:45,381 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a7dd89e9-e2fc-466a-be12-b2b9622ea83a 2024-11-07 15:40:45,398 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9361b540-aef8-4c11-ac0f-55cc965a73a1 2024-11-07 15:40:45,409 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9361b540-aef8-4c11-ac0f-55cc965a73a1 2024-11-07 15:40:45,419 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/b080a5d5-891c-4b92-bf5d-439a85b58eb6 2024-11-07 15:40:45,427 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 15:40:45,427 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a7dd89e9-e2fc-466a-be12-b2b9622ea83a 2024-11-07 15:40:45,444 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9361b540-aef8-4c11-ac0f-55cc965a73a1 2024-11-07 15:40:45,472 - INFO - Verified VN network id 9 for VN a7dd89e9-e2fc-466a-be12-b2b9622ea83a 2024-11-07 15:40:45,473 - INFO - Verifications in API Server for VN ctest-vn-92624202 passed 2024-11-07 15:40:45,473 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a7dd89e9-e2fc-466a-be12-b2b9622ea83a 2024-11-07 15:40:45,489 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9361b540-aef8-4c11-ac0f-55cc965a73a1 2024-11-07 15:40:45,500 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9361b540-aef8-4c11-ac0f-55cc965a73a1 2024-11-07 15:40:45,510 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/b080a5d5-891c-4b92-bf5d-439a85b58eb6 2024-11-07 15:40:45,525 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-92624202', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63094984', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12095975811815589482', 'uuid-lslong': '13696205926073018426'}, 'enable': 'true', 'created': '2024-11-07T15:40:42', 'last-modified': '2024-11-07T15:40:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.696847'} 2024-11-07 15:40:45,532 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 15:40:45,532 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92624202 passed 2024-11-07 15:40:45,533 - DEBUG - ====Verifying policy data for ctest-vn-92624202 in API_Server ====== 2024-11-07 15:40:45,533 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-07 15:40:45,540 - DEBUG - Requesting: http://10.0.0.30:8082/domain/68b5d7e3-d1e0-495e-b7cd-1b245ea3cb81 2024-11-07 15:40:45,555 - DEBUG - Requesting: http://10.0.0.30:8082/project/1252ccee-29a1-432b-bad6-32509a48a8b8 2024-11-07 15:40:45,640 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/a7dd89e9-e2fc-466a-be12-b2b9622ea83a 2024-11-07 15:40:45,656 - DEBUG - ==>Verifying data for policy with id: 7d9d0246-7eca-4654-ae33-1c4d0a87e2ac, fqn: ['default-domain', 'ctest-TestBasicPolicy-63094984', 'ctest-policy-allow-all-04051515'] 2024-11-07 15:40:45,656 - INFO - VN ctest-vn-92624202 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 15:40:45,656 - DEBUG - Verifying the vn in opserver 2024-11-07 15:40:45,656 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-92624202 virtual network link through opserver 10.0.0.30 2024-11-07 15:40:45,656 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks 2024-11-07 15:40:45,669 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-92624202', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-92624202?flat'} 2024-11-07 15:40:45,670 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-92624202 is found in opserver 2024-11-07 15:40:45,683 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 15:40:45,688 - DEBUG - VRF ids for VN ctest-vn-92624202: {} 2024-11-07 15:40:45,757 - DEBUG - Services list from nova: [, , ] 2024-11-07 15:40:46,989 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2218-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2218-1) 2024-11-07 15:40:48,488 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2218-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2218-1) 2024-11-07 15:40:48,488 - INFO - Waiting for VM ctest-TestBasicPolicy-63094984-31051143 to be up.. 2024-11-07 15:40:48,593 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 15:40:53,683 - DEBUG - VM is in ACTIVE state now 2024-11-07 15:40:53,683 - INFO - VM name : ctest-TestBasicPolicy-63094984-31051143 2024-11-07 15:40:53,772 - DEBUG - VM ctest-TestBasicPolicy-63094984-31051143 ID is 4e2e6694-c6c1-49e1-beda-722def5e869e 2024-11-07 15:40:53,792 - DEBUG - VM ctest-TestBasicPolicy-63094984-31051143 launched on Node cn-jenkins-deploy-platform-ansible-os-2218-1 2024-11-07 15:40:53,876 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/4e2e6694-c6c1-49e1-beda-722def5e869e 2024-11-07 15:40:53,889 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/fb1ffc50-c194-416d-b708-393ece9e5d23 2024-11-07 15:40:57,157 - 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 1006ms') 2024-11-07 15:40:57,157 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63094984-31051143 failed! 2024-11-07 15:40:57,223 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-63094984:ctest-vn-68862221 is 171.1.66.193 and allocation pool is NOT set 2024-11-07 15:40:59,286 - 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=10.4 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.706 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 = 0.706/5.548/10.390/4.842 ms') 2024-11-07 15:40:59,286 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-63094984-31051143 passed 2024-11-07 15:40:59,467 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 15:40:59,467 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63094984-31051143, IP 171.1.66.195, Port 22 2024-11-07 15:40:59,645 - DEBUG - VM ctest-TestBasicPolicy-63094984-31051143 is ready for SSH connections 2024-11-07 15:40:59,645 - INFO - Waiting for VM ctest-TestBasicPolicy-63094984-54163330 to be up.. 2024-11-07 15:40:59,737 - DEBUG - VM is in ACTIVE state now 2024-11-07 15:40:59,737 - INFO - VM name : ctest-TestBasicPolicy-63094984-54163330 2024-11-07 15:40:59,826 - DEBUG - VM ctest-TestBasicPolicy-63094984-54163330 ID is 05841867-f411-41a7-bcdb-9acc4738fcec 2024-11-07 15:40:59,826 - DEBUG - VM ctest-TestBasicPolicy-63094984-54163330 launched on Node cn-jenkins-deploy-platform-ansible-os-2218-1 2024-11-07 15:40:59,914 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine/05841867-f411-41a7-bcdb-9acc4738fcec 2024-11-07 15:40:59,928 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-machine-interface/d11b7289-21e7-4768-a41b-0f3d94f861e6 2024-11-07 15:41:01,190 - 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.37 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.72 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 = 1.722/3.043/4.365/1.321 ms') 2024-11-07 15:41:01,190 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-63094984-54163330 passed 2024-11-07 15:41:01,367 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 15:41:01,367 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-63094984-54163330, IP 178.20.203.3, Port 22 2024-11-07 15:41:01,527 - DEBUG - VM ctest-TestBasicPolicy-63094984-54163330 is ready for SSH connections 2024-11-07 15:41:01,527 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 15:41:01,527 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 178.20.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-11-07 15:41:01,527 - DEBUG - ping -s 56 -c 3 -W 1 178.20.203.3 2024-11-07 15:41:05,268 - DEBUG - PING 178.20.203.3 (178.20.203.3): 56 data bytes 64 bytes from 178.20.203.3: seq=0 ttl=63 time=5.099 ms 64 bytes from 178.20.203.3: seq=1 ttl=63 time=0.844 ms 64 bytes from 178.20.203.3: seq=2 ttl=63 time=0.945 ms --- 178.20.203.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.844/2.296/5.099 ms 2024-11-07 15:41:05,268 - INFO - Ping to IP 178.20.203.3 from VM ctest-TestBasicPolicy-63094984-31051143 passed 2024-11-07 15:41:05,471 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7d9d0246-7eca-4654-ae33-1c4d0a87e2ac", "href": "http://10.0.0.30:8082/network-policy/7d9d0246-7eca-4654-ae33-1c4d0a87e2ac"}} 2024-11-07 15:41:05,471 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 15:41:05,471 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 178.20.203.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.30, gateway password: c0ntrail123 2024-11-07 15:41:05,471 - DEBUG - ping -s 56 -c 3 -W 1 178.20.203.3 2024-11-07 15:41:08,715 - DEBUG - PING 178.20.203.3 (178.20.203.3): 56 data bytes 64 bytes from 178.20.203.3: seq=0 ttl=63 time=1.748 ms --- 178.20.203.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.748/1.748/1.748 ms 2024-11-07 15:41:08,715 - WARNING - Ping to IP 178.20.203.3 from VM ctest-TestBasicPolicy-63094984-31051143 failed 2024-11-07 15:41:08,716 - INFO - Deleting VM ctest-TestBasicPolicy-63094984-54163330 2024-11-07 15:41:08,802 - INFO - Deleting VM ctest-TestBasicPolicy-63094984-31051143 2024-11-07 15:41:09,335 - INFO - Deleted policy ctest-policy-allow-all-04051515 2024-11-07 15:41:09,335 - INFO - Deleting VN ctest-vn-92624202 2024-11-07 15:41:09,382 - DEBUG - VN a7dd89e9-e2fc-466a-be12-b2b9622ea83a still in use: Unable to complete operation on network a7dd89e9-e2fc-466a-be12-b2b9622ea83a. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-87925ae8-3f8b-4caa-8d2d-dd00f5a52682'] 2024-11-07 15:41:09,382 - WARNING - Deleting VN ctest-vn-92624202 failed..Will retry 2024-11-07 15:41:11,508 - DEBUG - Response for deleting network () 2024-11-07 15:41:11,508 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9361b540-aef8-4c11-ac0f-55cc965a73a1 2024-11-07 15:41:11,519 - DEBUG - Response Code: 404 2024-11-07 15:41:11,519 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-07 15:41:11,526 - DEBUG - Requesting: http://10.0.0.30:8082/domain/68b5d7e3-d1e0-495e-b7cd-1b245ea3cb81 2024-11-07 15:41:11,589 - DEBUG - Requesting: http://10.0.0.30:8082/project/1252ccee-29a1-432b-bad6-32509a48a8b8 2024-11-07 15:41:11,686 - INFO - Validated that VN ctest-vn-92624202 is not found in API Server 2024-11-07 15:41:11,699 - DEBUG - VN ctest-vn-92624202 is not present in Agent 10.0.0.30 2024-11-07 15:41:11,699 - INFO - Validated that VN ctest-vn-92624202 is not in any agent 2024-11-07 15:41:11,716 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-92624202 info 2024-11-07 15:41:11,716 - INFO - Deleting VN ctest-vn-68862221 2024-11-07 15:41:11,845 - DEBUG - Response for deleting network () 2024-11-07 15:41:11,845 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/2df1af56-db8e-4107-83a6-43c3d51873d6 2024-11-07 15:41:11,854 - DEBUG - Response Code: 404 2024-11-07 15:41:11,854 - DEBUG - Requesting: http://10.0.0.30:8082/domains 2024-11-07 15:41:11,860 - DEBUG - Requesting: http://10.0.0.30:8082/domain/68b5d7e3-d1e0-495e-b7cd-1b245ea3cb81 2024-11-07 15:41:11,923 - DEBUG - Requesting: http://10.0.0.30:8082/project/1252ccee-29a1-432b-bad6-32509a48a8b8 2024-11-07 15:41:12,016 - INFO - Validated that VN ctest-vn-68862221 is not found in API Server 2024-11-07 15:41:12,029 - DEBUG - VN ctest-vn-68862221 is not present in Agent 10.0.0.30 2024-11-07 15:41:12,029 - INFO - Validated that VN ctest-vn-68862221 is not in any agent 2024-11-07 15:41:12,046 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68862221 info 2024-11-07 15:41:12,316 - DEBUG - No XMPP flaps were noticed during the test
2024-11-07 15:41:12,316 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-11-07 15:41:12,316 - INFO - -------------------------------------------------------------------------------- 2024-11-07 15:41:13,126 - INFO - Deleted project: ctest-TestBasicPolicy-63094984, ID : 1252ccee-29a1-432b-bad6-32509a48a8b8