apache / apache/cloudstack

Add option to skip mount of ConfigDrive

Ouverte
#9,831 0 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
type:config
Langage dominant
Java
Étoiles
3.1k
Forks
1.4k
Merge moyen
6 j 19 h
PR mergées (30 j)
32

Description

##### ISSUE TYPE

* Enhancement Request

##### COMPONENT NAME

~~~
Backend
~~~

##### CLOUDSTACK VERSION

~~~
4.19.1.2
~~~

##### CONFIGURATION

N/A

##### OS / ENVIRONMENT

Ubuntu 22 for Managemente
KVM with Rocky Linux for hypervisor

##### SUMMARY

HI team, I configured a L2 network offering with support for ConfigDrive, becasue i need to use cloudinit to do some tasks.
As per documentation, in this configuration, an iso will be created with ConfigDrive and attached as cdrom to instance.
Moreover with option we can decide to store it on primary or secondary storage.

However, this happen everytime I use at least one network where ConfigDrive is enabled and i don't find a way to "disable" this behaviour apart choice a network with different Offering.

It will be very usefull have a machine settings that can allow us to "disable" mounting the iso, for example after first deployment we can set it ad avoid attach or buil the iso.

##### STEPS TO REPRODUCE

~~~
Create aL2 network offering with Userdata flagged
Create a VM with/without user data
Iso is attached to the vm and mounted (as default) to secondary storage
Remove network with this Network offering
Attach a network with netwokr offering without userdata
VM will not have attached the iso, iso is deleted on secondary
~~~

##### EXPECTED RESULTS

~~~
Add a settings to disable the usage of userdata to vm specific
~~~

##### ACTUAL RESULTS

~~~
No way to disable userdata if is enabled on Network offering
~~~

I think that one pice of code to be modified is this function:
https://github.com/apache/cloudstack/blob/019f2c60ceb7a7c15c670a98280bd5764a5fcf5b/server/src/main/java/com/cloud/network/element/ConfigDriveNetworkElement.java#L770-L793

As per system VM, we can add an option to avoid the configuration of ConfigDrive with vm settings.

What do you think team?

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par lire ConfigDriveNetworkElement.java dans la fonction liée, autour des lignes 770-793, puis suivez la manière dont les paramètres spécifiques à la VM et l’attachement de ConfigDrive sont représentés. Le travail est terminé lorsque l’option proposée par VM peut empêcher la création ou l’attachement de l’ISO ConfigDrive, tout en préservant le comportement actuel de l’offre réseau lorsque l’option n’est pas utilisée.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
backend, cloud, infrastructure
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.