Conversation
|
This PR implements #2254 |
|
because this MR is quite long, I will try to explain a little bit about some change decisions and few concerns! storage_volume_snapshot shared/api/instance_snapshot.go instance_args I'd rather use snapshot as a nested struct of instance on every place like driver, api, db, etc, but this change is painful, so it's what it is! instance_snapshot_property I think that's all, let me know if have any question or improvements. |
|
Hi @stgraber, I think It's done this PR. |
|
@heldergomes sorry for the delay, I've been dealing with quite a bit of backlog :) |
e8f30b4 to
40a1b63
Compare
|
No worries @stgraber |
|
Back to this one now that I've got the rest of the Incus 6.22 backlog taken care of ;) |
|
I'll most likely get that one merged right after 6.22 so we have a whole month with the DB change and can deal with any unexpected consequences :) |
40a1b63 to
db6361c
Compare
|
I've pushed an initial edit. Basically drops the check in client/, re-orders and re-titles a bunch of commits. I'll look at the pointer in the Args struct next. I also want to think a bit more about how we expose this stuff in the API as having ExpiresAt and SnapshotDescription feels pretty inconsistent. I need to go back to the issue and see if there's some alternative way to handle that which still doesn't break API ;) |
5da2bbc to
bcef8ef
Compare
Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
This change add snapshot_description as a new extension Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
The snapshot description field has added on snapshot creation and list commands from incus cli in order to enable the management of this new field Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
Previously, snapshot fields were mixed with instance fields within the instanceArgs. With the introduction of the new snapshot API field, it became necessary to introduce a nested SnapshotArgs within the instanceArgs for better encapsulation. Furthermore, updates were made to the instance driver interface to properly handle the retrieval and updating of snapshot descriptions. Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
This change add snapshot_description on existing snapshots endpoint Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
It needs ensure that snapshot description is sent and received during migration. Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
After create snapshot property table, it was necessary clean up few fields in snapshot and instance table, and also few functions was made to parse snapshot properties Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
After change instanceArgs object it was necessary change drivers to manage properly the new instanceArgs model, futhermore mostly action through instance snapshot is controlled by qemu/lxc driver so few functions had to be changed Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
Signed-off-by: Helder Ardachnikoff Gomes <helder.versatti@gmail.com>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
bcef8ef to
09cd0f8
Compare
|
@heldergomes sorry for all the delays... It's not obvious to me how to change that code path to work with your new logic. I've pushed what I've got here into your branch. |
|
Hello @stgraber I will working on this fix! |
|
Thanks! |
No description provided.