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

Upgrade to python 3 #477

Open
YanChii opened this issue Mar 5, 2020 · 5 comments
Open

Upgrade to python 3 #477

YanChii opened this issue Mar 5, 2020 · 5 comments

Comments

@YanChii
Copy link
Contributor

YanChii commented Mar 5, 2020

Related items:

The main project is deployed on mgmt01 and all nodes. Part of this upgrade is

  • upgrade /opt/local to newest LTS (19Q4)
  • upgrade envs
  • automate the upgrade process for current installations
@ricco386
Copy link
Member

ricco386 commented Sep 9, 2020

Work in progress... Partial results in upgrade-python3 branch... @YanChii if you find any issues please leave in comment.

@YanChii
Copy link
Contributor Author

YanChii commented Sep 20, 2020

[2020-09-20 21:33:10,255: ERROR/MainProcess] api.node.sysinfo.tasks.node_sysinfo_cb[7e7u1-cdefd1dd-67a8-43e5-8498]: Unicode-objects must be encoded before hashing
Traceback (most recent call last):
  File "/opt/erigones/api/node/sysinfo/tasks.py", line 181, in node_sysinfo_cb
    NodeSystemRestarted(node, system_version=node.system_version).send()
  File "/opt/erigones/api/system/node/events.py", line 14, in __init__
    task_id = task_id_from_string(node.owner.id, dummy=True, dc_id=DEFAULT_DC, tt=TT_DUMMY, tg=TG_DC_UNBOUND)
  File "/opt/erigones/que/utils.py", line 65, in task_id_from_string
    return task_prefix + '-' + hashlib.md5(user_id).hexdigest()[-8:] + x[8:-13]
TypeError: Unicode-objects must be encoded before hashing

@YanChii
Copy link
Contributor Author

YanChii commented Sep 20, 2020

Browser console errors.

Uncaught SyntaxError: expected expression, got '<'

It is probably causing the "Please wait" loading window keeps appearing indefinitely.

@ricco386
Copy link
Member

ricco386 commented Sep 30, 2020

I have just push a few changes that should fix this and few more others I have found so far it looks good, but needs test everywhere...

@YanChii YanChii added the WIP Work in progress label Nov 15, 2020
@YanChii YanChii added this to the 5.0 milestone Nov 15, 2020
@YanChii
Copy link
Contributor Author

YanChii commented Nov 17, 2020

Just a remark

/opt/erigones/vms/models/vm.py:962: RemovedInDjango19Warning: SortedDict is deprecated and will be removed in Django 1.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants