Red Hat Bugzilla – Bug 830056
[storage]pool-create/pool-create-as should include build pool then start
Last modified: 2016-04-26 20:48:12 EDT
If pool environment is not built, pool-create/pool-create-as will always fail.
I think pool-create should build the pool.
virsh # pool-create dirpool.xml
error: Failed to create pool from dirpool.xml
error: cannot open path '/var/lib/libvirt/dir': No such file or directory
virsh # pool-create diskpool.xml
error: Failed to create pool from diskpool.xml
error: internal error Child process (/usr/libexec/libvirt_parthelper /dev/sdb) status unexpected: exit status 2
virsh # pool-create fspool.xml
error: Failed to create pool from fspool.xml
error: internal error Child process (/bin/mount -t ext4 /dev/sda7 /var/lib/libvirt/images/fspool) status unexpected: exit status 32
Steps are the same of other pools
pool-create will fail when pool ENV is not built.
Created attachment 590335 [details]
Created attachment 590336 [details]
Created attachment 590337 [details]
Please make this proposal on the upstream list and update the BZ with the response you get. Personally I disagree with this proposal, but I do not want to speak for the community.
Posted patches upstream to address this issue, see series:
After some adjustments to the patches based on review - patches were pushed. Changes will be in libvirt 1.3.1
$ git describe e1937354508938231ffa4d708f0e742f4d90e076
Author: John Ferlan <firstname.lastname@example.org>
Date: Wed Nov 25 09:51:51 2015 -0500
virsh: Add build flags to pool-create[-as] and pool-start