595596597598599600601602603604605
sp.destroy(); sp.undefine(); } else { sp.destroy(); } sp.free(); if (s != null) { s.undefine(); s.free(); } return true;
126127128129130131132133134135136
} catch (LibvirtException e) { s_logger.error(e.toString()); if (sp != null) { try { sp.undefine(); sp.free(); } catch (LibvirtException l) { s_logger.debug("Failed to define nfs storage pool with: " + l.toString()); } }
157158159160161162163164165166167
} catch (LibvirtException e) { s_logger.error(e.toString()); if (sp != null) { try { sp.undefine(); sp.free(); } catch (LibvirtException l) { s_logger.debug("Failed to define shared mount point storage pool with: " + l.toString()); } }
187188189190191192193194195196197
} catch (LibvirtException e) { s_logger.error(e.toString()); if (sp != null) { try { sp.undefine(); sp.free(); } catch (LibvirtException l) { s_logger.debug("Failed to define clvm storage pool with: " + l.toString()); } }
242243244245246247248249250251252
} catch (LibvirtException e) { s_logger.debug(e.toString()); if (sp != null) { try { sp.undefine(); sp.free(); } catch (LibvirtException l) { s_logger.debug("Failed to define RBD storage pool with: " + l.toString()); } } return null;
511512513514515516517518519520521
} try { sp.destroy(); sp.undefine(); sp.free(); if (s != null) { s.undefine(); s.free(); } return true;
774775776777778779780781782783784
LibvirtStoragePool libvirtPool = (LibvirtStoragePool) pool; StoragePool virtPool = libvirtPool.getPool(); try { virtPool.destroy(); virtPool.undefine(); virtPool.free(); } catch (LibvirtException e) { return false; } return true;
121122123124125126127128129130131
} catch (LibvirtException e) { s_logger.debug("Ignoring libvirt error.", e); } finally { try { if (pool != null) { pool.free(); } } catch (LibvirtException e) { s_logger.debug("Ignoring libvirt error.", e); } }
163164165166167168169170171172173
sp.destroy(); sp.undefine(); } else { sp.destroy(); } sp.free(); } catch (LibvirtException l) { s_logger.debug("Failed to undefine " + fsType.toString() + " storage pool with: " + l.toString()); } } return null;
194195196197198199200201202203204
sp.destroy(); sp.undefine(); } else { sp.destroy(); } sp.free(); } catch (LibvirtException l) { s_logger.debug("Failed to define shared mount point storage pool with: " + l.toString()); } } return null;