You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
acidroper
changed the title
Extra trailing space in CEPH_HOST when creating a Ceph datastore
Trailing space in CEPH_HOST when creating a Ceph datastore
Apr 27, 2024
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 and
onedatastore 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
The text was updated successfully, but these errors were encountered: