-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenStack terraform provider tests fail with a Cinder volume attach resources #571
Comments
The job timeout has been update to 6h, please rechek again. |
@wangxiyuan I don't think that 6h will help. Previously disk attach worked just fine, but now it timeouts. |
The inner test problem should be debug and fixed at terraform-provider-openstack side first. OpenLab doesn't know how it works. If it's the Infra's problem, just let us know then. Do you know the deep reason for the error test? |
@wangxiyuan I'll try to increase the attach waiting timeout and get back to you. |
I see the problem. It looks like terraform cannot detect server ID of the volume attachment and produces an invalid link:
See a null server_id:
|
There is what happening in case of
It can be seen in the request body:
And we can't find the needed attachment because of the empty // Search for the attachmentId
var attachmentId string
hostName := d.Get("host_name").(string)
for _, attachment := range volume.Attachments {
if hostName != "" && hostName == attachment.HostName {
attachmentId = attachment.AttachmentID
}
}
if attachmentId == "" {
return fmt.Errorf(
"Unable to determine attachment ID for openstack_blockstorage_volume_attach_v2 volume %s.", volumeId)
}
All logs are from 68499c1e3dd34a52aeb686467e4c713e?logfile=console.log that was triggered by terraform-provider-openstack/pull/1067 @wangxiyuan could you please check why the Edit: same thing is happening in this build with the |
Follow-up to my last comment. I guess this is happening because of those patches: https://review.opendev.org/#/c/726751/ |
I guess we can add |
@ozerovandrei I'm away from OpenStack Upstream almost 2 years. Sorry that I don't have enough time to debug the error. (Since the problem is not related to OpenLab infrastructure). But How do you think if you can login to the VM to debug by yourself? I can add a temp admin user and pause the test in the job defination code, then you guys from terraform can login and do what ever you want. |
@wangxiyuan thanks but in this particular case it's not needed since host information should be hidden from the regular user: https://review.opendev.org/#/c/726751/. I guess we can close this issue. We will enable those tests for admin only and update documentation for those resources in terraform-provider-openstack/terraform-provider-openstack#1068. |
cool. Feel free to close the issue if the problem is solved. |
Thank you for reporting bug!
Describe the bug
Both Cinder V2 and V3 resources tests fail due to timeout:
Related Job information
https://github.com/terraform-providers/terraform-provider-openstack/pull/1033
https://github.com/terraform-providers/terraform-provider-openstack/pull/1031
The text was updated successfully, but these errors were encountered: