https://rancher.com/ logo
Title
p

prehistoric-advantage-39331

03/17/2023, 2:41 PM
Has anyone seen issues with Ubuntu 22.04 nodes in rancher vsphere clusters? I’m running into ssh errors when I try to deploy 22.04 nodes, but it works fine for 20.04.
a

agreeable-oil-87482

03/17/2023, 3:14 PM
No issues here. How are you building your template or are you using a cloud image
m

millions-ocean-48249

03/17/2023, 3:15 PM
also curious, are you defining your user information in the cloud config yaml section when creating the cluster?
p

prehistoric-advantage-39331

03/17/2023, 5:42 PM
We're building our template with Packer - we do some configuration with as a part of the packer build. We're not defining the user info in the cloud config.
a

agreeable-oil-87482

03/17/2023, 5:44 PM
What are the ssh errors? Also, are you using this for a rke1 or rke2 cluster?
p

prehistoric-advantage-39331

03/17/2023, 5:49 PM
I'm seeing the issue with both rke1 and rke2. I'm digging up the specific error and will post it shortly.
a

agreeable-oil-87482

03/17/2023, 5:50 PM
In your packer builds do you reset
cloud-init
?
p

prehistoric-advantage-39331

03/17/2023, 5:54 PM
No, I don't think so - would that just be stopping cloud-init and removing /var/lib/cloud/?
This is what I do
p

prehistoric-advantage-39331

03/17/2023, 5:56 PM
I'll give it a try!
a

agreeable-oil-87482

03/17/2023, 5:59 PM
To add some context - rancher generates an SSH key and mounts it to newly created VMs in vsphere via a cloud init iso. If cloud init isn't cleared it won't ingest any new config and therefore won't accept the ssh key
p

prehistoric-advantage-39331

03/17/2023, 7:20 PM
Why would that impact 22.04, but not 20.04?
a

agreeable-oil-87482

03/17/2023, 7:21 PM
Depends if you used the subiquity installer, or if cloud init was cleared in your older image
p

prehistoric-advantage-39331

03/17/2023, 7:22 PM
It wasn't cleared in the older image, but we didn't use subiquity with 20.04.
a

agreeable-oil-87482

03/17/2023, 7:23 PM
With the subiquity installer which is now default I think it uses cloud init as part of the install process. The older process did not
Which is why you explicitly have to clear it in newer versions
p

prehistoric-advantage-39331

03/17/2023, 7:32 PM
that makes sense - thanks for the explanation
a

agreeable-oil-87482

03/17/2023, 7:34 PM
No worries 👍
p

prehistoric-advantage-39331

03/22/2023, 11:09 AM
And as it turned out, that fixed it for me. Thanks again @agreeable-oil-87482!
a

agreeable-oil-87482

03/22/2023, 11:10 AM
You're welcome 👍
h

hallowed-planet-24254

05/02/2023, 1:11 PM
Hey David, just wanted to drop a note here and say this thread also fixed my issue with provisioning 22.04 nodes as well. Thanks a bunch!
a

agreeable-oil-87482

05/02/2023, 1:18 PM
Glad to hear it, you're welcome 👍