Glance RegistryClient only connects to 0.0.0.0:9292
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Jay Pipes |
Bug Description
Glance RegistryClient is only instantiated with no arguments, meaning that the glance registry server must be running on 0.0.0.0:9292 for the code in /glance/
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""
Registry API
"""
from glance.registry import client
def get_images_list():
c = client.
return c.get_images()
def get_images_
c = client.
return c.get_images_
def get_image_
c = client.
return c.get_image(
def add_image_
c = client.
return c.add_image(
def update_
c = client.
return c.update_
def delete_
c = client.
return c.delete_
Solution:
Create a flag value 'registry_
Related branches
- Rick Harris (community): Approve
- Devin Carlen (community): Approve
-
Diff: 147 lines (+84/-12)3 files modifiedbin/glance-registry (+0/-4)
doc/source/registries.rst (+67/-2)
glance/registry/__init__.py (+17/-6)
Changed in glance: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in glance: | |
status: | Confirmed → Triaged |
status: | Triaged → In Progress |
assignee: | nobody → Jay Pipes (jaypipes) |
Changed in glance: | |
status: | In Progress → Fix Committed |
Changed in glance: | |
milestone: | none → 0.1.7 |
status: | Fix Committed → Fix Released |