fp7-ofelia / ocf

OFELIA Control Framework (OCF) is a set of software tools for testbed management.
http://fp7-ofelia.github.com/ocf/
Other
18 stars 14 forks source link

Cleanup VM Manager policy code #92

Closed msune closed 11 years ago

msune commented 11 years ago

Cleanup unused folder and files:

https://github.com/fp7-ofelia/ocf/tree/ofelia.stable/vt_manager/src/python/vt_manager/controller/policy

Cleanup file:

https://github.com/fp7-ofelia/ocf/blob/ofelia.stable/vt_manager/src/python/vt_manager/controller/policies/ControllerMappings.py

OscarMoya commented 11 years ago

Done.

Old PolicyManager code deleted and ControllerMappings names improved.

I'm not sure if there is still any surpluss or if any mapping is missing. Please comment and I will add/remove these.

msune commented 11 years ago

Please delete action something. Implement a simple log action

OscarMoya commented 11 years ago

Done.

logVM action added to action mappings.When this action is executed, some parameters of a VM (Name |RAM |HD size) are printed.

I also implemented a Logger utility for PolicyEngine called PolicyLogger. This logger records the results of logVM, captures the exceptions raised from terminal rules and shows an "OK!" message when all policies (enabled ones) have been accepted. The output file of this logger is located at vt_manager/src/python/vt_manager/controller/policies/utils/log/pe.log

If somethng is still missing, please say so.

CarolinaFernandez commented 11 years ago

Permissions of /opt/ofelia/vt_manager/src/python/vt_manager/controller/policies/utils/log folder are not OK (VM manager shows internal server error when trying to write to pe.log).

For I/O it is required to set user www-data or either complete permissions.

lbergesio commented 11 years ago

The permissions are now managed by ofver, git ignores them except for the x flag.