virtualbox scripts searches VM name incorrectly
Bug #1387602 reported by
Vasiliy Pleshakov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Wishlist
|
Serhii Ovsianikov |
Bug Description
In functions/vm.sh in function is_vm_running() search VM name in list implemented incorrectly.
Steps to reproduce:
1. Assume we have list of VMs like this:
extrafuel-master
extrafuel-slave-1
2. We run:
is_vm_running fuel-master
Expected result: return 1
Actual result: return 0.
Workaround:
Search VM name with regexp:
is_vm_running() {
name=$1
list=
# Check that the list of running VMs contains the given VM
regexp=
if [[ $list =~ $regexp ]]; then
return 0
else
return 1
fi
}
I understand that I describe very rare situation. But I believe we should make very stable and reusable code.
description: | updated |
Changed in fuel: | |
assignee: | nobody → Miroslav Anashkin (manashkin) |
milestone: | none → 6.0 |
Changed in fuel: | |
status: | New → Confirmed |
Changed in fuel: | |
assignee: | Miroslav Anashkin (manashkin) → Sergii Ovsianikov (sovsianikov) |
To post a comment you must log in.
Miroslav, could you please update the status of this bug?