Ask Your Question
1

Cannot work any instance aftrer target.service restart on Cinder

asked 2014-12-15 20:56:54 -0500

Shohei.Koyama gravatar image

updated 2014-12-15 23:38:18 -0500

Dear all Hi.

I'm building Juno system.

Some instances was working.

However they couldn't work ever since then I restarted target.service on Cinder.

And that doesn't happen rare occurrence.(I wonder that...)

Log messages on Compute at that time are as follows.

after target.service restart
[Compute]
$ tail -f /var/log/message
Dec 16 14:15:24 localhost iscsid: connect to 172.16.4.145:3260 failed (Connection refused)
Dec 16 14:15:28 localhost iscsid: connect to 172.16.4.145:3260 failed (Connection refused)

However output error in/var/log/message on Compute when I start instance.

Dec 16 14:16:43 dev1128 journal: Failed to open file '/dev/disk/by-path/ip-172.16.4.145:3260-iscsi-iqn.2010-10.org.openstack:volume-f46978a5-0515-48ad-b69f-89f489842ce6-lun-0': No such device or address

That connection could log out, but not be able to log in.

$ iscsiadm -m session
tcp: [2] 172.16.4.145:3260,1 iqn.2010-10.org.openstack:volume-49874b58-c8fd-4614-a39c-34d53d4fe750 (non-flash)
tcp: [3] 172.16.4.145:3260,1 iqn.2010-10.org.openstack:volume-f46978a5-0515-48ad-b69f-89f489842ce6 (non-flash)

$ iscsiadm -m node -T iqn.2010-10.org.openstack:volume-49874b58-c8fd-4614-a39c-34d53d4fe750 -u
Logging out of session [sid: 2, target: iqn.2010-10.org.openstack:volume-49874b58-c8fd-4614-a39c-34d53d4fe750, portal: 172.16.4.145,3260]
Logout of [sid: 2, target: iqn.2010-10.org.openstack:volume-49874b58-c8fd-4614-a39c-34d53d4fe750, portal: 172.16.4.145,3260] successful.

$ iscsiadm -m node -T iqn.2010-10.org.openstack:volume-49874b58-c8fd-4614-a39c-34d53d4fe750 -l
Logging in to [iface: default, target: iqn.2010-10.org.openstack:volume-49874b58-c8fd-4614-a39c-34d53d4fe750, portal: 172.16.4.145,3260] (multiple)
.
.
.
I press "Ctrl + C" to escape the program because couldn't finish.

Iface settings is clear.

[Compute]
$ iscsiadm -m session -P 3
        Iface IPaddress: <empty>

