Not able to Solaris iSCSI volume to an instance
I have done a dual node setup where one node (cloud-controller) runs all the services nova-network,
I am trying to use a ZFS + COMSTAR based iSCSI storage as a storage backend of nova-volume service. The /etc/nova.conf file of the controller node looks like
--dhcpbridge_
--dhcpbridge=
--logdir=
--state_
--lock_
--state_
--verbose
--my_ip=10.10.10.2
--s3_host=
--rabbit_
--cc_host=
--nova_url=http://
--fixed_
--network_size=10
#--force_
--routing_
--sql_connectio
--glance_
--image_
#--iscsi_
--vlan_
--vlan_start=3
#--vlan_
--use_deprecate
--public_
#VPN related falgs
#--vpn_image_id=39
#--use_project_ca
#--cnt_
#Volume related flags
--volume_
--volume_
--iscsi_
--san_ip=
--san_login=
--san_password=
--use_local_
#--nouse_
--poolname=nova
#Added two lines of code in nova/volume/san.py file to take the ZFS pool name on which the volumes will be created
I am able to create a volume using euca-create-volume command.
localadmin@clnt2:~$ euca-describe-
VOLUME vol-0000000a 10 nova available (cto_kol, controller, None, None) 2011-12-
In the solaris server(
zfs list -t volume
NAME USED AVAIL REFER MOUNTPOINT
nova/volume-
rpool/dump 2.00G 207G 2.00G -
rpool/swap 2.01G 207G 2.01G -
root@infraserver:~# itadm list-target -v
TARGET NAME STATE SESSIONS
iqn.2010-
alias: -
auth: none (defaults)
tpg-tags: default
root@infraserver:~# sbdadm list-lu
Found 1 LU(s)
GUID DATA SIZE SOURCE
-------
600144f03a08ca0
root@infraserver:~# stmfadm list-view -l 600144f03a08ca0
View Entry: 0
Host group : All
Target group : tg-volume-0000000a
LUN : 0
I have instances created both on the controller and compute hosts
localadmin@clnt2:~$ euca-describe-
RESERVATION r-8fj8sy7h cto_kol kol_cto
INSTANCE i-0000000c ami-00000014 10.10.10.224 192.168.4.13 running kol_cto (cto_kol, compute) 0 m1.small 2011-12-
RESERVATION r-6ufc2kd9 cto_kol kol_cto
INSTANCE i-0000000d ami-00000014 192.168.4.14 192.168.4.14 running kol_cto (cto_kol, controller) 0 m1.small 2011-12-
Now if I try to attach the volume to any instance using euca-attach-volume -i <instance id> -d <device> <volume>
command I am getting the following error in /var/log/
~~~~~~~
2011-12-13 12:50:59,727 DEBUG nova.utils [-] Result was 255 from (pid=15957) execute /usr/lib/
2011-12-13 12:50:59,727 ERROR nova.rpc [-] Exception during message handling
(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: rval = node_func(
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: function(self, context, instance_id, *args, **kwargs)
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: volume_id)
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: path = self.driver.
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE:
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE:
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: for target in out.splitlines():
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: cmd=' '.join(cmd))
(nova.rpc): TRACE: ProcessExecutio
(nova.rpc): TRACE: Command: sudo iscsiadm -m discovery -t sendtargets -p controller
(nova.rpc): TRACE: Exit code: 255
(nova.rpc): TRACE: Stdout: ''
(nova.rpc): TRACE: Stderr: 'iscsiadm: Connection to Discovery Address 10.10.10.2 failed\niscsiadm: Login I/O error, failed to receive a PDU\niscsiadm: retrying discovery login to 10.10.10.
(nova.rpc): TRACE:
~~~~~~~
The /etc/network/
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.10.10.2
netmask 255.255.255.0
broadcast 10.10.10.255
#gateway 10.10.10.1
#dns-nameservers 10.10.10.3
# The primary network interface
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet static
address 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255
auto eth3
iface eth3 inet static
address 192.168.161.65
netmask 255.255.255.0
network 192.168.161.0
broadcast 192.168.161.255
The /etc/network/
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.10.10.3
netmask 255.255.255.0
broadcast 10.10.10.255
#gateway 10.10.10.2
#dns-nameservers 10.10.10.3
# The primary network interface
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet static
address 192.168.3.2
netmask 255.255.255.0
network 192.168.3.0
#gateway 192.168.3.1
broadcast 192.168.3.255
auto eth3
iface eth3 inet static
address 192.168.161.26
netmask 255.255.255.0
network 192.168.161.0
broadcast 192.168.161.255
Now if i change manually (in nova database) the value of host to infraserver from controller in volumes table in nova database, I am able to attach the volume to an instance. However it creates problem while deleting the volume(detaching is working) using euca-delete-volume <volume id> command.
Am I missing some configuration parameter in /etc/nova/nova.conf file or some othe file? Any direction is highly appreciated.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Nilanjan Roy
- Solved:
- Last query:
- Last reply: