diff --git a/pkg/util/qcloud/eip.go b/pkg/util/qcloud/eip.go index 3987d6f82c..fb266e2f07 100644 --- a/pkg/util/qcloud/eip.go +++ b/pkg/util/qcloud/eip.go @@ -257,6 +257,9 @@ func (region *SRegion) AllocateEIP(name string, bwMbps int, chargeType TInternet if err != nil { return nil, err } + if len(name) > 20 { + name = name[:20] + } if len(addRessSet) > 0 { params["AddressId"] = addRessSet[0] params["AddressName"] = name