Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backports (stable-5.0) #14268

Merged
merged 18 commits into from
Oct 14, 2024
Merged

Backports (stable-5.0) #14268

merged 18 commits into from
Oct 14, 2024

Conversation

tomponline
Copy link
Member

No description provided.

tomponline and others added 16 commits October 14, 2024 10:01
… call to liblxc

Signed-off-by: Thomas Parrott <[email protected]>
(cherry picked from commit 6c6861a)
Signed-off-by: Simon Deziel <[email protected]>
(cherry picked from commit 8588326)
In CI, untar'ing backups lead to those warnings about time discrepancies:

```
+ tar -xzf /home/runner/work/lxd/lxd/test/tmp.yy0/T5U/testvol.tar.gz -C /home/runner/work/lxd/lxd/test/tmp.yy0/T5U/non-optimized
tar: backup/index.yaml: time stamp 2024-10-04 13:47:24 is 0.053552327 s in the future
tar: backup/volume-snapshots/test-snap0/test: time stamp 2024-10-04 13:47:24 is 0.053404079 s in the future
tar: backup/volume-snapshots/test-snap0: time stamp 2024-10-04 13:47:24 is 0.053373382 s in the future
tar: backup/volume-snapshots/test-snap1/test: time stamp 2024-10-04 13:47:24 is 0.053263225 s in the future
tar: backup/volume-snapshots/test-snap1: time stamp 2024-10-04 13:47:24 is 0.053238839 s in the future
tar: backup/volume/test: time stamp 2024-10-04 13:47:24 is 0.053151806 s in the future
tar: backup/volume: time stamp 2024-10-04 13:47:24 is 0.053119726 s in the future
```

According to `man 1 tar`, `--warning=no-timestamp` would ignore the following
warnings:

```
  timestamp
         "%s: implausibly old time stamp %s"
         "%s: time stamp %s is %s s in the future"
```

Signed-off-by: Simon Deziel <[email protected]>
(cherry picked from commit d3cd178)
The CAP_SYS_ADMIN cap is required for rsync to write to files
using security.* xattrs. In order to preserve these xattrs and
ensure proper updates when these xattrs are present, we must
include this capability in the rsync AppArmor profile.

Signed-off-by: Mark Bolton <[email protected]>
(cherry picked from commit 38a2cac)
This is a precursor to potentially using it for the callhook handler for container stops.

Signed-off-by: Thomas Parrott <[email protected]>
(cherry picked from commit 1103985)
Adds the `callhook` subcommand and a `callhook` package for handling stop hook
requests from LXD containers. These are then passsed to the LXD server via
its UNIX socket.

Signed-off-by: Thomas Parrott <[email protected]>
(cherry picked from commit a7b7c50)
To avoid duplicating logic.

Signed-off-by: Thomas Parrott <[email protected]>
(cherry picked from commit b0fa898)
This task is running every minute but doesn't need to, because token
expiry is checked at the time of use. Additionally, a comment where the
task is added to the daemon specifies that it runs hourly.

Signed-off-by: Mark Laing <[email protected]>
(cherry picked from commit 9e8aabb)
With this, processes spawned by lxc exec and stop due to being signaled
now return the proper exit code to LXD.

Signed-off-by: hamistao <[email protected]>
(cherry picked from commit f9d5fbd)
Do this instead of testing a clean stop as cleanly stop can be
unpredictable.

Signed-off-by: hamistao <[email protected]>
(cherry picked from commit 721d358)
This hasn't raised problems so far but you never know ;)

Signed-off-by: hamistao <[email protected]>
(cherry picked from commit 0a5b448)
…ter once done

Signed-off-by: Simon Deziel <[email protected]>
(cherry picked from commit 1f7d95d)
@tomponline tomponline self-assigned this Oct 14, 2024
Build all LXD related binaries as default target

Signed-off-by: Thomas Parrott <[email protected]>
Signed-off-by: Thomas Parrott <[email protected]>
@tomponline tomponline requested a review from markylaing October 14, 2024 12:24
@tomponline tomponline marked this pull request as ready for review October 14, 2024 12:25
@tomponline tomponline merged commit e7ea7b9 into canonical:stable-5.0 Oct 14, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants