sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m discovery -t st -p <IP> hangs forever

Bug #1613294 reported by Waldemar Znoinski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
High
Waldemar Znoinski

Bug Description

sudo ironic-rootwrap /etc/ironic/rootwrap.conf iscsiadm -m discovery -t st -p
in ironic_conductor container hangs forever.

strace on the process revealed it's waiting for input from the controlling terminal (/dev/tty).
It happens to wait for a password when running sudo commands.

To fix it sudoers file is required for ironic user, like so:
(ironic-conductor)[ironic@silpixa00385229 /]$ cat /etc/sudoers.d/ironic
ironic ALL=(ALL) NOPASSWD:ALL

Revision history for this message
Waldemar Znoinski (wznoinsk) wrote :

Host:
 cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
UBUNTU_CODENAME=xenial

Linux silpixa00385229 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

ansible 1.9.5
  configured module search path = None

kolla stable/mitaka
Kolla globals:
config_strategy: "COPY_ALWAYS"
kolla_base_distro: "ubuntu"
kolla_install_type: "source"
openstack_release: "mitaka"
enable_haproxy: "no"
enable_keepalived: "no"
kolla_internal_vip_address: "10.237.222.18"
docker_registry: "192.168.100.1:4000"
network_interface: "eno1"
neutron_external_interface: "enp130s0f0"
enable_ironic: "yes"

Container:
 cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"

python --version
Python 2.7.6

Ironic:
driver: pxe_ipmitool

Changed in kolla:
assignee: nobody → Waldemar Znoinski (wznoinsk)
Ryan Hallisey (rthall14)
Changed in kolla:
status: New → In Progress
status: In Progress → Confirmed
importance: Undecided → High
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/372120

Changed in kolla:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by Waldemar Znoinski (wznoinsk) (<email address hidden>) on branch: master
Review: https://review.openstack.org/372120
Reason: this change is now included in https://review.openstack.org/#/c/379106/4

Revision history for this message
Duong Ha-Quang (duonghq) wrote :

The bug is addressed by ps: https://review.openstack.org/#/c/379106/4

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

This fixed will not backport to Mitaka branch. So remove the milestone.

no longer affects: kolla/mitaka
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.