cfy_manager start/stop fails if service not installed

Description

cfy_manager start/stop fails if service not installed, for example in community edition, start/stop will fail with following error:

2018-03-11 15:28:26,566 - [MAIN] - ERROR - BootstrapError: Failed running command: sudo systemctl start cloudify-composer (Failed to start cloudify-composer.service: Unit not found.).
2018-03-11 15:27:51,757 - [MAIN] - ERROR - BootstrapError: Failed running command: sudo systemctl stop cloudify-composer (Failed to stop cloudify-composer.service: Unit cloudify-composer.service not loaded.).

similarily, if influxdb or riemann are not installed on the manager.

Steps to Reproduce

1. use cloudify manager community edition
2. run cfy_manager start/stop

Why Propose Close?

None

Status

Assignee

Pavel Brodsky

Reporter

Ido Berkovitch

Labels

None

Severity

High

Target Version

4.4

Premium Only

no

Found In Version

4.4

QA Owner

Lital Hamami

Bug Type

new feature bug

Customer Encountered

No

Customer Name

None

Release Notes

yes

Priority

None

Epic Link

Sprint

None

Fix versions

Priority

Unprioritized
Configure