From 0eb0f9d99c1063e7d32d2ba371b966f38448b9a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Wed, 3 Sep 2025 20:16:44 +0800 Subject: [PATCH] fix(region): add disk change billing type log (#23233) --- pkg/compute/tasks/guest_create_disk_task.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/compute/tasks/guest_create_disk_task.go b/pkg/compute/tasks/guest_create_disk_task.go index 85dd82bfc6..91e6a06d2f 100644 --- a/pkg/compute/tasks/guest_create_disk_task.go +++ b/pkg/compute/tasks/guest_create_disk_task.go @@ -238,15 +238,15 @@ func (self *ManagedGuestCreateDiskTask) OnManagedDiskPrepared(ctx context.Contex return } - time.Sleep(time.Second * 5) + time.Sleep(time.Second * 10) + + log.Debugf("guest %s(%s) billing type: %s disk %s(%s)", guest.Name, guest.Id, guest.BillingType, disk.Name, disk.Id) if guest.BillingType == billing_api.BILLING_TYPE_PREPAID { idisk, err := disk.GetIDisk(ctx) if err != nil { - if errors.Cause(err) != cloudprovider.ErrNotFound { - logclient.AddActionLogWithStartable(self, guest, logclient.ACT_CHANGE_BILLING_TYPE, errors.Wrapf(err, "GetIDisk %s", disk.ExternalId), self.UserCred, false) - continue - } + logclient.AddActionLogWithStartable(self, guest, logclient.ACT_CHANGE_BILLING_TYPE, errors.Wrapf(err, "GetIDisk %s", disk.ExternalId), self.UserCred, false) + continue } err = idisk.ChangeBillingType(guest.BillingType) if err != nil {