Merge ~sdeziel/ubuntu/+source/lxd-agent-loader:prepare-0.6 into ubuntu/+source/lxd-agent-loader:ubuntu/devel
Proposed by
Simon Déziel
Status: | Merged |
---|---|
Merged at revision: | 51f567c2cb6eb466fe76dd2077288c2f77700ef5 |
Proposed branch: | ~sdeziel/ubuntu/+source/lxd-agent-loader:prepare-0.6 |
Merge into: | ubuntu/+source/lxd-agent-loader:ubuntu/devel |
Diff against target: |
155 lines (+46/-22) 6 files modified
99-lxd-agent.rules (+5/-1) debian/changelog (+18/-0) debian/control (+4/-4) debian/copyright (+3/-3) lxd-agent-setup (+11/-8) lxd-agent.service (+5/-6) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lucas Kanashiro (community) | Approve | ||
Review via email: mp+458532@code.launchpad.net |
Commit message
Sync the systemd unit and udev rules files from upstream
To post a comment you must log in.
This was tested locally:
Create a test VM and copy the built package into it:
``` loader_ 0.6_all. deb v1/tmp/
$ lxc launch ubuntu-daily:24.04 v1 --vm
$ sleep 30
$ lxc file push lxd-agent-
```
Use SSH to access the VM instead of `lxc exec` as the `exec` method depends on the `lxd-agent` that will be bounced during the package upgrade:
``` agent-loader_ 0.6_all. deb agent-loader_ 0.6_all. deb lxd-agent-loader all 0.6 [4074 B] agent-loader_ 0.6_all. deb ...
$ lxc exec v1 -- ssh-import-id sdeziel
$ ssh <email address hidden> apt-get install /tmp/lxd-
Warning: Permanently added 'v1.lxd' (ED25519) to the list of known hosts.
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be upgraded:
lxd-agent-loader
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4074 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /tmp/lxd-
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
(Reading database ... 65520 files and directories currently installed.)
Preparing to unpack .../lxd-
Unpacking lxd-agent-loader (0.6) over (0.5) ...
Setting up lxd-agent-loader (0.6) ...
...
```
Confirm `lxc exec` still works:
```
$ lxc exec v1 -- hostname
v1
```
Confirm the `lxd-agent` was bounced during the package upgrade:
```
$ lxc exec v1 -- journalctl -u lxd-agent
...
Jan 12 15:13:27 v1 systemd[1]: Started lxd-agent.service - LXD - agent.
Jan 12 15:13:50 v1 systemd[1]: Stopping lxd-agent.service - LXD - agent...
Jan 12 15:13:50 v1 systemd[1]: lxd-agent.service: Deactivated successfully.
Jan 12 15:13:50 v1 systemd[1]: Stopped lxd-agent.service - LXD - agent.
Jan 12 15:13:50 v1 systemd[1]: Starting lxd-agent.service - LXD - agent...
Jan 12 15:13:51 v1 systemd[1]: Started lxd-agent.service - LXD - agent.
```