* `xl create` can not parse `disk = ['target=/tmp/disk.img, vdev=xvdb']`
@ 2014-05-16 14:14 Zhigang Wang
2014-05-16 14:18 ` Ian Campbell
0 siblings, 1 reply; 5+ messages in thread
From: Zhigang Wang @ 2014-05-16 14:14 UTC (permalink / raw)
To: xen-devel
Hi,
`xl create` cannot parse::
disk = ['target=/tmp/disk.img,vdev=xvdb']
Error::
# xl create vm.cfg
Parsing config from vm.cfg
vm.cfg: config parsing error in disk specification: no vdev specified in `target=/tmp/disk.img,vdev=xvdb'
But can parse::
disk = ['vdev=xvdb,target=/tmp/disk.img']
Is this a bug?
Thanks,
Zhigang
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: `xl create` can not parse `disk = ['target=/tmp/disk.img, vdev=xvdb']` 2014-05-16 14:14 `xl create` can not parse `disk = ['target=/tmp/disk.img, vdev=xvdb']` Zhigang Wang @ 2014-05-16 14:18 ` Ian Campbell 2014-05-16 14:48 ` Zhigang Wang 0 siblings, 1 reply; 5+ messages in thread From: Ian Campbell @ 2014-05-16 14:18 UTC (permalink / raw) To: Zhigang Wang; +Cc: xen-devel On Fri, 2014-05-16 at 10:14 -0400, Zhigang Wang wrote: > Hi, > > `xl create` cannot parse:: > > disk = ['target=/tmp/disk.img,vdev=xvdb'] > > Error:: > > # xl create vm.cfg > Parsing config from vm.cfg > vm.cfg: config parsing error in disk specification: no vdev specified in `target=/tmp/disk.img,vdev=xvdb' > > But can parse:: > > disk = ['vdev=xvdb,target=/tmp/disk.img'] > > Is this a bug? No, it is expected, check the docs for the disk format strings. (User questions should go to xen-users@) Ian. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: `xl create` can not parse `disk = ['target=/tmp/disk.img, vdev=xvdb']` 2014-05-16 14:18 ` Ian Campbell @ 2014-05-16 14:48 ` Zhigang Wang 2014-05-16 14:51 ` Ian Campbell 0 siblings, 1 reply; 5+ messages in thread From: Zhigang Wang @ 2014-05-16 14:48 UTC (permalink / raw) To: Ian Campbell; +Cc: xen-devel On 05/16/2014 10:18 AM, Ian Campbell wrote: > On Fri, 2014-05-16 at 10:14 -0400, Zhigang Wang wrote: >> Hi, >> >> `xl create` cannot parse:: >> >> disk = ['target=/tmp/disk.img,vdev=xvdb'] >> >> Error:: >> >> # xl create vm.cfg >> Parsing config from vm.cfg >> vm.cfg: config parsing error in disk specification: no vdev specified in `target=/tmp/disk.img,vdev=xvdb' >> >> But can parse:: >> >> disk = ['vdev=xvdb,target=/tmp/disk.img'] >> >> Is this a bug? > > No, it is expected, check the docs for the disk format strings. > > (User questions should go to xen-users@) Thanks for your answer. I checked: http://xenbits.xen.org/docs/4.4-testing/misc/xl-disk-configuration.txt And I think here is what you referred to: where each diskspec is in this form: [<key>=<value>|<flag>,]*, [<target>, [<format>, [<vdev>, [<access>]]]], [<key>=<value>|<flag>,]* [target=<target>] That means disk positional parameter also has orders. I missed this point before. Thanks, Zhigang ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: `xl create` can not parse `disk = ['target=/tmp/disk.img, vdev=xvdb']` 2014-05-16 14:48 ` Zhigang Wang @ 2014-05-16 14:51 ` Ian Campbell 2014-05-16 14:57 ` Zhigang Wang 0 siblings, 1 reply; 5+ messages in thread From: Ian Campbell @ 2014-05-16 14:51 UTC (permalink / raw) To: Zhigang Wang; +Cc: xen-devel On Fri, 2014-05-16 at 10:48 -0400, Zhigang Wang wrote: > On 05/16/2014 10:18 AM, Ian Campbell wrote: > > On Fri, 2014-05-16 at 10:14 -0400, Zhigang Wang wrote: > >> Hi, > >> > >> `xl create` cannot parse:: > >> > >> disk = ['target=/tmp/disk.img,vdev=xvdb'] > >> > >> Error:: > >> > >> # xl create vm.cfg > >> Parsing config from vm.cfg > >> vm.cfg: config parsing error in disk specification: no vdev specified in `target=/tmp/disk.img,vdev=xvdb' > >> > >> But can parse:: > >> > >> disk = ['vdev=xvdb,target=/tmp/disk.img'] > >> > >> Is this a bug? > > > > No, it is expected, check the docs for the disk format strings. > > > > (User questions should go to xen-users@) > > Thanks for your answer. > > I checked: http://xenbits.xen.org/docs/4.4-testing/misc/xl-disk-configuration.txt > > And I think here is what you referred to: > > where each diskspec is in this form: > > [<key>=<value>|<flag>,]*, > [<target>, [<format>, [<vdev>, [<access>]]]], > [<key>=<value>|<flag>,]* > [target=<target>] > > That means disk positional parameter also has orders. Well, yes, that's what positional means. > I missed this point before. More importantly you are apparently still missing: When this parameter is specified by name, ie with the "target=" syntax in the configuration file, it consumes the whole rest of the <diskspec> including trailing whitespaces. Therefore in that case it must come last Ian. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: `xl create` can not parse `disk = ['target=/tmp/disk.img, vdev=xvdb']` 2014-05-16 14:51 ` Ian Campbell @ 2014-05-16 14:57 ` Zhigang Wang 0 siblings, 0 replies; 5+ messages in thread From: Zhigang Wang @ 2014-05-16 14:57 UTC (permalink / raw) To: Ian Campbell; +Cc: xen-devel On 05/16/2014 10:51 AM, Ian Campbell wrote: > On Fri, 2014-05-16 at 10:48 -0400, Zhigang Wang wrote: >> On 05/16/2014 10:18 AM, Ian Campbell wrote: >>> On Fri, 2014-05-16 at 10:14 -0400, Zhigang Wang wrote: >>>> Hi, >>>> >>>> `xl create` cannot parse:: >>>> >>>> disk = ['target=/tmp/disk.img,vdev=xvdb'] >>>> >>>> Error:: >>>> >>>> # xl create vm.cfg >>>> Parsing config from vm.cfg >>>> vm.cfg: config parsing error in disk specification: no vdev specified in `target=/tmp/disk.img,vdev=xvdb' >>>> >>>> But can parse:: >>>> >>>> disk = ['vdev=xvdb,target=/tmp/disk.img'] >>>> >>>> Is this a bug? >>> >>> No, it is expected, check the docs for the disk format strings. >>> >>> (User questions should go to xen-users@) >> >> Thanks for your answer. >> >> I checked: http://xenbits.xen.org/docs/4.4-testing/misc/xl-disk-configuration.txt >> >> And I think here is what you referred to: >> >> where each diskspec is in this form: >> >> [<key>=<value>|<flag>,]*, >> [<target>, [<format>, [<vdev>, [<access>]]]], >> [<key>=<value>|<flag>,]* >> [target=<target>] >> >> That means disk positional parameter also has orders. > > Well, yes, that's what positional means. > >> I missed this point before. > > More importantly you are apparently still missing: > > When this parameter is specified by name, ie with the "target=" > syntax in the configuration file, it consumes the whole rest of the > <diskspec> including trailing whitespaces. Therefore in that case > it must come last > > Ian. Sorry. Will read more carefully next time. Zhigang ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-05-16 14:57 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-05-16 14:14 `xl create` can not parse `disk = ['target=/tmp/disk.img, vdev=xvdb']` Zhigang Wang 2014-05-16 14:18 ` Ian Campbell 2014-05-16 14:48 ` Zhigang Wang 2014-05-16 14:51 ` Ian Campbell 2014-05-16 14:57 ` Zhigang Wang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).