Can not attach volume to instance when iscsi multipath enabled

Bug #1513145 reported by Kyrylo Romanenko
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Invalid
Critical
Kyrylo Romanenko

Bug Description

Steps:
1. Deploy environment of released MOS 7.0 (MirantisOpenStack-7.0.iso)
Settings:
Kilo on Ubuntu 14.04
1 controller, 1 compute, 1 cinder node.
Cinder LVM over iSCSI for volumes, Neutron VLAN, QEMU

2. SSH to compute node.
3. Configure "iscsi_use_multipath=True" in [libvirt] section of /etc/nova/nova.conf on compute node.
4. Then restart nova-compute service.
5. Create an instance.
6. Create volume and try to attach it to the instance.

CLI Output looks like volume attached succesfully:
# nova volume-attach instance 04fcb29e-76a2-4a32-b815-3fb7a30ad21c auto
+----------+--------------------------------------+
| Property | Value |
+----------+--------------------------------------+
| device | /dev/vdb |
| id | 04fcb29e-76a2-4a32-b815-3fb7a30ad21c |
| serverId | 0e3d20d0-c333-4539-ac8e-f6169f6ed412 |
| volumeId | 04fcb29e-76a2-4a32-b815-3fb7a30ad21c |
+----------+--------------------------------------+

# nova show instance output shows that no volume attached to specified instance:

| os-extended-volumes:volumes_attached | [] |

Also Horizon shows that volume is not attached to instance.

Fuel snapshot attached.

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "7.0"
  openstack_version: "2015.1.0-7.0"
  api: "1.0"
  build_number: "301"
  build_id: "301"
  nailgun_sha: "4162b0c15adb425b37608c787944d1983f543aa8"
  python-fuelclient_sha: "486bde57cda1badb68f915f66c61b544108606f3"
  fuel-agent_sha: "50e90af6e3d560e9085ff71d2950cfbcca91af67"
  fuel-nailgun-agent_sha: "d7027952870a35db8dc52f185bb1158cdd3d1ebd"
  astute_sha: "6c5b73f93e24cc781c809db9159927655ced5012"
  fuel-library_sha: "5d50055aeca1dd0dc53b43825dc4c8f7780be9dd"
  fuel-ostf_sha: "2cd967dccd66cfc3a0abd6af9f31e5b4d150a11c"
  fuelmain_sha: "a65d453215edb0284a2e4761be7a156bb5627677"

Bug affects also MOS 7.0 MU1 package.
Updates repositories:
Centos for nailgun:
http://mirror.fuel-infra.org/mos-repos/centos/mos7.0-centos6-fuel/proposed/x86_64/
Ubuntu for cluster nodes:
http://mirror.fuel-infra.org/mos-repos/ubuntu/7.0/ mos7.0-proposed main restricted

Verified than current bug does not affect actual MOS 8.0 build for example on:
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  openstack_version: "2015.1.0-8.0"
  api: "1.0"
  build_number: "114"
  build_id: "114"

Tags: nova
Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :
description: updated
description: updated
Changed in mos:
status: New → Confirmed
Changed in mos:
assignee: MOS Bugs (mos-bugs) → MOS Cinder (mos-cinder)
Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

Look like it's not an cinder issue.

Changed in mos:
assignee: MOS Cinder (mos-cinder) → MOS Nova (mos-nova)
Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

From the nova-compute logs:
2015-11-04 11:25:12.458 3047 TRACE nova.virt.block_device [instance: c13aa8b1-3217-4acc-850e-52c2dedc9690] Command: sudo nova-rootwrap /etc/nova/rootwrap
.conf multipath -r
2015-11-04 11:25:12.458 3047 TRACE nova.virt.block_device [instance: c13aa8b1-3217-4acc-850e-52c2dedc9690] Exit code: 96
2015-11-04 11:25:12.458 3047 TRACE nova.virt.block_device [instance: c13aa8b1-3217-4acc-850e-52c2dedc9690] Stdout: u''
2015-11-04 11:25:12.458 3047 TRACE nova.virt.block_device [instance: c13aa8b1-3217-4acc-850e-52c2dedc9690] Stderr: u'/usr/bin/nova-rootwrap: Executable n
ot found: multipath (filter match = multipath)\n'

Changed in mos:
assignee: MOS Nova (mos-nova) → Kyrylo Romanenko (kromanenko)
Revision history for this message
Ivan Kolodyazhny (e0ne) wrote :

Environment is not configured for multipath

Changed in mos:
status: Confirmed → Invalid
Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

I found that packages open-iscsi and multipath-tools should be installed to compute node.

Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

So, if we have option to set multipath in nova configs, then should open-iscsi and multipath-tools packages be preinstalled on Compute? Or it is expected situation that openstack admin should install those packages manually?

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

looks like it is expected behaviour, so, bug description is invalid then.

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.