Skip to content

Commit

Permalink
Merge pull request #26 from dtantsur/oc-sync
Browse files Browse the repository at this point in the history
Sync from metal3-io/ironic-agent-image
  • Loading branch information
openshift-merge-robot committed Dec 14, 2021
2 parents 1f83bf7 + 7efea31 commit b4a7880
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 27 deletions.
6 changes: 4 additions & 2 deletions Dockerfile.ocp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG EXTRA_PKGS_LIST
ARG PATCH_LIST

COPY ${PKGS_LIST}* ${EXTRA_PKGS_LIST:-$PKGS_LIST} ${PATCH_LIST:-$PKGS_LIST} /tmp/
COPY prepare-image.sh patch-image.sh runironicagent /bin/
COPY prepare-image.sh patch-image.sh /bin/

RUN prepare-image.sh && \
mkdir -p /etc/ironic-python-agent && \
Expand All @@ -15,4 +15,6 @@ COPY hardware_manager /tmp/hardware_manager

RUN PBR_VERSION=1.0 pip3 install --no-index --verbose --prefix=/usr /tmp/hardware_manager

ENTRYPOINT ["/bin/runironicagent"]
COPY ironic-python-agent.conf /etc/ironic-python-agent/00-defaults.conf

ENTRYPOINT ["ironic-python-agent", "--config-dir", "/etc/ironic-python-agent"]
6 changes: 4 additions & 2 deletions Dockerfile.okd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG EXTRA_PKGS_LIST
ARG PATCH_LIST

COPY ${PKGS_LIST}* ${EXTRA_PKGS_LIST:-$PKGS_LIST} ${PATCH_LIST:-$PKGS_LIST} /tmp/
COPY prepare-image.sh patch-image.sh runironicagent /bin/
COPY prepare-image.sh patch-image.sh /bin/

# Configure OpenStack repos
RUN dnf install --setopt=install_weak_deps=False --setopt=tsflags=nodocs -y python3 python3-requests && \
Expand All @@ -19,4 +19,6 @@ COPY hardware_manager /tmp/hardware_manager

RUN PBR_VERSION=1.0 pip3 install --no-index --verbose --prefix=/usr /tmp/hardware_manager

ENTRYPOINT ["/bin/runironicagent"]
COPY ironic-python-agent.conf /etc/ironic-python-agent/00-defaults.conf

ENTRYPOINT ["ironic-python-agent", "--config-dir", "/etc/ironic-python-agent"]
9 changes: 2 additions & 7 deletions hardware_manager/ironic_coreos_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,12 @@
import subprocess

from ironic_lib import disk_utils
from ironic_python_agent import efi_utils
from ironic_python_agent import errors
from ironic_python_agent import hardware
from oslo_log import log
import tenacity

# Handle https://review.opendev.org/c/openstack/ironic-python-agent/+/815651
try:
from ironic_python_agent.efi_utils import manage_uefi
except ImportError:
from ironic_python_agent.extensions.image import _manage_uefi \
as manage_uefi

LOG = log.getLogger()

Expand Down Expand Up @@ -104,7 +99,7 @@ def install_coreos(self, node, ports):
boot = hardware.dispatch_to_managers('get_boot_info')
if boot.current_boot_mode == 'uefi':
LOG.info('Configuring UEFI boot from device %s', root)
manage_uefi(root)
efi_utils.manage_uefi(root)

LOG.info('Successfully installed via CoreOS installer on device %s',
root)
Expand Down
8 changes: 8 additions & 0 deletions ironic-python-agent.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[DEFAULT]
debug = True
log_file = /var/log/ironic-python-agent.log
use_stderr = True

collect_lldp = True
inspection_collectors = default,extra-hardware,logs
inspection_dhcp_all_interfaces = True
16 changes: 0 additions & 16 deletions runironicagent

This file was deleted.

0 comments on commit b4a7880

Please sign in to comment.