2024-09-10 21:00:07,232 - INFO - Domain Default found not creating 2024-09-10 21:00:07,452 - INFO - Project ctest-TestBasicPolicy-84446428 not found, creating it 2024-09-10 21:00:07,972 - INFO - Created Project:ctest-TestBasicPolicy-84446428, ID : bf258979-049c-436a-b753-45696afdcf18 2024-09-10 21:00:09,597 - INFO - ================================================================================ 2024-09-10 21:00:09,598 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-09-10 21:00:09,598 - 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-09-10 21:00:09,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.6': '0'}} with 2024-09-10 21:00:09,870 - INFO - Initial checks done. Running the testcase now 2024-09-10 21:00:09,870 - INFO - 2024-09-10 21:00:10,468 - DEBUG - Response for create_network : {'network': {'id': '97e0419b-4da2-4e84-98ee-49d5521d47aa', 'name': 'ctest-vn-68368574', 'tenant_id': 'bf258979049c436ab75345696afdcf18', 'project_id': 'bf258979049c436ab75345696afdcf18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-vn-68368574'], 'port_security_enabled': True, 'description': ''}} 2024-09-10 21:00:10,643 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0774690-e1c4-449a-89f0-3c0e6029c73e', 'name': '', 'tenant_id': 'bf258979049c436ab75345696afdcf18', 'network_id': '97e0419b-4da2-4e84-98ee-49d5521d47aa', 'ip_version': 4, 'cidr': '177.203.69.64/26', 'allocation_pools': [{'start': '177.203.69.66', 'end': '177.203.69.126'}], 'gateway_ip': '177.203.69.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.203.69.66', 'tags': [], 'project_id': 'bf258979049c436ab75345696afdcf18'}} 2024-09-10 21:00:10,666 - INFO - Created VN ctest-vn-68368574 2024-09-10 21:00:10,721 - DEBUG - VN ctest-vn-68368574 UUID is 97e0419b-4da2-4e84-98ee-49d5521d47aa 2024-09-10 21:00:11,033 - DEBUG - Response for create_network : {'network': {'id': '81b040e1-cfc4-4205-8567-c8ff0807d9d3', 'name': 'ctest-vn-83431414', 'tenant_id': 'bf258979049c436ab75345696afdcf18', 'project_id': 'bf258979049c436ab75345696afdcf18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-vn-83431414'], 'port_security_enabled': True, 'description': ''}} 2024-09-10 21:00:11,273 - DEBUG - Response for create_subnet : {'subnet': {'id': '6fc545ef-1652-438f-89f8-f8c7d53b6cd6', 'name': '', 'tenant_id': 'bf258979049c436ab75345696afdcf18', 'network_id': '81b040e1-cfc4-4205-8567-c8ff0807d9d3', 'ip_version': 4, 'cidr': '124.148.218.128/26', 'allocation_pools': [{'start': '124.148.218.130', 'end': '124.148.218.190'}], 'gateway_ip': '124.148.218.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.148.218.130', 'tags': [], 'project_id': 'bf258979049c436ab75345696afdcf18'}} 2024-09-10 21:00:11,296 - INFO - Created VN ctest-vn-83431414 2024-09-10 21:00:11,348 - DEBUG - VN ctest-vn-83431414 UUID is 81b040e1-cfc4-4205-8567-c8ff0807d9d3 2024-09-10 21:00:11,485 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574, 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-84446428:ctest-vn-83431414, 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-09-10 21:00:11,834 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97e0419b-4da2-4e84-98ee-49d5521d47aa', 'name': 'ctest-vn-68368574', 'tenant_id': 'bf258979049c436ab75345696afdcf18', 'project_id': 'bf258979049c436ab75345696afdcf18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0774690-e1c4-449a-89f0-3c0e6029c73e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-vn-68368574'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-policy-allow-all-97927712']], 'subnet_ipam': [{'subnet_cidr': '177.203.69.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-10 21:00:12,140 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81b040e1-cfc4-4205-8567-c8ff0807d9d3', 'name': 'ctest-vn-83431414', 'tenant_id': 'bf258979049c436ab75345696afdcf18', 'project_id': 'bf258979049c436ab75345696afdcf18', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6fc545ef-1652-438f-89f8-f8c7d53b6cd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-vn-83431414'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-policy-allow-all-97927712']], 'subnet_ipam': [{'subnet_cidr': '124.148.218.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-09-10 21:00:12,297 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-10 21:00:12,603 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-10 21:00:12,931 - DEBUG - Requesting: http://10.0.0.45:8082/domain/be036013-33ad-41d4-89fc-c70a50241b10 2024-09-10 21:00:12,947 - DEBUG - Requesting: http://10.0.0.45:8082/project/bf258979-049c-436a-b753-45696afdcf18 2024-09-10 21:00:13,034 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/97e0419b-4da2-4e84-98ee-49d5521d47aa 2024-09-10 21:00:13,045 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/97e0419b-4da2-4e84-98ee-49d5521d47aa 2024-09-10 21:00:13,057 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/6decb1c7-55d1-4800-ae7e-cdd9d9e72289 2024-09-10 21:00:13,065 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/6decb1c7-55d1-4800-ae7e-cdd9d9e72289 2024-09-10 21:00:13,073 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/42e8d936-e910-4e78-b8c8-31fcf6bb4fa2 2024-09-10 21:00:13,082 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-10 21:00:13,082 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/97e0419b-4da2-4e84-98ee-49d5521d47aa 2024-09-10 21:00:13,093 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/6decb1c7-55d1-4800-ae7e-cdd9d9e72289 2024-09-10 21:00:13,111 - INFO - Verified VN network id 8 for VN 97e0419b-4da2-4e84-98ee-49d5521d47aa 2024-09-10 21:00:13,111 - INFO - Verifications in API Server for VN ctest-vn-68368574 passed 2024-09-10 21:00:13,111 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/97e0419b-4da2-4e84-98ee-49d5521d47aa 2024-09-10 21:00:13,122 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/6decb1c7-55d1-4800-ae7e-cdd9d9e72289 2024-09-10 21:00:13,130 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/6decb1c7-55d1-4800-ae7e-cdd9d9e72289 2024-09-10 21:00:13,139 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/42e8d936-e910-4e78-b8c8-31fcf6bb4fa2 2024-09-10 21:00:13,156 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84446428', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10943819229788524164', 'uuid-lslong': '11019826518776694698'}, 'enable': 'true', 'created': '2024-09-10T21:00:10', 'last-modified': '2024-09-10T21:00:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350021'} 2024-09-10 21:00:13,168 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-09-10 21:00:13,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68368574 passed 2024-09-10 21:00:13,169 - DEBUG - ====Verifying policy data for ctest-vn-68368574 in API_Server ====== 2024-09-10 21:00:13,169 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-10 21:00:13,179 - DEBUG - Requesting: http://10.0.0.45:8082/domain/be036013-33ad-41d4-89fc-c70a50241b10 2024-09-10 21:00:13,195 - DEBUG - Requesting: http://10.0.0.45:8082/project/bf258979-049c-436a-b753-45696afdcf18 2024-09-10 21:00:13,283 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/97e0419b-4da2-4e84-98ee-49d5521d47aa 2024-09-10 21:00:13,293 - DEBUG - ==>Verifying data for policy with id: 69ea9d22-7264-40f5-9b82-15c1140bac51, fqn: ['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-policy-allow-all-97927712'] 2024-09-10 21:00:13,293 - INFO - VN ctest-vn-68368574 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-10 21:00:13,293 - DEBUG - Verifying the vn in opserver 2024-09-10 21:00:13,293 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574 virtual network link through opserver 10.0.0.45 2024-09-10 21:00:13,293 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-09-10 21:00:13,601 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-09-10 21:00:13,707 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574?flat'} 2024-09-10 21:00:13,707 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574 is found in opserver 2024-09-10 21:00:13,722 - DEBUG - Do not have enough data to verify VN in agent 2024-09-10 21:00:13,729 - DEBUG - VRF ids for VN ctest-vn-68368574: {} 2024-09-10 21:00:13,730 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-10 21:00:13,737 - DEBUG - Requesting: http://10.0.0.45:8082/domain/be036013-33ad-41d4-89fc-c70a50241b10 2024-09-10 21:00:13,752 - DEBUG - Requesting: http://10.0.0.45:8082/project/bf258979-049c-436a-b753-45696afdcf18 2024-09-10 21:00:13,830 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/81b040e1-cfc4-4205-8567-c8ff0807d9d3 2024-09-10 21:00:13,843 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/81b040e1-cfc4-4205-8567-c8ff0807d9d3 2024-09-10 21:00:13,852 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c9dc6879-b5b1-4027-b7b7-ac81bddd991e 2024-09-10 21:00:13,859 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c9dc6879-b5b1-4027-b7b7-ac81bddd991e 2024-09-10 21:00:13,867 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/afa5aa3c-7ab6-4215-be71-1632d866c228 2024-09-10 21:00:13,876 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-10 21:00:13,876 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/81b040e1-cfc4-4205-8567-c8ff0807d9d3 2024-09-10 21:00:13,886 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c9dc6879-b5b1-4027-b7b7-ac81bddd991e 2024-09-10 21:00:13,900 - INFO - Verified VN network id 9 for VN 81b040e1-cfc4-4205-8567-c8ff0807d9d3 2024-09-10 21:00:13,900 - INFO - Verifications in API Server for VN ctest-vn-83431414 passed 2024-09-10 21:00:13,900 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/81b040e1-cfc4-4205-8567-c8ff0807d9d3 2024-09-10 21:00:13,909 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c9dc6879-b5b1-4027-b7b7-ac81bddd991e 2024-09-10 21:00:13,917 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c9dc6879-b5b1-4027-b7b7-ac81bddd991e 2024-09-10 21:00:13,924 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/afa5aa3c-7ab6-4215-be71-1632d866c228 2024-09-10 21:00:13,941 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-83431414', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84446428', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9345040565391344133', 'uuid-lslong': '9612872927322560979'}, 'enable': 'true', 'created': '2024-09-10T21:00:11', 'last-modified': '2024-09-10T21:00:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.875320'} 2024-09-10 21:00:13,950 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-09-10 21:00:13,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83431414 passed 2024-09-10 21:00:13,950 - DEBUG - ====Verifying policy data for ctest-vn-83431414 in API_Server ====== 2024-09-10 21:00:13,950 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-10 21:00:13,957 - DEBUG - Requesting: http://10.0.0.45:8082/domain/be036013-33ad-41d4-89fc-c70a50241b10 2024-09-10 21:00:13,972 - DEBUG - Requesting: http://10.0.0.45:8082/project/bf258979-049c-436a-b753-45696afdcf18 2024-09-10 21:00:14,043 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/81b040e1-cfc4-4205-8567-c8ff0807d9d3 2024-09-10 21:00:14,053 - DEBUG - ==>Verifying data for policy with id: 69ea9d22-7264-40f5-9b82-15c1140bac51, fqn: ['default-domain', 'ctest-TestBasicPolicy-84446428', 'ctest-policy-allow-all-97927712'] 2024-09-10 21:00:14,053 - INFO - VN ctest-vn-83431414 Policy verification: verify_vn_policy_in_api_server, status: True 2024-09-10 21:00:14,053 - DEBUG - Verifying the vn in opserver 2024-09-10 21:00:14,053 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-83431414 virtual network link through opserver 10.0.0.45 2024-09-10 21:00:14,053 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks 2024-09-10 21:00:14,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-83431414', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-83431414?flat'} 2024-09-10 21:00:14,066 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-83431414 is found in opserver 2024-09-10 21:00:14,079 - DEBUG - Do not have enough data to verify VN in agent 2024-09-10 21:00:14,086 - DEBUG - VRF ids for VN ctest-vn-83431414: {} 2024-09-10 21:00:14,156 - DEBUG - Services list from nova: [, , ] 2024-09-10 21:00:15,296 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1887-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1887-1) 2024-09-10 21:00:16,684 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1887-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1887-1) 2024-09-10 21:00:16,685 - INFO - Waiting for VM ctest-TestBasicPolicy-84446428-60020898 to be up.. 2024-09-10 21:00:16,820 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-09-10 21:00:21,918 - DEBUG - VM is in ACTIVE state now 2024-09-10 21:00:21,919 - INFO - VM name : ctest-TestBasicPolicy-84446428-60020898 2024-09-10 21:00:22,015 - DEBUG - VM ctest-TestBasicPolicy-84446428-60020898 ID is eebeaec1-0123-4274-a52a-379dc75032d6 2024-09-10 21:00:22,035 - DEBUG - VM ctest-TestBasicPolicy-84446428-60020898 launched on Node cn-jenkins-deploy-platform-ansible-os-1887-1 2024-09-10 21:00:22,125 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/eebeaec1-0123-4274-a52a-379dc75032d6 2024-09-10 21:00:22,135 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/dfd2aafd-d8f5-49e6-88bb-1830ff8e0a18 2024-09-10 21:00:25,416 - 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 1017ms') 2024-09-10 21:00:25,416 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84446428-60020898 failed! 2024-09-10 21:00:25,473 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-84446428:ctest-vn-68368574 is 177.203.69.65 and allocation pool is NOT set 2024-09-10 21:00:27,536 - 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.80 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.758 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.758/4.776/8.795/4.018 ms') 2024-09-10 21:00:27,536 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-84446428-60020898 passed 2024-09-10 21:00:27,689 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 21:00:27,689 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84446428-60020898, IP 177.203.69.67, Port 22 2024-09-10 21:00:27,844 - DEBUG - VM ctest-TestBasicPolicy-84446428-60020898 is ready for SSH connections 2024-09-10 21:00:27,844 - INFO - Waiting for VM ctest-TestBasicPolicy-84446428-19517057 to be up.. 2024-09-10 21:00:27,943 - DEBUG - VM is in ACTIVE state now 2024-09-10 21:00:27,944 - INFO - VM name : ctest-TestBasicPolicy-84446428-19517057 2024-09-10 21:00:28,035 - DEBUG - VM ctest-TestBasicPolicy-84446428-19517057 ID is 929d7ee6-35c5-4fcf-8502-580a331448f8 2024-09-10 21:00:28,035 - DEBUG - VM ctest-TestBasicPolicy-84446428-19517057 launched on Node cn-jenkins-deploy-platform-ansible-os-1887-1 2024-09-10 21:00:28,139 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine/929d7ee6-35c5-4fcf-8502-580a331448f8 2024-09-10 21:00:28,150 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-machine-interface/03c33403-70ea-4b6a-bcf5-55991dc3752d 2024-09-10 21:00:29,402 - 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.11 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.483 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.483/1.798/3.113/1.315 ms') 2024-09-10 21:00:29,402 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-84446428-19517057 passed 2024-09-10 21:00:29,557 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 21:00:29,557 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-84446428-19517057, IP 124.148.218.131, Port 22 2024-09-10 21:00:29,720 - DEBUG - VM ctest-TestBasicPolicy-84446428-19517057 is ready for SSH connections 2024-09-10 21:00:29,720 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 21:00:29,720 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.148.218.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2024-09-10 21:00:29,721 - DEBUG - ping -s 56 -c 3 -W 1 124.148.218.131 2024-09-10 21:00:33,454 - DEBUG - PING 124.148.218.131 (124.148.218.131): 56 data bytes 64 bytes from 124.148.218.131: seq=0 ttl=63 time=4.634 ms 64 bytes from 124.148.218.131: seq=1 ttl=63 time=1.173 ms 64 bytes from 124.148.218.131: seq=2 ttl=63 time=1.536 ms --- 124.148.218.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.173/2.447/4.634 ms 2024-09-10 21:00:33,454 - INFO - Ping to IP 124.148.218.131 from VM ctest-TestBasicPolicy-84446428-60020898 passed 2024-09-10 21:00:33,644 - DEBUG - Policy Update Response {"network-policy": {"uuid": "69ea9d22-7264-40f5-9b82-15c1140bac51", "href": "http://10.0.0.45:8082/network-policy/69ea9d22-7264-40f5-9b82-15c1140bac51"}} 2024-09-10 21:00:33,645 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-09-10 21:00:33,645 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 124.148.218.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.45, gateway password: c0ntrail123 2024-09-10 21:00:33,645 - DEBUG - ping -s 56 -c 3 -W 1 124.148.218.131 2024-09-10 21:00:36,857 - DEBUG - PING 124.148.218.131 (124.148.218.131): 56 data bytes 64 bytes from 124.148.218.131: seq=0 ttl=63 time=2.047 ms --- 124.148.218.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 2.047/2.047/2.047 ms 2024-09-10 21:00:36,858 - WARNING - Ping to IP 124.148.218.131 from VM ctest-TestBasicPolicy-84446428-60020898 failed 2024-09-10 21:00:36,858 - INFO - Deleting VM ctest-TestBasicPolicy-84446428-19517057 2024-09-10 21:00:36,934 - INFO - Deleting VM ctest-TestBasicPolicy-84446428-60020898 2024-09-10 21:00:37,382 - INFO - Deleted policy ctest-policy-allow-all-97927712 2024-09-10 21:00:37,383 - INFO - Deleting VN ctest-vn-83431414 2024-09-10 21:00:37,438 - DEBUG - VN 81b040e1-cfc4-4205-8567-c8ff0807d9d3 still in use: Unable to complete operation on network 81b040e1-cfc4-4205-8567-c8ff0807d9d3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9ee6aa76-5771-4557-9dfc-8d5bf9addd58'] 2024-09-10 21:00:37,438 - WARNING - Deleting VN ctest-vn-83431414 failed..Will retry 2024-09-10 21:00:39,562 - DEBUG - Response for deleting network () 2024-09-10 21:00:39,563 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/c9dc6879-b5b1-4027-b7b7-ac81bddd991e 2024-09-10 21:00:39,569 - DEBUG - Response Code: 404 2024-09-10 21:00:39,569 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-10 21:00:39,579 - DEBUG - Requesting: http://10.0.0.45:8082/domain/be036013-33ad-41d4-89fc-c70a50241b10 2024-09-10 21:00:39,638 - DEBUG - Requesting: http://10.0.0.45:8082/project/bf258979-049c-436a-b753-45696afdcf18 2024-09-10 21:00:39,719 - INFO - Validated that VN ctest-vn-83431414 is not found in API Server 2024-09-10 21:00:39,732 - DEBUG - VN ctest-vn-83431414 is not present in Agent 10.0.0.45 2024-09-10 21:00:39,732 - INFO - Validated that VN ctest-vn-83431414 is not in any agent 2024-09-10 21:00:39,752 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83431414 info 2024-09-10 21:00:39,752 - INFO - Deleting VN ctest-vn-68368574 2024-09-10 21:00:39,885 - DEBUG - Response for deleting network () 2024-09-10 21:00:39,885 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/6decb1c7-55d1-4800-ae7e-cdd9d9e72289 2024-09-10 21:00:39,896 - DEBUG - Response Code: 404 2024-09-10 21:00:39,897 - DEBUG - Requesting: http://10.0.0.45:8082/domains 2024-09-10 21:00:39,905 - DEBUG - Requesting: http://10.0.0.45:8082/domain/be036013-33ad-41d4-89fc-c70a50241b10 2024-09-10 21:00:39,964 - DEBUG - Requesting: http://10.0.0.45:8082/project/bf258979-049c-436a-b753-45696afdcf18 2024-09-10 21:00:40,043 - INFO - Validated that VN ctest-vn-68368574 is not found in API Server 2024-09-10 21:00:40,055 - DEBUG - VN ctest-vn-68368574 is not present in Agent 10.0.0.45 2024-09-10 21:00:40,055 - INFO - Validated that VN ctest-vn-68368574 is not in any agent 2024-09-10 21:00:40,074 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-68368574 info 2024-09-10 21:00:40,338 - DEBUG - No XMPP flaps were noticed during the test
2024-09-10 21:00:40,338 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31]
2024-09-10 21:00:40,339 - INFO - -------------------------------------------------------------------------------- 2024-09-10 21:00:41,055 - INFO - Deleted project: ctest-TestBasicPolicy-84446428, ID : bf258979-049c-436a-b753-45696afdcf18