DM update failed with empty resource
yjian118 opened this issue · 0 comments
yjian118 commented
DM update failed with empty resource
sysadmin@controller-0:~$ cat /home/sysadmin/deployment-config.yaml
apiVersion: v1
kind: Namespace
metadata:
name: deployment
OS_REGION_NAME: subcloud1
The issue is caused due to corner case not being handled in this commit:
Add support for overriding the OS_REGION_NAME parameter (#284) · Wind-River/cloud-platform-deployment-manager@d268ee9 (github.com)
It is mentioned in the following ansible doc that:
If the regular expression is not matched, the line will be added to the file in keeping with insertbefore or insertafter settings.
Since the regexp is not matching, the OS_REGION_NAME is added at the end of the playbook and thereby corrupting the deployment configuration.