tanganellilore opened a new issue, #9831:
URL: https://github.com/apache/cloudstack/issues/9831
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Enhancement Request
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
Backend
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
4.19.1.2
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
N/A
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
Ubuntu 22 for Managemente
KVM with Rocky Linux for hypervisor
##### SUMMARY
<!-- Explain the problem/feature briefly -->
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
<!--
For bugs, show exactly how to reproduce the problem, using a minimal
test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
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
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
Add a settings to disable the usage of userdata to vm specific
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
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?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]