touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #64288
[Bug 1435242] [NEW] Problematic type casting between int/long?
Public bug reported:
We're seeing this error with the new kilo-3 milestone:
======================================================================
FAIL: cinder.tests.test_utils.GetBlkdevMajorMinorTestCase.test_get_blkdev_major_minor_file
cinder.tests.test_utils.GetBlkdevMajorMinorTestCase.test_get_blkdev_major_minor_file
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/build/buildd/cinder-2015.1~b3/cinder/tests/test_utils.py", line 721, in test_get_blkdev_major_minor_file
dev = self._test_get_blkdev_major_minor_file('/dev/made_up_disk1')
File "/usr/lib/python2.7/dist-packages/mock.py", line 1210, in patched
return func(*args, **keywargs)
File "/build/buildd/cinder-2015.1~b3/cinder/tests/test_utils.py", line 712, in _test_get_blkdev_major_minor_file
dev = utils.get_blkdev_major_minor(test_file)
File "/build/buildd/cinder-2015.1~b3/cinder/utils.py", line 656, in get_blkdev_major_minor
return get_blkdev_major_minor(devpath, False)
File "/build/buildd/cinder-2015.1~b3/cinder/utils.py", line 645, in get_blkdev_major_minor
return '%d:%d' % (os.major(st.st_rdev), os.minor(st.st_rdev))
SystemError: ../Objects/longobject.c:998: bad argument to internal function
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
Traceback (most recent call last):
File "/build/buildd/cinder-2015.1~b3/cinder/tests/test_utils.py", line 721, in test_get_blkdev_major_minor_file
dev = self._test_get_blkdev_major_minor_file('/dev/made_up_disk1')
File "/usr/lib/python2.7/dist-packages/mock.py", line 1210, in patched
return func(*args, **keywargs)
File "/build/buildd/cinder-2015.1~b3/cinder/tests/test_utils.py", line 712, in _test_get_blkdev_major_minor_file
dev = utils.get_blkdev_major_minor(test_file)
File "/build/buildd/cinder-2015.1~b3/cinder/utils.py", line 656, in get_blkdev_major_minor
return get_blkdev_major_minor(devpath, False)
File "/build/buildd/cinder-2015.1~b3/cinder/utils.py", line 645, in get_blkdev_major_minor
return '%d:%d' % (os.major(st.st_rdev), os.minor(st.st_rdev))
SystemError: ../Objects/longobject.c:998: bad argument to internal function
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
Traceback (most recent call last):
File "/build/buildd/cinder-2015.1~b3/cinder/tests/test_utils.py", line 721, in test_get_blkdev_major_minor_file
dev = self._test_get_blkdev_major_minor_file('/dev/made_up_disk1')
File "/usr/lib/python2.7/dist-packages/mock.py", line 1210, in patched
return func(*args, **keywargs)
File "/build/buildd/cinder-2015.1~b3/cinder/tests/test_utils.py", line 712, in _test_get_blkdev_major_minor_file
dev = utils.get_blkdev_major_minor(test_file)
File "/build/buildd/cinder-2015.1~b3/cinder/utils.py", line 656, in get_blkdev_major_minor
return get_blkdev_major_minor(devpath, False)
File "/build/buildd/cinder-2015.1~b3/cinder/utils.py", line 645, in get_blkdev_major_minor
return '%d:%d' % (os.major(st.st_rdev), os.minor(st.st_rdev))
SystemError: ../Objects/longobject.c:998: bad argument to internal function
This is evidently not impacting cinder on 14.04, just 15.04 so I would
suspect some sort of python 2.7.9 issue.
Casting to long appears to workaround this problem.
** Affects: cinder (Ubuntu)
Importance: Undecided
Status: New
** Affects: python2.7 (Ubuntu)
Importance: Undecided
Status: New
** Also affects: python2.7 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to python2.7 in Ubuntu.
https://bugs.launchpad.net/bugs/1435242
Title:
Problematic type casting between int/long?
Status in cinder package in Ubuntu:
New
Status in python2.7 package in Ubuntu:
New
Bug description:
We're seeing this error with the new kilo-3 milestone:
======================================================================
FAIL: cinder.tests.test_utils.GetBlkdevMajorMinorTestCase.test_get_blkdev_major_minor_file
cinder.tests.test_utils.GetBlkdevMajorMinorTestCase.test_get_blkdev_major_minor_file
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/build/buildd/cinder-2015.1~b3/cinder/tests/test_utils.py", line 721, in test_get_blkdev_major_minor_file
dev = self._test_get_blkdev_major_minor_file('/dev/made_up_disk1')
File "/usr/lib/python2.7/dist-packages/mock.py", line 1210, in patched
return func(*args, **keywargs)
File "/build/buildd/cinder-2015.1~b3/cinder/tests/test_utils.py", line 712, in _test_get_blkdev_major_minor_file
dev = utils.get_blkdev_major_minor(test_file)
File "/build/buildd/cinder-2015.1~b3/cinder/utils.py", line 656, in get_blkdev_major_minor
return get_blkdev_major_minor(devpath, False)
File "/build/buildd/cinder-2015.1~b3/cinder/utils.py", line 645, in get_blkdev_major_minor
return '%d:%d' % (os.major(st.st_rdev), os.minor(st.st_rdev))
SystemError: ../Objects/longobject.c:998: bad argument to internal function
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
Traceback (most recent call last):
File "/build/buildd/cinder-2015.1~b3/cinder/tests/test_utils.py", line 721, in test_get_blkdev_major_minor_file
dev = self._test_get_blkdev_major_minor_file('/dev/made_up_disk1')
File "/usr/lib/python2.7/dist-packages/mock.py", line 1210, in patched
return func(*args, **keywargs)
File "/build/buildd/cinder-2015.1~b3/cinder/tests/test_utils.py", line 712, in _test_get_blkdev_major_minor_file
dev = utils.get_blkdev_major_minor(test_file)
File "/build/buildd/cinder-2015.1~b3/cinder/utils.py", line 656, in get_blkdev_major_minor
return get_blkdev_major_minor(devpath, False)
File "/build/buildd/cinder-2015.1~b3/cinder/utils.py", line 645, in get_blkdev_major_minor
return '%d:%d' % (os.major(st.st_rdev), os.minor(st.st_rdev))
SystemError: ../Objects/longobject.c:998: bad argument to internal function
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
Traceback (most recent call last):
File "/build/buildd/cinder-2015.1~b3/cinder/tests/test_utils.py", line 721, in test_get_blkdev_major_minor_file
dev = self._test_get_blkdev_major_minor_file('/dev/made_up_disk1')
File "/usr/lib/python2.7/dist-packages/mock.py", line 1210, in patched
return func(*args, **keywargs)
File "/build/buildd/cinder-2015.1~b3/cinder/tests/test_utils.py", line 712, in _test_get_blkdev_major_minor_file
dev = utils.get_blkdev_major_minor(test_file)
File "/build/buildd/cinder-2015.1~b3/cinder/utils.py", line 656, in get_blkdev_major_minor
return get_blkdev_major_minor(devpath, False)
File "/build/buildd/cinder-2015.1~b3/cinder/utils.py", line 645, in get_blkdev_major_minor
return '%d:%d' % (os.major(st.st_rdev), os.minor(st.st_rdev))
SystemError: ../Objects/longobject.c:998: bad argument to internal function
This is evidently not impacting cinder on 14.04, just 15.04 so I would
suspect some sort of python 2.7.9 issue.
Casting to long appears to workaround this problem.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cinder/+bug/1435242/+subscriptions
Follow ups
-
[Bug 1435242] Re: Problematic type casting between int/long?
From: Bug Watch Updater, 2015-04-21
-
[Bug 1435242] Re: Problematic type casting between int/long?
From: Launchpad Bug Tracker, 2015-04-02
-
[Bug 1435242] Re: Problematic type casting between int/long?
From: Launchpad Bug Tracker, 2015-04-02
-
[Bug 1435242] Re: Problematic type casting between int/long?
From: Launchpad Bug Tracker, 2015-04-02
-
[Bug 1435242] Re: Problematic type casting between int/long?
From: Bug Watch Updater, 2015-04-01
-
[Bug 1435242] Re: Problematic type casting between int/long?
From: Matthias Klose, 2015-04-01
-
[Bug 1435242] Re: Problematic type casting between int/long?
From: Matthias Klose, 2015-04-01
-
[Bug 1435242] Re: Problematic type casting between int/long?
From: Launchpad Bug Tracker, 2015-03-31
-
[Bug 1435242] Re: Problematic type casting between int/long?
From: James Page, 2015-03-26
-
[Bug 1435242] Re: Problematic type casting between int/long?
From: Launchpad Bug Tracker, 2015-03-23
-
[Bug 1435242] [NEW] Problematic type casting between int/long?
From: James Page, 2015-03-23
References