Dear everyone,
Did a draft on Creating Linux template guide you can find it here -
https://github.com/apache/cloudstack-documentation/pull/215.
A separate page has been done that can be considered as additions to
the basic Linux guide. It relates to cloud-init and its features that serve as
a middleware to Cloudstack instances GUI functions.
Guides are based on the following scripts:
- Centos 7 -
https://github.com/dredknight/cloud_scripts/blob/master/CloudStack-Xen/templates/centos7_clean.bash
- Ubuntu 20 -
https://github.com/dredknight/cloud_scripts/blob/master/CloudStack-Xen/templates/ubuntu20_prep_clean.bash
Could you take a look and let me know if anything needs to be changed -
technical or format wise?
During tests all features seem to work fine with the following
peculiarity.
- When ssh keys are reset in coudstack, the public key is added in
/home/cloud-user/.ssh/authorized_keys but the old one is not removed.
This means that users having previous private keys will still be able
to login is there a way Cloudstack to delete the old key?
Best regards,
Jordan
-Original Message-
From: Alireza Eskandari
Sent: Sunday, May 23, 2021 1:53 AM
To: us...@cloudstack.apache.org
Subject: Re: Centos 7.9 - cloud-init password reset?
[X] This message came from outside your organization
It seems cloud-init cannot execute the script so it shows an error but the
script is running fine standalone.
I'll try it on centos stream.
Notice that cloud-init can handle password and ssh key from user data server
without extra script, but it can't reset ssh key or set password from
configdrive.
The script resolves these problems.
On Fri, May 21, 2021 at 12:45 AM ์กฐ๋ํ wrote:
> Hi,
>
> I have attached the logs that I execute the password script and cloud-init.
>
> # ./password.bash
>
> Results : executed password reset file.
>
> Cloud Password Manager: Searching for ConfigDrive Cloud Password
> Manager: ConfigDrive not found Cloud Password Manager: Detecting
> primary network Cloud Password Manager: Trying to find userdata server
> Cloud Password Manager: Operating System is using NetworkManager Cloud
> Password Manager: Found userdata server IP VR's IP address in
> NetworkManager config Cloud Password Manager: Sending request to
> userdata server at VR's IP address to get public key Cloud Password
> Manager: Got response from userdata server at VR's IP address Cloud
> Password Manager: Did not receive any public keys from userdata server
> Cloud Password Manager: Sending request to userdata server at VR's IP
> address to get the password Cloud Password Manager: Got response from
> userdata server at VR's IP address Cloud Password Manager: VM has
> already saved a password from the userdata server at VR's IP address
>
>
>
> # cloud-init init
>
> Cloud-init v. 20.3-10.el8 running 'init' at Fri, 21 May 2021 04:40:34
> +. Up 268624.75 seconds.
> ci-info: +++Net device
> info
> ci-info:
> ++--+-+-++---+
> ci-info: | Device | Up | Address | Mask |
> Scope | Hw-Address|
> ci-info:
> ++--+-+-++---+
> ci-info: | eth0 | True | VR'S IP address1 |
> 255.255.255.192 | global | 1e:00:8f:00:02:8f |
> ci-info: | eth0 | True | fe80::1c00:8fff:fe00:28f/64 |.
> | link | 1e:00:8f:00:02:8f |
> ci-info: | lo | True | 127.0.0.1 |255.0.0.0
> | host | . |
> ci-info: | lo | True | ::1/128 |.
> | host | . |
> ci-info:
> ++--+-+-++---+
> ci-info: +Route IPv4
> info++
> ci-info:
> +---+-++-+---+---+
> ci-info: | Route | Destination | Gateway | Genmask | Interface
> | Flags |
> ci-info:
> +---+-++-+---+---+
> ci-info: | 0 | 0.0.0.0 | x.x.x.1 | 0.0.0.0 |eth0 |
> UG |
> ci-info: | 1 | x.x.x.0 | 0.0.0.0 | 255.255.255.192 |eth0 |
> U |
> ci-info:
> +---+-++-+---+---+
> ci-info: +++Route IPv6 info+++
> ci-info: +---+-+-+---+---+
> ci-info: | Route | Destination | Gateway | Interface | Flags |
> ci-info: +---+-+-+---+---+
> ci-info: | 1 | fe80::/64 |:: |eth0 | U |
> ci-info: | 3 |local|:: |eth0 | U |
> ci-info: | 4 | ff00::/8 |::