** Changed in: euca2ools
Status: Fix Committed = Fix Released
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to eucalyptus in Ubuntu.
https://bugs.launchpad.net/bugs/509562
Title:
euca-bundle-image returns Odd-length string
** Branch linked: lp:ubuntu/euca2ools
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to euca2ools in Ubuntu.
https://bugs.launchpad.net/bugs/509562
Title:
euca-bundle-image returns Odd-length string error
To manage notifications
** Branch linked: lp:~ubuntu-virt/ubuntu/natty/euca2ools/natty
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to euca2ools in ubuntu.
https://bugs.launchpad.net/bugs/509562
Title:
euca-bundle-image returns Odd-length string error
--
** Changed in: euca2ools
Status: Confirmed = Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to euca2ools in ubuntu.
https://bugs.launchpad.net/bugs/509562
Title:
euca-bundle-image returns Odd-length string error
I have merged this patch in upstream.
--
euca-bundle-image returns Odd-length string error
https://bugs.launchpad.net/bugs/509562
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to euca2ools in ubuntu.
--
Ubuntu-server-bugs mailing list
This bug was fixed in the package euca2ools - 1.2-0ubuntu11
---
euca2ools (1.2-0ubuntu11) maverick; urgency=low
* euca-bundle-image: fix transient Odd-Length exception (LP: #509562)
-- Scott Moser smo...@ubuntu.com Fri, 17 Sep 2010 12:14:30 -0400
** Changed in: euca2ools
** Branch linked: lp:ubuntu/euca2ools
--
euca-bundle-image returns Odd-length string error
https://bugs.launchpad.net/bugs/509562
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to eucalyptus in ubuntu.
--
Ubuntu-server-bugs mailing list
OK, my patch changes what was expected to be 32 bits of randomness to 31
bits of randomness.
Its probably not that big of a deal, but upstream should probably do:
- key = hex(BN.rand(16 * 8,top=0))[2:34]
+ key = hex(BN.rand(17 * 8,top=0))[3:35]
that will get the same 32 bits of randomness, but
** Patch removed: patch against upstream euca2ools
https://bugs.launchpad.net/ubuntu/+source/eucalyptus/+bug/509562/+attachment/1599045/+files/lp-509562-euca2ools-upstream.diff
--
euca-bundle-image returns Odd-length string error
https://bugs.launchpad.net/bugs/509562
You received this bug
comment 12 contained a bad analysis.
The code that is now committed to maverick gets 31.5 hex chars of randomness
rather than 32.
I'm not going to bother changing in maverick.
That said, the right code for upstream is probably something like:
# get 17 bytes of randomness with top bit a
** Branch linked: lp:~smoser/ubuntu/maverick/euca2ools/bug509562
--
euca-bundle-image returns Odd-length string error
https://bugs.launchpad.net/bugs/509562
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to eucalyptus in ubuntu.
--
The problem was that the euca2ools/__init__.py was doing:
iv = (hex(BN.rand(16 * 8,top=0)))[2:34]
then
unhexlify(iv)
But BN.rand(16*8) is not guaranteed to return a number that is
represented by 32 hex digits. I suspect that the .replace('L','c') was
added to get around this issue. By
** Also affects: euca2ools
Importance: Undecided
Status: New
--
euca-bundle-image returns Odd-length string error
https://bugs.launchpad.net/bugs/509562
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to eucalyptus in ubuntu.
--
I've run the following with the fixed version and with the broken version:
rm -f my.img ;
truncate --size 1k my.img;
for((i=0;i1000;i++)); do
out=$(euca-bundle-image -i my.img 21) || { echo failed: ${out}; break; }
;
[ $(($i%10)) -eq 0 ] echo i=$i;
done ;
the fixed has run to 1000
** Patch added: patch against upstream euca2ools
https://bugs.launchpad.net/euca2ools/+bug/509562/+attachment/1599032/+files/lp-509562-euca2ools-upstream.diff
** Changed in: euca2ools
Status: New = Confirmed
** Patch removed: patch against upstream euca2ools
I'm attaching the same patch against upstream euca2ools.
** Patch added: patch against upstream euca2ools
https://bugs.launchpad.net/euca2ools/+bug/509562/+attachment/1599045/+files/lp-509562-euca2ools-upstream.diff
--
euca-bundle-image returns Odd-length string error
** Changed in: euca2ools
Assignee: (unassigned) = Mitch Garnaat (mitch-garnaat)
--
euca-bundle-image returns Odd-length string error
https://bugs.launchpad.net/bugs/509562
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to eucalyptus in
I found the what is at fault here, the following program demonstrates
the error:
#!/usr/bin/python
from M2Crypto import BN, EVP, RSA, util, Rand, m2, X509
from binascii import hexlify, unhexlify
i=0
while True:
i=i+1
try:
iv = (hex(BN.rand(16 * 8))[2:34]).replace('L', 'c')
uh =
Marking invalid against Eucalyptus, as Dan says the bug is in euca2ool
(or perhaps the image-store-proxy).
** Changed in: eucalyptus (Ubuntu)
Status: Confirmed = Invalid
--
euca-bundle-image returns Odd-length string error
https://bugs.launchpad.net/bugs/509562
You received this bug
I can't confirm this against euca2ools upstream. Is there a sample image
that can be used stand alone with euca2ools in order to verify this?
** Changed in: euca2ools (Ubuntu)
Status: Confirmed = Incomplete
--
euca-bundle-image returns Odd-length string error
i want to state that, currently, I cannot use eucalyptus or ubuntu cloud
services, in my server.
--
euca-bundle-image returns Odd-length string error
https://bugs.launchpad.net/bugs/509562
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to
21 matches
Mail list logo