provider/openstack Increase timeouts
This commit is contained in:
parent
a2306ea7f0
commit
2dc254af13
|
@ -702,9 +702,9 @@ func resourceComputeInstanceV2Update(d *schema.ResourceData, meta interface{}) e
|
|||
|
||||
// old attachments and new attachments
|
||||
oldAttachments, newAttachments := d.GetChange("volume")
|
||||
|
||||
// for each old attachment, detach the volume
|
||||
oldAttachmentSet := oldAttachments.(*schema.Set).List()
|
||||
|
||||
if blockClient, err := config.blockStorageV1Client(d.Get("region").(string)); err != nil {
|
||||
return err
|
||||
} else {
|
||||
|
@ -755,7 +755,7 @@ func resourceComputeInstanceV2Update(d *schema.ResourceData, meta interface{}) e
|
|||
Pending: []string{"RESIZE"},
|
||||
Target: []string{"VERIFY_RESIZE"},
|
||||
Refresh: ServerV2StateRefreshFunc(computeClient, d.Id()),
|
||||
Timeout: 3 * time.Minute,
|
||||
Timeout: 30 * time.Minute,
|
||||
Delay: 10 * time.Second,
|
||||
MinTimeout: 3 * time.Second,
|
||||
}
|
||||
|
@ -776,7 +776,7 @@ func resourceComputeInstanceV2Update(d *schema.ResourceData, meta interface{}) e
|
|||
Pending: []string{"VERIFY_RESIZE"},
|
||||
Target: []string{"ACTIVE"},
|
||||
Refresh: ServerV2StateRefreshFunc(computeClient, d.Id()),
|
||||
Timeout: 3 * time.Minute,
|
||||
Timeout: 30 * time.Minute,
|
||||
Delay: 10 * time.Second,
|
||||
MinTimeout: 3 * time.Second,
|
||||
}
|
||||
|
|
|
@ -150,7 +150,7 @@ func resourceNetworkingRouterV2Create(d *schema.ResourceData, meta interface{})
|
|||
Pending: []string{"BUILD", "PENDING_CREATE", "PENDING_UPDATE"},
|
||||
Target: []string{"ACTIVE"},
|
||||
Refresh: waitForRouterActive(networkingClient, n.ID),
|
||||
Timeout: 2 * time.Minute,
|
||||
Timeout: 10 * time.Minute,
|
||||
Delay: 5 * time.Second,
|
||||
MinTimeout: 3 * time.Second,
|
||||
}
|
||||
|
@ -235,7 +235,7 @@ func resourceNetworkingRouterV2Delete(d *schema.ResourceData, meta interface{})
|
|||
Pending: []string{"ACTIVE"},
|
||||
Target: []string{"DELETED"},
|
||||
Refresh: waitForRouterDelete(networkingClient, d.Id()),
|
||||
Timeout: 2 * time.Minute,
|
||||
Timeout: 10 * time.Minute,
|
||||
Delay: 5 * time.Second,
|
||||
MinTimeout: 3 * time.Second,
|
||||
}
|
||||
|
|
|
@ -155,7 +155,7 @@ func resourceNetworkingSubnetV2Create(d *schema.ResourceData, meta interface{})
|
|||
stateConf := &resource.StateChangeConf{
|
||||
Target: []string{"ACTIVE"},
|
||||
Refresh: waitForSubnetActive(networkingClient, s.ID),
|
||||
Timeout: 2 * time.Minute,
|
||||
Timeout: 10 * time.Minute,
|
||||
Delay: 5 * time.Second,
|
||||
MinTimeout: 3 * time.Second,
|
||||
}
|
||||
|
@ -257,7 +257,7 @@ func resourceNetworkingSubnetV2Delete(d *schema.ResourceData, meta interface{})
|
|||
Pending: []string{"ACTIVE"},
|
||||
Target: []string{"DELETED"},
|
||||
Refresh: waitForSubnetDelete(networkingClient, d.Id()),
|
||||
Timeout: 2 * time.Minute,
|
||||
Timeout: 10 * time.Minute,
|
||||
Delay: 5 * time.Second,
|
||||
MinTimeout: 3 * time.Second,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue