SHA256
1
0
forked from pool/lxd

Accepting request 877356 from Virtualization:containers

OBS-URL: https://build.opensuse.org/request/show/877356
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lxd?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2021-03-06 20:19:13 +00:00 committed by Git OBS Bridge
commit 5f9e80b6e1
7 changed files with 74 additions and 21 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d70bb0a07b6b343b1ff4b06f62d11147d205b30a808abc13978ea18ebed8fdd
size 14903268

View File

@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEYC9WdmPlk7y9FPM4xjiXTWR5LWcFAmAcY5gACgkQxjiXTWR5
LWfSGA//XvggdoBCYETNspkZjaQurnZ8JFFnAz8WncEGMoD27iGdaeydM2JG1RzZ
WEd/ql13Ee3ZwQNCJtwVMgasubi8FxUsAjlumJey85VMqzYauMGY6bBO/xpj+Lkb
Kr2YOaJR/rw0GfiIgUi7MiDlnZ5oBj5HR7TldFzU52h8+fCPeYorkFkzaxiLwlTr
Cvrw2aQVdmpMKdouNfcwQHtjpLDkMiF8+/zDbHTF/1oaXUYvypQcUcNDS5qNTBIZ
MbXWK/0QyhFGztIVyqo3gkYKLsjhX8u6UboEYohTuAwnMDdOim7mTMjY9PWMdYmV
OlTCH04mMKZd1+TVSJOYCUXKbUmMrTcfTJjrUB1p+k9E45OzdG5k2yWIhNLGSu5w
IauvSYT7vinQmIRzRufVp3pEkbijrzeJ3+vj+mZUcLq1q+jk+5QeyIfJC3tmYkkR
w7Q1LhHBcpMJqLi4h1dt6QSrcB3yqkhVEy7SOR6wvoTcepN62tgqIfOXT6IM0EJA
jnWOwTvis0j0FQ4qdsJJaGyOF/lkkU9sZrPZX6LAIMx1oBYkpKnoW4hvZIJ57PiT
pqnVLz8/YEkXRyfPlSlBIA+D2p5YlfHnUM8CN3ykW8np8EqwVw21X08iVgtfmJ8A
tK6Gbzeet3up0EhEolrYyTLMkbdRHNS5lNdb8kxKJMN1n87WbuE=
=KQZ7
-----END PGP SIGNATURE-----

3
lxd-4.12.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c5b87eb20e49f11084afb29224b6bad7a69bbdd8eaa99941c106149234bf1e1
size 15605223

16
lxd-4.12.tar.gz.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEYC9WdmPlk7y9FPM4xjiXTWR5LWcFAmBBpE4ACgkQxjiXTWR5
LWeNbQ/9EPt6OCvZVapdnByQJEaOjqru5sxXJXUppcVSZJ39jM/W5uA3emoJzUhZ
+H3p93AYlVqYr7yNA1d2ZFJeejzvV9QONZqeL917+EnIOSy+BnNrqc/Sxxqu3J89
D3Zbauejm31U+v5C1FaJrIXiO5wn3vmCcYfRCI/PVj9F4I/m/NvnDRm7zSlRAqzK
9LgFKi5lDwr02iejYNM4eikLpU80a6zjxo3ymoDTpKEJhPPHaDDN2Djr6Vri1Fsp
EuqijPawdTwDy2hoZQbcbgiGtVwqJfvP1YGgmgdmkwoW9wdItuGNTq+q4kZDBXi7
hTkOtkDg+l4gbWe2ZqUcd0kBlVPRbs2tdrAiBGbgfed561+hwpgqA8FGxLqZltzc
3+in2VdZmbJPfpz0aiulfAfTZdyfKPTUKdlFfH6Uu3UJkM4eN9FLu/Dvk4VlcLxI
FMRlAIulquXZ6ZpW6tlX13M795nqukjaJ8LbJ0ztMGMIsgNVgNrtIOdwJ26e8g/y
jR/kG0IxUEfmWQY/QW8j8v96a+/YqHdIiS5HXf0G2fKk6G6w7hBOH+tedYxQcneg
ZFnt3cjT2BslReryIuSs4Mcr+mFp1j1hR0QjcT9CopAysNJe8/qBSIcjz42skBHc
M05GDjwOiwIfgp+YKYuBvpswndnoNpwR7p++Ncan70GeSM3uXkw=
=4mxK
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Fri Mar 5 16:31:52 UTC 2021 - Aleksa Sarai <asarai@suse.com>
- Update to LXD 4.12. The full upstream changelog is available from:
https://discuss.linuxcontainers.org/t/lxd-4-12-has-been-released/10424
boo#1183111
+ Initial Network ACLs support (OVN-only)
+ Project restricted certificates
+ Server configuration options now supported at the project level
+ Configuration option for Ceph features
* Projects now supported by lxd init --dump and --preseed
* Initial auto-generated REST-API documentation
+ VM: Stateful stop and stateful snapshots for virtual machines
- Updated packaging to support VMs, though note that LXD's usage of QEMU causes
issues with QEMU 5.2 on openSUSE (because of how we package it). See
<https://github.com/lxc/lxd/issues/8416> for more details. bsc#1181549
- Prefix all binaries with lxd- if they don't start with "lx[cd]". This is to
avoid having cases like lxd-generate where there's a binary in /usr/bin that
has a super-generic name.
-------------------------------------------------------------------
Fri Feb 5 07:41:04 UTC 2021 - Aleksa Sarai <asarai@suse.com>

