glance-manage should not require glance-registry.conf

Bug #1046576 reported by Mark Washenberger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Wishlist
John Bresnahan

Bug Description

glance-manage gets its sql connection info from glance-registry.conf. However, with api v2 it is not required that you even deploy a registry. Somehow glance-manage needs to be smarter about all this.

Revision history for this message
Brian Waldon (bcwaldon) wrote :

You can use --config-file to get around this, but we could be better about handling it.

Changed in glance:
importance: Undecided → Wishlist
status: New → Triaged
Rongze Zhu (zrzhit)
Changed in glance:
assignee: nobody → Rongze Zhu (zrzhit)
Rongze Zhu (zrzhit)
Changed in glance:
assignee: Rongze Zhu (zrzhit) → nobody
Changed in glance:
assignee: nobody → John Bresnahan (jbresnah)
Revision history for this message
John Bresnahan (jbresnah) wrote :

This seems like a very easy fix. From looking at the tests, the only required information for glance-manage appears to be 'sql_connection'. This field is in both so we can simply point at the api file. However we should probably add a few more tests for glance-manage.

Changed in glance:
milestone: none → havana-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/25829

Changed in glance:
status: Triaged → In Progress
Revision history for this message
Mark Washenberger (markwash) wrote :

Could glance-manage take the sql connection as an argument as well?

Revision history for this message
John Bresnahan (jbresnah) wrote :

That sounds like a good feature. So it would take that on the command line and that would override anything in a configuration file?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/25829
Committed: http://github.com/openstack/glance/commit/3e0f3d502d9cd885091561ac5172a14fffe30fd3
Submitter: Jenkins
Branch: master

commit 3e0f3d502d9cd885091561ac5172a14fffe30fd3
Author: John Bresnahan <email address hidden>
Date: Mon Apr 1 08:42:57 2013 -1000

    glance-manage should not require glance-registry.conf

    In v2 the glance-registry service is no longer needed. Thus
    it is possible that a setup would not include a configuration
    file for it at all. Further it is possible that glance-api and
    glance-registry be run on different machines such that neither
    configuration file is available to the other. Therefore glance-manage
    should be able to pull the information out of either configuration
    file provided that the overriding command line options:
    --sql_connection or --config-file are not used. This patch makes
    it so glance-manage will first look in the glance-registry.conf file
    for db information (as this is the legacy behavior) and then in
    the glance-api.conf file if that file does not exist.

    Fixes bug: 1046576
    Change-Id: Ida68a5c03eb3d188b2b997296cd45730b968ef12

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: havana-1 → 2013.2
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.