[PKG-Openstack-devel] [MoM] Packaging manila

Thomas Goirand zigo at debian.org
Wed May 27 09:09:54 UTC 2015


On 05/23/2015 08:04 PM, Malihe Asemani wrote:
> As Andreas mentioned before, lxml is added to the control file. I did
> what you proposed and the output is:
> 
> $*ython -c "import
> manila.tests.share.drivers.netapp.dataontap.client.test_client_cmode"*
> 
> Traceback (most recent call last):
> 
> File "<string>", line 1, in <module>
> 
> File
> "manila/tests/share/drivers/netapp/dataontap/client/test_client_cmode.py",
> line 33, in <module>
> 
> class NetAppClientCmodeTestCase(test.TestCase):
> 
> File
> "manila/tests/share/drivers/netapp/dataontap/client/test_client_cmode.py",
> line 1710, in NetAppClientCmodeTestCase
> 
> @ddt.unpack
> 
> AttributeError: 'module' object has no attribute 'unpack'
> 
> 
> As you can see, some thing is wrong with ddt.unpack.
> 
> *$ python -c "import ddt"*#Done! It is ok.
> 
> *$ python -c "import ddt.unpack"*
> 
> Traceback (most recent call last):
> 
> File "<string>", line 1, in <module>
> 
> ImportError: No module named unpack

This comes from a newer version of python-ddt. This is a very common
issue that packages in OpenStack requires a version which isn't
described in the requirements.txt. This is typically the kind of things
which we should report upstream.

Anyway, I have updated the python-ddt package, and uploaded version
1.0.0 to Debian Sid. You can pick-up the package from:
http://kilo-jessie.pkgs.mirantis.com/debian/pool/jessie-kilo-backports/main/p/python-ddt/

(as it will go through NEW since I added python 3 support)

> Warning in 'source Build-Depends-Indep:19' value
> 'python-oslo.concurrency (>= 1.8.0)': unnecessary versioned dependency:
> python-oslo.concurrency >= 1.8.0. Debian has jessie-backports ->
> 1.8.0-1~bpo8+1; stretch -> 1.8.0-1; sid -> 1.8.0-1; 

The problem with cme fix dpkg-control is that it only sees what's
currently in Sid, it doesn't see the history. You may want to still want
>= 1.8.0 as Sid had previously a lower version (you can look into the
PTS), however, what it sees in Stable is ok. Which is why I prefer my
own tool here! :)

Cheers,

Thomas Goirand (zigo)




More information about the Openstack-devel mailing list