View File

@ -5,6 +5,7 @@ Requires=network-online.target lxcfs.service
Documentation=man:lxd(1)
[Service]
Environment=LXD_OVMF_PATH=/opt/lxd/ovmf
ExecStart=/usr/bin/lxd --group=lxd --logfile=/var/log/lxd/lxd.log
ExecStartPost=/usr/bin/lxd waitready --timeout=600
TimeoutStartSec=600s

View File

@ -22,8 +22,10 @@
%define _buildshell /bin/bash
%define import_path github.com/lxc/lxd
%define lxd_optdir /opt/lxd
Name: lxd
Version: 4.11
Version: 4.12
Release: 0
Summary: Container hypervisor based on LXC
License: Apache-2.0
@ -67,6 +69,17 @@ Requires: rsync
Requires: squashfs
Requires: tar
Requires: xz
# Needed for VM support.
Requires: qemu-ovmf-x86_64
BuildRequires: qemu-ovmf-x86_64
# QEMU spice became a separate package for QEMU 5.2, which is not in Leap 15.2.
# But it exists in Tumbleweed so only require this in Tumbleweed.
%if 0%{?suse_version} > 1500 || 0%{?sle_version} == 150300
Requires: qemu-ui-spice-core
%else
Requires: qemu-ui-spice-app
%endif
Requires: qemu-x86
# Storage backends -- we don't recommend ZFS since it's not *technically* a
# blessed configuration.
Recommends: lvm2
@ -158,7 +171,12 @@ export GOPATH="$GOPATH:$PKGDIR/_dist"
mkdir bin
for mainpkg in "${mainpkgs[@]}"
do
# Make sure all binaries *except* "lxc" have an lxd- prefix.
binary="$(basename "$mainpkg")"
if ( echo "$binary" | grep -Eqv '^lx[cd].*$' )
then
binary="lxd-$binary"
fi
(
# We need to link against our particular dylib deps.
export \
@ -231,6 +249,7 @@ done
mkdir man
./bin/lxc manpage man/
# Final sanity-check during build.
pushd bin/
for bin in *
do
@ -283,6 +302,15 @@ install -D -m 0644 %{S:201} %{buildroot}%{_sysconfdir}/dnsmasq.d/60-lxd.conf
install -d -m 0711 %{buildroot}%{_localstatedir}/lib/%{name}
install -d -m 0755 %{buildroot}%{_localstatedir}/log/%{name}
# In order for VM support in LXD to function, you need to have OVMF configured
# in the way it expects. In particular, LXD depends on specific filenames for
# the firmware files so we create fake ones with symlinks.
export OVMF_DIR="%{buildroot}%{lxd_optdir}/ovmf"
mkdir -p "$OVMF_DIR"
ln -s %{_datarootdir}/qemu/ovmf-x86_64-ms-code.bin "$OVMF_DIR/OVMF_CODE.fd"
ln -s %{_datarootdir}/qemu/ovmf-x86_64-ms-vars.bin "$OVMF_DIR/OVMF_VARS.ms.fd"
ln -s %{_datarootdir}/qemu/ovmf-x86_64-vars.bin "$OVMF_DIR/OVMF_VARS.fd"
%fdupes %{buildroot}
%pre
@ -331,13 +359,15 @@ grep -q '^root:' /etc/subgid || \
%defattr(-,root,root)
%doc AUTHORS README.md doc/
%license COPYING
%{_bindir}/*
%{_bindir}/lx{c,d}*
%{_mandir}/man*/*
%{_libdir}/%{name}
%{_sbindir}/rc%{name}
%{_unitdir}/%{name}.service
%{lxd_optdir}
%dir %{_localstatedir}/lib/%{name}
%dir %{_localstatedir}/log/%{name}