#2216 Python 3: unorderable types: PKISubsystem()
Closed: Fixed None Opened 8 years ago by cheimes.

Migration fails under Python 3:

# pki-server-upgrade --silent
Traceback (most recent call last):
  File "/sbin/pki-server-upgrade", line 196, in <module>
    main(sys.argv)
  File "/sbin/pki-server-upgrade", line 189, in main
    upgrader.upgrade()
  File "/usr/lib/python3.4/site-packages/pki/upgrade.py", line 662, in upgrade
    versions = self.versions()
  File "/usr/lib/python3.4/site-packages/pki/upgrade.py", line 490, in versions
    current_version = self.get_current_version()
  File "/usr/lib/python3.4/site-packages/pki/server/upgrade.py", line 292, in get_current_version
    for subsystem in self.subsystems(instance):
  File "/usr/lib/python3.4/site-packages/pki/server/upgrade.py", line 248, in subsystems
    subsystem_list.sort()
TypeError: unorderable types: PKISubsystem() < PKISubsystem()

I have to add eq and lt to some classes, e.g. PKISubsystem and PKIInstance.


Pushed to master d5360c915761773e93333b6894df4bd8ac8a2f13

Checked into DOGTAG_10_2_6_BRANCH:

  • 9c83d154939f00011c9682ff1ccaabb78626c99f

Checked into DOGTAG_10_2_BRANCH:

  • 7a9612411834649cac2089afc6c19942d8062ab7

Resolved in:

d5360c915761773e93333b6894df4bd8ac8a2f13 has introduced a regression in pki-server-upgrade, https://bugzilla.redhat.com/show_bug.cgi?id=1328522

The regression was fixed in 9e78f981e923c879033c26eebad0cb803d66b8d9.

Metadata Update from @cheimes:
- Issue assigned to cheimes
- Issue set to the milestone: 10.3.1

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/2336

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Login to comment on this ticket.

Metadata