Password Login ... {'10.4.7.20': ('22', '123456', 'root', 'Ubuntu 16.04', 'cmdb\n', '000c290a6796_', 'VMware-564d7280be67c8f3-2f4c4748960a6796\n', 'VMware, Inc.VMware Virtual Platform'), '10.4.7.30': ('22', '123456', 'root', 'CentOS Linux 7.7', 'localhost.localdomain\n', '000c29c5c0d8_', 'VMware-564dd180c9c331c6-8494264cf3c5c0d8\n', 'VMware, Inc.VMware Virtual Platform')} {}
Key Login ... {} {}
(535, 'Error: authentication failed')
Traceback (most recent call last):
File "./main.py", line 201, in
main()
File "./main.py", line 126, in main
key_ip_dic = ft.run()
File "/data/git/imoocc/scanhosts/util/j_filter.py", line 31, in run
self.filter_type()
File "/data/git/imoocc/scanhosts/util/j_filter.py", line 98, in filter_type
VirtualServerInfo.objects.create(server_ip=item_val[0],server_type=item_val[-1],system_ver=item_val[6],sys_hostname=item_val[7],mac=item_val[-3],sn=item_val[-2],vir_phy_id=1,conn_vir_id=int(self.key_sn_relate[sn_key]))
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/query.py", line 348, in create
obj.save(force_insert=True, using=self.db)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/base.py", line 710, in save
force_update=force_update, update_fields=update_fields)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/base.py", line 738, in save_base
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/base.py", line 822, in _save_table
result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/base.py", line 861, in _do_insert
using=using, raw=raw)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/query.py", line 920, in _insert
return query.get_compiler(using=using).execute_sql(return_id)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 974, in execute_sql
cursor.execute(sql, params)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/utils.py", line 97, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/opt/python2.7/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 124, in execute
return self.cursor.execute(query, args)
File "/opt/python2.7/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/opt/python2.7/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
django.db.utils.DataError: (1406, "Data too long for column 'sys_hostname' at row 1")