Nathaniel Sherry created VCL-641:
------------------------------------
Summary: VCL fails to properly trim whitespace from `virsh list
--all`
Key: VCL-641
URL: https://issues.apache.org/jira/browse/VCL-641
Project: VCL
Issue Type: Bug
Components: vcld (backend)
Affects Versions: 2.3
Environment: CentOS 6.3
Reporter: Nathaniel Sherry
Using the libvirt module, vcld executes `virsh list --all` on a vmhost, which
results in the following output
Id Name State
----------------------------------------------------
19 VM1 running
The name of the VM ("VM1") is then extracted as " VM1", and the command
`virsh dumpxml " VM1"` fails.
>From looking at libvirt.pm's get_domain_info function, it looks like the
>expectation is that there will only be one space between the id and name
>columns:
my ($id, $name, $state) = $line =~ /^\s*([\d\-]+)\s(.+?)\s+(\w+|shut off)$/g;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira