Bug 2093275 - Azure machine-api-provider-azure Availability Set Name Length Limit
Summary: Azure machine-api-provider-azure Availability Set Name Length Limit
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Compute
Version: 4.10
Hardware: All
OS: Linux
urgent
medium
Target Milestone: ---
: 4.10.z
Assignee: Michael McCune
QA Contact: sunzhaohua
URL:
Whiteboard:
Depends On: 2093044
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-03 12:19 UTC by OpenShift BugZilla Robot
Modified: 2022-06-28 11:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-28 11:50:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift machine-api-provider-azure pull 23 0 None open [release-4.10] Bug 2093275: update getAvailabilitySetName function 2022-06-07 01:00:59 UTC
Red Hat Product Errata RHBA-2022:5172 0 None None None 2022-06-28 11:50:45 UTC

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


Note You need to log in before you can comment on or make changes to this bug.