Ask Your Question
0

Falied to create Volume ...... TRACE: Stderr: 'Connection refused

asked 2011-04-14 09:01:06 -0500

tonytkdk gravatar image

nova-volume service is running , VG group is created

-----nova.conf----

--lock_path=/var/lock/nova --sql_connection=mysql://root:nova@192.168.1.1/nova --s3_host=192.168.1.1 --rabbit_host=192.168.1.1 --cc_host=192.168.1.1 --ec2_url=http://192.168.1.1:8773/services/Cloud --daemonize=1 --dhcpbridge_flagfile=/etc/nova/nova.conf --dhcpbridge=/usr/bin/nova-dhcpbridge --FAKE_subdomain=ec2 --ca_path=/var/lib/nova/CA --keys_path=/var/lib/nova/keys --networks_path=/var/lib/nova/networks --instances_path=/var/lib/nova/instances --images_path=/var/lib/nova/images --buckets_path=/var/lib/nova/buckets --libvirt_type=kvm --network_manager=nova.network.manager.FlatDHCPManager --flat_interface=eth1 --logdir=/var/log/nova --verbose --fixed_range=192.168.2.0/24 --network_size=256 --flat_network_dhcp_start=192.168.2.2 --my_ip=192.168.1.1 --iscsi_ip_prefix=192.168.1.2 --volume_group=ubuntu2

----nova-volume.log Trace---- 2011-04-14 16:51:47,906 DEBUG nova.utils [-] Running cmd (subprocess): sudo ietadm --op new --tid=2 --params Name=iqn.2010-10.org.openstack:volume-00000002 from (pid=28370) execute /usr/lib/pymodules/python2.6/nova/utils.py:150 2011-04-14 16:51:47,914 DEBUG nova.utils [-] Result was 145 from (pid=28370) execute /usr/lib/pymodules/python2.6/nova/utils.py:166 2011-04-14 16:51:47,938 ERROR nova [-] Exception during message handling (nova): TRACE: Traceback (most recent call last): (nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/rpc.py", line 188, in _receive (nova): TRACE: rval = node_func(context=ctxt, **node_args) (nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/volume/manager.py", line 116, in create_volume (nova): TRACE: model_update = self.driver.create_export(context, volume_ref) (nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/volume/driver.py", line 322, in create_export (nova): TRACE: '--params', 'Name=%s' % iscsi_name) (nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/utils.py", line 173, in execute (nova): TRACE: cmd=' '.join(cmd)) (nova): TRACE: ProcessExecutionError: Unexpected error while running command. (nova): TRACE: Command: sudo ietadm --op new --tid=2 --params Name=iqn.2010-10.org.openstack:volume-00000002 (nova): TRACE: Exit code: 145 (nova): TRACE: Stdout: '' (nova): TRACE: Stderr: 'Connection refused.\n'

(nova): TRACE:

While I manually execute sudo ietadm --op new --tid=2 --params Name=iqn.2010-10.org.openstack:volume-00000002

nova@ubuntu2:/var/log/nova$ sudo ietadm --op new --tid=2 --params Name=iqn.2010-10.org.openstack:volume-00000002 Connection refused.

any suggestion ? Thanks! Did I lost any flag??? or did not enable iSCSI feature?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2011-04-14 09:08:53 -0500

tonytkdk gravatar image

A foolish mistake...

I forgot to enable iscsitarget

vi /etc/default/iscsitarget False====>True

/etc/init.d/iscsitarget start

volume is rolling on...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-04-14 09:01:06 -0500

Seen: 10 times

Last updated: Apr 14 '11