apache / apache/cloudstack

Add option to skip mount of ConfigDrive

未关闭
#9,831 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
type:config
主要语言
Java
星标
3.1k
派生
1.4k
平均合并
6 天 19 小时
30 天内合并 PR
32

描述

##### 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?

贡献指南

打开贡献指南

调研方向

先阅读链接函数附近第 770-793 行的 ConfigDriveNetworkElement.java,然后跟踪 VM 特定设置和 ConfigDrive 附加是如何表示的。当所提议的每个 VM 选项能够阻止创建或附加 ConfigDrive ISO,同时在未使用该选项时保留当前的网络提供行为时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
backend, cloud, infrastructure
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。