Compare commits

...

4 Commits

Author SHA1 Message Date
Stéphane Graber
4cb65e846d
Merge pull request #3760 from stgraber/fixes
Some checks are pending
Tests / System (dir, stable, ubuntu-24.04-arm, cluster) (push) Waiting to run
Tests / System (dir, stable, ubuntu-24.04-arm, standalone_container) (push) Waiting to run
Tests / System (dir, stable, ubuntu-24.04-arm, standalone_core) (push) Waiting to run
Tests / System (dir, stable, ubuntu-24.04-arm, standalone_network) (push) Waiting to run
Tests / System (dir, stable, ubuntu-24.04-arm, standalone_storage) (push) Waiting to run
Tests / System (dir, tip, ubuntu-24.04, cluster) (push) Waiting to run
Tests / System (dir, tip, ubuntu-24.04, standalone_container) (push) Waiting to run
Tests / System (dir, tip, ubuntu-24.04, standalone_core) (push) Waiting to run
Tests / System (dir, tip, ubuntu-24.04, standalone_network) (push) Waiting to run
Tests / System (dir, tip, ubuntu-24.04, standalone_storage) (push) Waiting to run
Tests / System (dir, tip, ubuntu-24.04-arm, cluster) (push) Waiting to run
Tests / System (dir, tip, ubuntu-24.04-arm, standalone_container) (push) Waiting to run
Tests / System (dir, tip, ubuntu-24.04-arm, standalone_core) (push) Waiting to run
Tests / System (dir, tip, ubuntu-24.04-arm, standalone_network) (push) Waiting to run
Tests / System (dir, tip, ubuntu-24.04-arm, standalone_storage) (push) Waiting to run
Tests / System (linstor, stable, ubuntu-24.04, cluster) (push) Waiting to run
Tests / System (linstor, stable, ubuntu-24.04, standalone_storage) (push) Waiting to run
Tests / System (lvm, stable, ubuntu-24.04, cluster) (push) Waiting to run
Tests / System (lvm, stable, ubuntu-24.04, standalone_storage) (push) Waiting to run
Tests / System (random, stable, ubuntu-24.04, cluster) (push) Waiting to run
Tests / System (random, stable, ubuntu-24.04, standalone_storage) (push) Waiting to run
Tests / System (zfs, stable, ubuntu-24.04, cluster) (push) Waiting to run
Tests / System (zfs, stable, ubuntu-24.04, standalone_storage) (push) Waiting to run
Tests / Client (oldstable, macos-latest) (push) Waiting to run
Tests / Client (oldstable, ubuntu-latest) (push) Waiting to run
Tests / Client (oldstable, windows-latest) (push) Waiting to run
Tests / Client (stable, macos-latest) (push) Waiting to run
Tests / Client (stable, ubuntu-latest) (push) Waiting to run
Tests / Client (stable, windows-latest) (push) Waiting to run
Tests / Documentation (push) Waiting to run
Various fixes
2026-08-01 03:08:45 -04:00
Stéphane Graber
066ef03eb9
incusd/network/ovn: Skip empty transactions in SetChassisGroupPriority
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2026-07-31 07:53:29 -04:00
Stéphane Graber
54d230183c
incusd/db: Have NetworkNodeConfigs only consider the requested network
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2026-07-31 07:53:28 -04:00
Stéphane Graber
66e092f0ff
incusd/instance/qmp: Bump query-migrate timeout
Treat query-migrate as a heavyCommandTimeout.
That's because just like stop, it can get stuck on QEMU handling I/O
internally (final stage of a migration).

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2026-07-31 07:53:27 -04:00
3 changed files with 7 additions and 2 deletions

View File

@ -282,7 +282,7 @@ WHERE networks.id = ? AND networks.state = ?
configs := map[string]map[string]string{}
for _, node := range nodes {
config, err := query.SelectConfig(ctx, c.tx, "networks_config", "node_id=?", node.ID)
config, err := query.SelectConfig(ctx, c.tx, "networks_config", "network_id=? AND node_id=?", networkID, node.ID)
if err != nil {
return nil, err
}

View File

@ -301,7 +301,7 @@ var commandTimeouts = map[string]time.Duration{
"object-add": heavyCommandTimeout,
"stop": heavyCommandTimeout,
"system_reset": heavyCommandTimeout,
"query-migrate": 5 * time.Second,
"query-migrate": heavyCommandTimeout,
"screendump": 10 * time.Second,
}

View File

@ -2765,6 +2765,11 @@ func (o *NB) SetChassisGroupPriority(ctx context.Context, haChassisGroupName OVN
operations = append(operations, updateOps...)
}
// Skip the transaction if nothing changed.
if len(operations) == 0 {
return nil
}
// Apply the changes.
resp, err := o.client.Transact(ctx, operations...)
if err != nil {