mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 19:56:48 +00:00
fix(storages): a new NFS pool starts when its mount point does not exist
create_storage_netfs started the pool without a build, so a netfs pool
whose target directory was missing failed to mount ("mount point ... does
not exist"): the page showed the error and the pool stayed defined and
inactive. It now starts with VIR_STORAGE_POOL_CREATE_WITH_BUILD, as the
dir and logical pools do, which makes the mount point.
The Vagrant computes export /srv/wvcnfs to 127.0.0.1, and the live pool
test creates an NFS pool on it at a missing mount point when
TEST_LIBVIRT_NFS_EXPORT is set.
This commit is contained in:
parent
f13a90c047
commit
baeb023da2
4 changed files with 40 additions and 19 deletions
|
|
@ -101,7 +101,8 @@ class wvmStorages(wvmConnect):
|
|||
"""
|
||||
self.define_storage(xml, 0)
|
||||
stg = self.get_storage(name)
|
||||
stg.create(0)
|
||||
# builds the mount point
|
||||
stg.create(libvirt.VIR_STORAGE_POOL_CREATE_WITH_BUILD)
|
||||
stg.setAutostart(1)
|
||||
|
||||
return stg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue