We're updating the issue view to help you get more done. 

Agent installation is not idempotent

Description

Trying to install a Cloudify agent twice on the same VM results in errors. This can occur if the installation fails due to unrelated reasons (e.g. the VM was restarted). Cloudify then retries the operation, but it will inevitably fail.

Potential solutions are:
1. Override the existing daemon.
2. Delete the existing daemon before installation.

Steps to Reproduce

Environment:
Manager + centos VM for the agent
------------------------------------

Steps to reproduce:
------------------
1. Create a singlehost hello world deployment.
2. Run the install workflow, and be ready to restart the agent VM during the agent installation (to make it simpler, you can add a sleep in one of the scripts used during install).

Expected result:
---------------
Initial operation fails, then retries and succeeds.

Actual result:
Initial operation fails, then retries and fails again and again because the agent (daemon) was already created on the VM, and we don't support overriding.
-------------

Why Propose Close?

None

Status

Assignee

Łukasz Maksymczuk

Reporter

Pavel Brodsky

Labels

Severity

Medium

Target Version

4.4

Premium Only

no

Found In Version

4.3

QA Owner

Uri Wygodny

Bug Type

legacy bug

Customer Encountered

Yes

Customer Name

MetaSwitch

Release Notes

yes

Priority

None

Epic Link

Sprint

None

Priority

Unprioritized