Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for PR followers and do not help prioritize the request
Description
The error is due to the fact that the provider try to read tags that weren't applied at creation time.
They weren't applied due to the fact that the host creation wasn't complete (the host resource was created but then it was in an error state).
To fix the problem I modified some diagnostic severities from Error to Warning.
By the way I made diagnostic and error handlng more consistent across various resources: this may have the same effect on entities that have a state (image, virtual network, virtual machine, virtual machine instance also have a state like host).
So we can consider that this PR also fix theses last resources.
References
Close #425
New or Affected Resource(s)
opennebula_cluster
opennebula_datastore
opennebula_group
opennebula_host
opennebula_image
opennebula_security_group
opennebula_template
opennebula_vm_group
opennebula_user
opennebula_virtual_machine
opennebula_virtual_network
opennebula_virtual_router
opennebula_virtual_router_instance
opennebula_virtual_router_instance_template
Checklist
[ ] I have created an issue and I have mentioned it in References
[ ] My code follows the style guidelines of this project (use go fmt)
[ ] My changes generate no new warnings or errors
[ ] I have updated the unit tests and they pass succesfuly
[ ] I have commented my code, particularly in hard-to-understand areas
Community Note
Description
The error is due to the fact that the provider try to read tags that weren't applied at creation time. They weren't applied due to the fact that the host creation wasn't complete (the host resource was created but then it was in an error state).
To fix the problem I modified some diagnostic severities from Error to Warning. By the way I made diagnostic and error handlng more consistent across various resources: this may have the same effect on entities that have a state (image, virtual network, virtual machine, virtual machine instance also have a state like host). So we can consider that this PR also fix theses last resources.
References
Close #425
New or Affected Resource(s)
Checklist
References
go fmt
)