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

Installation can fail with TypeError: '>' not supported between instances of 'NoneType' and 'int' #927

Closed
eloquence opened this issue Nov 29, 2023 · 5 comments

Comments

@eloquence
Copy link
Member

eloquence commented Nov 29, 2023

STR:

  • Install SecureDrop Workstation on Qubes 4.1.2 (fresh install)
  • Salt package in dom0 is at version 3001.7

Expected behavior:

  • sdw-admin --apply runs without errors

Actual behavior:

  • sdw-admin --apply may fail with Salt error:
sd-viewer:
  [ERROR   ] An un-handled exception was caught by Salt's global exception handler:
  TypeError: '>' not supported between instances of 'NoneType' and 'int'
  Traceback (most recent call last):
    File "/usr/bin/salt-ssh", line 8, in <module>
      sys.exit(salt_ssh())
               ^^^^^^^^^^
    File "/usr/lib/python3.11/site-packages/salt/scripts.py", line 470, in salt_ssh
      client.run()
    File "/usr/lib/python3.11/site-packages/salt/cli/ssh.py", line 20, in run
      ssh.run()
    File "/usr/lib/python3.11/site-packages/salt/client/ssh/__init__.py", line 819, in run
      final_exit = max(final_exit, retcode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^
  TypeError: '>' not supported between instances of 'NoneType' and 'int'
  Traceback (most recent call last):
    File "/usr/bin/salt-ssh", line 8, in <module>
      sys.exit(salt_ssh())
               ^^^^^^^^^^
    File "/usr/lib/python3.11/site-packages/salt/scripts.py", line 470, in salt_ssh
      client.run()
    File "/usr/lib/python3.11/site-packages/salt/cli/ssh.py", line 20, in run
      ssh.run()
    File "/usr/lib/python3.11/site-packages/salt/client/ssh/__init__.py", line 819, in run
      final_exit = max(final_exit, retcode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^
  TypeError: '>' not supported between instances of 'NoneType' and 'int'
@eloquence
Copy link
Member Author

@marmarek FYI, just saw this on 4.1.2 with fresh provisioning of the SecureDrop Workstation - flagging because you opened the upstream issue saltstack/salt#64575. The provisioning process itself installs fedora-38; I'm not entirely sure what Salt version was in play during this particular step.

@marmarek
Copy link

What is the template of default-mgmt-dvm? Also fedora-38? Which version of salt-ssh package do you have there?

@eloquence
Copy link
Member Author

It's fedora-38. The provisioning installs fedora-38 and configures it as the default. Since that happened successfully as part of the provisioning run that failed with this error, I suspect the failed operation was done via fedora-38 and not fedora-37.

The salt-ssh version on this fresh install is 3006.4 in fedora-38, and 3006.2 in fedora-37.

@marmarek
Copy link

Oh, the fix got merged upstream just 15h ago. But in the meantime 3006.4 (newer than the version with the fix in our repositories) was released. I'll update our package with a temporary backport one last time...

@legoktm
Copy link
Member

legoktm commented Dec 8, 2023

Thanks! I'll close this then since it's been fixed in Qubes and there's nothing for us to fix here in SDW anyways.

@legoktm legoktm closed this as completed Dec 8, 2023
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

No branches or pull requests

3 participants