cinder volumes not attached to controller

asked 2017-04-03 06:14:24 -0500

STF gravatar image

updated 2017-04-03 06:15:27 -0500

Hello,

I installed a test instance of Mitaka with one controller and two nodes, following the documentation

Unfortunately I got stuck at the block storage section. Although I did configure everything both on the controller and compute nodes as in the documentation (and reviewed several times), the two cinder volumes are not getting registered on my controller. Only the scheduler appears.

On my compute (storage) nodes, in /var/log/cinder/volume.log I find the following line:

2017-04-03 10:55:37.615 4863 ERROR cinder.cmd.volume DBConnectionError: (pymysql.err.OperationalError) (2013, 'Lost connection to MySQL server during query (raw readinto() returned invalid length -1 (should have been between 0 and 8192)$

Can anybody help me, please?

edit retag flag offensive close merge delete

Comments

It's not clear what you mean by "the volumes are not registered". Can you elaborate? What commands do you run?

If cinder-volume running on the storage nodes can't access the database, I suppose this causes trouble. Perhaps the DB connection string in cinder.conf on the storage hosts is incorrect.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-03 23:08:18 -0500 )edit

What I mean is that on the controller, when I list the cinder services (cinder service-list), only the cinder-scheduler appears.

As about the DB connection in cinder.conf, I'm confident that it's correct:

connection = mysql+pymysql://cinder:CINDER_DBPASS@controller/cinder

STF gravatar imageSTF ( 2017-04-04 01:13:19 -0500 )edit

For simplicity, I`ve left the pass in mysql for the cinder user as CINDER_DBPASS and I can connect to mysql with this credentials. I can also resolve and reach controller from my compute/storage node, where I can also see an established session with my controller on port 3306.

STF gravatar imageSTF ( 2017-04-04 01:17:06 -0500 )edit
1

Hmmm, all I can do is google for this error. Somebody else knows more? Here in ask.openstack.org, this question might help.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-04 03:10:27 -0500 )edit

Hi I'm facing the same problem any help , thanks.

ebtihel gravatar imageebtihel ( 2017-04-11 10:13:09 -0500 )edit