DaanHoogland commented on PR #6809:
URL: https://github.com/apache/cloudstack/pull/6809#issuecomment-1400629956
> Manual setting of values works fine but the reset functionality doesn't
change the value in database:
>
> ```
> (localcloud) 🐱 > update configuration name=host.reserved.mem.mb value=2048
> {
> "configuration": {
> "category": "Advanced",
> "description": "Set an upper limit for memory in megabytes which will
be reserved for host and not used for VM allocation.",
> "isdynamic": true,
> "name": "host.reserved.mem.mb",
> "value": "2048"
> }
> }
>
> (localcloud) 🐱 > list configurations name=host.reserved.mem.mb
> {
> "configuration": [
> {
> "category": "Advanced",
> "description": "Set an upper limit for memory in megabytes which
will be reserved for host and not used for VM allocation.",
> "isdynamic": true,
> "name": "host.reserved.mem.mb",
> "value": "2048"
> }
> ],
> "count": 1
> }
>
> mysql> select dom0_memory,ram from host where type="Routing" and removed
is null\G
> *************************** 1. row ***************************
> dom0_memory: 1073741824
> ram: 7234621440
> *************************** 2. row ***************************
> dom0_memory: 1073741824
> ram: 7234629632
> 2 rows in set (0,00 sec)
> ```
>
> But when the 'reset' functionality is used:
>
> ```
> (localcloud) 🐱 > reset configuration name=host.reserved.mem.mb
> {
> "configuration": {
> "category": "Advanced",
> "description": "Set an upper limit for memory in megabytes which will
be reserved for host and not used for VM allocation.",
> "isdynamic": true,
> "name": "host.reserved.mem.mb",
> "value": "1024"
> }
> }
> ```
>
> The value is changed only in the global setting, but not updated in the
database:
>
> ```
> (localcloud) 🐱 > list configurations name=host.reserved.mem.mb
> {
> "configuration": [
> {
> "category": "Advanced",
> "description": "Set an upper limit for memory in megabytes which
will be reserved for host and not used for VM allocation.",
> "isdynamic": true,
> "name": "host.reserved.mem.mb",
> "value": "1024"
> }
> ],
> "count": 1
> }
>
> mysql> select dom0_memory,ram from host where type="Routing" and removed
is null\G
> *************************** 1. row ***************************
> dom0_memory: 2147483648
> ram: 6160879616
> *************************** 2. row ***************************
> dom0_memory: 2147483648
> ram: 6160887808
> 2 rows in set (0,00 sec)
> ```
@soreana can you look at this?
--
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]