2024-10-31 02:26:58,382 - INFO - Domain Default found not creating 2024-10-31 02:26:58,618 - INFO - Project ctest-TestBasicPolicy-73126821 not found, creating it 2024-10-31 02:26:59,471 - INFO - Created Project:ctest-TestBasicPolicy-73126821, ID : 0667a334-10f1-4717-82dd-2d59e0948890 2024-10-31 02:27:00,968 - INFO - ================================================================================ 2024-10-31 02:27:00,969 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-31 02:27:00,969 - 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-31 02:27:01,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.6': '0'}} with 2024-10-31 02:27:01,231 - INFO - Initial checks done. Running the testcase now 2024-10-31 02:27:01,231 - INFO - 2024-10-31 02:27:01,794 - DEBUG - Response for create_network : {'network': {'id': 'fe85bc86-d637-4b39-86e2-0cb3c75da8e4', 'name': 'ctest-vn-95239569', 'tenant_id': '0667a33410f1471782dd2d59e0948890', 'project_id': '0667a33410f1471782dd2d59e0948890', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-vn-95239569'], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:27:02,029 - DEBUG - Response for create_subnet : {'subnet': {'id': '0af962a7-317f-429b-8e37-72043f132002', 'name': '', 'tenant_id': '0667a33410f1471782dd2d59e0948890', 'network_id': 'fe85bc86-d637-4b39-86e2-0cb3c75da8e4', 'ip_version': 4, 'cidr': '220.23.234.192/26', 'allocation_pools': [{'start': '220.23.234.194', 'end': '220.23.234.254'}], 'gateway_ip': '220.23.234.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.23.234.194', 'tags': [], 'project_id': '0667a33410f1471782dd2d59e0948890'}} 2024-10-31 02:27:02,052 - INFO - Created VN ctest-vn-95239569 2024-10-31 02:27:02,102 - DEBUG - VN ctest-vn-95239569 UUID is fe85bc86-d637-4b39-86e2-0cb3c75da8e4 2024-10-31 02:27:02,390 - DEBUG - Response for create_network : {'network': {'id': '8eb606d6-b41d-41c5-bdf3-36900e7961a1', 'name': 'ctest-vn-45568094', 'tenant_id': '0667a33410f1471782dd2d59e0948890', 'project_id': '0667a33410f1471782dd2d59e0948890', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-vn-45568094'], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:27:02,542 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc78275f-da13-433c-bfda-ebfdabbc5207', 'name': '', 'tenant_id': '0667a33410f1471782dd2d59e0948890', 'network_id': '8eb606d6-b41d-41c5-bdf3-36900e7961a1', 'ip_version': 4, 'cidr': '193.133.175.64/26', 'allocation_pools': [{'start': '193.133.175.66', 'end': '193.133.175.126'}], 'gateway_ip': '193.133.175.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.133.175.66', 'tags': [], 'project_id': '0667a33410f1471782dd2d59e0948890'}} 2024-10-31 02:27:02,563 - INFO - Created VN ctest-vn-45568094 2024-10-31 02:27:02,614 - DEBUG - VN ctest-vn-45568094 UUID is 8eb606d6-b41d-41c5-bdf3-36900e7961a1 2024-10-31 02:27:02,732 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569, 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-73126821:ctest-vn-45568094, 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-31 02:27:03,025 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe85bc86-d637-4b39-86e2-0cb3c75da8e4', 'name': 'ctest-vn-95239569', 'tenant_id': '0667a33410f1471782dd2d59e0948890', 'project_id': '0667a33410f1471782dd2d59e0948890', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0af962a7-317f-429b-8e37-72043f132002'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-vn-95239569'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-policy-allow-all-41369706']], 'subnet_ipam': [{'subnet_cidr': '220.23.234.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:27:03,263 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8eb606d6-b41d-41c5-bdf3-36900e7961a1', 'name': 'ctest-vn-45568094', 'tenant_id': '0667a33410f1471782dd2d59e0948890', 'project_id': '0667a33410f1471782dd2d59e0948890', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc78275f-da13-433c-bfda-ebfdabbc5207'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-vn-45568094'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-policy-allow-all-41369706']], 'subnet_ipam': [{'subnet_cidr': '193.133.175.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-31 02:27:03,435 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-31 02:27:03,735 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-31 02:27:03,773 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe7e8e09-5e09-4e9d-a716-d1f8d98e9013 2024-10-31 02:27:03,789 - DEBUG - Requesting: http://10.0.0.29:8082/project/0667a334-10f1-4717-82dd-2d59e0948890 2024-10-31 02:27:03,862 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fe85bc86-d637-4b39-86e2-0cb3c75da8e4 2024-10-31 02:27:03,873 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fe85bc86-d637-4b39-86e2-0cb3c75da8e4 2024-10-31 02:27:03,880 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/888608ee-edc7-416c-8aeb-6a348d9d6292 2024-10-31 02:27:03,887 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/888608ee-edc7-416c-8aeb-6a348d9d6292 2024-10-31 02:27:03,895 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/a9388858-95ea-41a8-9dcd-34b148bae027 2024-10-31 02:27:03,905 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-31 02:27:03,905 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fe85bc86-d637-4b39-86e2-0cb3c75da8e4 2024-10-31 02:27:03,913 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/888608ee-edc7-416c-8aeb-6a348d9d6292 2024-10-31 02:27:03,926 - INFO - Verified VN network id 8 for VN fe85bc86-d637-4b39-86e2-0cb3c75da8e4 2024-10-31 02:27:03,926 - INFO - Verifications in API Server for VN ctest-vn-95239569 passed 2024-10-31 02:27:03,926 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fe85bc86-d637-4b39-86e2-0cb3c75da8e4 2024-10-31 02:27:03,938 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/888608ee-edc7-416c-8aeb-6a348d9d6292 2024-10-31 02:27:03,945 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/888608ee-edc7-416c-8aeb-6a348d9d6292 2024-10-31 02:27:03,951 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/a9388858-95ea-41a8-9dcd-34b148bae027 2024-10-31 02:27:03,963 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73126821', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18340272344841800505', 'uuid-lslong': '9719344912102435044'}, 'enable': 'true', 'created': '2024-10-31T02:27:01', 'last-modified': '2024-10-31T02:27:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956914'} 2024-10-31 02:27:03,969 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-31 02:27:03,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95239569 passed 2024-10-31 02:27:03,970 - DEBUG - ====Verifying policy data for ctest-vn-95239569 in API_Server ====== 2024-10-31 02:27:03,970 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-31 02:27:03,975 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe7e8e09-5e09-4e9d-a716-d1f8d98e9013 2024-10-31 02:27:03,985 - DEBUG - Requesting: http://10.0.0.29:8082/project/0667a334-10f1-4717-82dd-2d59e0948890 2024-10-31 02:27:04,056 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/fe85bc86-d637-4b39-86e2-0cb3c75da8e4 2024-10-31 02:27:04,064 - DEBUG - ==>Verifying data for policy with id: 61e24bbd-f223-4316-ab2b-838f21fbb91e, fqn: ['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-policy-allow-all-41369706'] 2024-10-31 02:27:04,064 - INFO - VN ctest-vn-95239569 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-31 02:27:04,064 - DEBUG - Verifying the vn in opserver 2024-10-31 02:27:04,064 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569 virtual network link through opserver 10.0.0.29 2024-10-31 02:27:04,065 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-10-31 02:27:04,365 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-10-31 02:27:04,428 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569?flat'} 2024-10-31 02:27:04,428 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569 is found in opserver 2024-10-31 02:27:04,441 - DEBUG - Do not have enough data to verify VN in agent 2024-10-31 02:27:04,446 - DEBUG - VRF ids for VN ctest-vn-95239569: {} 2024-10-31 02:27:04,446 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-31 02:27:04,454 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe7e8e09-5e09-4e9d-a716-d1f8d98e9013 2024-10-31 02:27:04,466 - DEBUG - Requesting: http://10.0.0.29:8082/project/0667a334-10f1-4717-82dd-2d59e0948890 2024-10-31 02:27:04,540 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8eb606d6-b41d-41c5-bdf3-36900e7961a1 2024-10-31 02:27:04,552 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8eb606d6-b41d-41c5-bdf3-36900e7961a1 2024-10-31 02:27:04,560 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5e7f88ed-1dae-43f5-b58f-6c691aa1d190 2024-10-31 02:27:04,568 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5e7f88ed-1dae-43f5-b58f-6c691aa1d190 2024-10-31 02:27:04,575 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/17f393eb-a838-4636-ab77-9a70aa26bcbe 2024-10-31 02:27:04,581 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-31 02:27:04,581 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8eb606d6-b41d-41c5-bdf3-36900e7961a1 2024-10-31 02:27:04,590 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5e7f88ed-1dae-43f5-b58f-6c691aa1d190 2024-10-31 02:27:04,602 - INFO - Verified VN network id 9 for VN 8eb606d6-b41d-41c5-bdf3-36900e7961a1 2024-10-31 02:27:04,602 - INFO - Verifications in API Server for VN ctest-vn-45568094 passed 2024-10-31 02:27:04,602 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8eb606d6-b41d-41c5-bdf3-36900e7961a1 2024-10-31 02:27:04,619 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5e7f88ed-1dae-43f5-b58f-6c691aa1d190 2024-10-31 02:27:04,626 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5e7f88ed-1dae-43f5-b58f-6c691aa1d190 2024-10-31 02:27:04,632 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/17f393eb-a838-4636-ab77-9a70aa26bcbe 2024-10-31 02:27:04,645 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-45568094', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73126821', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10283414318361690565', 'uuid-lslong': '13687343684855095713'}, 'enable': 'true', 'created': '2024-10-31T02:27:02', 'last-modified': '2024-10-31T02:27:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.401421'} 2024-10-31 02:27:04,651 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-31 02:27:04,651 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45568094 passed 2024-10-31 02:27:04,651 - DEBUG - ====Verifying policy data for ctest-vn-45568094 in API_Server ====== 2024-10-31 02:27:04,651 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-31 02:27:04,656 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe7e8e09-5e09-4e9d-a716-d1f8d98e9013 2024-10-31 02:27:04,668 - DEBUG - Requesting: http://10.0.0.29:8082/project/0667a334-10f1-4717-82dd-2d59e0948890 2024-10-31 02:27:04,737 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/8eb606d6-b41d-41c5-bdf3-36900e7961a1 2024-10-31 02:27:04,745 - DEBUG - ==>Verifying data for policy with id: 61e24bbd-f223-4316-ab2b-838f21fbb91e, fqn: ['default-domain', 'ctest-TestBasicPolicy-73126821', 'ctest-policy-allow-all-41369706'] 2024-10-31 02:27:04,745 - INFO - VN ctest-vn-45568094 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-31 02:27:04,745 - DEBUG - Verifying the vn in opserver 2024-10-31 02:27:04,745 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-45568094 virtual network link through opserver 10.0.0.29 2024-10-31 02:27:04,745 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-10-31 02:27:04,759 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-45568094', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-45568094?flat'} 2024-10-31 02:27:04,759 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-45568094 is found in opserver 2024-10-31 02:27:04,774 - DEBUG - Do not have enough data to verify VN in agent 2024-10-31 02:27:04,781 - DEBUG - VRF ids for VN ctest-vn-45568094: {} 2024-10-31 02:27:04,840 - DEBUG - Services list from nova: [, , ] 2024-10-31 02:27:06,015 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2180-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2180-1) 2024-10-31 02:27:07,204 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2180-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2180-1) 2024-10-31 02:27:07,204 - INFO - Waiting for VM ctest-TestBasicPolicy-73126821-33771595 to be up.. 2024-10-31 02:27:07,292 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-31 02:27:12,383 - DEBUG - VM is in ACTIVE state now 2024-10-31 02:27:12,384 - INFO - VM name : ctest-TestBasicPolicy-73126821-33771595 2024-10-31 02:27:12,474 - DEBUG - VM ctest-TestBasicPolicy-73126821-33771595 ID is 33181eb5-4469-4b99-a716-b47940ae82a3 2024-10-31 02:27:12,498 - DEBUG - VM ctest-TestBasicPolicy-73126821-33771595 launched on Node cn-jenkins-deploy-platform-ansible-os-2180-1 2024-10-31 02:27:12,585 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/33181eb5-4469-4b99-a716-b47940ae82a3 2024-10-31 02:27:12,595 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/5dd36cd1-9e14-4f17-9fb6-059b2b04b057 2024-10-31 02:27:15,840 - 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 1003ms') 2024-10-31 02:27:15,841 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73126821-33771595 failed! 2024-10-31 02:27:15,898 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-73126821:ctest-vn-95239569 is 220.23.234.193 and allocation pool is NOT set 2024-10-31 02:27:17,964 - 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=4.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.29 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 1.293/2.821/4.349/1.528 ms') 2024-10-31 02:27:17,964 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-73126821-33771595 passed 2024-10-31 02:27:18,123 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:27:18,123 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73126821-33771595, IP 220.23.234.195, Port 22 2024-10-31 02:27:18,293 - DEBUG - VM ctest-TestBasicPolicy-73126821-33771595 is ready for SSH connections 2024-10-31 02:27:18,294 - INFO - Waiting for VM ctest-TestBasicPolicy-73126821-40264923 to be up.. 2024-10-31 02:27:18,389 - DEBUG - VM is in ACTIVE state now 2024-10-31 02:27:18,389 - INFO - VM name : ctest-TestBasicPolicy-73126821-40264923 2024-10-31 02:27:18,478 - DEBUG - VM ctest-TestBasicPolicy-73126821-40264923 ID is 501ec7dd-79fc-4443-b53f-fa1d1e57b28c 2024-10-31 02:27:18,478 - DEBUG - VM ctest-TestBasicPolicy-73126821-40264923 launched on Node cn-jenkins-deploy-platform-ansible-os-2180-1 2024-10-31 02:27:18,575 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/501ec7dd-79fc-4443-b53f-fa1d1e57b28c 2024-10-31 02:27:18,586 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/f0277815-be73-4a5a-addb-98142767a2f1 2024-10-31 02:27:19,833 - 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.14 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.412 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.412/1.775/3.139/1.363 ms') 2024-10-31 02:27:19,833 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-73126821-40264923 passed 2024-10-31 02:27:19,986 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:27:19,987 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-73126821-40264923, IP 193.133.175.67, Port 22 2024-10-31 02:27:20,142 - DEBUG - VM ctest-TestBasicPolicy-73126821-40264923 is ready for SSH connections 2024-10-31 02:27:20,142 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:27:20,142 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.133.175.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-10-31 02:27:20,142 - DEBUG - ping -s 56 -c 3 -W 1 193.133.175.67 2024-10-31 02:27:24,151 - DEBUG - PING 193.133.175.67 (193.133.175.67): 56 data bytes 64 bytes from 193.133.175.67: seq=0 ttl=63 time=3.636 ms 64 bytes from 193.133.175.67: seq=1 ttl=63 time=0.984 ms 64 bytes from 193.133.175.67: seq=2 ttl=63 time=0.910 ms --- 193.133.175.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.910/1.843/3.636 ms 2024-10-31 02:27:24,151 - INFO - Ping to IP 193.133.175.67 from VM ctest-TestBasicPolicy-73126821-33771595 passed 2024-10-31 02:27:24,334 - DEBUG - Policy Update Response {"network-policy": {"uuid": "61e24bbd-f223-4316-ab2b-838f21fbb91e", "href": "http://10.0.0.29:8082/network-policy/61e24bbd-f223-4316-ab2b-838f21fbb91e"}} 2024-10-31 02:27:24,334 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-31 02:27:24,335 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 193.133.175.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-10-31 02:27:24,335 - DEBUG - ping -s 56 -c 3 -W 1 193.133.175.67 2024-10-31 02:27:27,549 - DEBUG - PING 193.133.175.67 (193.133.175.67): 56 data bytes 64 bytes from 193.133.175.67: seq=0 ttl=63 time=1.526 ms --- 193.133.175.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.526/1.526/1.526 ms 2024-10-31 02:27:27,549 - WARNING - Ping to IP 193.133.175.67 from VM ctest-TestBasicPolicy-73126821-33771595 failed 2024-10-31 02:27:27,549 - INFO - Deleting VM ctest-TestBasicPolicy-73126821-40264923 2024-10-31 02:27:27,616 - INFO - Deleting VM ctest-TestBasicPolicy-73126821-33771595 2024-10-31 02:27:28,007 - INFO - Deleted policy ctest-policy-allow-all-41369706 2024-10-31 02:27:28,007 - INFO - Deleting VN ctest-vn-45568094 2024-10-31 02:27:28,041 - DEBUG - VN 8eb606d6-b41d-41c5-bdf3-36900e7961a1 still in use: Unable to complete operation on network 8eb606d6-b41d-41c5-bdf3-36900e7961a1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-72ffece0-ffb0-4606-a906-e22d6e942f31'] 2024-10-31 02:27:28,042 - WARNING - Deleting VN ctest-vn-45568094 failed..Will retry 2024-10-31 02:27:30,147 - DEBUG - Response for deleting network () 2024-10-31 02:27:30,147 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/5e7f88ed-1dae-43f5-b58f-6c691aa1d190 2024-10-31 02:27:30,155 - DEBUG - Response Code: 404 2024-10-31 02:27:30,155 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-31 02:27:30,162 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe7e8e09-5e09-4e9d-a716-d1f8d98e9013 2024-10-31 02:27:30,215 - DEBUG - Requesting: http://10.0.0.29:8082/project/0667a334-10f1-4717-82dd-2d59e0948890 2024-10-31 02:27:30,292 - INFO - Validated that VN ctest-vn-45568094 is not found in API Server 2024-10-31 02:27:30,303 - DEBUG - VN ctest-vn-45568094 is not present in Agent 10.0.0.29 2024-10-31 02:27:30,303 - INFO - Validated that VN ctest-vn-45568094 is not in any agent 2024-10-31 02:27:30,321 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-45568094 info 2024-10-31 02:27:30,322 - INFO - Deleting VN ctest-vn-95239569 2024-10-31 02:27:30,438 - DEBUG - Response for deleting network () 2024-10-31 02:27:30,438 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/888608ee-edc7-416c-8aeb-6a348d9d6292 2024-10-31 02:27:30,445 - DEBUG - Response Code: 404 2024-10-31 02:27:30,445 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-31 02:27:30,455 - DEBUG - Requesting: http://10.0.0.29:8082/domain/fe7e8e09-5e09-4e9d-a716-d1f8d98e9013 2024-10-31 02:27:30,507 - DEBUG - Requesting: http://10.0.0.29:8082/project/0667a334-10f1-4717-82dd-2d59e0948890 2024-10-31 02:27:30,580 - INFO - Validated that VN ctest-vn-95239569 is not found in API Server 2024-10-31 02:27:30,591 - DEBUG - VN ctest-vn-95239569 is not present in Agent 10.0.0.29 2024-10-31 02:27:30,591 - INFO - Validated that VN ctest-vn-95239569 is not in any agent 2024-10-31 02:27:30,608 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95239569 info 2024-10-31 02:27:30,865 - DEBUG - No XMPP flaps were noticed during the test 2024-10-31 02:27:30,865 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2024-10-31 02:27:30,866 - INFO - -------------------------------------------------------------------------------- 2024-10-31 02:27:31,551 - INFO - Deleted project: ctest-TestBasicPolicy-73126821, ID : 0667a334-10f1-4717-82dd-2d59e0948890