Stopping TGT service is getting stuck on Ubuntu

Bug #1453561 reported by Aviram Bar-Haim
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Medium
Aviram Bar-Haim
7.0.x
Invalid
Medium
Aviram Bar-Haim
8.0.x
Invalid
Medium
Aviram Bar-Haim
Mitaka
Won't Fix
Medium
MOS Linux
Newton
Invalid
Medium
Aviram Bar-Haim

Bug Description

root@node-3:~# /etc/init.d/tgt stop
 * Stopping target framework daemon tgtd
(getting stuck)

From another (parallel) ssh connection:
root@node-3:~# pstree -a |grep -i tgt -A 10
  | `-tgt /etc/init.d/tgt stop
  | `-tgtadm --op delete --mode system
  |-sshd
  | `-bash
  |-sshd -D
  | `-sshd
  | `-bash
  | |-grep --color=auto -i tgt -A 10
  | `-pstree -a
  |-systemd-logind
  |-systemd-udevd --daemon
  |-tgtd
  | `-tgtd
  |-upstart-file-br --daemon
  |-upstart-socket- --daemon
  `-upstart-udev-br --daemon

root@node-3:~# cat /etc/issue
Ubuntu 14.04 LTS \n \l

root@node-3:~# dpkg -l |grep tgt
ii tgt 1:1.0.43-0ubuntu4 amd64 Linux SCSI target user-space tools

{"build_id": "2015-04-29_07-55-19", "build_number": "361", "release_versions": {"2014.2.2-6.1": {"VERSION": {"build_id": "2015-04-29_07-55-19", "build_number": "361", "api": "1.0", "fuel-library_sha": "0e5b82d24853304befb22145ac4aaf3545d295e1", "nailgun_sha": "e660b1c09d7d4d07bdd48d424ce9aed3b6facd6e", "feature_groups": ["mirantis"], "openstack_version": "2014.2.2-6.1", "production": "docker", "python-fuelclient_sha": "8cd6cf575d3c101dee1032abb6877dfa8487e077", "astute_sha": "04ebab96d57b0e8acbf2d7f3ba05e4fbf31b741e", "fuel-ostf_sha": "b38602c841deaa03ddffc95c02f319360462cbe3", "release": "6.1", "fuelmain_sha": "ee112acfdd0f9017ef40be53e8e51bb5c429e97c"}}}, "auth_required": true, "api": "1.0", "fuel-library_sha": "0e5b82d24853304befb22145ac4aaf3545d295e1", "nailgun_sha": "e660b1c09d7d4d07bdd48d424ce9aed3b6facd6e", "feature_groups": ["mirantis"], "openstack_version": "2014.2.2-6.1", "production": "docker", "python-fuelclient_sha": "8cd6cf575d3c101dee1032abb6877dfa8487e077", "astute_sha": "04ebab96d57b0e8acbf2d7f3ba05e4fbf31b741e", "fuel-ostf_sha": "b38602c841deaa03ddffc95c02f319360462cbe3", "release": "6.1", "fuelmain_sha": "ee112acfdd0f9017ef40be53e8e51bb5c429e97c"}

Revision history for this message
Aviram Bar-Haim (aviramb) wrote :

workaround:
  \rm -f /var/run/tgtd* && killall -9 tgtd
  service tgt stop

Changed in fuel:
milestone: none → 6.1
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Cinder with LVM over iSCSI normally should be used only for dev/test environments, hence this is a medium priority bug.

Changed in fuel:
importance: Undecided → Medium
milestone: 6.1 → 7.0
Changed in fuel:
assignee: nobody → Fuel Library Team (fuel-library)
Changed in fuel:
status: New → Confirmed
Changed in fuel:
assignee: Fuel Library Team (fuel-library) → MOS Linux (mos-linux)
Revision history for this message
Alexei Sheplyakov (asheplyakov) wrote :

There might be some connected clients, or a lot of data to flush to the hard drive(s).
Please post the output of the following command:

 tgtadm --lld iscsi --op show --mode target

Changed in fuel:
status: Confirmed → Incomplete
assignee: MOS Linux (mos-linux) → Aviram Bar-Haim (aviramb)
Revision history for this message
Nastya Urlapova (aurlapova) wrote :

Moved to Invalid, was a more than month w/o confirmation.

Changed in fuel:
status: Incomplete → Invalid
Revision history for this message
Aviram Bar-Haim (aviramb) wrote :

Reproduced over Fuel 8.0 GA.

root@node-5:~# pstree -a |grep -i tgt -A 10
  | | `-tgt /etc/init.d/tgt stop
  | | `-tgtadm --op delete --mode system
  | `-sshd
  | `-bash
  | |-grep --color=auto -i tgt -A 10
  | `-pstree -a
  |-systemd-logind
  |-systemd-udevd --daemon
  |-tgtd
  | `-tgtd
  |-upstart-file-br --daemon
  |-upstart-socket- --daemon
  |-upstart-udev-br --daemon
  `-zfs-fuse --pidfile /var/run/zfs-fuse.pid
      `-53*[{zfs-fuse}]
root@node-5:~# dpkg -l |grep tgt
ii tgt 1:1.0.43-0ubuntu4.1~14.04.2 amd64 Linux SCSI target user-space tools

root@node-5:~# tgtadm --lld iscsi --op show --mode target
root@node-5:~#

Changed in fuel:
assignee: Aviram Bar-Haim (aviramb) → nobody
Changed in fuel:
status: Invalid → New
Dmitry Klenov (dklenov)
tags: added: area-library
tags: added: area-linux
removed: area-library
Changed in fuel:
assignee: nobody → MOS Linux (mos-linux)
status: New → Confirmed
tags: added: customer-found
Changed in fuel:
milestone: 7.0 → 6.1-updates
milestone: 6.1-updates → 7.0-updates
Revision history for this message
Dina Belova (dbelova) wrote :

We should not have 9.0 bugs targeted to 9.0 after SCF. Marking as won't fix for 9.0

tags: added: 10.0-reviewed
Revision history for this message
Dmitry Teselkin (teselkin-d) wrote :

We can't reproduce the issue.
Please provide detailed steps how to reproduce.

BTW, why there is zfs-fuse on your system?

Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

Closing this bug as Invalid as it stayed in Incomplete status for more than a month.

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.