[PATCH v3 0/3] Acceptance test: Migration mechanism with FD

2020-02-26 Thread Oksana Vohchana
: - Fix warning of line over 80 characters v3: - Improve commit messages Oksana Vohchana (3): python/qemu/machine: Adding functions _send_fds and _recv_fds python/qemu/machine: Updates send_fd_scm function Acceptance test: add FD migration python/qemu/machine.py| 88

[PATCH v3 1/3] python/qemu/machine: Adding functions _send_fds and _recv_fds

2020-02-26 Thread Oksana Vohchana
to send or receive data through the Unix domain socket file descriptor. This is useful for obtaining a socket that belongs to a different network namespace. Signed-off-by: Oksana Vohchana --- python/qemu/machine.py | 24 1 file changed, 24 insertions(+) diff --git

[PATCH v3 2/3] python/qemu/machine: Updates send_fd_scm function

2020-02-26 Thread Oksana Vohchana
. The parameter data include qmp message like getfd or add-fd. Signed-off-by: Oksana Vohchana --- python/qemu/machine.py | 64 ++ 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/python/qemu/machine.py b/python/qemu/machine.py index 976316e5f5..906ca118db

[PATCH v3 3/3] Acceptance test: add FD migration

2020-02-26 Thread Oksana Vohchana
The patch adds a new type of migration test through the file descriptor. Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 21 + 1 file changed, 21 insertions(+) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index a8367ca023

[PATCH] python/qemu/qmp.py: QMP debug with VM label

2020-03-04 Thread Oksana Vohchana
QEMUMachine writes some messages to the default logger. But it sometimes to hard the read the output if we have requested to more than one VM. This patch adds name in QMP command if it needs and labels with it in debug mode. Signed-off-by: Oksana Vohchana --- python/qemu/machine.py | 8

[PATCH v2 3/4] Acceptance test: provides new functions

2020-02-25 Thread Oksana Vohchana
Provides new functions related to the rdma migration test Adds functions to check if service RDMA is enabled and gets the ip address on the interface where it was configured Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 26 ++ 1 file changed, 26

[PATCH v2 4/4] Acceptance test: provides to use RDMA transport for migration test

2020-02-25 Thread Oksana Vohchana
Adds test for RDMA migration check Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 9 + 1 file changed, 9 insertions(+) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index 5632d74f14..9b58b5a629 100644 --- a/tests/acceptance/migration.py

[PATCH v2 0/4] Acceptance test: Extension of migration tests

2020-02-25 Thread Oksana Vohchana
test: adds param 'address' in _get_free_port - provides import check for netifaces library - makes fix to _get_ip_rdma function - adds skip to test if not upload python module Oksana Vohchana (4): Acceptance test: adds param 'address' in _get_free_port Acceptance test: EXEC migration

[PATCH v2 1/4] Acceptance test: adds param 'address' in _get_free_port

2020-02-25 Thread Oksana Vohchana
In the migration test function _get_free_port works only for localhost, but in the case to use migration through an RDMA we need to get a free port on the configured network RDMA-interface. This patch is the start for another migration option Signed-off-by: Oksana Vohchana --- tests/acceptance

[PATCH v2 2/4] Acceptance test: EXEC migration

2020-02-25 Thread Oksana Vohchana
Improves EXEC migration to run whole test stage Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index e4c39b85a1..8209dcf71d 100644 --- a/tests/acceptance

[PATCH] Acceptance test: provides to use different transport for migration

2020-01-23 Thread Oksana Vohchana
Along with VM migration via TCP, we can use migration through EXEC and UNIX transport protocol Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 50 --- 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/tests/acceptance/migration.py

[PATCH v3 0/2] Acceptance test: provides to use different transport for migration

2020-02-03 Thread Oksana Vohchana
This series makes refactoring to migration test and adds new tests with EXEC and UNIX protocols --- v2: - Removes unnecessary symbols and unused method v3: - Makes refactoring and split into 2 patches - Provides TCP and EXEC migration Oksana Vohchana (2): Acceptance test: provides to use

[PATCH v3 1/2] Acceptance test: provides to use different transport for migration

