diff --git a/src/core/infra/provisioning.go b/src/core/infra/provisioning.go index ff8f815c5..ab9389493 100644 --- a/src/core/infra/provisioning.go +++ b/src/core/infra/provisioning.go @@ -337,6 +337,7 @@ func CreateMciGroupVm(nsId string, mciId string, vmRequest *model.TbVmReq, newSu } vmInfoData.ResourceType = model.StrVM vmInfoData.Id = vmInfoData.Name + vmInfoData.Uid = common.GenUid() vmInfoData.Description = vmRequest.Description vmInfoData.PublicIP = "empty" @@ -1531,7 +1532,7 @@ func CreateVm(nsId string, mciId string, vmInfoData *model.TbVmInfo, option stri _, err = SetBastionNodes(nsId, mciId, vmInfoData.Id, "") if err != nil { // just log error and continue - log.Info().Err(err).Msg("") + log.Debug().Err(err).Msg("") } return nil diff --git a/src/core/resource/spec.go b/src/core/resource/spec.go index df61940d3..0e52ac9d9 100644 --- a/src/core/resource/spec.go +++ b/src/core/resource/spec.go @@ -395,15 +395,15 @@ func GetSpec(nsId string, specKey string) (model.TbSpecInfo, error) { // ex: img-487zeit5 spec = model.TbSpecInfo{Namespace: nsId, CspSpecName: specKey} - has, err = model.ORM.Where("LOWER(Namespace) = ? AND LOWER(CspResourceName) = ?", nsId, specKey).Get(&spec) + has, err = model.ORM.Where("LOWER(Namespace) = ? AND LOWER(CspSpecName) = ?", nsId, specKey).Get(&spec) if err != nil { - log.Info().Err(err).Msgf("Failed to get spec %s by CspResourceName", specKey) + log.Info().Err(err).Msgf("Failed to get spec %s by CspSpecName", specKey) } if has { return spec, nil } - return model.TbSpecInfo{}, fmt.Errorf("The specKey %s not found by any of ID, CspResourceName", specKey) + return model.TbSpecInfo{}, fmt.Errorf("The specKey %s not found by any of ID, CspSpecName", specKey) } // FilterSpecsByRange accepts criteria ranges for filtering, and returns the list of filtered TB spec objects