Bug 916878
Summary: | Incorrect error messages showed when --disk parameter contains special characters | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | tingting zheng <tzheng> |
Component: | virt-manager | Assignee: | Martin Kletzander <mkletzan> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | codong, cwei, dallan, lcui, mjenner, mkletzan, mzhan |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | virt-manager-0.10.0-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 916875 | Environment: | |
Last Closed: | 2014-06-13 10:03:12 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 883470, 916875 | ||
Bug Blocks: |
Description
tingting zheng
2013-03-01 07:56:25 UTC
(In reply to comment #0) > # virt-install -n test -l http://download.englab.nay.redhat.com/pub/rhel/rel-eng/latest-RHEL-6/6.4/Server/x86_64/ --disk /var/lib/libvirt/images/test#test.img,size=3G --ram 512 --graphics vnc > ERROR Error with storage parameters: Size must be specified for non existent volume path '/var/lib/libvirt/images/test' > > # virt-install -n test -l http://download.englab.nay.redhat.com/pub/rhel/rel-eng/latest-RHEL-6/6.4/Server/x86_64/ --disk /var/lib/libvirt/images/test\#test.img,size=3G --ram 512 --graphics vnc > ERROR Error with storage parameters: Size must be specified for non existent volume path '/var/lib/libvirt/images/test' These two should be the same as '#' is not used as comment in when there is a non-space character before that. I'm still not sure where the problem lies, the search continues. > # virt-install -n test -l http://download.englab.nay.redhat.com/pub/rhel/rel-eng/latest-RHEL-6/6.4/Server/x86_64/ --disk /var/lib/libvirt/images/test%test.img,size=3G --ram 512 --graphics vnc > ERROR Improper value for 'size': invalid literal for float(): 3G This is expected, size can be only a number, virt-install doesn't support 'B', 'K', 'M', 'G', 'T', etc. It is in GB by default, see virt-install(1). > # virt-install -n test -l http://download.englab.nay.redhat.com/pub/rhel/rel-eng/latest-RHEL-6/6.4/Server/x86_64/ --disk /var/lib/libvirt/images/test!test.img,size=3G --ram 512 --graphics vnc > -bash: !test.img,size=3G: event not found This is inappropriately escaped, bash is trying to find previous command in history starting with 'test.img,size=3G'. Moving to POST: commit 7a18271ff3d2680f6ac7dc0eca1bc7d7fac8cee7 Author: Martin Kletzander <mkletzan> Date: Mon Mar 11 15:38:55 2013 +0100 Don't support comments in parsed parameters Tested with: virt-install-0.10.0-2.el7.noarch virt-manager-0.10.0-2.el7.noarch # virt-install -n test1 -l http://download.englab.nay.redhat.com/pub/rhel/rel-eng/latest-RHEL-6/6.4/Server/x86_64/os/ --disk /var/lib/libvirt/images/test22#test.img,size=6 --ram 512 --graphics vnc ERROR Error with storage parameters: Storage object name can only contain alphanumeric, '_', '.', or '-' characters # virt-install -n test1 -l http://download.englab.nay.redhat.com/pub/rhel/rel-eng/latest-RHEL-6/6.4/Server/x86_64/os/ --disk /var/lib/libvirt/images/test22\#test.img,size=6 --ram 512 --graphics vnc ERROR Error with storage parameters: Storage object name can only contain alphanumeric, '_', '.', or '-' characters virt-install -n test1 -l http://download.englab.nay.redhat.com/pub/rhel/rel-eng/latest-RHEL-6/6.4/Server/x86_64/os/ --disk /var/lib/libvirt/images/test22%test.img,size=6 --ram 512 --graphics vnc So move the bug to VERIFIED. (In reply to tingting zheng from comment #7) > Tested with: > virt-install-0.10.0-2.el7.noarch > virt-manager-0.10.0-2.el7.noarch > > # virt-install -n test1 -l > http://download.englab.nay.redhat.com/pub/rhel/rel-eng/latest-RHEL-6/6.4/ > Server/x86_64/os/ --disk /var/lib/libvirt/images/test22#test.img,size=6 > --ram 512 --graphics vnc > ERROR Error with storage parameters: Storage object name can only contain > alphanumeric, '_', '.', or '-' characters > > > # virt-install -n test1 -l > http://download.englab.nay.redhat.com/pub/rhel/rel-eng/latest-RHEL-6/6.4/ > Server/x86_64/os/ --disk /var/lib/libvirt/images/test22\#test.img,size=6 > --ram 512 --graphics vnc > ERROR Error with storage parameters: Storage object name can only contain > alphanumeric, '_', '.', or '-' characters > > virt-install -n test1 -l > http://download.englab.nay.redhat.com/pub/rhel/rel-eng/latest-RHEL-6/6.4/ > Server/x86_64/os/ --disk /var/lib/libvirt/images/test22%test.img,size=6 > --ram 512 --graphics vnc Missed the results here: virt-install -n test1 -l http://download.englab.nay.redhat.com/pub/rhel/rel-eng/latest-RHEL-6/6.4/Server/x86_64/os/ --disk /var/lib/libvirt/images/test22%test.img,size=6 --ram 512 --graphics vnc ERROR Error with storage parameters: Storage object name can only contain alphanumeric, '_', '.', or '-' characters This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |