Linux.runCommand() and Linux.putFile() are now non-synchronized

Helper methods of Linux class were always synchronized and thus could
not be run concurrently even on different VMs/agents.

This has been addressed by applying a properly parametrized
io.murano.metadata.engine.Synchronize meta attribute to these methods,
so now they are synchronized only if executed for the same agent
arguments.

Change-Id: Ibf129316a092ba0231cd5445b688d6d5689c2256
Closes-bug: #1611332
This commit is contained in:
Alexander Tivelkov 2016-08-09 14:17:38 +03:00
parent a75c16e153
commit da7e9ea8cd
2 changed files with 11 additions and 0 deletions

View File

@ -14,11 +14,15 @@ Namespaces:
=: io.murano.configuration
std: io.murano
sys: io.murano.system
m: io.murano.metadata.engine
Name: Linux
Methods:
runCommand:
Meta:
- m:Synchronize:
onArgs: agent
Usage: Static
Arguments:
- agent:
@ -59,6 +63,9 @@ Methods:
putFile:
Usage: Static
Meta:
- m:Synchronize:
onArgs: agent
Arguments:
- agent:
Contract: $.class(sys:Agent)

View File

@ -0,0 +1,4 @@
---
fixes:
- Helper methods of Linux class now can be run concurrently if executed for
different VM agents.