]> git.proxmox.com Git - pve-container.git/commit
prestart & poststop hook: init REST environment, e.g. for storage activation
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 3 May 2022 09:42:26 +0000 (11:42 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 4 May 2022 06:27:46 +0000 (08:27 +0200)
commitf8dcde1ba0f3b194081ec70fc851d9910e1c83d7
treefd4cbd9a9ed780ecff55044a73fe8a3ee470ff4b
parent394078ccdc40daa2dc859630d23636959cd8c738
prestart & poststop hook: init REST environment, e.g. for storage activation

Initialize the basic CLI REST environment which is expected on some
PVE methods we may rely on.

This became a specific problem recently when adding better support
for external and/or multiple ceph RBD clusters on a PVE system in
commit cfe46e2d4a97a83f1bbe6ad656e6416399309ba2 from pve-storage,
which added a PVE::Rados call to get the underlying cluster FSID
required to build the /dev-mapped RBD path, and PVE::Rados
requires a initialized RPC/REST environment.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Suggested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/lxc-pve-poststop-hook
src/lxc-pve-prestart-hook