diff --git a/pkg/util/qcloud/eip.go b/pkg/util/qcloud/eip.go index 8334eaaaa2..520c88503a 100644 --- a/pkg/util/qcloud/eip.go +++ b/pkg/util/qcloud/eip.go @@ -249,6 +249,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