Make get_enabled_services() more robust
Make get_enabled_services() more robust

If you wrongly pass one of the *Count parameters as a string instead of an integer the error will be unintelligible:
composable_roles/config_heat.yaml: ControllerOpenstackCount: '3'

...
2019-05-02 04:58:01.962 9 ERROR tripleo_common.actions.container_images [req-28e3f868-8595-4bef-96d3-8e453c1e15d1 00a9a3ac3ac34f5da5cc75fc6723e6ae c37c1c5cde444df0935c8a17a1eae610 - default default] Error occurred while processing plan files.: TypeError: '>' not supported between instances of 'str' and 'int'
2019-05-02 04:58:01.962 9 ERROR tripleo_common.actions.container_images Traceback (most recent call last):
2019-05-02 04:58:01.962 9 ERROR tripleo_common.actions.container_images   File "/usr/lib/python3.6/site-packages/tripleo_common/actions/container_images.py", line 141, in run
2019-05-02 04:58:01.962 9 ERROR tripleo_common.actions.container_images     env, role_data, dry_run=True)
2019-05-02 04:58:01.962 9 ERROR tripleo_common.actions.container_images   File "/usr/lib/python3.6/site-packages/tripleo_common/image/kolla_builder.py", line 156, in container_images_prepare_multi
2019-05-02 04:58:01.962 9 ERROR tripleo_common.actions.container_images     service_filter = build_service_filter(environment, roles_data)
2019-05-02 04:58:01.962 9 ERROR tripleo_common.actions.container_images   File "/usr/lib/python3.6/site-packages/tripleo_common/image/kolla_builder.py", line 90, in build_service_filter
2019-05-02 04:58:01.962 9 ERROR tripleo_common.actions.container_images     enabled_services = get_enabled_services(environment, roles_data)
2019-05-02 04:58:01.962 9 ERROR tripleo_common.actions.container_images   File "/usr/lib/python3.6/site-packages/tripleo_common/image/kolla_builder.py", line 74, in get_enabled_services
2019-05-02 04:58:01.962 9 ERROR tripleo_common.actions.container_images     if count > 0:
2019-05-02 04:58:01.962 9 ERROR tripleo_common.actions.container_images TypeError: '>' not supported between instances of 'str' and 'int'
2019-05-02 04:58:01.962 9 ERROR tripleo_common.actions.container_images

So the problem happens because even before heat can validate *Count params as
number types, we read the parameter from the plan and see if it is bigger than 0.

Let's try and convert any *Count variable to an integer. Heat seems to have no issues
with it and it is likely that this usage (as created by infrared) has been here in
previous OpenStack versions anyways.

Tested with this change and correctly got past the Mistral error and a successful heat-deploy.

Change-Id: Ibf8ea77d5c320b10b6e0dabe1356bad62882fcb6
Closes-Bug: #1828305

openstack/tripleo-common,openstack/tripleo-common