virtualbox scripts translates "\r" substrings in VM basepath
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Vasiliy Pleshakov |
Bug Description
Environment:
fuel 5.0
Windows 7/8
Cygwin x86_64 v6.1
fresh installation of VirtualBox v 4.3.12
windows username starts with "r" (e.g. "Ruslan", "russiarules")
Steps to reproduce:
1. open VirtualBox preferences and make sure that Default Mashine Folder set to "C:\Users\
2. run Cygwin
3. navigate to folder there virtualbox scripts located.
4. launch scripts with command "./launch.sh"
Expected result:
1. All VMs created and configured properly. All VMs runs normaly.
2. all VMs files resides at Default Mashine Folder
Actual result:
1. fuel-master VM creates but scripts does not able to add disk to it.
2. all VMs are created and VMs runs normaly. But all VMs files resides in several locations: at c:\cygwin\home, at c:\fuel-*\ folders.
Workaround:
set Default Mashine Folder to any folder there is no "r" letter at the start of folders in the path.
Why it happens:
If foldername starts with "r" letter then there is a "\r" substring in path (windows notation). When scripts read value of Default Mashine Folder at line functions/vm.sh:20 "\r" substring interprets into Carriage Return character.
Changed in fuel: | |
importance: | Undecided → High |
assignee: | nobody → Fuel Library Team (fuel-library) |
milestone: | none → 5.1 |
Changed in fuel: | |
assignee: | Fuel Library Team (fuel-library) → Fuel DevOps (fuel-devops) |
It looks like we should remove "-e" parameter in echo command at line functions/vm.sh:20
becouse man echo says: -e enable interpretation of backslash escapes
Or we should change "-e" to "-E" :
-E disable interpretation of backslash escapes (default)