ironic_inspector.pxe_filter.iptables - Executable not found: iptables (filter match = iptables)

Bug #1906635 reported by dou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Medium
Unassigned

Bug Description

host/container os:centos8

iptables seems not be installed in the container (image)

to reproduce build images from source using current kolla master and apply fixes from:
https://review.opendev.org/c/openstack/kolla/+/765146

INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Deleting /etc/ironic-inspector/inspector.conf
INFO:__main__:Copying /var/lib/kolla/config_files/inspector.conf to /etc/ironic-inspector/inspector.conf
INFO:__main__:Setting permission for /etc/ironic-inspector/inspector.conf
INFO:__main__:Writing out command to execute
++ cat /run_command
+ CMD='ironic-inspector --config-file /etc/ironic-inspector/inspector.conf'
+ ARGS=
+ sudo kolla_copy_cacerts
+ [[ ! -n '' ]]
+ . kolla_extend_start
++ LOG_PATH=/var/log/kolla/ironic-inspector
++ [[ ! -d /var/log/kolla/ironic-inspector ]]
+++ stat -c %a /var/log/kolla/ironic-inspector
++ [[ 2755 != \7\5\5 ]]
++ chmod 755 /var/log/kolla/ironic-inspector
++ [[ -n '' ]]
Running command: 'ironic-inspector --config-file /etc/ironic-inspector/inspector.conf'
+ echo 'Running command: '\''ironic-inspector --config-file /etc/ironic-inspector/inspector.conf'\'''
+ exec ironic-inspector --config-file /etc/ironic-inspector/inspector.conf
2020-12-02 18:28:12.090 6 INFO oslo.service.wsgi [-] ironic_inspector listening on 10.2.36.94:5050
2020-12-02 18:28:12.110 6 INFO eventlet.wsgi.server [-] (6) wsgi starting up on http://10.2.36.94:5050
2020-12-02 18:28:12.133 6 INFO ironic_inspector.conductor.manager [-] Introspection data will be stored in the database backend
2020-12-02 18:28:12.170 6 INFO ironic_inspector.conductor.manager [-] Enabled processing hooks: ['ramdisk_error', 'root_disk_selection', 'scheduler', 'validate_interfaces', 'capabilities', 'pci_devices', 'lldp_basic', 'local_link_connection']
2020-12-02 18:28:12.390 6 WARNING ironic_inspector.pxe_filter.iptables [-] iptables does not support -w flag, please update it to at least version 1.4.21: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.iptables [-] iptables ('-N', 'ironic-inspector') failed: Unexpected error while running command.
Command: sudo ironic-inspector-rootwrap /etc/ironic-inspector/rootwrap.conf iptables -N ironic-inspector
Exit code: 96
Stdout: ''
Stderr: '/usr/bin/ironic-inspector-rootwrap: Executable not found: iptables (filter match = iptables)\n': oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base [-] The PXE filter IptablesFilter, state=initialized encountered an exception: Unexpected error while running command.
Command: sudo ironic-inspector-rootwrap /etc/ironic-inspector/rootwrap.conf iptables -N ironic-inspector
Exit code: 96
Stdout: ''
Stderr: '/usr/bin/ironic-inspector-rootwrap: Executable not found: iptables (filter match = iptables)\n'; resetting the filter: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
Command: sudo ironic-inspector-rootwrap /etc/ironic-inspector/rootwrap.conf iptables -N ironic-inspector
Exit code: 96
Stdout: ''
Stderr: '/usr/bin/ironic-inspector-rootwrap: Executable not found: iptables (filter match = iptables)\n'
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base Traceback (most recent call last):
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base File "/usr/lib/python3.6/site-packages/ironic_inspector/pxe_filter/base.py", line 137, in fsm_reset_on_error
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base yield self.fsm
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base File "/usr/lib/python3.6/site-packages/ironic_inspector/pxe_filter/base.py", line 81, in inner
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base return method(self, *args, **kwargs)
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base File "/usr/lib/python3.6/site-packages/ironic_inspector/pxe_filter/iptables.py", line 92, in init_filter
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base self._iptables('-N', self.chain)
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base File "/usr/lib/python3.6/site-packages/ironic_inspector/pxe_filter/iptables.py", line 163, in _iptables
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base processutils.execute(*cmd)
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base File "/usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py", line 424, in execute
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base cmd=sanitized_cmd)
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base Command: sudo ironic-inspector-rootwrap /etc/ironic-inspector/rootwrap.conf iptables -N ironic-inspector
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base Exit code: 96
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base Stdout: ''
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base Stderr: '/usr/bin/ironic-inspector-rootwrap: Executable not found: iptables (filter match = iptables)\n'
2020-12-02 18:28:13.253 6 ERROR ironic_inspector.pxe_filter.base
2020-12-02 18:28:14.557 6 ERROR oslo_service.service [-] Error starting thread.: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
Command: sudo ironic-inspector-rootwrap /etc/ironic-inspector/rootwrap.conf iptables -N ironic-inspector
Exit code: 96
Stdout: ''
Stderr: '/usr/bin/ironic-inspector-rootwrap: Executable not found: iptables (filter match = iptables)\n'
2020-12-02 18:28:14.557 6 ERROR oslo_service.service Traceback (most recent call last):
2020-12-02 18:28:14.557 6 ERROR oslo_service.service File "/usr/lib/python3.6/site-packages/oslo_service/service.py", line 810, in run_service
2020-12-02 18:28:14.557 6 ERROR oslo_service.service service.start()
2020-12-02 18:28:14.557 6 ERROR oslo_service.service File "/usr/lib/python3.6/site-packages/ironic_inspector/common/rpc_service.py", line 40, in start
2020-12-02 18:28:14.557 6 ERROR oslo_service.service self.manager.init_host()
2020-12-02 18:28:14.557 6 ERROR oslo_service.service File "/usr/lib/python3.6/site-packages/ironic_inspector/conductor/manager.py", line 81, in init_host
2020-12-02 18:28:14.557 6 ERROR oslo_service.service driver.init_filter()
2020-12-02 18:28:14.557 6 ERROR oslo_service.service File "/usr/lib/python3.6/site-packages/ironic_inspector/pxe_filter/base.py", line 81, in inner
2020-12-02 18:28:14.557 6 ERROR oslo_service.service return method(self, *args, **kwargs)
2020-12-02 18:28:14.557 6 ERROR oslo_service.service File "/usr/lib/python3.6/site-packages/ironic_inspector/pxe_filter/iptables.py", line 92, in init_filter
2020-12-02 18:28:14.557 6 ERROR oslo_service.service self._iptables('-N', self.chain)
2020-12-02 18:28:14.557 6 ERROR oslo_service.service File "/usr/lib/python3.6/site-packages/ironic_inspector/pxe_filter/iptables.py", line 163, in _iptables
2020-12-02 18:28:14.557 6 ERROR oslo_service.service processutils.execute(*cmd)
2020-12-02 18:28:14.557 6 ERROR oslo_service.service File "/usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py", line 424, in execute
2020-12-02 18:28:14.557 6 ERROR oslo_service.service cmd=sanitized_cmd)
2020-12-02 18:28:14.557 6 ERROR oslo_service.service oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
2020-12-02 18:28:14.557 6 ERROR oslo_service.service Command: sudo ironic-inspector-rootwrap /etc/ironic-inspector/rootwrap.conf iptables -N ironic-inspector
2020-12-02 18:28:14.557 6 ERROR oslo_service.service Exit code: 96
2020-12-02 18:28:14.557 6 ERROR oslo_service.service Stdout: ''
2020-12-02 18:28:14.557 6 ERROR oslo_service.service Stderr: '/usr/bin/ironic-inspector-rootwrap: Executable not found: iptables (filter match = iptables)\n'
2020-12-02 18:28:14.557 6 ERROR oslo_service.service
2020-12-02 18:28:14.558 6 INFO oslo.service.wsgi [-] Stopping WSGI server.

dou (douyali)
description: updated
Revision history for this message
Radosław Piliszek (yoctozepto) wrote :
Changed in kolla:
status: New → In Progress
Changed in kolla:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 11.0.0.0rc2

This issue was fixed in the openstack/kolla 11.0.0.0rc2 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 10.2.0

This issue was fixed in the openstack/kolla 10.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 9.3.0

This issue was fixed in the openstack/kolla 9.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 12.0.0.0rc1

This issue was fixed in the openstack/kolla 12.0.0.0rc1 release candidate.

Changed in kolla:
status: Fix Committed → Fix Released
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers