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

cf-remote --remote-download doesn't work for automatic selection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Component/s: contrib: cf-remote
    • Labels:
      None
    • Story Points:
      1

      Description

      olehermanse@OH-WIN core $ cf-remote spawn --count 1 --platform ubuntu-16-04-x64 --role hub --name hub
      Spawning VMs...DONE
      Waiting for VMs to get IP addresses........................DONE
      Details about the spawned VMs can be found in /home/olehermanse/.cfengine/cf-remote/cloud_state.json
      olehermanse@OH-WIN core $ code ../nova/
      olehermanse@OH-WIN core $ cf-remote --version master install --hub hub --bootstrap hub --demo --remote-download
      
      ubuntu@34.243.18.29
      OS            : ubuntu (debian)
      Architecture  : x86_64
      CFEngine      : Not installed
      Policy server : None
      Binaries      : dpkg, apt
      
      Downloading 'None' on 'ubuntu@34.243.18.29' using curl
      Traceback (most recent call last):
        File "/home/olehermanse/bin/cf-remote", line 11, in <module>
          main()
        File "/home/olehermanse/code/northern.tech/cfengine/core/contrib/cf-remote/cf_remote/main.py", line 348, in main
          exit_code = run_command_with_args(args.command, args)
        File "/home/olehermanse/code/northern.tech/cfengine/core/contrib/cf-remote/cf_remote/main.py", line 111, in run_command_with_args
          return commands.install(
        File "/home/olehermanse/code/northern.tech/cfengine/core/contrib/cf-remote/cf_remote/commands.py", line 179, in install
          hubs_install_pool.map(lambda job: job.run(), hub_jobs)
        File "/usr/lib/python3.8/multiprocessing/pool.py", line 364, in map
          return self._map_async(func, iterable, mapstar, chunksize).get()
        File "/usr/lib/python3.8/multiprocessing/pool.py", line 768, in get
          raise self._value
        File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
          result = (True, func(*args, **kwds))
        File "/usr/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
          return list(map(*args))
        File "/home/olehermanse/code/northern.tech/cfengine/core/contrib/cf-remote/cf_remote/commands.py", line 179, in <lambda>
          hubs_install_pool.map(lambda job: job.run(), hub_jobs)
        File "/home/olehermanse/code/northern.tech/cfengine/core/contrib/cf-remote/cf_remote/remote.py", line 307, in run
          self._errors = install_host(*self._args, **self._kwargs)
        File "/home/olehermanse/code/northern.tech/cfengine/core/contrib/cf-remote/cf_remote/ssh.py", line 54, in connect_wrapper
          return func(host, *args, **kwargs)
        File "/home/olehermanse/code/northern.tech/cfengine/core/contrib/cf-remote/cf_remote/remote.py", line 279, in install_host
          package = basename(package)
        File "/usr/lib/python3.8/posixpath.py", line 142, in basename
          p = os.fspath(p)
      TypeError: expected str, bytes or os.PathLike object, not NoneType
      olehermanse@OH-WIN core $
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                olehermanse Ole Herman Schumacher Elgesem
                Reporter:
                olehermanse Ole Herman Schumacher Elgesem
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel