Devstack plugin sets service instance parameters for all drivers

Bug #1878477 reported by Goutham Pacha Ravi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Low
Victoria Martinez de la Cruz

Bug Description

Description
===========

Manila's devstack plugin allows configuring any shared file system backend with the help of Devstack's local.conf options..

For example, the options required for setting up the LVM backend and driver are as follows:

MANILA_BACKEND1_CONFIG_GROUP_NAME="london"
MANILA_BACKEND2_CONFIG_GROUP_NAME="Paris"
MANILA_ENABLED_BACKENDS="london,paris"
MANILA_OPTGROUP_london_driver_handles_share_servers="False"
MANILA_OPTGROUP_paris_driver_handles_share_servers="False"
MANILA_SHARE_BACKEND1_NAME="LONDON"
MANILA_SHARE_BACKEND2_NAME="PARIS"

A more complete example is at [1]

After deployment, you can see that the manila.conf has some unnecessary config opts set for this driver:

 <relevant sections snip>

 [london]
 lvm_share_export_ips = 172.24.5.1,fd9d:85ed:75c3:1::1
 backend_availability_zone = manila-zone-0
 driver_handles_share_servers = False
 service_instance_user = manila <---- This option is not required
 service_image_name = manila-service-image-master <---- This option is not required
 path_to_private_key = /opt/stack/.ssh/id_rsa <---- This option is not required
 path_to_public_key = /opt/stack/.ssh/id_rsa.pub <---- This option is not required
 share_backend_name = LONDON
 share_driver = manila.share.drivers.lvm.LVMShareDriver

 [paris]
 lvm_share_export_ips = 172.24.5.1,fd9d:85ed:75c3:1::1
 backend_availability_zone = manila-zone-1
 driver_handles_share_servers = False
 service_instance_user = manila <---- This option is not required
 service_image_name = manila-service-image-master <---- This option is not required
 path_to_private_key = /opt/stack/.ssh/id_rsa <---- This option is not required
 path_to_public_key = /opt/stack/.ssh/id_rsa.pub <---- This option is not required
 share_backend_name = PARIS
 share_driver = manila.share.drivers.lvm.LVMShareDriver

Steps to reproduce
==================

* Setup manila with devstack specifying a custom backend, not generic driver (e.g. [1])
* After devstack completes, check manila.conf

Expected result
===============

I expect only options relevant to my custom backend to be set

Actual result
=============
The devstack plugin seems to be forcing some options to be set: https://opendev.org/openstack/manila/src/commit/9fbde73868a728b27c9e5b09e4792e5b04388003/devstack/plugin.sh#L94-L98

Environment
===========
1. Devstack with manila on master (Ussuri release)

2. Which storage backend did you use? LVM

3. Which networking type did you use? Neutron, devstack/defaults

Logs & Configs
==============

[1] https://docs.openstack.org/manila/latest/_downloads/42245fd942d8a3ac38aa3aebbc9c2ad1/lvm_local.conf

Changed in manila:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Victoria Martinez de la Cruz (vkmc)
Changed in manila:
milestone: none → victoria-1
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :
Changed in manila:
milestone: victoria-1 → victoria-2
Changed in manila:
milestone: victoria-2 → victoria-3
Changed in manila:
milestone: victoria-3 → victoria-rc1
Changed in manila:
milestone: victoria-rc1 → wallaby-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.opendev.org/756405

Changed in manila:
status: Confirmed → In Progress
Changed in manila:
milestone: wallaby-1 → wallaby-2
Changed in manila:
milestone: wallaby-2 → wallaby-3
Changed in manila:
status: In Progress → Fix Released
tags: added: wallaby-rc-bugsquash
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 12.0.0.0rc1

This issue was fixed in the openstack/manila 12.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.