Project

General

Profile

Bug #3493

libvirt: storage pool does not work with cephx disabled

Added by Josh Durgin about 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
% Done:

0%

Spent time:
Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

(02:59:32 PM) jlogan1: Here is the debug output
(02:59:34 PM) jlogan1: 2012-11-14 22:58:51.349+0000: 9494: debug : virStorageBackendRBDCreateVol:418 : Creating RBD image data/test7-sef.prod.msrch-disk1 with size 20971520
(02:59:34 PM) jlogan1: 2012-11-14 22:58:51.349+0000: 9494: debug : virStorageBackendRBDOpenRADOSConn:62 : Found Cephx username: (null)
(02:59:34 PM) jlogan1: 2012-11-14 22:58:51.349+0000: 9494: debug : virStorageBackendRBDOpenRADOSConn:120 : Not using cephx authorization
(02:59:34 PM) jlogan1: 2012-11-14 22:58:51.350+0000: 9494: debug : virStorageBackendRBDOpenRADOSConn:135 : Found 3 RADOS cluster monitors in the pool configuration
(02:59:34 PM) jlogan1: 2012-11-14 22:58:51.350+0000: 9494: debug : virStorageBackendRBDOpenRADOSConn:159 : RADOS mon_host has been set to: 10.10.2.147:6789,10.10.2.148:6789,10.10.2.149:6789,
(02:59:36 PM) jlogan1: 2012-11-14 22:58:51.354+0000: 9494: debug : virSecretFree:15438 : secret=(nil)
(02:59:36 PM) jlogan1: 2012-11-14 22:58:51.354+0000: 9494: error : virSecretFree:15443 : Invalid secret: virSecretFree
(02:59:38 PM) jlogan1: 2012-11-14 22:58:51.356+0000: 9494: error : virStorageBackendRBDCreateVol:442 : internal error failed to create volume 'data/test7-sef.prod.msrch-disk1'
(02:59:38 PM) jlogan1: 2012-11-14 22:58:51.357+0000: 9494: debug : virStorageBackendRBDCloseRADOSConn:191 : Closing RADOS IoCTX
(02:59:40 PM) jlogan1: 2012-11-14 22:58:51.357+0000: 9494: debug : virStorageBackendRBDCloseRADOSConn:198 : Closing RADOS connection
(02:59:40 PM) jlogan1: 2012-11-14 22:58:51.358+0000: 9494: debug : virStorageBackendRBDCloseRADOSConn:205 : RADOS connection existed for 0 seconds
(02:59:42 PM) jlogan1: 2012-11-14 22:58:51.358+0000: 9494: debug : virStoragePoolFree:12592 : pool=0x7ffbf00027c0

The bug is that the cleanup phase of virStorageBackendRBDOpenRADOSConn calls virSecretFree on a NULL pointer when auth is disabled.

History

#1 Updated by Ian Colle over 6 years ago

  • Assignee set to Wido den Hollander

#2 Updated by Wido den Hollander over 6 years ago

  • Status changed from New to 15

I completely forgot about this one, my bad!

I just submitted a patch on the libvirt list to fix this.

#4 Updated by Sage Weil over 6 years ago

that was quick :)

Also available in: Atom PDF