Bug 2093275

Summary: Azure machine-api-provider-azure Availability Set Name Length Limit
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Cloud ComputeAssignee: Michael McCune <mimccune>
Cloud Compute sub component: Other Providers QA Contact: sunzhaohua <zhsun>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: urgent CC: jboutaud, mimccune, nmalik
Version: 4.10Keywords: ServiceDeliveryBlocker
Target Milestone: ---   
Target Release: 4.10.z   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-28 11:50:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2093044    
Bug Blocks:    

Comment 4 sunzhaohua 2022-06-10 03:51:33 UTC
Verified
clusterversion: 4.10.0-0.nightly-2022-06-08-150219

Create machineset with cluster name, availabity set will be created with appending '-as' to the machineset name and the clustername is not added to it.
$ oc get machineset                                                                                                                  
NAME                                                            DESIRED   CURRENT   READY   AVAILABLE   AGE
zhsunazureavailabilit-9s8v6-worker-northcentralus1111111111     1         1         1       1           6m8s

Create machineset with not cluster name, clustername prefixed to avalabilitysets and suffixed with '-as'. due to the 80 character name limit, if the proposed name will be 77 or more characters, truncated the name before adding `-as` 

$ oc get machineset                                                                                                                   
NAME                                                            DESIRED   CURRENT   READY   AVAILABLE   AGE
clusterazureavailabilit-9s8v6-worker-northcentralus1111111111   1         1          1       1          5m12s

Comment 9 errata-xmlrpc 2022-06-28 11:50:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.10.20 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:5172