Bug 697943

Summary: building a template has boto status code error
Product: [Retired] CloudForms Cloud Engine Reporter: wes hayutin <whayutin>
Component: imagefactoryAssignee: Ian McLeod <imcleod>
Status: CLOSED ERRATA QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: dajohnso, deltacloud-maint, ssachdev
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: na
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-15 20:06:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description wes hayutin 2011-04-19 17:59:09 UTC
2011-04-19 13:55:55,298 WARNING boto pid(20374) Message: Error converting code (pending) to int


context....

          <kernelId>aki-427d952b</kernelId>
            <monitoring>
                <state>disabled</state>
            </monitoring>
            <stateReason>
                <code>pending</code>
                <message>pending</message>
            </stateReason>
            <rootDeviceType>instance-store</rootDeviceType>
            <blockDeviceMapping/>
        </item>
    </instancesSet>
</RunInstancesResponse>
2011-04-19 13:55:55,298 WARNING boto pid(20374) Message: Error converting code (pending) to int
2011-04-19 13:56:05,305 DEBUG imagefactory.builders.BaseBuilder.FedoraBuilder pid(20374) Message: Waiting for EC2 instance to start: 0/300
2011-04-19 13:56:05,305 DEBUG boto pid(20374) Message: using calc_signature_2
2011-04-19 13:56:05,305 DEBUG boto pid(20374) Message: query string: AWSAccessKeyId=AKIAJ557U7P7OIHRV2EQ&Action=DescribeInstances&InstanceId.1=i-f4f8be9b&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-04-19T17%3A56%3A05&Version=2009-11-30
2011-04-19 13:56:05,305 DEBUG boto pid(20374) Message: string_to_sign: GET
ec2.us-east-1.amazonaws.com
/
AWSAccessKeyId=AKIAJ557U7P7OIHRV2EQ&Action=DescribeInstances&InstanceId.1=i-f4f8be9b&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-04-19T17%3A56%3A05&Version=2009-11-30
2011-04-19 13:56:05,306 DEBUG boto pid(20374) Message: len(b64)=44
2011-04-19 13:56:05,306 DEBUG boto pid(20374) Message: base64 encoded digest: BamPdKw7dK/GxK17zyVAl2QWERwrHlg513cKrUn9MVQ=
2011-04-19 13:56:05,306 DEBUG boto pid(20374) Message: Canonical: GET


Tue, 19 Apr 2011 17:56:05 GMT
/
2011-04-19 13:56:05,306 DEBUG boto pid(20374) Message: Method: GET
2011-04-19 13:56:05,306 DEBUG boto pid(20374) Message: Path: /?AWSAccessKeyId=AKIAJ557U7P7OIHRV2EQ&Action=DescribeInstances&InstanceId.1=i-f4f8be9b&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2011-04-19T17%3A56%3A05&Version=2009-11-30&Signature=BamPdKw7dK/GxK17zyVAl2QWERwrHlg513cKrUn9MVQ%3D
2011-04-19 13:56:05,306 DEBUG boto pid(20374) Message: Data: 
2011-04-19 13:56:05,307 DEBUG boto pid(20374) Message: Headers: {'Date': 'Tue, 19 Apr 2011 17:56:05 GMT', 'Content-Length': '0', 'Authorization': 'AWS AKIAJ557U7P7OIHRV2EQ:x3PztBBahNO3Nn1uiBXyhQ0s4GU=', 'User-Agent': 'Boto/1.9b (linux2)'}
2011-04-19 13:56:05,307 DEBUG boto pid(20374) Message: Host: None
2011-04-19 13:56:05,484 DEBUG boto pid(20374) Message: <?xml version="1.0" encoding="UTF-8"?>
<DescribeInstancesResponse xmlns="http://ec2.amazonaws.com/doc/2009-11-30/">
    <requestId>0b7d79a7-202e-456c-bc75-0f92d140f463</requestId>
    <reservationSet>
        <item>
            <reservationId>r-b76185db</reservationId>


recreate:
1. create a template
2. click build w/ ec2

build works etc.. just raising the issue, not sure if its a real problem

Comment 1 Tomas Sedovic 2011-04-27 15:19:07 UTC
I'm assigning this to Jay who actually knows a thing or two about the Factory.

Wes: could you please add the filename of the log next time? It's easy to guess here but may be harder in other cases.

Thanks,
Thomas

Comment 2 Jason Guiditta 2011-04-27 18:02:01 UTC
Talked to clalance, and while this is just a warning, it is probably something in factory itself, so reassigning over to that component

Comment 3 wes hayutin 2011-06-16 20:29:00 UTC
Dave,
Can you pursue this w/ the factory guys

Comment 4 wes hayutin 2011-09-28 16:39:31 UTC
making sure all the bugs are at the right version for future queries

Comment 6 wes hayutin 2011-09-29 16:03:26 UTC
[root@unused bin]# cat /var/log/imagefactory.log | grep boto
2011-09-27 18:07:44,858 ERROR boto pid(4541) Message: 400 Bad Request
2011-09-27 18:07:44,858 ERROR boto pid(4541) Message: <?xml version="1.0" encoding="UTF-8"?>
  File "/usr/lib/python2.7/site-packages/boto/ec2/instance.py", line 248, in stop
  File "/usr/lib/python2.7/site-packages/boto/ec2/connection.py", line 655, in stop_instances
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 680, in get_list
2011-09-28 08:40:40,687 ERROR boto pid(4541) Message: 400 Bad Request
2011-09-28 08:40:40,687 ERROR boto pid(4541) Message: <?xml version="1.0" encoding="UTF-8"?>
  File "/usr/lib/python2.7/site-packages/boto/ec2/instance.py", line 248, in stop
  File "/usr/lib/python2.7/site-packages/boto/ec2/connection.py", line 655, in stop_instances
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 680, in get_list
2011-09-28 08:56:26,305 ERROR boto pid(4541) Message: 400 Bad Request
2011-09-28 08:56:26,305 ERROR boto pid(4541) Message: <?xml version="1.0" encoding="UTF-8"?>
  File "/usr/lib/python2.7/site-packages/boto/ec2/instance.py", line 248, in stop
  File "/usr/lib/python2.7/site-packages/boto/ec2/connection.py", line 655, in stop_instances
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 680, in get_list
2011-09-28 09:28:05,679 ERROR boto pid(4541) Message: 400 Bad Request
2011-09-28 09:28:05,679 ERROR boto pid(4541) Message: <?xml version="1.0" encoding="UTF-8"?>
  File "/usr/lib/python2.7/site-packages/boto/ec2/instance.py", line 248, in stop
  File "/usr/lib/python2.7/site-packages/boto/ec2/connection.py", line 655, in stop_instances
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 680, in get_list
[root@unused bin]# 


warning is gone.. dont see 
 boto pid(20374) Message: Error
 converting code
(pending) to int


[root@unused bin]# rpm -qa | grep aeolus
aeolus-conductor-doc-0.4.0-0.20110929145941git7594098.fc15.noarch
aeolus-conductor-0.4.0-0.20110929145941git7594098.fc15.noarch
aeolus-conductor-daemons-0.4.0-0.20110929145941git7594098.fc15.noarch
aeolus-conductor-devel-0.4.0-0.20110929145941git7594098.fc15.noarch
aeolus-all-0.4.0-0.20110929145941git7594098.fc15.noarch
rubygem-aeolus-image-0.1.0-3.20110919115936gitd1d24b4.fc15.noarch
aeolus-configure-2.0.2-4.20110926142838git5044e56.fc15.noarch

Comment 8 errata-xmlrpc 2012-05-15 20:06:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2012-0588.html