I found root cause which is located in "sudo modprobe iscsi_tcp".
[root@kode0 ~]# docker run -it -v /etc/kolla//ironic-conductor/:/var/lib/kolla/config_files/:ro -v /dev:/dev:rw -v /run:/run:shared -v /sys:/sys:rw -u ironic -e "KOLLA_SERVICE_NAME=ironic-conductor" -e "KOLLA_CONFIG_STRATEGY=COPY_ALWAYS" -e "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" --name margin 192.168.103.16:5000/bgi/centos-binary-ironic-conductor:4.0.0.3 /bin/bash
(ironic-conductor)[ironic@40e732c9c4ac /]$
(ironic-conductor)[ironic@40e732c9c4ac /]$ kolla_start
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 file /etc/ironic/ironic.conf
INFO:__main__:Coping file from /var/lib/kolla/config_files/ironic.conf to /etc/ironic/ironic.conf
INFO:__main__:Setting file /etc/ironic/ironic.conf owner to ironic:ironic
INFO:__main__:Setting file /etc/ironic/ironic.conf permission to 0600
INFO:__main__:Writing out command to execute
INFO:__main__:Setting permission for /var/lib/ironic
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: no tty present and no askpass program specified
(ironic-conductor)[ironic@92318dc6d4b6 /]$ sudo -l
Matching Defaults entries for ironic on this host:
setenv
User ironic may run the following commands on this host:
(root) NOPASSWD: /usr/local/bin/kolla_set_configs
(root) NOPASSWD: /usr/bin/ironic-rootwrap /etc/ironic/rootwrap.conf *
docker/ironic-base/ironic_sudoers hasn't been copied into ironic-conductor image when install_type is binary.
After I added the sudo file into image , the issue still appeared, so I need to get help from author.
I found root cause which is located in "sudo modprobe iscsi_tcp".
[root@kode0 ~]# docker run -it -v /etc/kolla/ /ironic- conductor/ :/var/lib/ kolla/config_ files/: ro -v /dev:/dev:rw -v /run:/run:shared -v /sys:/sys:rw -u ironic -e "KOLLA_ SERVICE_ NAME=ironic- conductor" -e "KOLLA_ CONFIG_ STRATEGY= COPY_ALWAYS" -e "PATH=/ usr/local/ sbin:/usr/ local/bin: /usr/sbin: /usr/bin: /sbin:/ bin" --name margin 192.168. 103.16: 5000/bgi/ centos- binary- ironic- conductor: 4.0.0.3 /bin/bash conductor) [ironic@ 40e732c9c4ac /]$ conductor) [ironic@ 40e732c9c4ac /]$ kolla_start main__: Loading config file at /var/lib/ kolla/config_ files/config. json main__: Validating config file main__: Copying service configuration files main__: Deleting file /etc/ironic/ ironic. conf main__: Coping file from /var/lib/ kolla/config_ files/ironic. conf to /etc/ironic/ ironic. conf main__: Setting file /etc/ironic/ ironic. conf owner to ironic:ironic main__: Setting file /etc/ironic/ ironic. conf permission to 0600 main__: Writing out command to execute main__: Setting permission for /var/lib/ironic
(ironic-
(ironic-
INFO:__
INFO:__
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__
INFO:__
INFO:__
INFO:__
INFO:__
INFO:__
INFO:__
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
sudo: no tty present and no askpass program specified
(ironic- conductor) [ironic@ 92318dc6d4b6 /]$ sudo -l
Matching Defaults entries for ironic on this host:
setenv
User ironic may run the following commands on this host: bin/kolla_ set_configs ironic- rootwrap /etc/ironic/ rootwrap. conf *
(root) NOPASSWD: /usr/local/
(root) NOPASSWD: /usr/bin/
docker/ ironic- base/ironic_ sudoers hasn't been copied into ironic-conductor image when install_type is binary.
After I added the sudo file into image , the issue still appeared, so I need to get help from author.