When creating a Ceph datastore, the CEPH_HOST parameter in the datastore template generated by the provider contains a trailing space.
In the terraform debug and onedatastore show outputs the string appears as follows:
CEPH_HOST="ceph-host1 ceph-host2 ceph-host3 "
This causes the resource to be updated when terraform plan or terraform apply is run without any changes to the configuration:
Description
When creating a Ceph datastore, the
CEPH_HOST
parameter in the datastore template generated by the provider contains a trailing space. In the terraform debug andonedatastore show
outputs the string appears as follows:This causes the resource to be updated when
terraform plan
orterraform apply
is run without any changes to the configuration:And when applying, the plugin crashes with
panic: set item just set doesn't exist
.Terraform and Provider version
Affected resources and data sources
opennebula_datastore
Terraform configuration
Expected behavior
The
CEPH_HOST
parameter generated by the provider should not contain a trailing space:Actual behavior
A trailing space is added to the end of the string value of
CEPH_HOST
.Steps to Reproduce
opennebula_datastore
resource with aceph { ... }
configuration defined.terraform plan
andterraform apply
.terraform plan
andterraform apply
again without making any changes to the configuration.Debug output
No response
Panic output
Important factoids
No response
References
544