← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1469869] [NEW] Metadata defintions in etc/metadefs are not included in Python packages

 

Public bug reported:

The files in etc/metadefs in the Glance repository are not included in
either the tarball or wheel when one runs

    python setup.py sdist bdist_wheel

These should be included by default and installed so they can be used.
Since wheels should not be allowed to write to paths outside of the
directory the package is installed in,

    glance-manage db_load_metadefs

Should also look in the installed directory path for etc/metadefs when
loading them.

This is a problem in every version of Glance that was meant to include
those metadata definitions. Since this does not prevent functionality
from working (since a user could download the files to /etc/metadefs and
run the command), I do not think this has backport potential.

** Affects: glance
     Importance: Undecided
         Status: New


** Tags: metadef

** Description changed:

  The files in etc/metadefs in the Glance repository are not included in
  either the tarball or wheel when one runs
  
-     python setup.py sdist bdist_wheel
+     python setup.py sdist bdist_wheel
  
  These should be included by default and installed so they can be used.
  Since wheels should not be allowed to write to paths outside of the
  directory the package is installed in,
  
-     glance-manage db_load_metadefs
+     glance-manage db_load_metadefs
  
  Should also look in the installed directory path for etc/metadefs when
  loading them.
+ 
+ This is a problem in every version of Glance that was meant to include
+ those metadata definitions. Since this does not prevent functionality
+ from working (since a user could download the files to /etc/metadefs and
+ run the command), I do not think this has backport potential.

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1469869

Title:
  Metadata defintions in etc/metadefs are not included in Python
  packages

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  The files in etc/metadefs in the Glance repository are not included in
  either the tarball or wheel when one runs

      python setup.py sdist bdist_wheel

  These should be included by default and installed so they can be used.
  Since wheels should not be allowed to write to paths outside of the
  directory the package is installed in,

      glance-manage db_load_metadefs

  Should also look in the installed directory path for etc/metadefs when
  loading them.

  This is a problem in every version of Glance that was meant to include
  those metadata definitions. Since this does not prevent functionality
  from working (since a user could download the files to /etc/metadefs
  and run the command), I do not think this has backport potential.

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


Follow ups

References