[Yahoo-eng-team] [Bug 1697728] Re: openstack-glance: Adding images with the same name should not be allowed.

2017-06-13 Thread Stuart McLaren
Glance image ids (eg b3db0d80-bdea-45c3-aefe-9f7d0e94e1d7) are globally unique. Image names are not unique. This is by design, and I don't think it's something we want to change. If I remember correctly, you can provide either a *name* or an *id* to the "openstack client". The difference is

[Yahoo-eng-team] [Bug 1640442] Re: glance image-tag-update, not updating a tag whose length is more than 255

2016-11-09 Thread Stuart McLaren
As reported in the response, the maximum length you can set the tag to is 255 characters: 'maxLength': 255 So Glance is correctly enforcing this limit. ** Changed in: glance Status: New => Invalid -- You received this bug notification because you are a member of Yahoo! Engineering

[Yahoo-eng-team] [Bug 1617258] Re: Nova fails to boot signed image

2016-08-26 Thread Stuart McLaren
** Project changed: nova => glance -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1617258 Title: Nova fails to boot signed image Status in Glance: New Bug description: Description

[Yahoo-eng-team] [Bug 1606562] Re: Add 'vhdx' disk format support

2016-07-27 Thread Stuart McLaren
** Changed in: glance Status: In Progress => Invalid -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1606562 Title: Add 'vhdx' disk format support Status in Glance: Invalid Bug

[Yahoo-eng-team] [Bug 1606562] [NEW] Add 'vhdx' disk format support

2016-07-26 Thread Stuart McLaren
: Undecided Assignee: Stuart McLaren (stuart-mclaren) Status: In Progress ** Changed in: glance Assignee: (unassigned) => Stuart McLaren (stuart-mclaren) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. ht

[Yahoo-eng-team] [Bug 1582304] [NEW] Some v1 tests fail when http_proxy is enabled

2016-05-16 Thread Stuart McLaren
.test_api.TestGlanceAPI.test_add_location_with_invalid_location_on_conflict_image_size v1.test_api.TestGlanceAPI.test_add_copy_from_with_location v1.test_api.TestGlanceAPI.test_download_service_unavailable ** Affects: glance Importance: Undecided Assignee: Stuart McLaren (stuart-mclaren

[Yahoo-eng-team] [Bug 1573652] [NEW] Some v2 tests' checks are wrong

2016-04-22 Thread Stuart McLaren
Public bug reported: In ./glance/tests/functional/v2/test_images.py Tests such as test_download_image_allowed_using_restricted_policy do this: expected_image = { 'status': 'queued', 'name': 'image-1', 'tags': [], 'visibility': 'private',

[Yahoo-eng-team] [Bug 1570801] [NEW] tasks: disk_format ignored when 'work_dir' is set

2016-04-15 Thread Stuart McLaren
Public bug reported: If, in glance-api.conf work_dir is not defined: [task] #work_dir The following API call (with disk_format=qcow2): POST /v2/tasks HTTP/1.1. User-Agent: curl/7.38.0. Host: localhost:9292. Accept: */*. x-auth-token: 1acdf9b1f89f4aaf983079250fcefb3d. Content-Length:

[Yahoo-eng-team] [Bug 1560756] Re: galnce image-show could show the deleted images.That is not reasonable

2016-03-23 Thread Stuart McLaren
As a regular user I don't see this behaviour: $ glance --os-image-api-version 1 image-show 5389c76a-2970-4666-9a86-1e9b24a854da No image with a name or ID of '5389c76a-2970-4666-9a86-1e9b24a854da' exists. $ glance --os-image-api-version 2 image-show 5389c76a-2970-4666-9a86-1e9b24a854da 404

[Yahoo-eng-team] [Bug 1558398] Re: instance snapshot with large root disk fails when glance api using ssl

2016-03-18 Thread Stuart McLaren
** Changed in: glance Status: New => Invalid -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1558398 Title: instance snapshot with large root disk fails when glance api using ssl

[Yahoo-eng-team] [Bug 1545732] [NEW] glance v2 api: standard user can update other user's public metadefs

2016-02-15 Thread Stuart McLaren
*** This bug is a security vulnerability *** Private security bug reported: If project 'd12bddf60e4649b2a2cf6a2cc7520d79' owns a global namespace: $ openstack token issue ++--+ | Field | Value|

[Yahoo-eng-team] [Bug 1541238] Re: No response message after we delete an image

2016-02-03 Thread Stuart McLaren
> We have to perform "glance image-list" to check it is deleted or not Not really. If a failure occurs the command will 1) exit with a non-zero exit status, 2) print an error If the return status to the operating system is 0, the delete has succeeded. This is fairly typical for the UNIX command

