Comment 0 for bug 1878720

Revision history for this message
Zhu Shengli (akarei) wrote :

Stack create failed when non-string fields in CephAnsibleEnvironmentVariables json

Description
===========
When `CephAnsibleEnvironmentVariables` contains non-string type values,
such as {"ANSIBLE_DEBUG": true},
No function "#operator_+" matches supplied arguments error will occur.

Steps to reproduce
==================
1. Add the following fields to parameter_defaults

```
parameter_defaults:
  CephAnsibleEnvironmentVariables:
    ANSIBLE_DEBUG: true
```

Expected result
===============
Stack create successfully.

Actual result
=============

overcloud.CephStorageServiceChain:
  resource_type: OS::TripleO::CephStorageServices
  physical_resource_id: 51fd6f95-027b-4047-9132-763e1cb8150c
  status: UPDATE_FAILED
  status_reason: |
    resources.CephStorageServiceChain: Error in 4 output role_data: Error in CephBase output role_data: No function "#operator_+" matches supplied arguments

Environment
===========
OSP16