2020-02-03 Thread Oksana Vohchana
Along with VM migration via TCP, we can use migration through EXEC and UNIX transport protocol Signed-off-by: Oksana Vohchana --- v2: - Removes unnecessary symbols and unused method v3: - Makes refactoring and split into 2 patches Signed-off-by: Oksana Vohchana --- tests/acceptance

[PATCH v3 2/2] Acceptance test: provides to use different transport for migration

2020-02-03 Thread Oksana Vohchana
Along with VM migration via TCP, we can use migration through EXEC and UNIX transport protocol Signed-off-by: Oksana Vohchana --- v2: - Removes unnecessary symbols and unused method v3: - Makes refactoring and split into 2 patches - Provides TCP and EXEC migration Signed-off-by: Oksana

[PATCH v3 0/2] Acceptance test: provides to use different transport for migration

2020-02-03 Thread Oksana Vohchana
This series makes refactoring to migration test and adds new tests with EXEC and UNIX protocols --- v2: - Removes unnecessary symbols and unused method v3: - Makes refactoring and split into 2 patches - Provides TCP and EXEC migration Oksana Vohchana (2): Acceptance test: provides to use

[PATCH v3 1/2] Acceptance test: provides to use different transport for migration

2020-02-03 Thread Oksana Vohchana
Along with VM migration via TCP, we can use migration through EXEC and UNIX transport protocol Signed-off-by: Oksana Vohchana --- v2: - Removes unnecessary symbols and unused method v3: - Makes refactoring and split into 2 patches Signed-off-by: Oksana Vohchana --- tests/acceptance

[PATCH v3 2/2] Acceptance test: provides to use different transport for migration

2020-02-03 Thread Oksana Vohchana
Along with VM migration via TCP, we can use migration through EXEC and UNIX transport protocol Signed-off-by: Oksana Vohchana --- v2: - Removes unnecessary symbols and unused method v3: - Makes refactoring and split into 2 patches - Provides TCP and EXEC migration Signed-off-by: Oksana

[PATCH v2 REPOST] Acceptance test: provides to use different transport for migration

2020-01-30 Thread Oksana Vohchana
Along with VM migration via TCP, we can use migration through EXEC and UNIX transport protocol Signed-off-by: Oksana Vohchana --- v2: - Removes unnecessary symbols and unused method --- tests/acceptance/migration.py | 51 --- 1 file changed, 36 insertions

[PATCH] Acceptance test: provides to use different transport for migration

2020-01-23 Thread Oksana Vohchana
Along with VM migration via TCP, we can use migration through EXEC and UNIX transport protocol Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 50 --- 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/tests/acceptance/migration.py

[PATCH v2] Acceptance test: provides to use different transport for migration

2020-01-29 Thread Oksana Vohchana
Along with VM migration via TCP, we can use migration through EXEC and UNIX transport protocol --- tests/acceptance/migration.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index 8bbe28d52d..1f6a674843

[PATCH v1 0/4] Extension of migration tests

2020-02-14 Thread Oksana Vohchana
This series adds a new migration test through RDMA and provides new functions to it. The last update by mistake was not provided a full scenario to the EXEC migration test. One of patch fixed it. Oksana Vohchana (4): Acceptance test: add address as param Acceptance test: EXEC migration

[PATCH v1 2/4] Acceptance test: EXEC migration

2020-02-14 Thread Oksana Vohchana
Improves EXEC migration to run whole test stage Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index e4c39b85a1..8209dcf71d 100644 --- a/tests/acceptance

[PATCH v1 3/4] Acceptance test: provides new functions

2020-02-14 Thread Oksana Vohchana
Adds functions to check if service RDMA is enabled and gets the interface where it was configured Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 17 + 1 file changed, 17 insertions(+) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py

[PATCH v1 1/4] Acceptance test: add address as param

2020-02-14 Thread Oksana Vohchana
Provides param address in _get_free_port() because by default it takes free port only on the localhost Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/migration.py b/tests/acceptance

[PATCH v1 4/4] Acceptance test: provides to use RDMA transport for migration

