|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
|
Name: testcloud
|
|
|
|
|
# Update also version in testcloud/__init__.py and docs/source/conf.py when changing this!
|
|
|
|
|
Version: 0.5.0
|
|
|
|
|
Version: 0.7.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Tool for running cloud images locally
|
|
|
|
|
|
|
|
|
@@ -8,9 +8,7 @@ License: GPLv2+
|
|
|
|
|
URL: https://pagure.io/testcloud
|
|
|
|
|
Source0: https://releases.pagure.org/testcloud/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
# ExclusiveArch: kernel_arches is not possible on F32... Let's exclude i686 as it doesn't have the kernel
|
|
|
|
|
ExcludeArch: i686
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{kernel_arches} noarch
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
# Ensure we can create the testcloud group
|
|
|
|
@@ -33,12 +31,11 @@ Summary: Python 3 interface to testcloud
|
|
|
|
|
|
|
|
|
|
Obsoletes: python2-testcloud <= %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
BuildRequires: bash-completion
|
|
|
|
|
BuildRequires: python3-libvirt
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-jinja2
|
|
|
|
|
BuildRequires: python3-mock
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-pytest-cov
|
|
|
|
|
BuildRequires: python3-requests
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
|
@@ -47,6 +44,8 @@ Requires: libguestfs-tools-c
|
|
|
|
|
Requires: python3-requests
|
|
|
|
|
Requires: python3-libvirt
|
|
|
|
|
Requires: python3-jinja2
|
|
|
|
|
Requires: python3-libguestfs
|
|
|
|
|
Recommends: fcct
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{name}
|
|
|
|
|
Python 3 interface to testcloud.
|
|
|
|
@@ -57,6 +56,8 @@ getent group testcloud >/dev/null || groupadd testcloud
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
# Drop coverage testing
|
|
|
|
|
sed -i 's/ --cov-report=term-missing --cov testcloud//g' tox.ini
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
@@ -88,8 +89,12 @@ install -d %{buildroot}/%{_sharedstatedir}/testcloud/instances
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/polkit-1/rules.d
|
|
|
|
|
install conf/99-testcloud-nonroot-libvirt-access.rules %{buildroot}%{_sysconfdir}/polkit-1/rules.d/99-testcloud-nonroot-libvirt-access.rules
|
|
|
|
|
|
|
|
|
|
# Copy bash completion script
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
|
|
|
|
|
install conf/testcloud-bash %{buildroot}%{_datadir}/bash-completion/completions/testcloud
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
%pytest
|
|
|
|
|
# Remove compiled .py files from /etc after os_install_post
|
|
|
|
|
rm -f %{buildroot}%{_sysconfdir}/testcloud/*.py{c,o}
|
|
|
|
|
rm -rf %{buildroot}%{_sysconfdir}/testcloud/__pycache__
|
|
|
|
@@ -109,12 +114,99 @@ rm -rf %{buildroot}%{_sysconfdir}/testcloud/__pycache__
|
|
|
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/testcloud/settings.py
|
|
|
|
|
%{_bindir}/testcloud
|
|
|
|
|
%{_bindir}/t7d
|
|
|
|
|
%{_datadir}/bash-completion/completions/testcloud
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{name}
|
|
|
|
|
%{python3_sitelib}/testcloud
|
|
|
|
|
%{python3_sitelib}/*.egg-info
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu May 05 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.7.1-1
|
|
|
|
|
- Try qemu-kvm if there is nothing else...
|
|
|
|
|
|
|
|
|
|
* Mon May 02 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.7.0-1
|
|
|
|
|
- non-x86 support
|
|
|
|
|
- cli: Fixup crash on vm start in connection tip
|
|
|
|
|
- Handle missing testcloud group also while creating instances from local image
|
|
|
|
|
|
|
|
|
|
* Thu Jan 27 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.6.4-1
|
|
|
|
|
- fix selinux detection for image context (olichtne)
|
|
|
|
|
- Drop dependency on python-mock
|
|
|
|
|
- Drop coverage testing in rpm build
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Dec 01 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.6.3-1
|
|
|
|
|
- Drop Atomic Host
|
|
|
|
|
- Simplify cli codepath, use cloud-user by default
|
|
|
|
|
- cli: allow to spearate OS version by "-"
|
|
|
|
|
- CentOS misc: improve error output on missing version
|
|
|
|
|
- Disable UseDNS, GSSAPI for faster SSH, allow ssh for root
|
|
|
|
|
- CentOS: Fix el7 based systems
|
|
|
|
|
- CentOS: update 7 build, add CentOS Stream 9
|
|
|
|
|
|
|
|
|
|
* Mon Sep 27 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.6.2-1
|
|
|
|
|
- Workaround EL8 bug - waiting for sshd restart with user sessions
|
|
|
|
|
- Add a basic integration test and plan for tmt
|
|
|
|
|
- Fixes around backingstore cleanups
|
|
|
|
|
- get_fedora_image_url: Proper support for branched, cleanups
|
|
|
|
|
- get_fedora_image_url: Add info when user asks for wrong version
|
|
|
|
|
- Don't use hammer solution to all Vagrant boxes, force-install cloud-init to known broken images
|
|
|
|
|
- non-x86_64 support preparations and downloader code
|
|
|
|
|
- Don't rely on working qemu://system
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 21 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.6.1-1
|
|
|
|
|
- Add wait and retry around dom.create()
|
|
|
|
|
- lazy_refcounts=on and cache=unsafe
|
|
|
|
|
- Bash completion (by lbrabec)
|
|
|
|
|
- Let's have also short t7d binary
|
|
|
|
|
- Add long project description for pypi
|
|
|
|
|
- Style: Let's not have lines with hundreds of characters...
|
|
|
|
|
- API: Add reboot function
|
|
|
|
|
- FileLock: Make sure we don't overwrite config_data.DATA_DIR
|
|
|
|
|
- Fix systems using systemd-networkd in user session mode
|
|
|
|
|
|
|
|
|
|
* Fri Jul 09 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.6.0-1
|
|
|
|
|
- SPEC: Use pytest macro
|
|
|
|
|
- Merge downstream spec changes
|
|
|
|
|
- README: Let's believe in testcloud a bit more 😎
|
|
|
|
|
- Simplify cli warning wording a bit
|
|
|
|
|
- Remove forced reboot from cli for CentOS user sessions
|
|
|
|
|
- API: Allow to specify pci network device
|
|
|
|
|
- README: improve a tiny bit
|
|
|
|
|
- Make url mandatory, cleanup cli instance create a bit
|
|
|
|
|
- Allow to specify number of CPU cores to be assigned
|
|
|
|
|
- Change cli layout for instance create a bit (A LOT 😱 )
|
|
|
|
|
- get_debian_image_url: return None on fail
|
|
|
|
|
- Add a way to shutdown vms in a graceful way
|
|
|
|
|
- use if hasattr insteadd of try/except AttributeError
|
|
|
|
|
- Use virtio-net-pci instead of e1000 for hostfwd in qemu user sessions
|
|
|
|
|
- implement synchronization using file lock for user sessions
|
|
|
|
|
- Don't directly alter config_object, use a copy of it
|
|
|
|
|
- Fixup CentOS short handle
|
|
|
|
|
- Support Ubuntu and Debian images
|
|
|
|
|
- Update url for oraculum
|
|
|
|
|
- Bunch of code shuffling
|
|
|
|
|
- Bunch of improvements for get_fedora_image_url
|
|
|
|
|
- Fixup traceback for unknown distributions on un-defined variable
|
|
|
|
|
- Fixups around system x session instances handling
|
|
|
|
|
- Dont blow out traceback on image download 404, fixup connection tooltip for CentOS
|
|
|
|
|
- Support fetching the latest Fedora Rawhide iso as fedora:rawhide url
|
|
|
|
|
- Support CentOS and CentOS Stream versions (hardcoded urls)
|
|
|
|
|
- Support operating with Vagrant images
|
|
|
|
|
- check whether the instance existing before do the prepare work
|
|
|
|
|
- Make the code more robust
|
|
|
|
|
- Make list and clean functions more robust to handle both system and user sessions
|
|
|
|
|
- add coreos test function
|
|
|
|
|
|
|
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.5.0-2
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
* Mon Mar 22 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.5.0-1
|
|
|
|
|
- Fix crash in _handle_connection_tip
|
|
|
|
|
- Allow to create an instance without specifying a name
|
|
|
|
|