mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #11584 from rainzm/automated-cherry-pick-of-#11583-upstream-release-3.7
Automated cherry pick of #11583: fix(region): handle the error of RequestGuestCreateAllDisks
This commit is contained in:
@@ -62,7 +62,11 @@ func (self *GuestCreateTask) OnWaitGuestNetworksReady(ctx context.Context, obj d
|
||||
func (self *GuestCreateTask) OnGuestNetworkReady(ctx context.Context, guest *models.SGuest) {
|
||||
guest.SetStatus(self.UserCred, api.VM_CREATE_DISK, "")
|
||||
self.SetStage("OnDiskPrepared", nil)
|
||||
guest.GetDriver().RequestGuestCreateAllDisks(ctx, guest, self)
|
||||
err := guest.GetDriver().RequestGuestCreateAllDisks(ctx, guest, self)
|
||||
if err != nil {
|
||||
msg := fmt.Sprintf("unable to RequestGuestCreateAllDisks: %v", err)
|
||||
self.OnDiskPreparedFailed(ctx, guest, jsonutils.NewString(msg))
|
||||
}
|
||||
}
|
||||
|
||||
func (self *GuestCreateTask) OnDiskPreparedFailed(ctx context.Context, obj db.IStandaloneModel, data jsonutils.JSONObject) {
|
||||
|
||||
Reference in New Issue
Block a user