$ less /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.1994-05.com.redhat:68da7f5ad5
[Cinder]
$ targetcli ls
o- / ......................................................................................................... [...]
  o- backstores .............................................................................................. [...]
  | o- block .................................................................................. [Storage Objects: 0]
  | o- fileio ................................................................................. [Storage Objects: 0]
  | o- pscsi .................................................................................. [Storage Objects: 0]
  | o- ramdisk ................................................................................ [Storage Objects: 0]
  o- iscsi ............................................................................................ [Targets: 0]
  o- loopback ......................................................................................... [Targets: 0

Do you have any ideas?

Regard.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-12-15 23:15:34 -0500

Shohei.Koyama gravatar image

It gets better what I'm just setting /etc/lvm/lvm.conf on Compute.

    filter = [ "a/sda/", "r/.*/"]

However not be improveed yet.

I'm changing this question a little.

edit flag offensive delete link more
0

answered 2014-12-15 22:48:45 -0500

dbaxps gravatar image

updated 2014-12-15 23:53:00 -0500

Using answer field as comment ( due to formatting )

Yes it works for me

Logout

[root@juno2 ~]# iscsiadm -m node -T iqn.2010-10.org.openstack:volume-ab6050b3-b0aa-4335-828b-df1f11bee248 -u
Logging out of session [sid: 1, target: iqn.2010-10.org.openstack:volume-ab6050b3-b0aa-4335-828b-df1f11bee248, portal: 192.168.1.127,3260]
Logout of [sid: 1, target: iqn.2010-10.org.openstack:volume-ab6050b3-b0aa-4335-828b-df1f11bee248, portal: 192.168.1.127,3260] successful.

Login

[root@juno2 ~]# iscsiadm -m node -T iqn.2010-10.org.openstack:volume-ab6050b3-b0aa-4335-828b-df1f11bee248 --login
Logging in to [iface: default, target: iqn.2010-10.org.openstack:volume-ab6050b3-b0aa-4335-828b-df1f11bee248, portal: 192.168.1.127,3260] (multiple)
Login to [iface: default, target: iqn.2010-10.org.openstack:volume-ab6050b3-b0aa-4335-828b-df1f11bee248, portal: 192.168.1.127,3260] successful.

[root@juno2 ~]# iscsiadm -m session -P 3
iSCSI Transport Class version 2.0-870
version 6.2.0.873-21
Target: iqn.2010-10.org.openstack:volume-ab6050b3-b0aa-4335-828b-df1f11bee248 (non-flash)
    Current Portal: 192.168.1.127:3260,1
    Persistent Portal: 192.168.1.127:3260,1
        **********
        Interface:
        **********
        Iface Name: default
        Iface Transport: tcp
        Iface Initiatorname: iqn.1994-05.com.redhat:a1397064754e
        Iface IPaddress: 192.168.1.137
        Iface HWaddress: <empty>
        Iface Netdev: <empty>
        SID: 2
        iSCSI Connection State: LOGGED IN
        iSCSI Session State: LOGGED_IN
        Internal iscsid Session State: NO CHANGE
        *********
        Timeouts:
        *********
        Recovery Timeout: 120
        Target Reset Timeout: 30
        LUN Reset Timeout: 30
        Abort Timeout: 15
        *****
        CHAP:
        *****
        username: bBz4jyEn9ACr2RpnFEpq
        password: ********
        username_in: <empty>
        password_in: ********
        ************************
        Negotiated iSCSI params:
        ************************
        HeaderDigest: None
        DataDigest: None
        MaxRecvDataSegmentLength: 262144
        MaxXmitDataSegmentLength: 262144
        FirstBurstLength: 65536
        MaxBurstLength: 262144
        ImmediateData: Yes
        InitialR2T: Yes
        MaxOutstandingR2T: 1
        ************************
        Attached SCSI devices:
        ************************
        Host Number: 11 State: running
        scsi11 Channel 00 Id 0 Lun: 0
        Attached scsi disk sdc      State: running

image description

edit flag offensive delete link more

Comments

Something looks to be wrong on iSCSI Target side.
View: http://www.server-world.info/en/note?...
http://www.server-world.info/en/note?...

dbaxps gravatar imagedbaxps ( 2014-12-15 22:53:36 -0500 )edit

Please add targetcli ls on Server && /etc/iscsi/initiatorname.iscsi on Client side.

dbaxps gravatar imagedbaxps ( 2014-12-15 23:01:52 -0500 )edit

View also details of thread https://ask.openstack.org/en/question...

dbaxps gravatar imagedbaxps ( 2014-12-15 23:11:50 -0500 )edit

Your "targetcli ls" doesn't look good. I am updating answer.

dbaxps gravatar imagedbaxps ( 2014-12-15 23:52:17 -0500 )edit

I think about your question,

        Iface IPaddress: 192.168.1.137

Does it get state after you target restart or physically reboot to Cinder ?

It gets worse my state.

        
        Iface IPaddress: <empty>
Shohei.Koyama gravatar imageShohei.Koyama ( 2014-12-16 00:00:13 -0500 )edit

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: 2014-12-15 20:56:54 -0500

Seen: 1,070 times

Last updated: Dec 15 '14