Skip to content

Commit

Permalink
LXD plugin fixes (#115)
Browse files Browse the repository at this point in the history
* addition in yaks connectors, both ocaml and pyhton

Signed-off-by: gabrik <gabriele.baldoni@gmail.com>

* added eval calls in agent for floating ip and port connection to network

Signed-off-by: gabrik <gabriele.baldoni@gmail.com>

* typo fix in fagent

Signed-off-by: gabrik <gabriele.baldoni@gmail.com>

* fix yaks_connector.py, was not using updated resource tree for fdu

Signed-off-by: gabrik <gabriele.baldoni@gmail.com>

* added utility function for getting ip address of a given connection point

Signed-off-by: gabrik <gabriele.baldoni@gmail.com>

* added logs in lxd_plugin when generating custom profile device configuration

Signed-off-by: gabrik <gabriele.baldoni@gmail.com>

* fix in lxd monitoring

Signed-off-by: gabrik <gabriele.baldoni@gmail.com>

* LXD pluing cleaning up images from cache

Signed-off-by: gabrik <gabriele.baldoni@gmail.com>
  • Loading branch information
gabrik committed Jun 27, 2019
1 parent b7ab204 commit 4c7609b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fos-plugins/LXD/LXD_plugin
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ class LXD(RuntimePluginFDU):
'stop_runtime()', 'Removing Image {}'.format(k))
try:
img = self.conn.images.get_by_alias(k)
imgd = self.images[k]
self.call_os_plugin_function('remove_file',{'file_path':os.path.join(self.BASE_DIR, self.IMAGE_DIR, imgd['base_image'])})
img.delete()
except LXDAPIException as e:
self.logger.error('stop_runtime()', 'Error {}'.format(e))
Expand Down

0 comments on commit 4c7609b

Please sign in to comment.