[Yahoo-eng-team] [Bug 1541238] Re: No response message after we delete an image

2016-02-03 Thread Stuart McLaren
Hi, "Fix Comitted" status is for when a code change has merged into the git repository. I've marked this as "Opinion" which I think is the most appropriate at this point. Note that any new changes should always be targeted at the 'master' branch first. ** Changed in: glance Status: Fix

[Yahoo-eng-team] [Bug 1533536] Re: glance api v2 cannot check image checksum

2016-01-13 Thread Stuart McLaren
** Changed in: glance Status: Invalid => New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1533536 Title: glance api v2 cannot check image checksum Status in Glance: New Bug

[Yahoo-eng-team] [Bug 1532243] [NEW] glance fails silently if a task flow can't be loaded

2016-01-08 Thread Stuart McLaren
Public bug reported: In this try block: try: # NOTE(flaper87): ImportToLocal and DeleteFromLocal shouldn't be here. # Ideally, we should have the different import flows doing this for us # and this function should clean up duplicated tasks. For example, say #

[Yahoo-eng-team] [Bug 1521236] [NEW] Missing list of stores in glance-api.conf

2015-11-30 Thread Stuart McLaren
, # glance.store.http.Store We don't seem to have a full list of stores in etc/glance-api.conf any more: [glance_store] # # From glance.store # # List of stores enabled (list value) #stores = file,http ** Affects: glance Importance: Undecided Assignee: Stuart McLaren (stuart-mclaren

[Yahoo-eng-team] [Bug 1521238] [NEW] Documentation is missing http store

2015-11-30 Thread Stuart McLaren
Assignee: Stuart McLaren (stuart-mclaren) Status: Invalid ** Changed in: glance Assignee: (unassigned) => Stuart McLaren (stuart-mclaren) ** Changed in: glance Status: New => Invalid -- You received this bug notification because you are a member of Yahoo! Engineerin

[Yahoo-eng-team] [Bug 1519006] [NEW] How to set the supported image formats doesn't seem to be documented

2015-11-23 Thread Stuart McLaren
group='DEFAULT')]), ] But I can't see where we explain to users how to configure them. ** Affects: glance Importance: Undecided Assignee: Stuart McLaren (stuart-mclaren) Status: In Progress ** Changed in: glance Assignee: (unassigned) => Stuart McLaren (stuart-mclar

[Yahoo-eng-team] [Bug 1517060] Re: User (without admin privileges) can change size your own image with 'deactivated' status.

2015-11-19 Thread Stuart McLaren
** Changed in: glance Status: Invalid => Confirmed -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1517060 Title: User (without admin privileges) can change size your own image

[Yahoo-eng-team] [Bug 1517963] [NEW] Checksum of deactivated image can be modified for 'deactivated' images

2015-11-19 Thread Stuart McLaren
Public bug reported: Similar to bug 1517060 for 'size', the checksum of a deactivated image can be changed via the v1 api. ** Affects: glance Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is

[Yahoo-eng-team] [Bug 1516706] [NEW] Glance v1 API makes requests to the v2 registry

2015-11-16 Thread Stuart McLaren
Public bug reported: If I configure storage quotas with: user_storage_quota = 6 And I enable the v2 registry: data_api = glance.db.registry.api Then a v1 image create: $ glance --os-image-api-version 1 image-create --name x3 --disk-format raw --container-format bare --file /etc/fstab 413

[Yahoo-eng-team] [Bug 1502136] [NEW] Everything returns 403 if show_multiple_locations is true and get_image_location policy is set

2015-10-02 Thread Stuart McLaren
Public bug reported: If, in glance-api.conf you set: show_multiple_locations = true Things work as expected: $ glance --os-image-api-version 2 image-show 13ae74f0-74bf-4792-a8bb-7c622abc5410

[Yahoo-eng-team] [Bug 1501672] [NEW] v2 image download returns 403 when 'get_image_locations' policy set

2015-10-01 Thread Stuart McLaren
Importance: Undecided Assignee: Stuart McLaren (stuart-mclaren) Status: New ** Changed in: glance Assignee: (unassigned) => Stuart McLaren (stuart-mclaren) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. ht

[Yahoo-eng-team] [Bug 1498850] Re: glance image-create without arguments is creating blank image

2015-09-23 Thread Stuart McLaren
This has been the behaviour for a while now. I think it needs to be considered a feature rather than a bug (users may rely on it). The openstack client (python-openstackclient) is starting to become the standard CLI for interacting with the image service. I believe it behaves differently here,

