[Yahoo-eng-team] [Bug 1473369] Re: new mock release broke a bunch of unit tests
** Also affects: glance Importance: Undecided Status: New ** Changed in: glance Importance: Undecided => Critical ** Changed in: glance Assignee: (unassigned) => Louis Taylor (kragniz) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1473369 Title: new mock release broke a bunch of unit tests Status in Glance: New Status in murano: Fix Committed Status in murano kilo series: Fix Committed Status in neutron: In Progress Status in python-muranoclient: In Progress Status in python-muranoclient kilo series: New Bug description: http://lists.openstack.org/pipermail/openstack- dev/2015-July/069156.html To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1473369/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1470918] [NEW] Glance uses glance_store from git master
Public bug reported: Since https://review.openstack.org/#/c/197766/, glance_store is pulled in from git master. This is so we can have a voting py34 job, but needs to be changed back to a released version when we cut the next glance_store release. ** Affects: glance Importance: High Status: Triaged -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1470918 Title: Glance uses glance_store from git master Status in OpenStack Image Registry and Delivery Service (Glance): Triaged Bug description: Since https://review.openstack.org/#/c/197766/, glance_store is pulled in from git master. This is so we can have a voting py34 job, but needs to be changed back to a released version when we cut the next glance_store release. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1470918/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1376392] Re: glance using localhost instead of OS_AUTH_URL
** No longer affects: 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/1376392 Title: glance using localhost instead of OS_AUTH_URL Status in Python client library for Glance: Confirmed Bug description: On OSX and Ubuntu 12.04 using version 0.14.1 when i specify OS_AUTH_URL it does not get used and instead glance is trying to resolve to localhost... this doesn't work. Also -v and -d don't seem to do anything. env settings: OS_AUTH_URL=http://my-api-endpoint:5000/v2.0 OS_TENANT_ID=redacted OS_TENANT_NAME=redacted OS_USERNAME=jaybocc2 OS_PASSWORD=redacted [1] → # glance image-create --progress --human-readable --name win-2008R2-U1.18 --is-public true --container-format bare --disk-format vmdk --property vmware_disktype="sparse" --file ./windows_2008_r2_U1.18_openstack.vmdk Unable to establish connection to http://localhost:5000/v2.0/tokens [1] → # glance -v -d --os-auth-url http://api-oyla1.client.metacloud.net:5000/v2.0 image-create --progress --human-readable --name win-2008R2-U1.18 --is-public true --container-format bare --disk-format vmdk --property vmware_disktype="sparse" --file ./windows_2008_r2_U1.18_openstack.vmdk Unable to establish connection to http://localhost:5000/v2.0/tokens [1] → # glance --version 0.14.1 To manage notifications about this bug go to: https://bugs.launchpad.net/python-glanceclient/+bug/1376392/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1461484] Re: '@staticmethod' need to be used where 'self' is not used
I don't believe this should be a rule. This isn't java, and if we need to use those methods from outside an instance of a class, we should first evaluate whether it can be a regular function. If we really need those functions to be attached to particular classes, then use @staticmethod. ** Changed in: glance Status: New => Opinion -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1461484 Title: '@staticmethod' need to be used where 'self' is not used Status in OpenStack Image Registry and Delivery Service (Glance): Opinion Bug description: https://github.com/openstack/glance/blob/master/glance/api/v1/members.py#L40 def _check_can_access_image_members(self, context): if context.owner is None and not context.is_admin: raise webob.exc.HTTPUnauthorized(_("No authenticated user")) In above method, 'self' is not used in _check_can_access_image_members() method that means we can mark this method as static. There are several places in the entire project where this change needs to be done. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1461484/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1455102] Re: some test jobs broken by tox 2.0 not passing env variables
** Also affects: python-glanceclient Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1455102 Title: some test jobs broken by tox 2.0 not passing env variables Status in OpenStack Neutron (virtual network service): New Status in OpenStack Gate Infrastructure: Confirmed Status in Python client library for Glance: New Status in python-manilaclient: Fix Committed Status in Python client library for Nova: In Progress Bug description: Tox 2.0 brings environment isolation, which is good. Except a lot of test jobs assume passing critical variables via environment (like credentials). There are multiple ways to fix this: 1. stop using environment to pass things, instead use a config file of some sort 2. allow explicit pass through via - http://tox.readthedocs.org/en/latest/config.html#confval-passenv =SPACE-SEPARATED-GLOBNAMES This bug mostly exists for tracking patches, and ensuring that people realize there is a larger change here. To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1455102/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1454384] Re: glance unit tests fail with glance_store==0.5.0
https://review.openstack.org/#/c/182469 ** Project changed: glance-store => 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/1454384 Title: glance unit tests fail with glance_store==0.5.0 Status in OpenStack Image Registry and Delivery Service (Glance): Confirmed Bug description: glance_store 0.5.0 was released this morning. Unfortunately, it breaks glance's test suite. Here's an example failure: Traceback (most recent call last): File "glance/tests/unit/v2/test_registry_api.py", line 48, in setUp super(TestRegistryRPC, self).setUp() File "glance/tests/unit/base.py", line 61, in setUp super(IsolatedUnitTest, self).setUp() File "glance/tests/unit/base.py", line 38, in setUp self._create_stores() File "glance/tests/unit/base.py", line 49, in _create_stores store.create_stores(CONF) File "/home/buildbot/schmenkins/state/jobs/glance-upstream/workspace/.tox/py27/local/lib/python2.7/site-packages/glance_store/backend. py", line 186, in create_stores store_instance.configure(re_raise_bsc=True) File "/home/buildbot/schmenkins/state/jobs/glance-upstream/workspace/.tox/py27/local/lib/python2.7/site-packages/glance_store/driver.p y", line 72, in configure self.configure_add() File "/home/buildbot/schmenkins/state/jobs/glance-upstream/workspace/.tox/py27/local/lib/python2.7/site-packages/glance_store/_drivers /filesystem.py", line 303, in configure_add reason=reason) glance_store.exceptions.BadStoreConfiguration: Store filesystem could not be configured correctly. Reason: Specify at least 'filesystem_store_datadir' or 'filesystem_store_datadirs' option It's pretty severe: Ran 2699 tests in 864.327s FAILED (id=0, failures=980, skips=14) error: testr failed (1) ERROR: InvocationError: '/home/buildbot/schmenkins/state/jobs/glance-upstream/workspace/.tox/py27/bin/lockutils-wrapper python setup.py testr --slowest --testr-args=' To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1454384/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1454384] Re: glance unit tests fail with glance_store==0.5.0
This was introduced in glance_store 63fcfd55c0dcb9d8b642fadf9dc2e98d82adef26 ** Project changed: glance => glance-store -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1454384 Title: glance unit tests fail with glance_store==0.5.0 Status in OpenStack Glance backend store-drivers library (glance_store): Confirmed Bug description: glance_store 0.5.0 was released this morning. Unfortunately, it breaks glance's test suite. Here's an example failure: Traceback (most recent call last): File "glance/tests/unit/v2/test_registry_api.py", line 48, in setUp super(TestRegistryRPC, self).setUp() File "glance/tests/unit/base.py", line 61, in setUp super(IsolatedUnitTest, self).setUp() File "glance/tests/unit/base.py", line 38, in setUp self._create_stores() File "glance/tests/unit/base.py", line 49, in _create_stores store.create_stores(CONF) File "/home/buildbot/schmenkins/state/jobs/glance-upstream/workspace/.tox/py27/local/lib/python2.7/site-packages/glance_store/backend. py", line 186, in create_stores store_instance.configure(re_raise_bsc=True) File "/home/buildbot/schmenkins/state/jobs/glance-upstream/workspace/.tox/py27/local/lib/python2.7/site-packages/glance_store/driver.p y", line 72, in configure self.configure_add() File "/home/buildbot/schmenkins/state/jobs/glance-upstream/workspace/.tox/py27/local/lib/python2.7/site-packages/glance_store/_drivers /filesystem.py", line 303, in configure_add reason=reason) glance_store.exceptions.BadStoreConfiguration: Store filesystem could not be configured correctly. Reason: Specify at least 'filesystem_store_datadir' or 'filesystem_store_datadirs' option It's pretty severe: Ran 2699 tests in 864.327s FAILED (id=0, failures=980, skips=14) error: testr failed (1) ERROR: InvocationError: '/home/buildbot/schmenkins/state/jobs/glance-upstream/workspace/.tox/py27/bin/lockutils-wrapper python setup.py testr --slowest --testr-args=' To manage notifications about this bug go to: https://bugs.launchpad.net/glance-store/+bug/1454384/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1310735] Re: In Swift store, retry chunk upload on Exception
** Project changed: glance => glance-store -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1310735 Title: In Swift store, retry chunk upload on Exception Status in OpenStack Glance backend store-drivers library (glance_store): New Bug description: During an image upload, if an exception occurs while uploading a chunk to swift, the glance swift store aborts the upload and deletes all the chunks that were uploaded thus far. Though this is the desired behavior, it maybe worthwhile to retry the failed chunk before deleting other chunks to account for intermittent connection errors. This will save a lot of time and bandwidth especially in the case of large images. https://github.com/openstack/glance/blob/master/glance/store/swift.py#L437 To manage notifications about this bug go to: https://bugs.launchpad.net/glance-store/+bug/1310735/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1441134] [NEW] Glance spews logs to stdout on each tox run
Public bug reported: Each tox test run on glance master currently spews out log messages to stdout, which is rather annoying (especially on a slow connection). This should be suppressed. ** 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. https://bugs.launchpad.net/bugs/1441134 Title: Glance spews logs to stdout on each tox run Status in OpenStack Image Registry and Delivery Service (Glance): New Bug description: Each tox test run on glance master currently spews out log messages to stdout, which is rather annoying (especially on a slow connection). This should be suppressed. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1441134/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1411836] [NEW] Configuration files should not be manually updated
Public bug reported: The configuration files (glance-api.conf, glance-cache.conf, glance- registry.conf etc) are currently manually synced with the options defined in the code. This is causing an unnecessary amount of contributor's effort to maintain, especially when we can automatically keep them up to date using oslo-config-generator. They have also not been correctly updated in the past; glance-cache.conf does not have any of the deprecated glance store options marked as such, for example. A slight complication is some options currently have better documentation in the example config files, rather than the help text defined in the oslo.config option (example on current master: [DEFAULT]/property_protection_file). These options should be updated with the better documentation before automatic syncing takes place. ** Affects: glance Importance: Undecided Assignee: Louis Taylor (kragniz) Status: New ** Changed in: glance Assignee: (unassigned) => Louis Taylor (kragniz) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1411836 Title: Configuration files should not be manually updated Status in OpenStack Image Registry and Delivery Service (Glance): New Bug description: The configuration files (glance-api.conf, glance-cache.conf, glance- registry.conf etc) are currently manually synced with the options defined in the code. This is causing an unnecessary amount of contributor's effort to maintain, especially when we can automatically keep them up to date using oslo-config-generator. They have also not been correctly updated in the past; glance-cache.conf does not have any of the deprecated glance store options marked as such, for example. A slight complication is some options currently have better documentation in the example config files, rather than the help text defined in the oslo.config option (example on current master: [DEFAULT]/property_protection_file). These options should be updated with the better documentation before automatic syncing takes place. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1411836/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1375857] Re: It's not possibile to pass the cacert to the swift store
** Project changed: glance => glance-store -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1375857 Title: It's not possibile to pass the cacert to the swift store Status in OpenStack Glance backend store-drivers library (glance_store): In Progress Bug description: The swift store device defined in the glance store doesn't allow to pass the ca cert file. When the driver creates a connection via the swift client it is not possible to pass that value. That means that if we have swift running on TLS in some cases we have to set the insecure option equals to True as the client can't correctly complete the handshake as it fails on the verification of the cert. The fix I'd like to propose is to add a new parameter to define the ca cert file and pass this value when we create the connection via the swift client. To manage notifications about this bug go to: https://bugs.launchpad.net/glance-store/+bug/1375857/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1405707] Re: do we really need the function that image-download API will print the image downloaded to stdout by default
This quite badly breaks the client's backwards compatibility. Are there any particular reasons you'd like to see this change? ** Project changed: glance => python-glanceclient ** Changed in: python-glanceclient Status: New => Opinion ** Changed in: python-glanceclient Importance: Undecided => Low -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1405707 Title: do we really need the function that image-download API will print the image downloaded to stdout by default Status in Python client library for Glance: Opinion Bug description: API image-download will download the image and print it to stdout by default, if we don't add ''--file" option. Is that used for redirect the output to a new file? Could we improve the default action of 'image-download'? From the help doc, we can see: # glance help image-download usage: glance image-download [--file ] [--progress] Download a specific image. Positional arguments: Name or ID of image to download. Optional arguments: --file Local file to save downloaded image data to. If this is not specified the image data will be written to stdout. --progress Show download progress bar. output the image to stdout: #glance image-download 535c71a3-8ad3-442d-ac46-16b0ae1a5e53 `?$X? :'SS?:'S ..]..irros-rootfs0.jq瓶 :'SAAAAAA A A AAABbcd.?b c d .@@@. To manage notifications about this bug go to: https://bugs.launchpad.net/python-glanceclient/+bug/1405707/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1381295] Re: safe_header raises AttributeError if X-Auth-Token is None
** Changed in: python-glanceclient Milestone: None => v0.15.0 ** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1381295 Title: safe_header raises AttributeError if X-Auth-Token is None Status in OpenStack Compute (Nova): Invalid Status in Python client library for Glance: Fix Released Bug description: When trying to live migrate a VM by calling the compute RPC API directly (i.e., not via the novaclient) coupled with the elevated admin context [1], the destination compute service tries to call glance to retrieve the image [2]. However, the destination compute service erroneously raises an exception [4]. This problem was introduced via the following patch: https://review.openstack.org/#/c/121692 It also appears that a similar problem exists within nova too [3]. # [1] from nova import compute ctxt = context.get_admin_context() self.compute_api = compute.API() self.compute_api.live_migrate( ctxt.elevated(), inst, False, False, host_dict) # [2] def _create_glance_client(context, host, port, use_ssl, version=1): """Instantiate a new glanceclient.Client object.""" params = {} if use_ssl: scheme = 'https' # https specific params params['insecure'] = CONF.glance.api_insecure params['ssl_compression'] = False if CONF.ssl.cert_file: params['cert_file'] = CONF.ssl.cert_file if CONF.ssl.key_file: params['key_file'] = CONF.ssl.key_file if CONF.ssl.ca_file: params['cacert'] = CONF.ssl.ca_file else: scheme = 'http' if CONF.auth_strategy == 'keystone': # NOTE(isethi): Glanceclient <= 0.9.0.49 accepts only # keyword 'token', but later versions accept both the # header 'X-Auth-Token' and 'token' params['token'] = context.auth_token params['identity_headers'] = generate_identity_headers(context) >>here # because dict ordering changes from 2 to 3 keys = sorted(headers.keys()) for name in keys: value = headers[name] header = ' -H "%s: %s"' % (name, value) string_parts.append(header) if 'data' in kwargs: data = json.loads(kwargs['data']) self._redact(data, ['auth', 'passwordCredentials', 'password']) string_parts.append(" -d '%s'" % json.dumps(data)) self._logger.debug("REQ: %s" % "".join(string_parts)) # [4] 2014-10-14 00:42:10.699 31346 INFO nova.compute.manager [-] [instance: aa68237f-e669-4025-b16e-f4b50926f7a5] During the sync_power process the instance has moved from host cmo-comp5.ibm.com to host cmo-comp4.ibm.com 2014-10-14 00:42:10.913 31346 INFO nova.compute.manager [req-7be58838-3ec2-43d4-afd1-23d6b3d5e3de None] [instance: aa68237f-e669-4025-b16e-f4b50926f7a5] Post operation of migration started 2014-10-14 00:42:11.148 31346 ERROR oslo.messaging.rpc.dispatcher [req-7be58838-3ec2-43d4-afd1-23d6b3d5e3de ] Exception during message handling: 'NoneType' object has no attribute 'encode' 2014-10-14 00:42:11.148 31346 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last): 2014-10-14 00:42:11.148 31346 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 134, in _dispatch_and_reply 2014-10-14 00:42:11.148 31346 TRACE oslo.messaging.rpc.dispatcher incoming.message)) 2014-10-14 00:42:11.148 31346 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 177, in _dispatch 2014-10-14 00:42:11.148 31346 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args) 2014-10-14 00:42:11.148 31346 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 123, in _do_dispatch 2014-10-14 00:42:11.148 31346 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args) 2014-10-14 00:42:11.148 31346 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 418, in decorated_function 2014-10-14 00:42:11.148 31346 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs) 2014-10-14 00:42:11.148 31346 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/exception.py", line 88, in wrapped 2014-10-14 00:42:11.148 3134
[Yahoo-eng-team] [Bug 1368854] Re: no error reported by client when image create is killed on quota
*** This bug is a duplicate of bug 1270832 *** https://bugs.launchpad.net/bugs/1270832 ** This bug has been marked a duplicate of bug 1270832 no error is printed to glance.api log when we fail to create image on quota -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1368854 Title: no error reported by client when image create is killed on quota Status in OpenStack Image Registry and Delivery Service (Glance): Fix Released Bug description: no ERROR is issued to user on quota violation: root@tigris01 ~(keystone_admin)]# glance image-create --name dafna2 --disk-format qcow2 --container-format bare --copy-from +--+--+ | Property | Value| +--+--+ | checksum | None | | container_format | bare | | created_at | 2014-09-12T15:54:58 | | deleted | False| | deleted_at | None | | disk_format | qcow2| | id | 7fd5545b-271e-4a83-9876-ffeba4d54eb8 | | is_public| False| | min_disk | 0| | min_ram | 0| | name | dafna2 | | owner| 8f8749df409d4bbab5d982384b0d6ab0 | | protected| False| | size | 6442450945 | | status | queued | | updated_at | 2014-09-12T15:54:58 | | virtual_size | None | +--+--+ [root@tigris01 ~(keystone_admin)]# glance image-list +--++-+--+--++ | ID | Name | Disk Format | Container Format | Size | Status | +--++-+--+--++ | c2c34a0f-f641-4939-9c46-2df97964f6b0 | cirros | qcow2 | bare | 13147648 | active | +--++-+--+--++ The error is logged as INFO on api.log but user will not know why the image is not created. 2014-09-12 18:54:58.921 21663 INFO glance.api.common [-] User 2bcd197108b44efe84f3c5a19d40a716 attempted to upload an image of size 6442450945 that will exceeed the quota. 2 bytes remaining. 2014-09-12 18:54:58.923 21663 INFO glance.api.v1.upload_utils [-] Denying attempt to upload image because it exceeds the .quota: The size of the data 6442450945 will exceed the limit. 2 bytes remaining. 2014-09-12 18:55:01.980 21671 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 10.35.160.123 2014-09-12 18:55:02.152 21671 INFO glance.wsgi.server [25188ae9-2a1d-4791-b6ba-23051cb90e8b 2bcd197108b44efe84f3c5a19d40a716 8f8749df409d4bbab5d982384b0d6ab0 - - -] 10.35.160.123 - - [12/Sep/2014 18:55:02] "GET /v1/images/detail?sort_key=name&sort_dir=asc&limit=20 HTTP/1.1" 200 671 0.175247 To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1368854/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1402632] Re: issue with glance python client in Icehouse
I think this was something to do with your install of oslo.utils, since netifaces should be pulled in as a dependancy via that package, so I'm going to mark this as invalid for now. ** 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/1402632 Title: issue with glance python client in Icehouse Status in OpenStack Image Registry and Delivery Service (Glance): Invalid Status in Ubuntu: New Bug description: I installed glance client (0.15.0) on Ubuntu 14.04.1 LTS via pip install python-glanceclient. When i try to do something with this client i almost allways get back: root@anyhost:~/anydir# glance image-list "1" is not a supported API version. Example values are "1" or "2". Environment (OS_USERNAME, OS_PASSWORD, ...) seems to be fine cause i'm able to list all from keystone with those credantials. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1402632/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1402746] Re: glance image-create doesn't work with stdin
This works if you omit the --progress option. I initially thought this was a duplicate of another --progress bug [0], but the underlying problem appears to be separate. [0] https://bugs.launchpad.net/python-glanceclient/+bug/1384664 ** Changed in: glance Status: New => Confirmed ** Changed in: glance Importance: Undecided => Medium ** Project changed: glance => python-glanceclient -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1402746 Title: glance image-create doesn't work with stdin Status in Python client library for Glance: Confirmed Bug description: trying to import an image from stind results in the following error: time glance image-create --progress --name="icmprec" --is-public=true --container-format=bare --disk-format=raw < <(zcat icmprec_backup-2014-12-12_snap.qcow2.gz) float() argument must be a string or a number zcat icmprec_backup-2014-12-12_snap.qcow2.gz | glance image-create --progress --name="icmprec" --is-public=true --container-format=bare --disk-format=raw float() argument must be a string or a number Version: icehouse To manage notifications about this bug go to: https://bugs.launchpad.net/python-glanceclient/+bug/1402746/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1356373] Re: Glance image-list -> shell-init: error retrieving current directory
The root cause in all of the clients seems to be keystoneclient, so moving it over there. ** Project changed: glance => python-keystoneclient -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1356373 Title: Glance image-list -> shell-init: error retrieving current directory Status in Python client library for Keystone: Confirmed Bug description: Description of problem: During recreation of another bug on my setup AIO Neutron network, during instance snapshot process before snapshot completed uploading I did #glance image-list root@orange-vdse tmptriyEJ(keystone_admin)]# glance image-list shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Traceback (most recent call last): File "/usr/bin/glance", line 6, in from glanceclient.shell import main File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 30, in from keystoneclient.v2_0 import client as ksclient File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/__init__.py", line 2, in from keystoneclient.v2_0.client import Client File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/client.py", line 20, in from keystoneclient import httpclient File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 27, in import keyring File "/usr/lib/python2.7/site-packages/keyring/__init__.py", line 12, in from .core import (set_keyring, get_keyring, set_password, get_password, File "/usr/lib/python2.7/site-packages/keyring/core.py", line 180, in init_backend() File "/usr/lib/python2.7/site-packages/keyring/core.py", line 59, in init_backend set_keyring(load_config() or _get_best_keyring()) File "/usr/lib/python2.7/site-packages/keyring/core.py", line 105, in load_config local_path = os.path.join(os.getcwd(), filename) OSError: [Errno 2] No such file or directory Version-Release number of selected component (if applicable): RHEL7 python-glanceclient-0.13.1-1.el7ost.noarch openstack-glance-2014.1.1-1.el7ost.noarch python-glance-2014.1.1-1.el7ost.noarch openstack-nova-compute-2014.1.1-4.el7ost.noarch How reproducible: Not sure first time, looks like a fluke one off problem to me. Steps to Reproduce: 1. Booted an instance 2. Created a snapshot of that running instance 3. Before snapshot upload completed, ran glance image-list. Actual results: Glance image-list failed with above trace error Expected results: Glance image-list should worked without errors. On attached Glance log ignore errors before this trace, related to other bug I was testing with low disk space case. To manage notifications about this bug go to: https://bugs.launchpad.net/python-keystoneclient/+bug/1356373/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1385213] Re: Swift multi-tenant store: upload broken
Glance_store fixes for this were released in 0.1.10. ** Also affects: glance-store Importance: Undecided Status: New ** Changed in: glance-store Status: New => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1385213 Title: Swift multi-tenant store: upload broken Status in OpenStack Image Registry and Delivery Service (Glance): Fix Committed Status in Glance juno series: In Progress Status in OpenStack Glance backend store-drivers library (glance_store): Fix Released Bug description: glance image-upload xxx returns E500 when using the swift multi-tenant backend To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1385213/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1396976] Re: osprofiler configuration option is inconsistant with other projects using osprofiler
** Project changed: python-glanceclient => 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/1396976 Title: osprofiler configuration option is inconsistant with other projects using osprofiler Status in OpenStack Image Registry and Delivery Service (Glance): New Bug description: The option to enable/disable osprofiler in the Glance configuration files is inconsistent with other projects which use osprofiler, such as Heat, Cinder and others. In Glance, we have a profiler section: [profiler] # If False fully disable profiling feature. enabled = True Other projects are similar, but instead of an option named 'enabled', they use 'profiler_enabled'. To make configuring osprofiler and Glance easier, this option should be consistent with other projects and use 'profiler_enabled'. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1396976/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1394316] [NEW] glance-manage does not display basic options if run without any arguments
Public bug reported: glance-manage isn't very helpful if it is run without any arguments. Compare against nova-manage and cinder-manage: $ nova-manage usage: nova-manage [-h] [--config-dir DIR] [--config-file PATH] [--debug] [--log-config-append PATH] [--log-date-format DATE_FORMAT] [--log-dir LOG_DIR] [--log-file PATH] [--log-format FORMAT] [--nodebug] [--nouse-syslog] [--nouse-syslog-rfc-format] [--noverbose] [--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-syslog] [--use-syslog-rfc-format] [--verbose] [--version] [--remote_debug-host REMOTE_DEBUG_HOST] [--remote_debug-port REMOTE_DEBUG_PORT] {version,bash-completion,shell,logs,db,vm,agent,host,flavor,vpn,floating,project,account,network,service,cell,fixed} ... nova-manage: error: too few arguments $ cinder-manage OpenStack Cinder version: 2014.2 /usr/local/bin/cinder-manage category action [] Available categories: db volume host shell logs service config version backup Glance-manage, on the other hand shows very little extra information: $ glance-manage usage: glance-manage [options] glance-manage: error: too few arguments ** Affects: glance Importance: Wishlist Status: New ** Tags: low-hanging-fruit ** Changed in: glance Importance: Undecided => Wishlist ** Tags added: low-hanging-fruit -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1394316 Title: glance-manage does not display basic options if run without any arguments Status in OpenStack Image Registry and Delivery Service (Glance): New Bug description: glance-manage isn't very helpful if it is run without any arguments. Compare against nova-manage and cinder-manage: $ nova-manage usage: nova-manage [-h] [--config-dir DIR] [--config-file PATH] [--debug] [--log-config-append PATH] [--log-date-format DATE_FORMAT] [--log-dir LOG_DIR] [--log-file PATH] [--log-format FORMAT] [--nodebug] [--nouse-syslog] [--nouse-syslog-rfc-format] [--noverbose] [--syslog-log-facility SYSLOG_LOG_FACILITY] [--use-syslog] [--use-syslog-rfc-format] [--verbose] [--version] [--remote_debug-host REMOTE_DEBUG_HOST] [--remote_debug-port REMOTE_DEBUG_PORT] {version,bash-completion,shell,logs,db,vm,agent,host,flavor,vpn,floating,project,account,network,service,cell,fixed} ... nova-manage: error: too few arguments $ cinder-manage OpenStack Cinder version: 2014.2 /usr/local/bin/cinder-manage category action [] Available categories: db volume host shell logs service config version backup Glance-manage, on the other hand shows very little extra information: $ glance-manage usage: glance-manage [options] glance-manage: error: too few arguments To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1394316/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1379798] Re: Glance returns HTTPInternalServerError 500 in case of image server is down
** Also affects: glance-store 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/1379798 Title: Glance returns HTTPInternalServerError 500 in case of image server is down Status in OpenStack Image Registry and Delivery Service (Glance): Triaged Status in OpenStack Glance backend store-drivers library (glance_store): Triaged Bug description: HTTPInternalServerError 500 response is returned to the user while image server is down during downloading the image. When user tries to download the image from the remote location (image server) which is down, Connection refused ECONNREFUSED error is raised on the glance server. Ideally it should return 503 HTTPServiceUnavailable response to the user. Steps to reproduce: 1. Create a file 'test_image.py' at any location. example: /home/openstack/ 2. Run Simple HTTP server using "python -m SimpleHTTPServer 8050" from location mentioned in step 1. 3. Create an image using location parameter. example: glance image-create --name myimage --disk-format=raw --container-format=bare --location http://10.69.4.178:8050/test_image.py 4. Stop Simple HTTP server. 5. Download image using glance image-download created in step 3. Please refer http://paste.openstack.org/show/120165/ for v1 and v2 api logs. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1379798/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1206773] Re: XENAPI_PLUGIN_FAILURE', 'download_vhd', 'KeyError', "'args'
This looks like a problem with xenserver, not glance. ** 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/1206773 Title: XENAPI_PLUGIN_FAILURE', 'download_vhd', 'KeyError', "'args' Status in OpenStack Image Registry and Delivery Service (Glance): Invalid Bug description: I meet the below blocked issue when starting a VM with xenserver6.2 and openstack E version: Could you please figure out the root cause of this issue? Your support is much appreciated. My test steps is followed : 1.Install one openstack node (all in one with Ubuntu12.04 ) on PV instance of xenserver 6.2 2.Deploy the xenapi plugin and make other setting on Dom0 3.Install python-xenapi on DomU 4.Integrate compute service of openstack with xenserver (see attached nova.conf file) 5.Convert cirros-0.3.0-x86_64-disk.img to VHD format and upload to glance like this: glance add name=cirros-0.3.0-x86_64 is_public=true container_format=ovf \ disk_format=vhd < tarred.tgz 6.Boot a VM with the above image then fail, this error log is as below. In nova-compute.log of domU : 9ab972f729f1e1fc] Making asynchronous call on network ... from (pid=1246) multicall /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:326 2013-07-31 03:19:04 DEBUG nova.rpc.amqp [req-2639c13b-1cc7-4cc4-b35d-a7190d1fd814 802fe742f0cc45a592ace109696ce597 65da626d19a842ea9ab972f729f1e1fc] MSG_ID is 83c62dadf8814d13bdfac73149dbd3a4 from (pid=1246) multicall /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:329 2013-07-31 03:19:05 ERROR nova.rpc.amqp [req-2639c13b-1cc7-4cc4-b35d-a7190d1fd814 802fe742f0cc45a592ace109696ce597 65da626d19a842ea9ab972f729f1e1fc] Exception during message handling 2013-07-31 03:19:05 TRACE nova.rpc.amqp Traceback (most recent call last): 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in _process_data 2013-07-31 03:19:05 TRACE nova.rpc.amqp rval = node_func(context=ctxt, **node_args) 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped 2013-07-31 03:19:05 TRACE nova.rpc.amqp return f(*args, **kw) 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 183, in decorated_function 2013-07-31 03:19:05 TRACE nova.rpc.amqp sys.exc_info()) 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ 2013-07-31 03:19:05 TRACE nova.rpc.amqp self.gen.next() 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, in decorated_function 2013-07-31 03:19:05 TRACE nova.rpc.amqp return function(self, context, instance_uuid, *args, **kwargs) 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 676, in run_instance 2013-07-31 03:19:05 TRACE nova.rpc.amqp do_run_instance() 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 990, in inner 2013-07-31 03:19:05 TRACE nova.rpc.amqp retval = f(*args, **kwargs) 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 675, in do_run_instance 2013-07-31 03:19:05 TRACE nova.rpc.amqp self._run_instance(context, instance_uuid, **kwargs) 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 476, in _run_instance 2013-07-31 03:19:05 TRACE nova.rpc.amqp self._set_instance_error_state(context, instance_uuid) 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ 2013-07-31 03:19:05 TRACE nova.rpc.amqp self.gen.next() 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 457, in _run_instance 2013-07-31 03:19:05 TRACE nova.rpc.amqp self._deallocate_network(context, instance) 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ 2013-07-31 03:19:05 TRACE nova.rpc.amqp self.gen.next() 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 454, in _run_instance 2013-07-31 03:19:05 TRACE nova.rpc.amqp injected_files, admin_password) 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 617, in _spawn 2013-07-31 03:19:05 TRACE nova.rpc.amqp self._legacy_nw_info(network_info), block_device_info) 2013-07-31 03:19:05 TRACE nova.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/vir
[Yahoo-eng-team] [Bug 1391765] Re: there is not cmdline to send the 'task' API to get the task status
Task list is a feature of the v2 API only. You can enable this by passing the flag --os-image-api-version 2 to the glance CLI client. $ glance --os-image-api-version 2 task-list ** 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/1391765 Title: there is not cmdline to send the 'task' API to get the task status Status in OpenStack Image Registry and Delivery Service (Glance): Invalid Bug description: this is no subcmd like "glance tasks-list" to get the task status list in this page? https://wiki.openstack.org/wiki/Glance-tasks-api maybe I miss something? remind me pls #glance task-list ... glance: error: argument : invalid choice: u'tasks-list' (choose from 'image-create', 'image-delete', 'image-download', 'image-list', 'image-show', 'image-update', 'member-create', 'member-delete', 'member-list', 'help') To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1391765/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1360235] Re: swift functional tests are broken
** Also affects: glance-store 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/1360235 Title: swift functional tests are broken Status in OpenStack Image Registry and Delivery Service (Glance): Confirmed Status in OpenStack Glance backend store-drivers library (glance_store): New Bug description: Hi, The following tests are failing in master : GLANCE_TEST_SWIFT_CONF=/etc/glance/glance-api.conf ./run_tests.sh glance.tests.functional.store.test_swift.TestSwiftStore; I believe this commit https://github.com/openstack/glance/commit/63195aaa3b12e56ae787598e001ac44d62e52865 broke them. The problem , i believe, is that in glance/store/swift.py the line SWIFT_STORE_REF_PARAMS = swift_store_utils.SwiftParams().params is evaluated when the file is imported which is too early for tests/functional/store/test_swift.py:TestSwiftStore (see method setUp). Also glance.tests.functional.store.test_swift.TestSwiftStore.test_delayed_delete_with_auth is broken, because of this commit : https://github.com/openstack/glance/commit/66d24bb1a130902e824ca76cbee1deb6ef564873 Jordan To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1360235/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1389634] Re: MultiTenant Swift store not working
** Also affects: glance-store 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/1389634 Title: MultiTenant Swift store not working Status in OpenStack Image Registry and Delivery Service (Glance): New Status in OpenStack Glance backend store-drivers library (glance_store): New Bug description: There are some fails when using multi-tenant swift glance storage for stable Juno. At now to make it work, i made some fixes in files: 1. https://github.com/openstack/glance_store/commit/3bb94dcad84ed4204d8809fcf95b7713daa2189b 2. https://github.com/openstack/glance/commit/867b696d884e9db707683eecd321789843798efd 3. And in glance_store/_drivers/swift/store.py i have replaced 'preauthtoken=context.auth_token' to 'preauthtoken=context.auth_tok' To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1389634/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1277104] Re: wrong order of assertEquals args
** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Keystone. https://bugs.launchpad.net/bugs/1277104 Title: wrong order of assertEquals args Status in OpenStack Telemetry (Ceilometer): Fix Released Status in Cinder: In Progress Status in OpenStack Image Registry and Delivery Service (Glance): Fix Committed Status in OpenStack Identity (Keystone): Fix Released Status in Messaging API for OpenStack: Fix Released Status in Python client library for Ceilometer: In Progress Status in Python client library for Glance: Fix Released Status in Python client library for Ironic: Fix Released Status in Python client library for Nova: Fix Committed Status in OpenStack Command Line Client: Fix Released Status in Python client library for Sahara (ex. Savanna): Fix Committed Status in Python client library for Swift: In Progress Status in Rally: Confirmed Bug description: Args of assertEquals method in ceilometer.tests are arranged in wrong order. In result when test fails it shows incorrect information about observed and actual data. It's found more than 2000 times. Right order of arguments is "expected, actual". To manage notifications about this bug go to: https://bugs.launchpad.net/ceilometer/+bug/1277104/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1371559] Re: v2 image-update does not handle some schema properties properly
** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1371559 Title: v2 image-update does not handle some schema properties properly Status in OpenStack Image Registry and Delivery Service (Glance): Fix Released Status in Python client library for Glance: Fix Released Bug description: Step1: Create an empty image using api v1 or v2. Step2: Use glanceclient with v2 API to update image property called "architecture": glance --os-image-api-version 2 image-update --property architecture='x86' This will show following error message: 409 Conflict 409 Conflict There was a conflict when trying to complete your request. Property architecture does not exist. (HTTP 409) The error shows up, because the client sends to glance API following data: [{"patch: "/architecture", "value": "x86", "op": "replace"}] instead of [{"patch: "/architecture", "value": "x86", "op": "add"}] The issue is somehow related to overridden patch method in SchemaBasedModel class, which propagates non existing properties from schema properties. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1371559/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1348818] Re: Unittests do not succeed with random PYTHONHASHSEED value
** Also affects: python-glanceclient Importance: Undecided Status: New ** Changed in: python-glanceclient Status: New => Confirmed -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1348818 Title: Unittests do not succeed with random PYTHONHASHSEED value Status in OpenStack Telemetry (Ceilometer): In Progress Status in Cinder: Fix Released Status in Cinder icehouse series: Fix Committed Status in Designate: Fix Released Status in OpenStack Image Registry and Delivery Service (Glance): Fix Released Status in Glance icehouse series: Fix Committed Status in Orchestration API (Heat): In Progress Status in OpenStack Dashboard (Horizon): In Progress Status in OpenStack Dashboard (Horizon) icehouse series: In Progress Status in OpenStack Bare Metal Provisioning Service (Ironic): Fix Released Status in OpenStack Identity (Keystone): In Progress Status in Keystone icehouse series: Fix Committed Status in OpenStack Neutron (virtual network service): In Progress Status in OpenStack Compute (Nova): Triaged Status in Python client library for Glance: Confirmed Status in Python client library for Neutron: Fix Committed Status in OpenStack Data Processing (Sahara, ex. Savanna): Fix Released Status in Openstack Database (Trove): Fix Released Status in Web Services Made Easy: New Bug description: New tox and python3.3 set a random PYTHONHASHSEED value by default. These projects should support this in their unittests so that we do not have to override the PYTHONHASHSEED value and potentially let bugs into these projects. To reproduce these failures: # install latest tox pip install --upgrade tox tox --version # should report 1.7.2 or greater cd $PROJECT_REPO # edit tox.ini to remove any PYTHONHASHSEED=0 lines tox -epy27 Most of these failures appear to be related to dict entry ordering. To manage notifications about this bug go to: https://bugs.launchpad.net/ceilometer/+bug/1348818/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1376392] Re: glance using localhost instead of OS_AUTH_URL
This is actually a glance client bug. ** Changed in: glance Status: New => Invalid ** Also affects: python-glanceclient 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/1376392 Title: glance using localhost instead of OS_AUTH_URL Status in OpenStack Image Registry and Delivery Service (Glance): Invalid Status in Python client library for Glance: New Bug description: On OSX and Ubuntu 12.04 using version 0.14.1 when i specify OS_AUTH_URL it does not get used and instead glance is trying to resolve to localhost... this doesn't work. Also -v and -d don't seem to do anything. env settings: OS_AUTH_URL=http://my-api-endpoint:5000/v2.0 OS_TENANT_ID=redacted OS_TENANT_NAME=redacted OS_USERNAME=jaybocc2 OS_PASSWORD=redacted [1] → # glance image-create --progress --human-readable --name win-2008R2-U1.18 --is-public true --container-format bare --disk-format vmdk --property vmware_disktype="sparse" --file ./windows_2008_r2_U1.18_openstack.vmdk Unable to establish connection to http://localhost:5000/v2.0/tokens [1] → # glance -v -d --os-auth-url http://api-oyla1.client.metacloud.net:5000/v2.0 image-create --progress --human-readable --name win-2008R2-U1.18 --is-public true --container-format bare --disk-format vmdk --property vmware_disktype="sparse" --file ./windows_2008_r2_U1.18_openstack.vmdk Unable to establish connection to http://localhost:5000/v2.0/tokens [1] → # glance --version 0.14.1 To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1376392/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1200214] Re: Relax OpenStack upper capping of client versions
** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1200214 Title: Relax OpenStack upper capping of client versions Status in OpenStack Telemetry (Ceilometer): Fix Released Status in Cinder: Fix Released Status in Orchestration API (Heat): Fix Released Status in OpenStack Dashboard (Horizon): Fix Released Status in OpenStack Bare Metal Provisioning Service (Ironic): Fix Released Status in OpenStack Identity (Keystone): Fix Released Status in OpenStack Compute (Nova): Fix Released Status in Python client library for Ceilometer: Fix Committed Status in Python client library for Cinder: Fix Committed Status in Python client library for Glance: Fix Released Status in Python client library for heat: Fix Released Status in Tempest: Fix Released Bug description: Because of the way the gate process pip requirements (one project at a time), on a current gate run we actually install and uninstall python-keystoneclient 4 times in a normal run, flipping back and forth from HEAD to 0.2.5. http://paste.openstack.org/show/39880/ - shows what's going on The net of this means that if any of the projects specify a capped client, it has the potential for preventing that client from being tested in the gate. As part of the discussion here: http://lists.openstack.org/pipermail/openstack- dev/2013-July/011660.html it was suggested to only cap client versions at the major version, since all minor version bumps must be strictly backward compatible by policy. To manage notifications about this bug go to: https://bugs.launchpad.net/ceilometer/+bug/1200214/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1202391] Re: POST on v2/images returning 500
** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1202391 Title: POST on v2/images returning 500 Status in OpenStack Image Registry and Delivery Service (Glance): Fix Released Status in Python client library for Glance: Fix Released Bug description: Tempest is failing with 500 response on image create test cases. I was able to replicate on my development environment: openstack@dperaza-devstack:/var/log/glance$ curl -i -X POST -H 'User-Agent: python-glanceclient' -H 'X-Auth-Token: MIIL6gYJKoZIhvcNAQcCoIIL2zCCC9cCAQExCTAHBgUrDgMCGjCCCkAGCSqGSIb3DQEHAaCCCjEEggoteyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNy0xN1QxOToyNzoxOC40OTA1MzQiLCAiZXhwaXJlcyI6ICIyMDEzLTA3LTE4VDE5OjI3OjE4WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogbnVsbCwgImVuYWJsZWQiOiB0cnVlLCAiaWQiOiAiZDUyYjQyYjgxYTk0NDA4ZmIwMDI1ZWVmNDNlZjI5MDgiLCAibmFtZSI6ICJhZG1pbiJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzE5Mi4xNjguNC4yODo4Nzc0L3YyL2Q1MmI0MmI4MWE5NDQwOGZiMDAyNWVlZjQzZWYyOTA4IiwgInJlZ2lvbiI6ICJSZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovLzE5Mi4xNjguNC4yODo4Nzc0L3YyL2Q1MmI0MmI4MWE5NDQwOGZiMDAyNWVlZjQzZWYyOTA4IiwgImlkIjogIjE4NjAxNTBmMzEwYjQyODdiMGEzYjYzMGVlYWNkNDBiIiwgInB1YmxpY1VSTCI6ICJodHRwOi8vMTkyLjE2OC40LjI4Ojg3NzQvdjIvZDUyYjQyYjgxYTk0NDA4ZmIwMDI1ZWVmNDNlZjI5MDgifV0sICJlbmRwb2ludHNfbGlua3MiOiBbXSwgInR5cGUiOiAiY29tc HV0ZSIsICJuYW1lIjogIm5vdmEifSwgeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vMTkyLjE2OC40LjI4Ojk2OTYvIiwgInJlZ2lvbiI6ICJSZWdpb25PbmUiLCAiaW50ZXJuYWxVUkwiOiAiaHR0cDovLzE5Mi4xNjguNC4yODo5Njk2LyIsICJpZCI6ICI1MWQ4YWJiZDA2Njg0YWM2YWQyM2Y3Yjc2OGJhYTIyMCIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzE5Mi4xNjguNC4yODo5Njk2LyJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJuZXR3b3JrIiwgIm5hbWUiOiAibmV1dHJvbiJ9LCB7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xOTIuMTY4LjQuMjg6MzMzMyIsICJyZWdpb24iOiAiUmVnaW9uT25lIiwgImludGVybmFsVVJMIjogImh0dHA6Ly8xOTIuMTY4LjQuMjg6MzMzMyIsICJpZCI6ICIxMTVkODY3MWQyNDA0ZWY2YjQ2YmYwYTMyNzI1N2JlNCIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzE5Mi4xNjguNC4yODozMzMzIn1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogInMzIiwgIm5hbWUiOiAiczMifSwgeyJlbmRwb2ludHMiOiBbeyJhZG1pblVSTCI6ICJodHRwOi8vMTkyLjE2OC40LjI4OjkyOTIiLCAicmVnaW9uIjogIlJlZ2lvbk9uZSIsICJpbnRlcm5hbFVSTCI6ICJodHRwOi8vMTkyLjE2OC40LjI4OjkyOTIiLCAiaWQiOiAiMjg1NzE1MWIxN2UwNDdmMmIyODM3YWY1Y2M4YmZlODIiLCAicHVibGljVVJMIjogImh0dHA6Ly8xOTIuMTY4Lj QuMjg6OTI5MiJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJpbWFnZSIsICJuYW1lIjogImdsYW5jZSJ9LCB7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xOTIuMTY4LjQuMjg6ODc3Ni92MS9kNTJiNDJiODFhOTQ0MDhmYjAwMjVlZWY0M2VmMjkwOCIsICJyZWdpb24iOiAiUmVnaW9uT25lIiwgImludGVybmFsVVJMIjogImh0dHA6Ly8xOTIuMTY4LjQuMjg6ODc3Ni92MS9kNTJiNDJiODFhOTQ0MDhmYjAwMjVlZWY0M2VmMjkwOCIsICJpZCI6ICIzMzk2OWEzYjUxMDM0NjAzOTExMDNmZGRmMjNmZmZkNSIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzE5Mi4xNjguNC4yODo4Nzc2L3YxL2Q1MmI0MmI4MWE5NDQwOGZiMDAyNWVlZjQzZWYyOTA4In1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogInZvbHVtZSIsICJuYW1lIjogImNpbmRlciJ9LCB7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xOTIuMTY4LjQuMjg6ODc3My9zZXJ2aWNlcy9BZG1pbiIsICJyZWdpb24iOiAiUmVnaW9uT25lIiwgImludGVybmFsVVJMIjogImh0dHA6Ly8xOTIuMTY4LjQuMjg6ODc3My9zZXJ2aWNlcy9DbG91ZCIsICJpZCI6ICI0OTgxY2RlY2QxNmM0MDNlODU4MGIyZjAzNjZkYTQ0NyIsICJwdWJsaWNVUkwiOiAiaHR0cDovLzE5Mi4xNjguNC4yODo4NzczL3NlcnZpY2VzL0Nsb3VkIn1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogImVjMiIsICJuYW1lIjogImV jMiJ9LCB7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xOTIuMTY4LjQuMjg6MzUzNTcvdjIuMCIsICJyZWdpb24iOiAiUmVnaW9uT25lIiwgImludGVybmFsVVJMIjogImh0dHA6Ly8xOTIuMTY4LjQuMjg6NTAwMC92Mi4wIiwgImlkIjogIjM4MjYxNDM4MjUwYTRiNjg4Nzg5ZTM0ZTA0ZWI1NjlmIiwgInB1YmxpY1VSTCI6ICJodHRwOi8vMTkyLjE2OC40LjI4OjUwMDAvdjIuMCJ9XSwgImVuZHBvaW50c19saW5rcyI6IFtdLCAidHlwZSI6ICJpZGVudGl0eSIsICJuYW1lIjogImtleXN0b25lIn1dLCAidXNlciI6IHsidXNlcm5hbWUiOiAiYWRtaW4iLCAicm9sZXNfbGlua3MiOiBbXSwgImlkIjogIjExMTk5YWE1YmMxYzRjYTg5NTlhNzJlNGUxZGM2MGEzIiwgInJvbGVzIjogW3sibmFtZSI6ICJhZG1pbiJ9XSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFsiM2Q0NGU4MGQ3YjIzNGNkNWI3ZTA0NzkzNmU5Mzk2MDYiXX19fTGCAYEwggF9AgEBMFwwVzELMAkGA1UEBhMCVVMxDjAMBgNVBAgTBVVuc2V0MQ4wDAYDVQQHEwVVbnNldDEOMAwGA1UEChMFVW5zZXQxGDAWBgNVBAMTD3d3dy5leGFtcGxlLmNvbQIBATAHBgUrDgMCGjANBgkqhkiG9w0BAQEFAASCAQCkTEjAUHVbo-QyPcqghDF7KDk3q8KHxFz9Tsi-8ouEOSpwF7EPAojm0JOH6fhdInnU2kgqHaTrxH0-VxJ61w8rx0J8OigciUJ0400j86gjo3R65NNpXakPwrmSbV44Eftc+vPOsTs6H+Bb GsKQsrn-pPLobJY4+Q1NMcq1LMdfHiHjqZHET0qxNVZYwB9qjPLwp4+iydV6kMVXhj8QpW4os+OdA5K6AxB7clnT6EB4KQoq0AN5wrNCEBapTnH6mbLVcTEfnco1XV3ZiJoLTPCbP-wY0mzuh61ze+-sisu5eDxlf7zaYh1RzJPgpNeT9BAuZgjayV8uGo1QWNe+ohk8' -H 'Content-Type: application/json' -d '{"container_format": "bare", "disk_format": "raw", "name": "New Name", "visibility": "public"}' http://192.168.4.28:9292/v2/images HTTP/1.1 500 Internal Server Error Content-Typ
[Yahoo-eng-team] [Bug 1205330] Re: ambiguous column 'checksum' error while querying for image-list (v2)
** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1205330 Title: ambiguous column 'checksum' error while querying for image-list (v2) Status in OpenStack Image Registry and Delivery Service (Glance): Fix Released Status in Python client library for Glance: Fix Released Bug description: This happens for only a particular scenario. In my case, When I tried the following, ~$ glance image-list --visibility "shared" --checksum "93264c3edf5972c9f1cb309543d38a5c" --os-image-api-version 2 I got Error with HTTP status code (500). On the glance side, the exception thrown is: Entity '' has no property 'checksum' To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1205330/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1255876] Re: need to ignore swap files from getting into repository
** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1255876 Title: need to ignore swap files from getting into repository Status in OpenStack Telemetry (Ceilometer): Invalid Status in Heat Orchestration Templates and tools: Invalid Status in OpenStack Dashboard (Horizon): Fix Released Status in OpenStack Neutron (virtual network service): Fix Released Status in The Oslo library incubator: Won't Fix Status in Python client library for Ceilometer: Fix Committed Status in Python client library for Cinder: Fix Committed Status in Python client library for Glance: Fix Released Status in Python client library for Keystone: Fix Released Status in Python client library for Neutron: Fix Committed Status in Python client library for Nova: Fix Released Status in Python client library for Swift: Fix Committed Status in OpenStack Data Processing (Sahara, ex. Savanna): Invalid Bug description: need to ignore swap files from getting into repository currently the implemented ignore in .gitignore is *.swp however vim goes beyond to generate these so to improve it could be done *.sw? To manage notifications about this bug go to: https://bugs.launchpad.net/ceilometer/+bug/1255876/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1268480] Re: assertTrue(isinstance()) in tests should be replace with assertIsInstance()
** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1268480 Title: assertTrue(isinstance()) in tests should be replace with assertIsInstance() Status in OpenStack Telemetry (Ceilometer): Fix Released Status in Cinder: Opinion Status in OpenStack Image Registry and Delivery Service (Glance): Fix Released Status in OpenStack Dashboard (Horizon): Fix Released Status in OpenStack Bare Metal Provisioning Service (Ironic): Fix Released Status in OpenStack Identity (Keystone): Fix Released Status in OpenStack Neutron (virtual network service): Invalid Status in OpenStack Compute (Nova): Fix Released Status in Python client library for Ceilometer: Fix Committed Status in Python client library for Cinder: Fix Committed Status in Python client library for Glance: Fix Released Status in Python client library for Keystone: Fix Released Status in Python client library for Nova: Fix Released Bug description: some of tests use different method of assertTrue(isinstance(A, B)) or assertEqual(type(A), B). The correct way is to use assertIsInstance(A, B) provided by testtools To manage notifications about this bug go to: https://bugs.launchpad.net/ceilometer/+bug/1268480/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1172444] Re: migrate all projects to flake8
** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Keystone. https://bugs.launchpad.net/bugs/1172444 Title: migrate all projects to flake8 Status in OpenStack Telemetry (Ceilometer): Fix Released Status in Cinder: Fix Released Status in Python Gearman Interface: Fix Released Status in Git Review: Fix Released Status in Orchestration API (Heat): Fix Released Status in Heat API Instance Tools: Fix Released Status in OpenStack Identity (Keystone): Fix Released Status in OpenStack Core Infrastructure: Fix Released Status in The Oslo library incubator: Fix Released Status in Python client library for Ceilometer: Fix Committed Status in Python client library for Cinder: Fix Committed Status in Python client library for Glance: Fix Released Status in Python client library for heat: Fix Released Status in Python client library for Keystone: Fix Released Status in Python client library for Neutron: Fix Released Status in Python client library for Nova: Fix Released Status in OpenStack Command Line Client: Fix Released Status in Python client library for Swift: Fix Released Status in Openstack Database (Trove): Fix Released Status in Zuul: A project gating system: Fix Released Bug description: affects openstack-ci milestone havana status triaged importance medium To manage notifications about this bug go to: https://bugs.launchpad.net/ceilometer/+bug/1172444/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1198329] Re: flake8 does not ignore build folder created by devstack
** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Keystone. https://bugs.launchpad.net/bugs/1198329 Title: flake8 does not ignore build folder created by devstack Status in OpenStack Identity (Keystone): Invalid Status in Python client library for Glance: Fix Released Status in Python client library for Keystone: Fix Released Bug description: running tox -e pep8 does not ignore the 'build' folder that is created when installing the project, which happens if running devstack. To manage notifications about this bug go to: https://bugs.launchpad.net/keystone/+bug/1198329/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1284677] Re: Python 3: do not use 'unicode()'
** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1284677 Title: Python 3: do not use 'unicode()' Status in OpenStack Image Registry and Delivery Service (Glance): Fix Released Status in Manila: Fix Released Status in Python client library for Glance: Fix Released Status in Tuskar: Fix Released Bug description: The unicode() function is Python2-specific, we should use six.text_type() instead. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1284677/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp
[Yahoo-eng-team] [Bug 1180377] Re: provisioning failed if the image have a non-ascii property and using qpid
** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1180377 Title: provisioning failed if the image have a non-ascii property and using qpid Status in OpenStack Compute (Nova): Fix Released Status in Python client library for Glance: Fix Released Bug description: If user set a non-ascii character to the key of an image property and using qpid backend, the instance provisioning will be failed. Use case: 1. Set a non-ascii character to the key of an image property: "glance image-update --property '中文'='中文' 5a7e6de5-15b9-49d2-977e-eda0a221c0b9" 2. Launch a instance with that image: "nova boot --image cirros-0.3.0-x86_64 --flavor m1.tiny --nic net-id=881cbe80-3876-4f4c-b8c8-7b23cedc14f4 lzy-1" 3. Then the provisioning failed and nova-api service catch the exception and write to log: File "/usr/lib/python2.6/site-packages/qpid/messaging/driver.py", line 1052, in process self.send(snd, msg) File "/usr/lib/python2.6/site-packages/qpid/messaging/driver.py", line 1263, in send body = enc(msg.content) File "/usr/lib/python2.6/site-packages/qpid/messaging/message.py", line 28, in encode sc.write_primitive(type, x) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 73, in write_primitive getattr(self, "write_%s" % type.NAME)(v) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 257, in write_map sc.write(string.joinfields(map(self._write_map_elem, m.keys(), m.values()), "")) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 250, in _write_map_elem sc.write_primitive(type, v) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 73, in write_primitive getattr(self, "write_%s" % type.NAME)(v) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 257, in write_map sc.write(string.joinfields(map(self._write_map_elem, m.keys(), m.values()), "")) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 250, in _write_map_elem sc.write_primitive(type, v) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 73, in write_primitive getattr(self, "write_%s" % type.NAME)(v) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 257, in write_map sc.write(string.joinfields(map(self._write_map_elem, m.keys(), m.values()), "")) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 250, in _write_map_elem sc.write_primitive(type, v) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 73, in write_primitive getattr(self, "write_%s" % type.NAME)(v) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 257, in write_map sc.write(string.joinfields(map(self._write_map_elem, m.keys(), m.values()), "")) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 250, in _write_map_elem sc.write_primitive(type, v) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 73, in write_primitive getattr(self, "write_%s" % type.NAME)(v) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 257, in write_map sc.write(string.joinfields(map(self._write_map_elem, m.keys(), m.values()), "")) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 248, in _write_map_elem sc.write_str8(k) File "/usr/lib/python2.6/site-packages/qpid/codec010.py", line 185, in write_str8 self.write_vbin8(s.encode("utf8")) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128) Analysis: In nova-api service, the provisioning request will be handled in "nova/compute/api.py' file "_validate_and_provision_instance" method ("create_instance" method called), the image and its properties will be primitive and make a request spec and pass to nova-scheduler by rpc calls via message queue. And nova-api call glance api v1.0 ("get" method) to get image's infromation, under current glanceclient implementation, those non-ascii character in the image property part will be encoded by utf-8, so the root cause is that qpid (with qpid_python-0.18 lib) can not handle those utf-8 string. Solution: There are two choices to resolve this issue: 1. Resolve in glanceclient. glance-api server return utf-8 property (key/value pair) to glanceclient, so we need convert the them back to unicode from utf-8 ("_image_meta_from_headers" method in "image.py" file), this will cause client.get() method return unicode property string (key/value pair) and nova-api will get those uncode strings and pass them to nova-scheduler via rpc. this unicode encoding logic just like image property update logic ("_image_meta_to_headers" method), update method always pass unicode ima
[Yahoo-eng-team] [Bug 1320655] Re: UnicodeDecodeError in the nova gate logs
** Changed in: python-glanceclient Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1320655 Title: UnicodeDecodeError in the nova gate logs Status in OpenStack Image Registry and Delivery Service (Glance): New Status in OpenStack Compute (Nova): Invalid Status in Python client library for Glance: Fix Released Bug description: http://logstash.openstack.org/#eyJzZWFyY2giOiJtZXNzYWdlOiBcIlVuaWNvZGVEZWNvZGVFcnJvclwiIiwiZmllbGRzIjpbXSwib2Zmc2V0IjowLCJ0aW1lZnJhbWUiOiI2MDQ4MDAiLCJncmFwaG1vZGUiOiJjb3VudCIsInRpbWUiOnsidXNlcl9pbnRlcnZhbCI6MH0sInN0YW1wIjoxNDAwNDI3ODM3NzE0LCJtb2RlIjoiIiwiYW5hbHl6ZV9maWVsZCI6IiJ9 message: "UnicodeDecodeError" Looks like the n-cpu tries to long something not unicide. To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1320655/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp