[GitHub] [cloudstack-documentation] dredknight opened a new pull request #215: Modernizing "Create linux template" guide + Cloud-init integration steps

2021-05-30 Thread GitBox


dredknight opened a new pull request #215:
URL: https://github.com/apache/cloudstack-documentation/pull/215


   The following sections are redone:
   1. Working with templates -> Creating a Linux Template
   --- guide was readjusted in more linear fashion. 
   --- Removed Ubuntu hostname warning as it is not relevant for Ubuntu OS 
versions since 2020
   --- Removed a command on how to become root in password management section
   --- added links to a new section "Cloud-init integration" (check below)
   
   2. Added new section Working with templates -> Cloud-init integration
   --- added as possible addition to Working with templates -> Creating a Linux 
Template
   --- Showcased features and examples related to Cloudstack instances features 
such as: password management, ssh-keys management, partition management, 
user-data input
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




RE: Centos 7.9 - cloud-init password reset?

2021-05-30 Thread Yordan Kostov
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  |::   

[GitHub] [cloudstack-documentation] sureshanaparti commented on pull request #155: Inclusivity changes for CloudStack in the documentation - Rename default git branch name from 'master' to 'main' and

2021-05-30 Thread GitBox


sureshanaparti commented on pull request #155:
URL: 
https://github.com/apache/cloudstack-documentation/pull/155#issuecomment-851179593


   @blueorangutan docbuild


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [cloudstack-documentation] blueorangutan commented on pull request #155: Inclusivity changes for CloudStack in the documentation - Rename default git branch name from 'master' to 'main' and

2021-05-30 Thread GitBox


blueorangutan commented on pull request #155:
URL: 
https://github.com/apache/cloudstack-documentation/pull/155#issuecomment-851180144


   @sureshanaparti a Jenkins job has been kicked to build the document. I'll 
keep you posted as I make progress.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org