[Group.of.nepali.translators] [Bug 1578622] Re: [SRU] glance do not require hypervisor_mapping

2019-11-04 Thread Rafael David Tinoco
** Changed in: simplestreams (Ubuntu Bionic)
   Status: In Progress => Fix Released

** Changed in: simplestreams (Ubuntu Bionic)
 Assignee: Rafael David Tinoco (rafaeldtinoco) => (unassigned)

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1578622

Title:
  [SRU] glance do not require hypervisor_mapping

Status in simplestreams:
  Fix Released
Status in simplestreams package in Ubuntu:
  Fix Released
Status in simplestreams source package in Xenial:
  Won't Fix
Status in simplestreams source package in Yakkety:
  Fix Released
Status in simplestreams source package in Bionic:
  Fix Released

Bug description:
  [Impact]
  currently the glance mirror requires hypervisor_mapping config in the api.
  Better to not required that as a library consumer would not necessarily 
provide it.

  [Test Case]

  * deploy a openstack environment with keystone v2 enabled
    - get a copy of the bundle available at 
http://paste.ubuntu.com/p/qxwSDtDZ52/ , this bundle deploys a minimal version 
of xenial-mitaka.

  Expected Result:
  - "glance image-list" lists trusty and xenial images
  - the file glance-simplestreams-sync/0:/var/log/glance-simplestreams-sync.log 
contains details of the images pulled from cloud-images.u.c (example: 
https://pastebin.ubuntu.com/p/RWG8QrkVDz/ )

  Actual result:

  - "glance image-list" is empty
  - glance-simplestreams-sync/0 is in blocked state and message "Image sync 
failed, retrying soon."

  In /var/log/glance-simplestreams-sync.log:
  ERROR * 02-14 15:46:07 [PID:1898] * root * Exception during syncing:
  Traceback (most recent call last):
File "/usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py", 
line 462, in main
  do_sync(charm_conf, status_exchange)
File "/usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py", 
line 273, in do_sync
  tmirror.sync(smirror, path=initial_path)
File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", 
line 91, in sync
  return self.sync_index(reader, path, data, content)
File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", 
line 254, in sync_index
  self.sync(reader, path=epath)
File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", 
line 89, in sync
  return self.sync_products(reader, path, data, content)
File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", 
line 341, in sync_products
  self.insert_item(item, src, target, pgree, ipath_cs)
File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/glance.py", 
line 242, in insert_item
  if self.config['hypervisor_mapping'] and 'ftype' in flat:
  KeyError: 'hypervisor_mapping'

  
  [Regression Potential]

  * This patch makes an argument optional only, there is no expected
  regressions in users of this library.

  [Other Info]

  The bundle used in the test case uses a modified version of the
  glance-simplestreams-sync charm that removes the hypervisor_mapping
  parameter when using simplestreams library.
  https://pastebin.ubuntu.com/p/Ny7jFnGfnY/

To manage notifications about this bug go to:
https://bugs.launchpad.net/simplestreams/+bug/1578622/+subscriptions

___
Mailing list: https://launchpad.net/~group.of.nepali.translators
Post to : group.of.nepali.translators@lists.launchpad.net
Unsubscribe : https://launchpad.net/~group.of.nepali.translators
More help   : https://help.launchpad.net/ListHelp


[Group.of.nepali.translators] [Bug 1578622] Re: [SRU] glance do not require hypervisor_mapping

2019-10-16 Thread Rafael David Tinoco
** Changed in: simplestreams (Ubuntu Xenial)
   Status: In Progress => Won't Fix

** Also affects: simplestreams (Ubuntu Bionic)
   Importance: Undecided
   Status: New

** Changed in: simplestreams (Ubuntu Bionic)
   Status: New => Triaged

** Changed in: simplestreams (Ubuntu Bionic)
   Status: Triaged => In Progress

** Changed in: simplestreams (Ubuntu Xenial)
 Assignee: Rafael David Tinoco (rafaeldtinoco) => (unassigned)

** Changed in: simplestreams (Ubuntu Bionic)
 Assignee: (unassigned) => Rafael David Tinoco (rafaeldtinoco)

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1578622

Title:
  [SRU] glance do not require hypervisor_mapping

Status in simplestreams:
  Fix Released
Status in simplestreams package in Ubuntu:
  Fix Released
Status in simplestreams source package in Xenial:
  Won't Fix
Status in simplestreams source package in Yakkety:
  Fix Released
Status in simplestreams source package in Bionic:
  In Progress

Bug description:
  [Impact]
  currently the glance mirror requires hypervisor_mapping config in the api.
  Better to not required that as a library consumer would not necessarily 
provide it.

  [Test Case]

  * deploy a openstack environment with keystone v2 enabled
    - get a copy of the bundle available at 
http://paste.ubuntu.com/p/qxwSDtDZ52/ , this bundle deploys a minimal version 
of xenial-mitaka.

  Expected Result:
  - "glance image-list" lists trusty and xenial images
  - the file glance-simplestreams-sync/0:/var/log/glance-simplestreams-sync.log 
contains details of the images pulled from cloud-images.u.c (example: 
https://pastebin.ubuntu.com/p/RWG8QrkVDz/ )

  Actual result:

  - "glance image-list" is empty
  - glance-simplestreams-sync/0 is in blocked state and message "Image sync 
failed, retrying soon."

  In /var/log/glance-simplestreams-sync.log:
  ERROR * 02-14 15:46:07 [PID:1898] * root * Exception during syncing:
  Traceback (most recent call last):
File "/usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py", 
line 462, in main
  do_sync(charm_conf, status_exchange)
File "/usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py", 
line 273, in do_sync
  tmirror.sync(smirror, path=initial_path)
File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", 
line 91, in sync
  return self.sync_index(reader, path, data, content)
File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", 
line 254, in sync_index
  self.sync(reader, path=epath)
File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", 
line 89, in sync
  return self.sync_products(reader, path, data, content)
File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", 
line 341, in sync_products
  self.insert_item(item, src, target, pgree, ipath_cs)
File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/glance.py", 
line 242, in insert_item
  if self.config['hypervisor_mapping'] and 'ftype' in flat:
  KeyError: 'hypervisor_mapping'

  
  [Regression Potential]

  * This patch makes an argument optional only, there is no expected
  regressions in users of this library.

  [Other Info]

  The bundle used in the test case uses a modified version of the
  glance-simplestreams-sync charm that removes the hypervisor_mapping
  parameter when using simplestreams library.
  https://pastebin.ubuntu.com/p/Ny7jFnGfnY/

To manage notifications about this bug go to:
https://bugs.launchpad.net/simplestreams/+bug/1578622/+subscriptions

___
Mailing list: https://launchpad.net/~group.of.nepali.translators
Post to : group.of.nepali.translators@lists.launchpad.net
Unsubscribe : https://launchpad.net/~group.of.nepali.translators
More help   : https://help.launchpad.net/ListHelp