0-complexity / openvcloud

OpenvCloud
Other
2 stars 4 forks source link

Retry disk creation up to three times #1864

Open FastGeert opened 5 years ago

FastGeert commented 5 years ago

When disk creation fails, retry up to three times with a 5 second pause.

503: Service Unavailable "Could not perform action: createdisk at this time"
Execute method POST_cloudapi_disks_create failed.
querystr was:authkey=rooter
method was:/restmachine/cloudapi/disks/create
Application Name portal
Category  
Job N/A
Type UNKNOWN
Level CRITICAL
State NEW
Creation Time 2-10-2018 02:10:53
Last Time 2-10-2018 02:10:53
Occurrences 1
Error Message Pub  
Function Name create_volume
Function Line Number 451
Function File Name /opt/jumpscale7/lib/JumpScale/portal/portal/PortalRest.py
Node N/A (0)
Grid be-g8-3(107)
Traceback (most recent call last):
~   File "/opt/jumpscale7/lib/JumpScale/portal/portal/PortalRest.py", line 254, in execute_rest_call
    result = method(ctx=ctx, **ctx.params)
~   File "/opt/jumpscale7/libext/cloudbrokerlib/authenticator.py", line 184, in wrapper
    return func(*args, **kwargs)
~   File "/opt/jumpscale7/apps/portals/main/base/cloudapi__disks/methodclass/cloudapi_disks.py", line 92, in create
    disk, _ = self._create(accountId, gid, name, description, size, type, iops)
~   File "/opt/jumpscale7/apps/portals/main/base/cloudapi__disks/methodclass/cloudapi_disks.py", line 141, in _create
    volume = provider.create_volume(disk.sizeMax, disk.id, dtype.vpool, type)
~   File "/opt/jumpscale7/libext/CloudscalerLibcloud/compute/drivers/libvirt_driver.py", line 451, in create_volume
    raise StorageException(ex.message, ex)
~ StorageException: 503: Service Unavailable "Could not perform action: createdisk at this time", 503: Service Unavailable "Could not perform action: createdisk at this time"