Attach volume with LXC failed

Bug #918614 reported by Samuel Hassine
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Debian
New
Undecided
Unassigned
Ubuntu
Incomplete
Undecided
Unassigned

Bug Description

Hi,

Attaching a volume to an LXC instance does not work:

1. euca-create-volume -s 20 -z nova
2. euca-attach-volume -i i-00000001 -d /dev/vdb vol-00000001

I got the following error in nova-compute:

http://pastebin.com/JhtcUp5d

(nova.compute.manager): TRACE: Command: sudo iscsiadm -m node -T iqn.2010-10.org.openstack:volume-00000001 -p 77.67.61.181:3260 --op new
(nova.compute.manager): TRACE: Exit code: 1
(nova.compute.manager): TRACE: Stdout: ''
(nova.compute.manager): TRACE: Stderr: 'sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n'
(nova.compute.manager): TRACE:

Best regards.
Sam

Revision history for this message
Thierry Carrez (ttx) wrote :

This is an issue of sudoers badly configured: it is missing iscsiadm.
What distribution are you using ? Which version of the packages ?

affects: nova → ubuntu
Changed in ubuntu:
status: New → Incomplete
Revision history for this message
Samuel Hassine (samuel-hassine-s) wrote :

Hi,

I am using : Debian testing kernel 3.1

Versions of the packages:

root@PAR-SRV-01-MASTER:/var/lib/lxc/vpn# dpkg -l |grep nova
ii nova-api 2012.1~e2-3 OpenStack Compute - API frontend
ii nova-common 2012.1~e2-3 OpenStack Compute - common files
ii nova-compute 2012.1~e2-3 OpenStack Compute - compute node
ii nova-compute-lxc 2012.1~e2-3 OpenStack Compute - compute node (LXC)
ii nova-console 2012.1~e2-3 OpenStack Compute - Console
ii nova-doc 2012.1~e2-3 OpenStack Compute - documentation
ii nova-network 2012.1~e2-3 OpenStack Compute - Network manager
ii nova-objectstore 2012.1~e2-3 OpenStack Compute - object store
ii nova-scheduler 2012.1~e2-3 OpenStack Compute - virtual machine scheduler
ii nova-volume 2012.1~e2-3 OpenStack Compute - storage
ii python-nova 2012.1~e2-3 OpenStack Compute - libraries
ii python-novaclient 1:2012.1~e2-3 client library for OpenStack Compute API

Best regards.
Sam

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.