Ask Your Question
0

using Iscsi XenServer tempSRs disappear when attaching volumes

asked 2015-07-29 12:56:30 -0500

BuildGuru gravatar image

updated 2015-07-29 14:33:57 -0500

I am not sure where to read cinder logs. when i attach a volume to an instance, a TempSR is created and the drive is mounted to the instance. Seconds later the SR disappears with the drive and the volume becomes available again.

I am running XenServer 6.5 which hosts a compute\storage\controller nodes. My cinder.conf looks like this :

         [DEFAULT]
       rootwrap_config = /etc/cinder/rootwrap.conf
       api_paste_confg = /etc/cinder/api-paste.ini
       iscsi_helper = tgtadm
       volume_name_template = volume-%s
       volume_group = cinder-volumes
         verbose = True
               auth_strategy = keystone
           state_path = /var/lib/cinder
             lock_path = /var/lock/cinder
           volumes_dir = /var/lib/cinder/volumes
              rpc_backend = rabbit
             rabbit_host = controller
            rabbit_password = ********************

            verbose = True

             auth_strategy = keystone

            my_ip = 10.0.0.3

               glance_host = controller

             [database]

               connection = mysql://cinder:**************@controller/cinder

             [keystone_authtoken]

            auth_uri = http://controller:5000/v2.0
           identity_uri = http://controller:35357
            admin_tenant_name = service
            admin_user = cinder
             admin_password = **************************

I dont see any errors in cinder-volume.log and i dont see any other log files to trace the issue.

           2015-07-29 13:23:27.520 19435 INFO cinder.volume.manager [-] Updating volume status
             2015-07-29 13:23:27.634 19435 INFO cinder.volume.manager [-] Updating volume replication status.
              2015-07-29 13:24:04.011 19435 INFO cinder.brick.iscsi.iscsi [req-a945d37d-a019-414b-ba9c-98e7dc6127bc f3453398c4c54ccc9b9dba5167a0e359 3798b42189f64e55ace209965a6f2651 - - -] Creating iscsi_target for: volume-7b8d48d5-832f-4eaa-b248-91537b79bd22
                  2015-07-29 13:24:27.528 19435 INFO cinder.volume.manager [-] Updating volume status
                 2015-07-29 13:24:27.639 19435 INFO cinder.volume.manager [-] Updating volume replication status.

UPDATE: debug = true

bd5-4f9e-9b80-b0789a47f6b3: creating export initialize_connection /usr/lib/python2.7/dist-packages/cinder/volume/manager.py:900 2015-07-29 14:24:42.397 19984 INFO cinder.brick.iscsi.iscsi [req-0cd489b9-cd17-4a19-8f5e-99fdf639c591 f3453398c4c54ccc9b9dba5167a0e359 3798b42189f64e55ace209965a6f2651 - - -] Creating iscsi_target for: volume-e3a79bcc-0bd5-4f9e-9b80-b0789a47f6b3 2015-07-29 14:24:42.397 19984 DEBUG cinder.brick.iscsi.iscsi [req-0cd489b9-cd17-4a19-8f5e-99fdf639c591 f3453398c4c54ccc9b9dba5167a0e359 3798b42189f64e55ace209965a6f2651 - - -] Created volume path /var/lib/cinder/volumes/volume-e3a79bcc-0bd5-4f9e-9b80-b0789a47f6b3, content: <target iqn.2010-10.org.openstack:volume-e3a79bcc-0bd5-4f9e-9b80-b0789a47f6b3=""> backing-store /dev/cinder-volumes/volume-e3a79bcc-0bd5-4f9e-9b80-b0789a47f6b3 lld iscsi incominguser voyZBb8cm6QqV4re4Sw4 uJkqVEYXnkgSfxT4 write-cache on </target> create_iscsi_target /usr/lib/python2.7/dist-packages/cinder/brick/iscsi/iscsi.py:213 2015-07-29 14:24:42.399 19984 DEBUG cinder.openstack.common.processutils [req-0cd489b9-cd17-4a19-8f5e-99fdf639c591 f3453398c4c54ccc9b9dba5167a0e359 3798b42189f64e55ace209965a6f2651 - - -] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgt-admin --update iqn.2010-10.org.openstack:volume-e3a79bcc-0bd5-4f9e-9b80-b0789a47f6b3 execute /usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py:158 2015-07-29 14:24:42.572 19984 DEBUG cinder.openstack.common.processutils [req-0cd489b9-cd17-4a19-8f5e-99fdf639c591 f3453398c4c54ccc9b9dba5167a0e359 3798b42189f64e55ace209965a6f2651 - - -] Result was 0 execute /usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py:192 2015-07-29 14:24:42.573 19984 DEBUG cinder.brick.iscsi.iscsi [req-0cd489b9-cd17-4a19-8f5e-99fdf639c591 f3453398c4c54ccc9b9dba5167a0e359 3798b42189f64e55ace209965a6f2651 - - -] StdOut from tgt-admin --update: create_iscsi_target /usr/lib/python2.7/dist-packages/cinder/brick/iscsi/iscsi.py:227 2015-07-29 14:24:42.574 19984 DEBUG cinder.brick.iscsi.iscsi [req-0cd489b9-cd17-4a19-8f5e-99fdf639c591 f3453398c4c54ccc9b9dba5167a0e359 3798b42189f64e55ace209965a6f2651 - - -] StdErr from tgt-admin --update: create_iscsi_target /usr/lib/python2.7/dist-packages/cinder/brick/iscsi/iscsi.py:228 2015-07-29 14:24:42.576 19984 DEBUG cinder.openstack.common.processutils [req-0cd489b9-cd17-4a19-8f5e-99fdf639c591 f3453398c4c54ccc9b9dba5167a0e359 3798b42189f64e55ace209965a6f2651 - - -] Running cmd (subprocess): sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgtadm --lld iscsi --op show --mode target execute /usr/lib/python2.7/dist-packages/cinder/openstack/common/processutils.py:158 2015-07-29 14:24:42.672 19984 DEBUG cinder.openstack.common.processutils [req-0cd489b9-cd17-4a19-8f5e-99fdf639c591 ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-10-19 09:21:28 -0500

Bob Ball gravatar image
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: 2015-07-29 12:56:30 -0500

Seen: 101 times

Last updated: Oct 19 '15