[Yahoo-eng-team] [Bug 1489941] Re: v2 client sorts on name in wrong direction

2015-09-01 Thread Stuart McLaren
It is a bug. A user, when they execute: glance image-list --sort-key name will reasonably expect that 1) the sort direction is the same as it always has been 2) the names are sorted in alphabetical order ** Changed in: python-glanceclient Status: Invalid => New -- You received this

[Yahoo-eng-team] [Bug 1302351] Re: v2 API can't create image - Attribute 'file' is reserved.

2015-08-27 Thread Stuart McLaren
Seems to work ok now $ glance --os-image-api-version 2 image-create --container-format bare --disk-format raw --name trusty2 --file /etc/fstab +--+--+ | Property | Value|

[Yahoo-eng-team] [Bug 1483649] [NEW] v1: sending bad format to created_at/deleted_at returns 500

2015-08-11 Thread Stuart McLaren
Public bug reported: POST /v1/images HTTP/1.1 User-Agent: curl/7.35.0 Host: localhost:9292 Accept: */* x-auth-token: 730b8eabc2e34a1299fcafa888131dc5 x-image-meta-disk-format: raw x-image-meta-container-format: bare Content-type: application/octet-stream x-image-meta-updated_at: foo

[Yahoo-eng-team] [Bug 1483353] [NEW] v1: x-image-meta-id header provokes E500

2015-08-10 Thread Stuart McLaren
Public bug reported: $ curl -v -X PUT http://127.0.0.1:9292/v1/images/8aa1f62d-73f2-4ed7-8d4c-b66407abd439 -H 'X-Auth-Token: 7535a1be77e3459e8e4928aae02a8042' -H 'x-image-meta-id: fd6db2fa-9c9d-4105-aa3b-657914593de8' * Hostname was NOT found in DNS cache * Trying 127.0.0.1... * Connected

[Yahoo-eng-team] [Bug 1483316] [NEW] FEATURE_BLACKLIST parameter is unused

2015-08-10 Thread Stuart McLaren
Public bug reported: glance/common/utils.py has a FEATURE_BLACKLIST parameter, but this is no longer referenced in the code. ** Affects: glance Importance: Undecided Assignee: Stuart McLaren (stuart-mclaren) Status: New ** Changed in: glance Assignee: (unassigned

[Yahoo-eng-team] [Bug 1480330] [NEW] Add .rst documentation for glance-swift.conf and using keystone v3

2015-07-31 Thread Stuart McLaren
that and the new keystone v3 config options. ** Affects: glance Importance: Undecided Assignee: Stuart McLaren (stuart-mclaren) Status: New ** Changed in: glance Assignee: (unassigned) = Stuart McLaren (stuart-mclaren) -- You received this bug notification because you are a member

[Yahoo-eng-team] [Bug 1455118] [NEW] Missing dependency on python-keystoneclient

2015-05-14 Thread Stuart McLaren
Public bug reported: We import keystone client code directly, but don't have an entry in requirements.txt ** Affects: nova Importance: Undecided Assignee: Stuart McLaren (stuart-mclaren) Status: In Progress -- You received this bug notification because you are a member

[Yahoo-eng-team] [Bug 1445827] Re: unit test failures: Glance insist on ordereddict

2015-04-21 Thread Stuart McLaren
** Also affects: taskflow Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1445827 Title: unit test failures: Glance insist on ordereddict

[Yahoo-eng-team] [Bug 1444056] [NEW] v1 client may truncate listings

2015-04-14 Thread Stuart McLaren
Public bug reported: If I set api_limit_max = 10 in glance-api.conf: and I have 71 images and list them with v2 I see all of them: $ glance --os-image-api-version 2 image-list --page-size 80 | wc 71 2835325 Each response from the server correctly contains only 10 images. If I

[Yahoo-eng-team] [Bug 1437346] [NEW] test_update_replace_locations_status_exception failing frequently in the gate

2015-03-27 Thread Stuart McLaren
Public bug reported: eg https://review.openstack.org/#/c/129936/ http://logs.openstack.org/36/129936/8/check/gate-glance- python27/d7d91c5/console.html ** Affects: glance Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo!

[Yahoo-eng-team] [Bug 1436272] [NEW] SIGHUP: handle listening socket correctly

2015-03-25 Thread Stuart McLaren
Public bug reported: When a SIGHUP signal is received prompting a reload of the configuration we need to ensure that changes to the listening socket take effect. ** Affects: glance Importance: Undecided Assignee: Stuart McLaren (stuart-mclaren) Status: In Progress ** Tags

[Yahoo-eng-team] [Bug 1436274] [NEW] SIGHUP: Pick up changes to log config

2015-03-25 Thread Stuart McLaren
Public bug reported: When a SIGHUP signal is received prompting a reload of the configuration we need to ensure that changes to the log configuration (eg changing INFO to DEBUG) take effect. ** Affects: glance Importance: Undecided Assignee: Stuart McLaren (stuart-mclaren

[Yahoo-eng-team] [Bug 1436275] [NEW] SIGHUP: glance_control should really reload rather than stop/start

2015-03-25 Thread Stuart McLaren
Public bug reported: Currently 'glance_control reload' does a service stop/start. Instead it should send a SIGHUP to trigger the service to reload its configuration (and preserve any in-flight requests). ** Affects: glance Importance: Undecided Assignee: Stuart McLaren (stuart-mclaren

[Yahoo-eng-team] [Bug 1398903] [NEW] copy-from does not work

2014-12-03 Thread Stuart McLaren
Public bug reported: I get the following error when using copy-from to create an image: 2014-12-03 16:21:03.387 30059 TRACE glance.api.v1.upload_utils result = fd.read(*args) 2014-12-03 16:21:03.387 30059 TRACE glance.api.v1.upload_utils File glance/common/utils.py, line 191, in read

[Yahoo-eng-team] [Bug 1394299] [NEW] Shared image shows as private

2014-11-19 Thread Stuart McLaren
Public bug reported: image 281d576a-9e4b-4d11-94bb-8b1e89f62a71 is owned by this user and correctly shows as 'private', however image '795518ca- 13a6-4493-b3a3-91519ad7c067' is not owned by this user, it is a shared image. $ glance --os-image-api-version 2 image-list --visibility shared

[Yahoo-eng-team] [Bug 1393837] [NEW] --member-status STATUS returns images whose member status is not STATUS

2014-11-18 Thread Stuart McLaren
Public bug reported: Note: the cirros-* images are public, 'private-image' is private, 'share-test' is shared with this user (in pending state): Standard image list works ok: $ glance --os-image-api-version 2 image-list

[Yahoo-eng-team] [Bug 1385213] [NEW] Swift multi-tenant store: upload broken

2014-10-24 Thread Stuart McLaren
Public bug reported: glance image-upload xxx returns E500 when using the swift multi-tenant backend ** Affects: glance Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance.

[Yahoo-eng-team] [Bug 1383722] [NEW] glance store initialization should be improved

2014-10-21 Thread Stuart McLaren
Public bug reported: Currently the glance store initialization is explicitly called in the api start script: cat glance/cmd/api.py . . . glance_store.register_opts(config.CONF) glance_store.create_stores(config.CONF) glance_store.verify_default_store() Other

[Yahoo-eng-team] [Bug 1382585] [NEW] eventlet.wsgi and glance.wsgi logs not separate

2014-10-17 Thread Stuart McLaren
Public bug reported: The log output from both glance.common.wsgi and eventlet.wsgi have the same prefix: 2014-10-17 15:01:43.096 3640 INFO glance.wsgi.server [-] Started child 3679 2014-10-17 15:01:43.097 3679 INFO glance.wsgi.server [-] (3679) wsgi starting up on http://0.0.0.0:9292/ it's

[Yahoo-eng-team] [Bug 1379302] [NEW] Some stale references to BadStoreUri

2014-10-09 Thread Stuart McLaren
Public bug reported: In glance/api/v1/images.py there are some cases where a store.BadStoreUri are being caught, but that exception will not be raised. The potential exception seems to be store.UnknownScheme ** Affects: glance Importance: Undecided Status: New -- You received

[Yahoo-eng-team] [Bug 1379308] [NEW] UnknownScheme exception should be caught

2014-10-09 Thread Stuart McLaren
Public bug reported: In glance/api/v1/images.py there are a couple of places where UnknownScheme can be raised but is not being caught ** Affects: glance Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team,

[Yahoo-eng-team] [Bug 1379302] Re: Some stale references to BadStoreUri

2014-10-09 Thread Stuart McLaren
Actually, you can get a BadStoreUri, you just need to go deep into the stack def get_size_from_backend(uri, context=None): Retrieves image size from backend specified by uri. loc = location.get_location_from_uri(uri, conf=CONF) store = get_store_from_uri(uri) return

[Yahoo-eng-team] [Bug 1376247] [NEW] Test test_get_client_all_creds fails if OS_XXX variables set

2014-10-01 Thread Stuart McLaren
Public bug reported: 'test_get_client_all_creds' will fail if any of the typical Openstack environment variables have been set (eg OS_PASSWORD). ** Affects: glance Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo!

[Yahoo-eng-team] [Bug 1354509] Re: Glance requirements.txt for osprofiler too loose

2014-08-11 Thread Stuart McLaren
*** This bug is a duplicate of bug 1354500 *** https://bugs.launchpad.net/bugs/1354500 Duplicate of https://bugs.launchpad.net/glance/+bug/1354500 ** Changed in: glance Status: New = Invalid -- You received this bug notification because you are a member of Yahoo! Engineering Team,

[Yahoo-eng-team] [Bug 1292142] Re: Fix some swift based scrubber functional tests

2014-07-09 Thread Stuart McLaren
I re-tested with the latest 'master' and these seem to run ok now: It looks like these run ok now: test_delayed_delete 22.34 test_scrubber_app 25.90 test_scrubber_app_against_swift

[Yahoo-eng-team] [Bug 1339775] [NEW] Some v2 exceptions raise unicodeError

2014-07-09 Thread Stuart McLaren
Public bug reported: In v2, for some exceptions the exception is not converted to a string properly resulting in: 2014-07-09 15:36:38,714 INFO msg = _(Image exceeds the storage quota: %s) % e 2014-07-09 15:36:38,714 INFO File glance/openstack/common/gettextutils.py, line 333, in __str__

[Yahoo-eng-team] [Bug 1334711] [NEW] Document workers parameter for the registry

2014-06-26 Thread Stuart McLaren
Public bug reported: The workers parameter applies to the registry as well as the api, ie adding workers=N to glance-registry.conf will increase the number of registry processes. ** Affects: glance Importance: Undecided Assignee: Stuart McLaren (stuart-mclaren) Status: New

[Yahoo-eng-team] [Bug 1334196] [NEW] User may be able to set 'system' style swift location

2014-06-25 Thread Stuart McLaren
Public bug reported: This change: https://review.openstack.org/#/c/98722/ Introduces a new system style swift scheme: swift+config A new function validate_location verifies that that scheme is not being set by a user when using the 'set location' functionality. However, that function will

[Yahoo-eng-team] [Bug 1324586] Re: v1 image delete returns 200 with empty body instead of 204

2014-05-29 Thread Stuart McLaren
** Changed in: glance Status: New = Won't Fix -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1324586 Title: v1 image delete returns 200 with empty body instead of 204 Status in

[Yahoo-eng-team] [Bug 1292142] [NEW] Fix some swift based scrubber functional tests

2014-03-13 Thread Stuart McLaren
Public bug reported: Three of the scrubber tests which rely on swift (glance.tests.functional.test_scrubber.TestScrubber) are currently failing. glance.tests.functional.test_scrubber.TestScrubber test_delayed_delete OK 20.17

[Yahoo-eng-team] [Bug 1292170] [NEW] Fix swift functional test test_create_store

2014-03-13 Thread Stuart McLaren
Public bug reported: Running this test: GLANCE_TEST_SWIFT_CONF=/etc/glance/glance-api.conf ./run_tests.sh glance.tests.functional.store.test_swift.TestSwiftStore.test_create_store gives this failure == FAIL:

[Yahoo-eng-team] [Bug 1291512] [NEW] Swift functional test test_delayed_delete_with_auth is failing

2014-03-12 Thread Stuart McLaren
Public bug reported: If the user running the test can't write to /var/lib/glance the test fails: == FAIL: glance.tests.functional.store.test_swift.TestSwiftStore.test_delayed_delete_with_auth

[Yahoo-eng-team] [Bug 1238604] Re: Run into 500 error during delete image

2013-12-03 Thread Stuart McLaren
If you enable delayed delete you get an E500 and the following stack trace: Dec 2 11:29:17 gl-aw1rdc1-registry 4101 DEBUG eventlet.wsgi.server [f46a69d7-c49b-4e41-ad12-447bcd7d2c38 77049353665607 34096082065107] Traceback (most recent call last): 012 File

[Yahoo-eng-team] [Bug 1212625] Re: 'str' object has no attribute 'AndReturn'

2013-10-03 Thread Stuart McLaren
Fix up for review: https://review.openstack.org/#/c/49526/ ** Changed in: glance Assignee: Kui Shi (skuicloud) = Stuart McLaren (stuart-mclaren) ** Changed in: glance Status: Fix Released = In Progress ** Tags added: havana-rc-potential ** Description changed: + + Fix up