OpenNebula / one

The open source Cloud & Edge Computing Platform bringing real freedom to your Enterprise Cloud 🚀
http://opennebula.io
Apache License 2.0
1.19k stars 472 forks source link

Updateconf API Call may lead to inconsistent CONTEXT attributes #6552

Closed rsmontero closed 2 months ago

rsmontero commented 3 months ago

/!\ To report a security issue please follow this procedure: [https://github.com/OpenNebula/one/wiki/Vulnerability-Management-Process]

Description When using the updateconf command/API call if a network attribute is set (e.g. ETH0_METHOD=1234) the value get's the NIC/VNET default. However onevm show renders the wrong vale 1234.

To Reproduce As described above

Expected behavior consistent attribute values

Details

Progress Status

paczerny commented 2 months ago

Fixed by disabling updates of CONTEXT->ETH* attributes by onevm updateconf These attributes should be updated in NIC Also fixed disapearing of all CONTEXT->ETH*, in case of onevm updateconf in replace mode, if CONTEXT->NETWORK=YES