Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3969

cf-remote broken with rhel8 and python 3.6.8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: Higher
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cf-remote
    • Labels:
      None

      Description

      cf-remote seems to be broken on rhel8 with python 3.6.8?

      Installed cf-remote with pip3 install cf-remote as vagrant user in rhel8 virtualbox vm.

      Had to do sudo pip3 install --upgrade pip in order to install in the first place due to cryptography not knowing how to install rust tools (missing python module I think?).

      running cf-remote info -H localhost I get:

      /home/vagrant/.local/lib/python3.6/site-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
        from cryptography.hazmat.backends import default_backend
      /home/vagrant/.local/lib/python3.6/site-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
        "class": algorithms.Blowfish,
      Traceback (most recent call last):
        File "/home/vagrant/.local/bin/cf-remote", line 8, in <module>
          sys.exit(main())
        File "/home/vagrant/.local/lib/python3.6/site-packages/cf_remote/main.py", line 399, in main
          exit_code = run_command_with_args(args.command, args)
        File "/home/vagrant/.local/lib/python3.6/site-packages/cf_remote/main.py", line 134, in run_command_with_args
          return commands.info(args.hosts, None)
        File "/home/vagrant/.local/lib/python3.6/site-packages/cf_remote/commands.py", line 22, in info
          data = get_info(host, users=users)
        File "/home/vagrant/.local/lib/python3.6/site-packages/cf_remote/ssh.py", line 82, in connect_wrapper
          return func(host, *args, **kwargs)
        File "/home/vagrant/.local/lib/python3.6/site-packages/cf_remote/remote.py", line 130, in get_info
          data["whoami"] = ssh_cmd(connection, "whoami")
        File "/home/vagrant/.local/lib/python3.6/site-packages/cf_remote/ssh.py", line 112, in ssh_cmd
          result = connection.run(cmd, hide=True)
        File "/home/vagrant/.local/lib/python3.6/site-packages/cf_remote/ssh.py", line 24, in run
          return subprocess.run(command, capture_output=True, shell=True, text=True)
        File "/usr/lib64/python3.6/subprocess.py", line 423, in run
          with Popen(*popenargs, **kwargs) as process:
      TypeError: __init__() got an unexpected keyword argument 'capture_output'
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            craig.comstock Craig Comstock
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: