Rocky Linux 9 and Ubuntu 24.04 template with cloud-init doesn't reset password on next subsequent boots #9690
Replies: 17 comments 3 replies
-
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
-
just for your information, I have tested the ubuntu 24.04 cloud images, the ssh and password reset worked fine it may be better to share the /var/log/cloud-init*log or journal logs
|
Beta Was this translation helpful? Give feedback.
-
@weizhouapache @hanisirfan I faced with same problem. I create new template from iso image. After reboot new password doesn't apply. But if I do |
Beta Was this translation helpful? Give feedback.
-
thanks @top-secrett maybe |
Beta Was this translation helpful? Give feedback.
-
@weizhouapache it works only once. |
Beta Was this translation helpful? Give feedback.
-
Was the cloud-set-guest-password not required anymore for new distro
versions? Btw @weizhouapache, I tested on both minimal Rocky Linux 9 and
24.04 with normal ISOs. Not the cloud images. I can try to reproduce the
error and attach the logs.
My first suspicion after reading some portion of my logs is that the
cloud-init set-passwords module runs on every boot, but not fetching new
passwords from the VR.
…On Mon, 9 Sept 2024, 22:12 top-secrett, ***@***.***> wrote:
@weizhouapache <https://github.com/weizhouapache> it works only once.
I've tryed to deal with this scrypt
https://github.com/apache/cloudstack/blob/main/setup/bindir/cloud-set-guest-password.in
After resetting password in CS new password applyed in instance, BUT if I
reboot intance again password returns to the previous one.
—
Reply to this email directly, view it on GitHub
<#9630 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APZMOVJIHTZ6VQVVEKI7K7DZVWUEZAVCNFSM6AAAAABNTJD5XGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZYGIZTSMJWGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@hanisirfan @weizhouapache I think I found a solution. Maybe It is not the best, but it works on Ubuntu 22.
And change user in script if it is necessary 2.4. Execute command to create service
2.6. Enable service |
Beta Was this translation helpful? Give feedback.
-
On Almalinux 9 all works fine without script. You just neet to install wget to get password from virtual router |
Beta Was this translation helpful? Give feedback.
-
@hanisirfan On Ubuntu 22 instead service with script above, I created service with script in /etc/init.d/ and enabled it. In cloud.cfg
|
Beta Was this translation helpful? Give feedback.
-
@top-secrett It looks like the issue is, without |
Beta Was this translation helpful? Give feedback.
-
I don't know exactly, but it works. BUT I try to find another solutions, because after |
Beta Was this translation helpful? Give feedback.
-
I was having problem with Rocky Linux 9.4 and Ubuntu 24.04. Rocky now fixed but Ubuntu haven't. It's due to a bug in cloud-init. Can refer here: canonical/cloud-init#5486 |
Beta Was this translation helpful? Give feedback.
-
@hanisirfan thank you
|
Beta Was this translation helpful? Give feedback.
-
@hanisirfan @top-secrett |
Beta Was this translation helpful? Give feedback.
-
thanks guys, it sounds like this does not need fixing in CloudStack, is that right? |
Beta Was this translation helpful? Give feedback.
-
I think yes, you are right |
Beta Was this translation helpful? Give feedback.
-
cloud init 24.3.1 is now in the updates channel for Ubuntu 🎉 I'll try it out later. |
Beta Was this translation helpful? Give feedback.
-
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
OS / ENVIRONMENT
cloud-init.noarch 23.4-7.el9_4.5.0.1
on Rocky Linux 9.4 and Ubuntu 24.04SUMMARY
STEPS TO REPRODUCE
The steps below are for Rocky Linux but somewhat identical for Ubuntu.
EXPECTED RESULTS
ACTUAL RESULTS
This is my first time trying to create template especially with cloud-init being integrated. My previous tests with CloudStack is jus using the default CentOS 5 template. Tried following the issue #8767 , which resulted in the config I pasted on STEPS TO REPRODUCE section.
I have additional question, say a user change the CIDR of their guest network, will cloud-init still able to detect the metadata hosted on the VR with the other CIDR than default?
Sorry if I'm not supposed to post on GitHub and should use the mailing list instead.
Beta Was this translation helpful? Give feedback.
All reactions