2020-02-14 Thread Oksana Vohchana
Adds test for RDMA migration check Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 8 1 file changed, 8 insertions(+) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index bbd88f8dda..c0a3031e67 100644 --- a/tests/acceptance/migration.py

[PATCH v2 3/3] Acceptance test: FD migration

2020-02-20 Thread Oksana Vohchana
Adds a new migration test through the file descriptor. Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 21 + 1 file changed, 21 insertions(+) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index a8367ca023..7f4879ce5d 100644

[PATCH v2 2/3] Updates send_fd_scm function

2020-02-20 Thread Oksana Vohchana
to another. Signed-off-by: Oksana Vohchana --- python/qemu/machine.py | 64 ++ 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/python/qemu/machine.py b/python/qemu/machine.py index 976316e5f5..906ca118db 100644 --- a/python/qemu/machine.py +++ b/p

[PATCH v2 1/3] Adding functions _send_fds and _recv_fds

2020-02-20 Thread Oksana Vohchana
It provides new possibilities to send or receive data through the Unix domain socket file descriptor. This is useful for obtaining a socket that belongs to a different network namespace. Signed-off-by: Oksana Vohchana --- python/qemu/machine.py | 24 1 file changed, 24

[PATCH v2 0/3] Migration mechanism with FD

2020-02-20 Thread Oksana Vohchana
of line over 80 characters Oksana Vohchana (3): Adding functions _send_fds and _recv_fds Updates send_fd_scm function Acceptance test: FD migration python/qemu/machine.py| 88 +-- tests/acceptance/migration.py | 21 + 2 files changed, 85

[PATCH 0/3] Migration mechanism with FD

