Uploaded image for project: 'Red Hat Container Development Kit'
  1. Red Hat Container Development Kit
  2. CDK-23

Installation using VagrantFile doesn't support spaces to user home path

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: cdk.zip
    • Labels:
      None
    • Steps to Reproduce:
      • launch vagrant up on Windows with user home containing a space

      Description

      I'm using the Development suite installer 1.1.0
      I'm on Windows 10 and my user name is "Aurelien Pupier"

      when launching vagrant up in cdk\components\rhel\rhel-ose , I have the following error:

      INFO interface: Machine: error-exit ["VagrantPlugins::SyncedFolderSSHFS::Errors::SSHFSSlaveMountFailed", "Mounting SSHFS shared folder via slave SSHFS mount failed. Please\nlook at the below STDERR output from the processes that were run.\n\nSSH command:\n\nWarning: Permanently added '[127.0.0.1]:2200' (ECDSA) to the list of known hosts.\nfuse: bad mount point `Pupier': No such file or directory\n\n\nSFTP command:\n\n"]
      

      If i comment these lines of the VagranFile, it is starting (but suppose that I miss some functionality:

      if Vagrant::Util::Platform.windows?
          target_path = ENV['USERPROFILE'].gsub(/\\/,'/').gsub(/[[:alpha:]]{1}:/){|s|'/' + s.downcase.sub(':', '')}
          config.vm.synced_folder ENV['USERPROFILE'], target_path, type: 'sshfs', sshfs_opts_append: '-o umask=000 -o uid=1000 -o gid=1000'
        else
          config.vm.synced_folder ENV['HOME'], ENV['HOME'], type: 'sshfs', sshfs_opts_append: '-o umask=000 -o uid=1000 -o gid=1000'
        end
      

      Having spaces in username is very common for Windows users.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lalatendum Lalatendu Mohanty
                  Reporter:
                  aurelien.pupier Aurélien Pupier
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: