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

Migration fails with "AttributeError: 'str' object has no attribute 'decode'" #1339

Open
Catfriend1 opened this issue Jan 19, 2021 · 0 comments

Comments

@Catfriend1
Copy link

Hi,

I've found a bug.

Error:
[19/Jan/2021:16:34:26] HTTP
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/lib/python3/dist-packages/cherrypy/lib/encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/lib/python3/dist-packages/wok/control/base.py", line 161, in wrapper
    action_result = action_fn(*model_args)
  File "/usr/lib/python3/dist-packages/wok/plugins/kimchi/model/vms.py", line 2100, in migrate
    name = name.decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'

Reproducer:

  • Open kimchi web UI
  • Select any VM
  • Choose "Migrate" from the actions drop-down menu
  • Fill in target host IP and click OK

Root cause:

I could work around by commenting the two "decode" lines out.

Specs:

  • debian 10.7 amd64
  • wok 3.0 (release)
  • kimchi 3.0 (release)
@Catfriend1 Catfriend1 changed the title Migration fails with Migration fails with "AttributeError: 'str' object has no attribute 'decode'" Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant