Skip to content

Commit a9f759d

Browse files
Antony Messerlimarkgoddard
authored andcommitted
Adds python3-systemd for ansible deploy interface
When doing a source install, ironic doesn't have python3-systemd as a dependency and the current ironic-conductor container doesn't install the required dependencies which causes the ansible deploy interface to fail with the error, "Systemd bindings do not exist". This adds the needed dependencies when doing a source build. This installs the needed files for both rpm and deb builds on python 2.x and 3.x. Change-Id: I5d1bcb0f7d7902b4e122c12697483433bcf52ca2 Closes-Bug: #1861427 (cherry picked from commit 4a67e58)
1 parent b12db74 commit a9f759d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docker/ironic/ironic-conductor/Dockerfile.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
9797
] %}
9898
{% if distro_python_version.startswith('3') %}
9999
{% set ironic_conductor_packages = ironic_conductor_packages + [
100+
'python3-systemd',
100101
'systemd-udev',
101102
] %}
102103
{% else %}
103104
{% set ironic_conductor_packages = ironic_conductor_packages + [
105+
'systemd-python',
104106
'systemd',
105107
] %}
106108
{% endif %}
@@ -113,6 +115,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
113115
'ipmitool',
114116
'parted',
115117
'psmisc',
118+
'python-systemd',
116119
'qemu-utils',
117120
'shellinabox',
118121
'udev',
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Adds python3-systemd package to ironic-conductor source based
5+
container to allow the Ansible deploy interface to function
6+
correctly. Fixes bug #1861427

0 commit comments

Comments
 (0)