update to 7.0.1
This commit is contained in:
parent
f46d9740e3
commit
eb88d1df44
BIN
ironic-python-agent-7.0.1.tar.gz
Normal file
BIN
ironic-python-agent-7.0.1.tar.gz
Normal file
Binary file not shown.
@ -1,3 +1,3 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
use_stderr = True
|
use_stderr = True
|
||||||
use_journal = True
|
use_journal = True
|
||||||
Binary file not shown.
@ -1,14 +1,12 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=OpenStack Ironic Python Agent
|
Description=Ironic Python Agent
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/ironic-python-agent --config-dir /etc/ironic-python-agent --config-dir /etc/ironic-python-agent.conf.d/
|
ExecStart=/usr/bin/ironic-python-agent --config-dir /etc/ironic-python-agent
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=30s
|
RestartSec=30s
|
||||||
StandardOutput=kmsg+console
|
StandardOutput=tty
|
||||||
StandardError=inherit
|
StandardError=inherit
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@ -1,139 +1,162 @@
|
|||||||
%if 0%{?rhel} || 0%{?fedora}
|
%{?!_licensedir:%global license %%doc}
|
||||||
%global rdo 1
|
%{!?upstream_version: %global upstream_version %{version}}
|
||||||
%endif
|
|
||||||
%if 0%{?rhel} == 7
|
|
||||||
%global skip_python3 1
|
|
||||||
%endif
|
|
||||||
%global with_doc 1
|
%global with_doc 1
|
||||||
Name: openstack-ironic-python-agent
|
%global sname ironic-python-agent
|
||||||
Version: 6.4.4
|
|
||||||
Release: 0.1.dev1%{?dist}
|
Name: openstack-ironic-python-agent
|
||||||
Summary: Ironic Python Agent Ramdisk
|
Summary: A python agent for provisioning and deprovisioning bare metal servers
|
||||||
License: ASL 2.0
|
Version: 7.0.1
|
||||||
URL: https://launchpad.net/ironic-python-agent
|
Release: 1
|
||||||
Source0: ironic-python-agent-stable-victoria.tar.gz
|
License: ASL 2.0
|
||||||
Source1: openstack-ironic-python-agent.defaultconf
|
URL: https://github.com/openstack/ironic-python-agent
|
||||||
Source20: openstack-ironic-python-agent.service
|
|
||||||
BuildRequires: openstack-macros
|
Source0: https://tarballs.openstack.org/%{sname}/%{sname}-%{upstream_version}.tar.gz
|
||||||
BuildRequires: python3-pint
|
Source1: openstack-ironic-python-agent.service
|
||||||
BuildRequires: python3-werkzeug
|
Source2: ironic-python-agent-dist.conf
|
||||||
BuildRequires: python3-eventlet
|
# Required for tarball sources verification
|
||||||
BuildRequires: python3-ironic-lib
|
|
||||||
BuildRequires: python3-mock
|
BuildArch: noarch
|
||||||
BuildRequires: python3-netifaces
|
|
||||||
BuildRequires: python3-oslo-concurrency
|
# Required for tarball sources verification
|
||||||
BuildRequires: python3-oslo-config
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-oslo-log
|
|
||||||
BuildRequires: python3-oslo-serialization
|
|
||||||
BuildRequires: python3-oslo-service
|
|
||||||
BuildRequires: python3-oslo-utils
|
|
||||||
BuildRequires: python3-oslotest
|
|
||||||
BuildRequires: python3-pbr
|
BuildRequires: python3-pbr
|
||||||
BuildRequires: python3-psutil
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-pyudev
|
|
||||||
BuildRequires: python3-requests
|
|
||||||
BuildRequires: python3-rtslib
|
|
||||||
BuildRequires: python3-stestr
|
|
||||||
BuildRequires: python3-stevedore
|
|
||||||
Requires: python3-ironic-python-agent = %{version}-%{release}
|
|
||||||
BuildArch: noarch
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
BuildRequires: systemd-rpm-macros
|
|
||||||
%{?systemd_requires}
|
|
||||||
%else
|
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
Requires(post): systemd
|
# These packages are required for running unit tests
|
||||||
Requires(postun): systemd
|
BuildRequires: python3-cryptography
|
||||||
Requires(preun): systemd
|
BuildRequires: python3-eventlet
|
||||||
%endif
|
BuildRequires: python3-ironic-lib
|
||||||
|
BuildRequires: python3-iso8601
|
||||||
|
BuildRequires: python3-mock
|
||||||
|
BuildRequires: python3-oslo-config
|
||||||
|
BuildRequires: python3-oslo-concurrency
|
||||||
|
BuildRequires: python3-oslo-log
|
||||||
|
BuildRequires: python3-oslo-serialization
|
||||||
|
BuildRequires: python3-oslo-service
|
||||||
|
BuildRequires: python3-oslo-utils
|
||||||
|
BuildRequires: python3-oslotest
|
||||||
|
BuildRequires: python3-pecan
|
||||||
|
BuildRequires: python3-psutil
|
||||||
|
BuildRequires: python3-requests
|
||||||
|
BuildRequires: python3-stevedore
|
||||||
|
BuildRequires: python3-werkzeug
|
||||||
|
BuildRequires: openstack-macros
|
||||||
|
BuildRequires: python3-stestr
|
||||||
|
BuildRequires: python3-netifaces
|
||||||
|
BuildRequires: python3-pint
|
||||||
|
BuildRequires: python3-pyudev
|
||||||
|
BuildRequires: python3-rtslib
|
||||||
|
BuildRequires: python3-tenacity
|
||||||
|
|
||||||
|
Requires: python3-ironic-python-agent = %{version}-%{release}
|
||||||
|
%{?systemd_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The ironic-python-agent works with the agent driver in Ironic to provision the node.
|
An agent for controlling and deploying Ironic controlled bare metal nodes.
|
||||||
Starting with ironic-python-agent running on a ramdisk on the unprovisioned node,
|
|
||||||
Ironic makes API calls to ironic-python-agent to provision the machine.
|
The ironic-python-agent works with the agent driver in Ironic to provision the
|
||||||
|
node. Starting with ironic-python-agent running on a ramdisk on the
|
||||||
|
unprovisioned node, Ironic makes API calls to ironic-python-agent to provision
|
||||||
|
the machine. This allows for greater control and flexibility of the entire
|
||||||
|
deployment process.
|
||||||
|
|
||||||
|
The ironic-python-agent may also be used with the original Ironic pxe drivers
|
||||||
|
as of the Kilo OpenStack release.
|
||||||
|
|
||||||
%package -n python3-ironic-python-agent
|
%package -n python3-ironic-python-agent
|
||||||
Summary: Ironic Python Agent Ramdisk - Python module
|
Summary: Python library for the ironic python agent.
|
||||||
Group: Development/Languages/Python
|
%{?python_provide:%python_provide python3-ironic-python-agent}
|
||||||
Requires: python3-pint
|
|
||||||
Requires: python3-werkzeug
|
Requires: python3-cryptography >= 2.3
|
||||||
Requires: python3-eventlet
|
Requires: python3-eventlet >= 0.18.2
|
||||||
Requires: python3-ironic-lib
|
Requires: python3-ironic-lib >= 4.5.0
|
||||||
Requires: python3-netifaces
|
Requires: python3-netifaces >= 0.10.4
|
||||||
Requires: python3-oslo-concurrency
|
Requires: python3-oslo-concurrency >= 3.26.0
|
||||||
Requires: python3-oslo-config
|
Requires: python3-oslo-config >= 2:5.2.0
|
||||||
Requires: python3-oslo-log
|
Requires: python3-oslo-log >= 3.36.0
|
||||||
Requires: python3-oslo-serialization
|
Requires: python3-oslo-serialization >= 2.18.0
|
||||||
Requires: python3-oslo-service
|
Requires: python3-oslo-service >= 1.24.0
|
||||||
Requires: python3-oslo-utils
|
Requires: python3-oslo-utils >= 3.33.0
|
||||||
Requires: python3-pbr
|
Requires: python3-pbr >= 2.0.0
|
||||||
Requires: python3-psutil
|
Requires: python3-pint >= 0.5
|
||||||
Requires: python3-pyudev
|
Requires: python3-psutil >= 3.2.2
|
||||||
Requires: python3-requests
|
Requires: python3-pyudev >= 0.18
|
||||||
Requires: python3-rtslib
|
Requires: python3-requests >= 2.14.2
|
||||||
Requires: python3-stevedore
|
Requires: python3-rtslib >= 2.1.65
|
||||||
|
Requires: python3-stevedore >= 1.20.0
|
||||||
|
Requires: python3-systemd
|
||||||
|
Requires: python3-werkzeug >= 1.0.1
|
||||||
|
Requires: python3-tenacity >= 6.2.0
|
||||||
|
|
||||||
|
Requires: network-scripts
|
||||||
|
|
||||||
%description -n python3-ironic-python-agent
|
%description -n python3-ironic-python-agent
|
||||||
The ironic-python-agent works with the agent driver in Ironic to provision the node.
|
Python library for ironic python agent.
|
||||||
Starting with ironic-python-agent running on a ramdisk on the unprovisioned node,
|
|
||||||
Ironic makes API calls to ironic-python-agent to provision the machine.
|
|
||||||
|
|
||||||
This package contains the Python module.
|
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
%if 0%{?with_doc}
|
||||||
%package doc
|
%package -n python-ironic-python-agent-doc
|
||||||
Summary: Ironic Python Agent Ramdisk - Documentation
|
Summary: Documentation for ironic python agent.
|
||||||
Group: Documentation/HTML
|
BuildRequires: python3-sphinx
|
||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinxcontrib-apidoc
|
||||||
BuildRequires: python3-openstackdocstheme
|
BuildRequires: python3-sphinxcontrib-httpdomain
|
||||||
BuildRequires: python3-sphinxcontrib-apidoc
|
BuildRequires: python3-sphinxcontrib-pecanwsme
|
||||||
BuildRequires: python3-sphinxcontrib-httpdomain
|
BuildRequires: python3-openstackdocstheme
|
||||||
BuildRequires: python3-sphinxcontrib-pecanwsme
|
|
||||||
|
|
||||||
%description doc
|
%description -n python-ironic-python-agent-doc
|
||||||
The ironic-python-agent works with the agent driver in Ironic to provision the node.
|
Documentation for ironic python agent.
|
||||||
Starting with ironic-python-agent running on a ramdisk on the unprovisioned node,
|
|
||||||
Ironic makes API calls to ironic-python-agent to provision the machine.
|
|
||||||
|
|
||||||
This package contains the documentation.
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n ironic-python-agent-6.4.4.dev1
|
%autosetup -v -p1 -n ironic-python-agent-%{upstream_version}
|
||||||
|
|
||||||
|
# Remove the requirements file so that pbr hooks don't add it
|
||||||
|
# to distutils requires_dist config
|
||||||
%py_req_cleanup
|
%py_req_cleanup
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{py3_build}
|
%{py3_build}
|
||||||
|
|
||||||
# config file generation
|
|
||||||
mkdir -p etc/ironic_python_agent
|
|
||||||
PYTHONPATH=. oslo-config-generator --config-file=tools/config/ipa-config-generator.conf
|
|
||||||
|
|
||||||
# build documentation
|
|
||||||
%if 0%{?with_doc}
|
|
||||||
PBR_VERSION=6.4.4.dev1 sphinx-build -b html doc/source doc/build/html
|
|
||||||
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{py3_install}
|
%{py3_install}
|
||||||
|
|
||||||
# Setup directories
|
%if 0%{?with_doc}
|
||||||
install -d -m 750 %{buildroot}%{_localstatedir}/{lib,log,cache}/ironic-python-agent
|
export PBR_VERSION=%{version}
|
||||||
install -d -m 755 %{buildroot}%{_sysconfdir}/ironic-python-agent
|
export PYTHONPATH=.
|
||||||
install -d -m 755 %{buildroot}%{_sysconfdir}/ironic-python-agent/ironic-python-agent.conf.d
|
sphinx-build -b html -d doc/build/doctrees doc/source doc/build/html
|
||||||
|
# Remove build docs leftovers
|
||||||
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
||||||
|
%endif
|
||||||
|
|
||||||
# install config files
|
# install systemd scripts
|
||||||
install -p -D -m 644 etc/ironic_python_agent/ironic_python_agent.conf.sample %{buildroot}%{_sysconfdir}/ironic-python-agent/ironic-python-agent.conf
|
mkdir -p %{buildroot}%{_unitdir}
|
||||||
install -p -D -m 640 %{SOURCE1} %{buildroot}%{_sysconfdir}/ironic-python-agent/ironic-python-agent.conf.d/010-ironic-python-agent.conf
|
install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
|
||||||
|
|
||||||
# install systemd service files
|
# Install distribution config
|
||||||
install -p -D -m 644 %{SOURCE20} %{buildroot}%{_unitdir}/openstack-ironic-python-agent.service
|
install -p -D -m 640 %{SOURCE2} %{buildroot}/%{_sysconfdir}/ironic-python-agent/ironic-python-agent-dist.conf
|
||||||
|
|
||||||
# install symlinks on SUSE
|
%check
|
||||||
%if 0%{?suse_version}
|
|
||||||
mkdir -p %{buildroot}%{_sbindir}
|
export PYTHON=%{__python3}
|
||||||
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
stestr --test-path ironic_python_agent/tests/unit run
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%config(noreplace) %attr(-,root,root) %{_sysconfdir}/ironic-python-agent
|
||||||
|
%{_bindir}/ironic-python-agent
|
||||||
|
%{_bindir}/ironic-collect-introspection-data
|
||||||
|
%{_unitdir}/openstack-ironic-python-agent.service
|
||||||
|
|
||||||
|
%files -n python3-ironic-python-agent
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitelib}/ironic_python_agent
|
||||||
|
%{python3_sitelib}/ironic_python_agent*.egg-info
|
||||||
|
|
||||||
|
%if 0%{?with_doc}
|
||||||
|
%files -n python-ironic-python-agent-doc
|
||||||
|
%doc doc/build/html
|
||||||
|
%license LICENSE
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -145,33 +168,10 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
|||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart openstack-ironic-python-agent.service
|
%systemd_postun_with_restart openstack-ironic-python-agent.service
|
||||||
|
|
||||||
%check
|
|
||||||
stestr --test-path ironic_python_agent/tests/unit run || :
|
|
||||||
|
|
||||||
%files
|
|
||||||
%license LICENSE
|
|
||||||
%dir %attr(0750, root, root) %{_sysconfdir}/ironic-python-agent
|
|
||||||
%dir %attr(0750, root, root) %{_sysconfdir}/ironic-python-agent/ironic-python-agent.conf.d
|
|
||||||
%config(noreplace) %attr(0640, root, root) %{_sysconfdir}/ironic-python-agent/ironic-python-agent.conf
|
|
||||||
%config(noreplace) %attr(0640, root, root) %{_sysconfdir}/ironic-python-agent/ironic-python-agent.conf.d/010-ironic-python-agent.conf
|
|
||||||
%{_bindir}/ironic-python-agent
|
|
||||||
%{_bindir}/ironic-collect-introspection-data
|
|
||||||
%{_unitdir}/openstack-ironic-python-agent.service
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%{_sbindir}/rc%{name}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python3-ironic-python-agent
|
|
||||||
%license LICENSE
|
|
||||||
%{python3_sitelib}/ironic_python_agent
|
|
||||||
%{python3_sitelib}/ironic_python_agent-*.egg-info
|
|
||||||
|
|
||||||
%if 0%{?with_doc}
|
|
||||||
%files doc
|
|
||||||
%license LICENSE
|
|
||||||
%doc doc/build/html
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 26 2021 liksh <liks11@chinaunicom.cn> 7.0.1-1
|
||||||
|
- Update to 7.0.1
|
||||||
|
|
||||||
* Mon Feb 08 2021 zhaorenhai <zhaorenhai@hotmail.com>
|
* Mon Feb 08 2021 zhaorenhai <zhaorenhai@hotmail.com>
|
||||||
- Package Spec generated from rpm-packaging
|
- Package Spec generated from rpm-packaging
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user