Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FVT]:support xcat-inventory on rhels7.6 #143

Open
tingtli opened this issue Oct 26, 2018 · 0 comments
Open

[FVT]:support xcat-inventory on rhels7.6 #143

tingtli opened this issue Oct 26, 2018 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@tingtli
Copy link

tingtli commented Oct 26, 2018

Install xcat-inventory on rhels7.6 x and get following errors

[root@c910f04x12v02 testcase]# xcat-inventory -V
Traceback (most recent call last):
  File "/opt/xcat/bin/xcat-inventory", line 11, in <module>
    from xcclient.inventory.shell import main
  File "/opt/xcat/lib/python/xcclient/inventory/shell.py", line 22, in <module>
    import xcclient.inventory.manager as mgr
  File "/opt/xcat/lib/python/xcclient/inventory/manager.py", line 10, in <module>
    from dbfactory import dbfactory
  File "/opt/xcat/lib/python/xcclient/inventory/dbfactory.py", line 3, in <module>
    import dbobject
  File "/opt/xcat/lib/python/xcclient/inventory/dbobject.py", line 44, in <module>
    class passwd(Base,mixin):
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/declarative/api.py", line 55, in __init__
    _as_declarative(cls, classname, cls.__dict__)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/declarative/base.py", line 254, in _as_declarative
    **table_kw)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/sql/schema.py", line 406, in __new__
    table._init(name, metadata, *args, **kw)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/sql/schema.py", line 479, in _init
    self._autoload(metadata, autoload_with, include_columns)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/sql/schema.py", line 503, in _autoload
    self, include_columns, exclude_columns
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1731, in run_callable
    with self.contextual_connect() as conn:
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1798, in contextual_connect
    self.pool.connect(),
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 338, in connect
    return _ConnectionFairy._checkout(self)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 644, in _checkout
    fairy = _ConnectionRecord.checkout(pool)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 440, in checkout
    rec = pool._do_get()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 963, in _do_get
    return self._create_connection()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 285, in _create_connection
    return _ConnectionRecord(self)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 416, in __init__
    exec_once(self.connection, self)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/event/attr.py", line 250, in exec_once
    self(*args, **kw)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/event/attr.py", line 260, in __call__
    fn(*args, **kw)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 1219, in go
    return once_fn(*arg, **kw)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 166, in first_connect
    dialect.initialize(c)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/dialects/mysql/base.py", line 2453, in initialize
    self._detect_ansiquotes(connection)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/dialects/mysql/base.py", line 2724, in _detect_ansiquotes
    mode = row[1] or ''
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/dialects/mysql/base.py", line 3226, in __getitem__
    return item.decode(self.charset)
LookupError: unknown encoding: utf8mb4```
@tingtli tingtli added the bug Something isn't working label Oct 26, 2018
@bybai bybai added this to the 2.14.5 milestone Oct 26, 2018
@bybai bybai added the sprint1 label Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants