2024-10-19 09:26:15,987 - INFO - Domain Default found not creating 2024-10-19 09:26:16,207 - INFO - Project ctest-TestBasicPolicy-67887259 not found, creating it 2024-10-19 09:26:16,761 - INFO - Created Project:ctest-TestBasicPolicy-67887259, ID : 67ab35b7-40f5-4adb-ad08-fed3d9a31ee3 2024-10-19 09:26:18,783 - INFO - ================================================================================ 2024-10-19 09:26:18,784 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-19 09:26:18,784 - 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-19 09:26:19,056 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.20': '0'}} with 2024-10-19 09:26:19,056 - INFO - Initial checks done. Running the testcase now 2024-10-19 09:26:19,056 - INFO - 2024-10-19 09:26:19,778 - DEBUG - Response for create_network : {'network': {'id': '41ad6460-d1a8-4825-afd4-c19f84624531', 'name': 'ctest-vn-05861655', 'tenant_id': '67ab35b740f54adbad08fed3d9a31ee3', 'project_id': '67ab35b740f54adbad08fed3d9a31ee3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-vn-05861655'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 09:26:20,008 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a89229c1-4bfd-4cfb-b572-3b45daa03671', 'name': '', 'tenant_id': '67ab35b740f54adbad08fed3d9a31ee3', 'network_id': '41ad6460-d1a8-4825-afd4-c19f84624531', 'ip_version': 4, 'cidr': '120.93.235.0/26', 'allocation_pools': [{'start': '120.93.235.2', 'end': '120.93.235.62'}], 'gateway_ip': '120.93.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.93.235.2', 'tags': [], 'project_id': '67ab35b740f54adbad08fed3d9a31ee3'}} 2024-10-19 09:26:20,032 - INFO - Created VN ctest-vn-05861655 2024-10-19 09:26:20,094 - DEBUG - VN ctest-vn-05861655 UUID is 41ad6460-d1a8-4825-afd4-c19f84624531 2024-10-19 09:26:20,503 - DEBUG - Response for create_network : {'network': {'id': '9f16b314-efa0-46ef-b15c-114e30296084', 'name': 'ctest-vn-75654091', 'tenant_id': '67ab35b740f54adbad08fed3d9a31ee3', 'project_id': '67ab35b740f54adbad08fed3d9a31ee3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-vn-75654091'], 'port_security_enabled': True, 'description': ''}} 2024-10-19 09:26:20,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fdcc0de-297a-4e93-8a08-5b46bc799c58', 'name': '', 'tenant_id': '67ab35b740f54adbad08fed3d9a31ee3', 'network_id': '9f16b314-efa0-46ef-b15c-114e30296084', 'ip_version': 4, 'cidr': '78.238.13.128/26', 'allocation_pools': [{'start': '78.238.13.130', 'end': '78.238.13.190'}], 'gateway_ip': '78.238.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.238.13.130', 'tags': [], 'project_id': '67ab35b740f54adbad08fed3d9a31ee3'}} 2024-10-19 09:26:20,797 - INFO - Created VN ctest-vn-75654091 2024-10-19 09:26:20,862 - DEBUG - VN ctest-vn-75654091 UUID is 9f16b314-efa0-46ef-b15c-114e30296084 2024-10-19 09:26:21,012 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655, 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-67887259:ctest-vn-75654091, 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-19 09:26:21,394 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41ad6460-d1a8-4825-afd4-c19f84624531', 'name': 'ctest-vn-05861655', 'tenant_id': '67ab35b740f54adbad08fed3d9a31ee3', 'project_id': '67ab35b740f54adbad08fed3d9a31ee3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a89229c1-4bfd-4cfb-b572-3b45daa03671'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-vn-05861655'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-policy-allow-all-15997621']], 'subnet_ipam': [{'subnet_cidr': '120.93.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-19 09:26:21,695 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f16b314-efa0-46ef-b15c-114e30296084', 'name': 'ctest-vn-75654091', 'tenant_id': '67ab35b740f54adbad08fed3d9a31ee3', 'project_id': '67ab35b740f54adbad08fed3d9a31ee3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fdcc0de-297a-4e93-8a08-5b46bc799c58'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-vn-75654091'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-policy-allow-all-15997621']], 'subnet_ipam': [{'subnet_cidr': '78.238.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-19 09:26:21,882 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-19 09:26:22,238 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-19 09:26:22,280 - DEBUG - Requesting: http://10.0.0.23:8082/domain/af60f3e8-1640-49cf-92a7-967e3839bb4b 2024-10-19 09:26:22,316 - DEBUG - Requesting: http://10.0.0.23:8082/project/67ab35b7-40f5-4adb-ad08-fed3d9a31ee3 2024-10-19 09:26:22,430 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41ad6460-d1a8-4825-afd4-c19f84624531 2024-10-19 09:26:22,452 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41ad6460-d1a8-4825-afd4-c19f84624531 2024-10-19 09:26:22,469 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f4184d89-f2bc-4630-833c-9651aba0e872 2024-10-19 09:26:22,493 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f4184d89-f2bc-4630-833c-9651aba0e872 2024-10-19 09:26:22,515 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/39567295-41dc-466f-91f7-4c212725c4e9 2024-10-19 09:26:22,525 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-19 09:26:22,525 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41ad6460-d1a8-4825-afd4-c19f84624531 2024-10-19 09:26:22,540 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f4184d89-f2bc-4630-833c-9651aba0e872 2024-10-19 09:26:22,567 - INFO - Verified VN network id 7 for VN 41ad6460-d1a8-4825-afd4-c19f84624531 2024-10-19 09:26:22,567 - INFO - Verifications in API Server for VN ctest-vn-05861655 passed 2024-10-19 09:26:22,567 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41ad6460-d1a8-4825-afd4-c19f84624531 2024-10-19 09:26:22,584 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f4184d89-f2bc-4630-833c-9651aba0e872 2024-10-19 09:26:22,594 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f4184d89-f2bc-4630-833c-9651aba0e872 2024-10-19 09:26:22,604 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/39567295-41dc-466f-91f7-4c212725c4e9 2024-10-19 09:26:22,621 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67887259', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4732549150433364005', 'uuid-lslong': '12669964542565041457'}, 'enable': 'true', 'created': '2024-10-19T09:26:19', 'last-modified': '2024-10-19T09:26:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.273909'} 2024-10-19 09:26:22,629 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-19 09:26:22,629 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05861655 passed 2024-10-19 09:26:22,629 - DEBUG - ====Verifying policy data for ctest-vn-05861655 in API_Server ====== 2024-10-19 09:26:22,629 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-19 09:26:22,635 - DEBUG - Requesting: http://10.0.0.23:8082/domain/af60f3e8-1640-49cf-92a7-967e3839bb4b 2024-10-19 09:26:22,649 - DEBUG - Requesting: http://10.0.0.23:8082/project/67ab35b7-40f5-4adb-ad08-fed3d9a31ee3 2024-10-19 09:26:22,751 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41ad6460-d1a8-4825-afd4-c19f84624531 2024-10-19 09:26:22,770 - DEBUG - ==>Verifying data for policy with id: 1b789d52-e514-405e-9c69-667bc202fbf8, fqn: ['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-policy-allow-all-15997621'] 2024-10-19 09:26:22,770 - INFO - VN ctest-vn-05861655 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-19 09:26:22,770 - DEBUG - Verifying the vn in opserver 2024-10-19 09:26:22,770 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655 virtual network link through opserver 10.0.0.23 2024-10-19 09:26:22,771 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-10-19 09:26:23,121 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-10-19 09:26:23,223 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655?flat'} 2024-10-19 09:26:23,223 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655 is found in opserver 2024-10-19 09:26:23,238 - DEBUG - Do not have enough data to verify VN in agent 2024-10-19 09:26:23,248 - DEBUG - VRF ids for VN ctest-vn-05861655: {} 2024-10-19 09:26:23,248 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-19 09:26:23,255 - DEBUG - Requesting: http://10.0.0.23:8082/domain/af60f3e8-1640-49cf-92a7-967e3839bb4b 2024-10-19 09:26:23,280 - DEBUG - Requesting: http://10.0.0.23:8082/project/67ab35b7-40f5-4adb-ad08-fed3d9a31ee3 2024-10-19 09:26:23,376 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f16b314-efa0-46ef-b15c-114e30296084 2024-10-19 09:26:23,400 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f16b314-efa0-46ef-b15c-114e30296084 2024-10-19 09:26:23,417 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7304cce-78af-4caa-a9f8-4b572119c864 2024-10-19 09:26:23,431 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7304cce-78af-4caa-a9f8-4b572119c864 2024-10-19 09:26:23,443 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/45e137d7-b3b1-475c-b6a9-6b982cb4bed1 2024-10-19 09:26:23,452 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-19 09:26:23,452 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f16b314-efa0-46ef-b15c-114e30296084 2024-10-19 09:26:23,469 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7304cce-78af-4caa-a9f8-4b572119c864 2024-10-19 09:26:23,505 - INFO - Verified VN network id 8 for VN 9f16b314-efa0-46ef-b15c-114e30296084 2024-10-19 09:26:23,506 - INFO - Verifications in API Server for VN ctest-vn-75654091 passed 2024-10-19 09:26:23,506 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f16b314-efa0-46ef-b15c-114e30296084 2024-10-19 09:26:23,524 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7304cce-78af-4caa-a9f8-4b572119c864 2024-10-19 09:26:23,537 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7304cce-78af-4caa-a9f8-4b572119c864 2024-10-19 09:26:23,548 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/45e137d7-b3b1-475c-b6a9-6b982cb4bed1 2024-10-19 09:26:23,571 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-75654091', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67887259', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11463546804019152623', 'uuid-lslong': '12780108870083764356'}, 'enable': 'true', 'created': '2024-10-19T09:26:20', 'last-modified': '2024-10-19T09:26:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.900947'} 2024-10-19 09:26:23,578 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-19 09:26:23,579 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75654091 passed 2024-10-19 09:26:23,579 - DEBUG - ====Verifying policy data for ctest-vn-75654091 in API_Server ====== 2024-10-19 09:26:23,579 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-19 09:26:23,587 - DEBUG - Requesting: http://10.0.0.23:8082/domain/af60f3e8-1640-49cf-92a7-967e3839bb4b 2024-10-19 09:26:23,603 - DEBUG - Requesting: http://10.0.0.23:8082/project/67ab35b7-40f5-4adb-ad08-fed3d9a31ee3 2024-10-19 09:26:23,708 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f16b314-efa0-46ef-b15c-114e30296084 2024-10-19 09:26:23,724 - DEBUG - ==>Verifying data for policy with id: 1b789d52-e514-405e-9c69-667bc202fbf8, fqn: ['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-policy-allow-all-15997621'] 2024-10-19 09:26:23,725 - INFO - VN ctest-vn-75654091 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-19 09:26:23,725 - DEBUG - Verifying the vn in opserver 2024-10-19 09:26:23,725 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-75654091 virtual network link through opserver 10.0.0.23 2024-10-19 09:26:23,725 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2024-10-19 09:26:23,739 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-75654091', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-75654091?flat'} 2024-10-19 09:26:23,740 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-75654091 is found in opserver 2024-10-19 09:26:23,761 - DEBUG - Do not have enough data to verify VN in agent 2024-10-19 09:26:23,768 - DEBUG - VRF ids for VN ctest-vn-75654091: {} 2024-10-19 09:26:23,837 - DEBUG - Services list from nova: [, , ] 2024-10-19 09:26:26,062 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2116-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2116-1) 2024-10-19 09:26:27,495 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2116-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2116-1) 2024-10-19 09:26:27,496 - INFO - Waiting for VM ctest-TestBasicPolicy-67887259-35003016 to be up.. 2024-10-19 09:26:27,653 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-19 09:26:32,772 - DEBUG - VM is in ACTIVE state now 2024-10-19 09:26:32,772 - INFO - VM name : ctest-TestBasicPolicy-67887259-35003016 2024-10-19 09:26:32,884 - DEBUG - VM ctest-TestBasicPolicy-67887259-35003016 ID is b18cda0a-931e-4b17-b1e6-cb69e9220d3b 2024-10-19 09:26:32,907 - DEBUG - VM ctest-TestBasicPolicy-67887259-35003016 launched on Node cn-jenkins-deploy-platform-ansible-os-2116-1 2024-10-19 09:26:33,023 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/b18cda0a-931e-4b17-b1e6-cb69e9220d3b 2024-10-19 09:26:33,038 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/8c30dd29-b2dd-4136-ac8b-583800f8018b 2024-10-19 09:26:36,325 - 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 1002ms') 2024-10-19 09:26:36,325 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-67887259-35003016 failed! 2024-10-19 09:26:36,410 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655 is 120.93.235.1 and allocation pool is NOT set 2024-10-19 09:26:40,488 - 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 1013ms') 2024-10-19 09:26:40,488 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-67887259-35003016 failed! 2024-10-19 09:26:40,554 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655 is 120.93.235.1 and allocation pool is NOT set 2024-10-19 09:26:42,623 - 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=5.61 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.441 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.441/3.026/5.611/2.585 ms') 2024-10-19 09:26:42,623 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-67887259-35003016 passed 2024-10-19 09:26:42,806 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:26:42,806 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-67887259-35003016, IP 120.93.235.3, Port 22 2024-10-19 09:26:42,872 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2024-10-19 09:26:42,971 - DEBUG - VM ctest-TestBasicPolicy-67887259-35003016 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-19 09:26:47,972 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:26:47,973 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-67887259-35003016, IP 120.93.235.3, Port 22 2024-10-19 09:26:48,148 - DEBUG - VM ctest-TestBasicPolicy-67887259-35003016 is ready for SSH connections 2024-10-19 09:26:48,148 - INFO - Waiting for VM ctest-TestBasicPolicy-67887259-55195585 to be up.. 2024-10-19 09:26:48,241 - DEBUG - VM is in ACTIVE state now 2024-10-19 09:26:48,241 - INFO - VM name : ctest-TestBasicPolicy-67887259-55195585 2024-10-19 09:26:48,343 - DEBUG - VM ctest-TestBasicPolicy-67887259-55195585 ID is 28881a09-0b57-4e9b-ad2a-046fb3dcf610 2024-10-19 09:26:48,343 - DEBUG - VM ctest-TestBasicPolicy-67887259-55195585 launched on Node cn-jenkins-deploy-platform-ansible-os-2116-1 2024-10-19 09:26:48,452 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/28881a09-0b57-4e9b-ad2a-046fb3dcf610 2024-10-19 09:26:48,466 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/425523ab-6b7e-48dd-819a-b2620570725b 2024-10-19 09:26:49,768 - 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.74 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.526 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.526/2.131/3.736/1.605 ms') 2024-10-19 09:26:49,768 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-67887259-55195585 passed 2024-10-19 09:26:49,934 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:26:49,934 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-67887259-55195585, IP 78.238.13.131, Port 22 2024-10-19 09:26:50,109 - DEBUG - VM ctest-TestBasicPolicy-67887259-55195585 is ready for SSH connections 2024-10-19 09:26:50,109 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:26:50,109 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 78.238.13.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-10-19 09:26:50,110 - DEBUG - ping -s 56 -c 3 -W 1 78.238.13.131 2024-10-19 09:26:54,431 - DEBUG - PING 78.238.13.131 (78.238.13.131): 56 data bytes 64 bytes from 78.238.13.131: seq=0 ttl=63 time=4.263 ms 64 bytes from 78.238.13.131: seq=1 ttl=63 time=1.232 ms 64 bytes from 78.238.13.131: seq=2 ttl=63 time=1.053 ms --- 78.238.13.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.053/2.182/4.263 ms 2024-10-19 09:26:54,431 - INFO - Ping to IP 78.238.13.131 from VM ctest-TestBasicPolicy-67887259-35003016 passed 2024-10-19 09:26:54,638 - DEBUG - Policy Update Response {"network-policy": {"uuid": "1b789d52-e514-405e-9c69-667bc202fbf8", "href": "http://10.0.0.23:8082/network-policy/1b789d52-e514-405e-9c69-667bc202fbf8"}} 2024-10-19 09:26:54,638 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-19 09:26:54,638 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 78.238.13.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2024-10-19 09:26:54,638 - DEBUG - ping -s 56 -c 3 -W 1 78.238.13.131 2024-10-19 09:26:57,897 - DEBUG - PING 78.238.13.131 (78.238.13.131): 56 data bytes --- 78.238.13.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-19 09:26:57,897 - WARNING - Ping to IP 78.238.13.131 from VM ctest-TestBasicPolicy-67887259-35003016 failed 2024-10-19 09:26:57,897 - INFO - Deleting VM ctest-TestBasicPolicy-67887259-55195585 2024-10-19 09:26:58,656 - INFO - Deleting VM ctest-TestBasicPolicy-67887259-35003016 2024-10-19 09:26:59,539 - INFO - Deleted policy ctest-policy-allow-all-15997621 2024-10-19 09:26:59,540 - INFO - Deleting VN ctest-vn-75654091 2024-10-19 09:26:59,626 - DEBUG - VN 9f16b314-efa0-46ef-b15c-114e30296084 still in use: Unable to complete operation on network 9f16b314-efa0-46ef-b15c-114e30296084. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-c13e2cde-24c1-4066-bb8f-181b5954ec90'] 2024-10-19 09:26:59,627 - WARNING - Deleting VN ctest-vn-75654091 failed..Will retry 2024-10-19 09:27:01,769 - DEBUG - Response for deleting network () 2024-10-19 09:27:01,769 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7304cce-78af-4caa-a9f8-4b572119c864 2024-10-19 09:27:01,776 - DEBUG - Response Code: 404 2024-10-19 09:27:01,777 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-19 09:27:01,784 - DEBUG - Requesting: http://10.0.0.23:8082/domain/af60f3e8-1640-49cf-92a7-967e3839bb4b 2024-10-19 09:27:01,844 - DEBUG - Requesting: http://10.0.0.23:8082/project/67ab35b7-40f5-4adb-ad08-fed3d9a31ee3 2024-10-19 09:27:01,938 - INFO - Validated that VN ctest-vn-75654091 is not found in API Server 2024-10-19 09:27:01,958 - DEBUG - VN ctest-vn-75654091 is not present in Agent 10.0.0.23 2024-10-19 09:27:01,958 - INFO - Validated that VN ctest-vn-75654091 is not in any agent 2024-10-19 09:27:01,987 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-75654091 info 2024-10-19 09:27:01,987 - INFO - Deleting VN ctest-vn-05861655 2024-10-19 09:27:02,145 - DEBUG - Response for deleting network () 2024-10-19 09:27:02,145 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f4184d89-f2bc-4630-833c-9651aba0e872 2024-10-19 09:27:02,155 - DEBUG - Response Code: 404 2024-10-19 09:27:02,155 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2024-10-19 09:27:02,163 - DEBUG - Requesting: http://10.0.0.23:8082/domain/af60f3e8-1640-49cf-92a7-967e3839bb4b 2024-10-19 09:27:02,229 - DEBUG - Requesting: http://10.0.0.23:8082/project/67ab35b7-40f5-4adb-ad08-fed3d9a31ee3 2024-10-19 09:27:02,317 - INFO - Validated that VN ctest-vn-05861655 is not found in API Server 2024-10-19 09:27:02,333 - DEBUG - VN ctest-vn-05861655 is not present in Agent 10.0.0.23 2024-10-19 09:27:02,333 - INFO - Validated that VN ctest-vn-05861655 is not in any agent 2024-10-19 09:27:02,355 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05861655 info 2024-10-19 09:27:02,613 - DEBUG - No XMPP flaps were noticed during the test
2024-10-19 09:27:02,614 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:44]
2024-10-19 09:27:02,614 - INFO - -------------------------------------------------------------------------------- 2024-10-19 09:27:03,779 - INFO - Deleted project: ctest-TestBasicPolicy-67887259, ID : 67ab35b7-40f5-4adb-ad08-fed3d9a31ee3