centos binary ironic-conductor doesn't work

Bug #1674672 reported by MarginHu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Invalid
High
MarginHu
Ocata
Invalid
High
MarginHu

Bug Description

Hi Guys,

I found ironic-conductor doesn't work, my openstack is ocata and kolla version is latest.

[root@kode0 ~]# docker ps | grep -i restart
30c04bb6b75e 192.168.103.16:5000/bgi/centos-binary-ironic-conductor:4.0.0.3 "kolla_start" 2 hours ago Restarting (1) About an hour ago ironic_conductor

[root@kode0 ~]# docker logs 30c04bb6b75e | tail -n 100

sudo: no tty present and no askpass program specified
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/log/kolla/ironic
INFO:__main__:Setting permission for /var/log/kolla/ironic/ironic-api.log
INFO:__main__:Setting permission for /var/log/kolla/ironic/ironic-inspector.log
INFO:__main__:Setting permission for /var/lib/ironic
INFO:__main__:Setting permission for /tftpboot
INFO:__main__:Setting permission for /tftpboot/pxelinux.cfg
INFO:__main__:Setting permission for /tftpboot/pxelinux.0
INFO:__main__:Setting permission for /tftpboot/chain.c32
INFO:__main__:Setting permission for /tftpboot/ironic-agent.kernel
INFO:__main__:Setting permission for /tftpboot/ironic-agent.initramfs
INFO:__main__:Setting permission for /tftpboot/pxelinux.cfg/default
sudo: no tty present and no askpass program specified
[root@kode0 ~]#

Revision history for this message
MarginHu (margin2017) wrote :

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.

Changed in kolla:
milestone: none → pike-1
status: New → Confirmed
importance: Undecided → High
summary: - ironic-conductor doesn't work
+ centos binary ironic-conductor doesn't work
MarginHu (margin2017)
Changed in kolla:
assignee: nobody → MarginHu (margin2017)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/448977

Changed in kolla:
status: Confirmed → In Progress
Changed in kolla:
milestone: pike-2 → pike-3
Changed in kolla:
milestone: pike-3 → pike-rc1
Changed in kolla:
milestone: pike-rc1 → queens-1
Changed in kolla:
milestone: queens-2 → queens-3
Changed in kolla:
milestone: queens-3 → queens-rc1
Changed in kolla:
milestone: queens-rc1 → queens-rc2
Changed in kolla:
milestone: queens-rc2 → rocky-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by Mark Goddard (<email address hidden>) on branch: master
Review: https://review.openstack.org/448977
Reason: Not updated for over a year and many negative comments. Feel free to reinstate with a new patch.

Changed in kolla:
milestone: rocky-2 → rocky-3
Changed in kolla:
status: In Progress → Incomplete
Changed in kolla:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.