Bug 1377174

Summary: got libvirtError "Block format 'raw' does not support the option 'password-secret'" when launching instance with Ceph backend
Product: [Community] Virtualization Tools Reporter: Kevin Zhao <kevin.zhao>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: kevin.zhao, libvirt-maint, rbalakri, socketpair
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-13 07:25:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
The error log info attachment1
none
guest xml file attachment2 none

Description Kevin Zhao 2016-09-19 05:33:06 UTC
Created attachment 1202306 [details]
The error log info attachment1 [details]

Description of problem:
Using Ceph and openstack to launching instance. Use the libvirt 2.1.0 and Qemu 2.6.1.

Launching instance got error:
 libvirtError: internal error: process exited while connecting to monitor: 2016-09-19T03:31:14.680920Z qemu-system-aarch64: -drive file=rbd:vms/2866915b-6d53-4716-84bb-f640b0725a49_disk:id=cinder:auth_supported=cephx\;none:mon_host=10.164.12.165\:6789,password-secret=scsi0-0-0-0-secret0,format=raw,if=none,id=drive-scsi0-0-0-0,cache=writeback: Block format 'raw' does not support the option 'password-secret'

Version-Release number of selected component (if applicable):
Libvirt 2.1.0
Qemu 2.6.1

How reproducible:
1. Set environment of OpenStack and Ceph. Set OpenStack using Ceph backend.
2. launching instance with Nova.
3. Got error , the log info is in the attachment1 [details].
4. The guest xml file is in the attachment2 [details]
Steps to Reproduce:


Actual results:
Got error "Block format 'raw' does not support the option 'password-secret'" when launching the instance

Expected results:
Creating instance successfully.

Additional info:

Comment 1 Kevin Zhao 2016-09-19 05:34:04 UTC
Created attachment 1202307 [details]
guest xml file  attachment2 [details]

Comment 2 Kevin Zhao 2016-09-19 05:35:13 UTC
(In reply to Kevin Zhao from comment #0)
> Created attachment 1202306 [details]
> The error log info attachment1 [details]
> 
> Description of problem:
> Using Ceph and openstack to launching instance. Use the libvirt 2.1.0 and
> Qemu 2.6.1.
> 
> Launching instance got error:
>  libvirtError: internal error: process exited while connecting to monitor:
> 2016-09-19T03:31:14.680920Z qemu-system-aarch64: -drive
> file=rbd:vms/2866915b-6d53-4716-84bb-f640b0725a49_disk:id=cinder:
> auth_supported=cephx\;none:mon_host=10.164.12.165\:6789,password-
> secret=scsi0-0-0-0-secret0,format=raw,if=none,id=drive-scsi0-0-0-0,
> cache=writeback: Block format 'raw' does not support the option
> 'password-secret'
> 
> Version-Release number of selected component (if applicable):
> Libvirt 2.1.0
> Qemu 2.6.1
> 
> How reproducible:
> 1. Set environment of OpenStack and Ceph. Set OpenStack using Ceph backend.
> 2. launching instance with Nova.
> 3. Got error , the log info is in the attachment1 [details].
> 4. The guest xml file is in the attachment2 [details]
> Steps to Reproduce:
> 
> 
> Actual results:
> Got error "Block format 'raw' does not support the option 'password-secret'"
> when launching the instance
> 
> Expected results:
> Creating instance successfully.
> 
> Additional info:

For this:
> 3. Got error , the log info is in the attachment1 [details].
> 4. The guest xml file is in the attachment2 [details]
The two link is wrong. Pls check the attachments directly.

Comment 3 Kevin Zhao 2016-09-19 05:36:16 UTC
I have a finding that there is a patch :
https://www.redhat.com/archives/libvir-list/2016-May/msg00075.html
Maybe this related to this bug?

Comment 4 Коренберг Марк 2016-12-27 21:08:06 UTC
Kevin, which OS do you use for Nova ?

I have exactly the same problem on Ubuntu 16.10:

libvirt 2.1.0
qemu 2.6.1

Comment 5 Коренберг Марк 2016-12-27 22:00:59 UTC
Installing this PPA in Ubuntu:

https://launchpad.net/~jacob/+archive/ubuntu/virtualisation?field.series_filter=yakkety

fixes the problem. I have updated both libvirt and qemu.