Attached nova-volumes does not show in VM target
I have setup Openstack all on one machine and are currently trying to setup nova-volume. I can start instances ok and can ssh etc in ok.
I have created a vggroup nova-volumes.
When trying to attach a volume to a VM the volume shows that it is in use after running: euca-attach-volume -i i-00000010 -d /dev/vdb vol-00000002
The Status is: euca-describe-volumes VOLUME vol-00000002 10 nova in-use (proj, cloud1, i-00000010[cloud1], /dev/vdb) 2011-11-01T14:54:51Z
vgdisplay displays for Nova-volumes: Alloc PE / Size 2560 / 10.00 GiB Free PE / Size 951302 / 3.63 TiB VG UUID nBoTgU-nTPQ-AOc6-M7ZE-dRGF-3nXl-kDgeYW
If i do a discovery I get iscsiadm -m discovery -t st -p 192.168.2.200 192.168.2.200:3260,1 iqn.2010-10.org.openstack:volume-00000002
euca-describe-instances RESERVATION r-kectzmil proj default INSTANCE i-00000010 ami-00000002 192.168.22.6 192.168.22.6 running chriskey (proj, cloud1) 0 m1.tiny 2011-11-01T16:13:32Z nova aki-00000001 ami-00000000
However if I run: iscsiadm -m session iscsiadm: No active sessions.
Running fdisk -l on the VM shows no /dev/....
The volume.log shows: 2011-11-01 16:12:42,871 AUDIT nova [-] Starting volume node (version 2011.3-nova-milestone-tarball:tarmac-20110922115702-k9nkvxqzhj130av2) 2011-11-01 16:12:42,872 DEBUG nova.utils [-] Running cmd (subprocess): sudo vgs --noheadings -o name from (pid=2312) execute /usr/lib/python2.7/dist-packages/nova/utils.py:168 2011-11-01 16:12:43,046 DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.api'="" from="" '="" usr="" lib="" python2.7="" dist-packages="" nova="" db="" sqlalchemy="" api.pyc'=""> from (pid=2312) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:450 2011-11-01 16:12:43,047 INFO nova.db.sqlalchemy [-] Using mysql/eventlet db_pool. 2011-11-01 16:12:43,130 DEBUG nova.volume.manager [-] Re-exporting 1 volumes from (pid=2312) init_host /usr/lib/python2.7/dist-packages/nova/volume/manager.py:89 2011-11-01 16:12:43,132 DEBUG nova.utils [-] Running cmd (subprocess): sudo tgtadm --op new --lld=iscsi --mode=target --tid=1 --targetname=iqn.2010-10.org.openstack:volume-00000002 from (pid=2312) execute /usr/lib/python2.7/dist-packages/nova/utils.py:168 2011-11-01 16:12:43,136 DEBUG nova.utils [-] Running cmd (subprocess): sudo tgtadm --op bind --lld=iscsi --mode=target --initiator-address=ALL --tid=1 from (pid=2312) execute /usr/lib/python2.7/dist-packages/nova/utils.py:168 2011-11-01 16:12:43,140 DEBUG nova.utils [-] Running cmd (subprocess): sudo tgtadm --op new --lld=iscsi --mode=logicalunit --tid=1 --lun=1 --backing-store=/dev/nova-volumes/volume-00000002 from (pid=2312) execute /usr/lib/python2.7/dist-packages/nova/utils.py:168 2011-11-01 16:12:43,168 INFO nova.rpc [-] Connected to AMQP server on 192.168.2.200:5672 2011-11-01 16:12:43,168 DEBUG nova [-] Creating Consumer connection for Service volume from (pid=2312) start /usr/lib/python2.7/dist-packages/nova/service.py:153
compute.log shows:
2011-11-01 16:15:37,297 DEBUG nova.rpc [-] unpacked context: {'user_id': u'novaadmin', 'roles': [u'projec tmanager'], 'timestamp': u'2011-11-01T16:15:37.245193', 'auth_token': None, 'msg_id': None, 'remote_addre ss': u'192.168.2.200', 'strategy': u'noauth', 'is_admin': True ...