2020-02-19 Thread Oksana Vohchana
To test migration through the file descriptor we should build and provide a path to socket_scm_helper file. This way is inconvenient for acceptance testing. This series provides new functions to receive and send messages over a UNIX socket. And adds a new migration test. Oksana Vohchana (3

[PATCH 1/3] Adding functions _send_fds and _recv_fds

2020-02-19 Thread Oksana Vohchana
It provides new possibilities to send or receive data through the Unix domain socket file descriptor. This is useful for obtaining a socket that belongs to a different network namespace. Signed-off-by: Oksana Vohchana --- python/qemu/machine.py | 18 ++ 1 file changed, 18

[PATCH 3/3] Acceptance test: FD migration

2020-02-19 Thread Oksana Vohchana
Adds a new migration test through the file descriptor. Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 20 1 file changed, 20 insertions(+) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index a8367ca023..b96a897f3b 100644

[PATCH 2/3] Updates send_fd_scm function

2020-02-19 Thread Oksana Vohchana
to another. Signed-off-by: Oksana Vohchana --- python/qemu/machine.py | 56 +- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/python/qemu/machine.py b/python/qemu/machine.py index 8c5bd64795..0936b71856 100644 --- a/python/qemu/machine.py +++ b/p

[PATCH v2] python/qemu/qmp.py: QMP debug with VM label

2020-03-12 Thread Oksana Vohchana
QEMUMachine writes some messages to the default logger. But it sometimes hard to read the output if we have requests to more than one VM. This patch adds a label to the logger in the debug mode. Signed-off-by: Oksana Vohchana --- v2: - Instead of shown the label in the message it provides

[PATCH v3] python/qemu/qmp.py: QMP debug with VM label

2020-03-12 Thread Oksana Vohchana
QEMUMachine writes some messages to the default logger. But it sometimes hard to read the output if we have requests to more than one VM. This patch adds a label to the logger in the debug mode. Signed-off-by: Oksana Vohchana --- v2: - Instead of shown the label in the message it provides

[PATCH v5 0/3] Acceptance test: Extension of migration tests

2020-04-07 Thread Oksana Vohchana
the Migration class V5: - improvement to comments - updates to functions Oksana Vohchana (3): Acceptance test: adds param 'address' in _get_free_port Acceptance test: provides new functions Acceptance test: provides to use RDMA transport for migration test tests/acceptance/migration.py

[PATCH v5 1/3] Acceptance test: adds param 'address' in _get_free_port

2020-04-07 Thread Oksana Vohchana
In the migration test function _get_free_port works only for localhost, but in the case to use migration through an RDMA we need to get a free port on the configured network RDMA-interface. This patch is the start for another migration option Signed-off-by: Oksana Vohchana --- tests/acceptance

[PATCH v5 3/3] Acceptance test: provides to use RDMA transport for migration test

2020-04-07 Thread Oksana Vohchana
Adds test for RDMA migration check Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 12 1 file changed, 12 insertions(+) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index 1c3a684395..99563ae850 100644 --- a/tests/acceptance

[PATCH v5 2/3] Acceptance test: provides new functions

2020-04-07 Thread Oksana Vohchana
Provides new functions related to the rdma migration test Adds functions to check if service RDMA is enabled and gets the ip address on the interface where it was configured Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 45 +++ 1 file changed

[PATCH v4] python/qemu/qmp.py: QMP debug with VM label

2020-03-16 Thread Oksana Vohchana
QEMUMachine writes some messages to the default logger. But it sometimes hard to read the output if we have requests to more than one VM. This patch adds a label to the logger in the debug mode. Signed-off-by: Oksana Vohchana --- v2: - Instead of shown the label in the message it provides

[PATCH] Acceptance test: Fix to EXEC migration

2020-03-25 Thread Oksana Vohchana
The exec migration test isn't run a whole test scenario. This patch fixes it Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index a8367ca023

[PATCH v3 2/3] Acceptance test: provides new functions

2020-03-20 Thread Oksana Vohchana
Provides new functions related to the rdma migration test Adds functions to check if service RDMA is enabled and gets the ip address on the interface where it was configured Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 30 ++ 1 file changed, 30

[PATCH v3 1/3] Acceptance test: adds param 'address' in _get_free_port

2020-03-20 Thread Oksana Vohchana
In the migration test function _get_free_port works only for localhost, but in the case to use migration through an RDMA we need to get a free port on the configured network RDMA-interface. This patch is the start for another migration option Signed-off-by: Oksana Vohchana --- tests/acceptance

[PATCH v3 3/3] Acceptance test: provides to use RDMA transport for migration test

2020-03-20 Thread Oksana Vohchana
Adds test for RDMA migration check Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 12 1 file changed, 12 insertions(+) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index a783f3915b..c8673114a9 100644 --- a/tests/acceptance

[PATCH v3 0/3] Acceptance test: Extension of migration tests

2020-03-20 Thread Oksana Vohchana
test: adds param 'address' in _get_free_port - provides import check for netifaces library - makes fix to _get_ip_rdma function - adds skip to test if not upload python module V3: - removes unrelated changes - updates functions with new avocado features Oksana Vohchana (3): Acceptance test

[PATCH v4 3/3] Acceptance test: provides to use RDMA transport for migration test

2020-03-23 Thread Oksana Vohchana
Adds test for RDMA migration check Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 12 1 file changed, 12 insertions(+) diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py index 59144f18fd..c96da1dd4b 100644 --- a/tests/acceptance

[PATCH v4 2/3] Acceptance test: provides new functions

2020-03-23 Thread Oksana Vohchana
Provides new functions related to the rdma migration test Adds functions to check if service RDMA is enabled and gets the ip address on the interface where it was configured Signed-off-by: Oksana Vohchana --- tests/acceptance/migration.py | 32 1 file changed

[PATCH v4 0/3] Acceptance test: Extension of migration tests

2020-03-23 Thread Oksana Vohchana
the Migration class Oksana Vohchana (3): Acceptance test: adds param 'address' in _get_free_port Acceptance test: provides new functions Acceptance test: provides to use RDMA transport for migration test tests/acceptance/migration.py | 48 +-- 1 file changed

[PATCH v4 1/3] Acceptance test: adds param 'address' in _get_free_port

2020-03-23 Thread Oksana Vohchana
In the migration test function _get_free_port works only for localhost, but in the case to use migration through an RDMA we need to get a free port on the configured network RDMA-interface. This patch is the start for another migration option Signed-off-by: Oksana Vohchana --- tests/acceptance