Red Hat Bugzilla – Bug 801193
Clicking on 'Test Connection' for an ec2 account gives 'undefined method `permissions' for nil:NilClass' error
Last modified: 2012-05-15 18:50:02 EDT
Created attachment 568436 [details]
Description of problem:
- Ran aeolus-configure -p mock, ec2
- Ran aeolus-configure -p rhevm
- Ran aeolus-configure -p vsphere
- Ran aeolus-restart-services
- Started conductor - logged in as admin
- Added account for rhevm and vsphere
- Built and pushed images for vsphere and rhevm successfully
- Added and account for ec2 - ec2-us-east-1
- Built and image for ec2
- Tried to push the image ... failed (see error copied from .var/log/imagefactory.log)
- Went to check ec2 account ... thinking there is an issue with creds
- Clicked 'Cloud Resource Providers' -> 'ec2-us-east-1' -> 'ec2Account' -> 'Test Connection'
Test Connection Success: Valid Account Details
undefined method `permissions' for nil:NilClass
See attached screenshot.
***** Error from /var/log/imagefactory.log ******
Permanently added 'ec2-50-19-76-213.compute-1.amazonaws.com,22.214.171.124' (RSA) to the list of known hosts.
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.0031964 s, 328 MB/s
mke2fs 1.41.14 (22-Dec-2010)
Traceback (most recent call last):
File "/usr/bin/euca-bundle-vol", line 492, in <module>
File "/usr/bin/euca-bundle-vol", line 467, in main
File "/usr/lib/python2.7/site-packages/euca2ools/__init__.py", line 994, in generate_manifest
user_pub_key = X509.load_cert(cert_path).get_pubkey().get_rsa()
File "/usr/lib64/python2.7/site-packages/M2Crypto/X509.py", line 611, in load_cert
File "/usr/lib64/python2.7/site-packages/M2Crypto/X509.py", line 639, in load_cert_bio
M2Crypto.X509.X509Error: 140702711510816:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:696:Expecting: CERTIFICATE
rpm -qa |grep aeolus
rpm -qa |grep image
The same certificates uploaded to ec2 Account in previous aeolus version did not give any errors:
rpm -qa |grep aeolus
I'd like to see the stack trace from rails.log that corresponds to that permissions error.
I think I know what's going on, but the error I'm getting on my end is slightly different.
I'll submit a patch that fixes the error I'm seeing here, which I hope will fix the reported issue as well (it looks like a similar problem). Once I see that stacktrace I'll know for sure.
Patch posted here: https://fedorahosted.org/pipermail/aeolus-devel/2012-March/009542.html
Created attachment 569661 [details]
end of rails.log
rails.log from the conductor instance where I saw the permissions error is large (over 19.6MB). I attached just the text from today - where I clicked on 'Test Connection' and saw the error again. If you need more of the log, you can pull it from: ibm-x3200m3-01.rhts.eng.bos.redhat.com (Beaker machine) or let me know and I'll attach the full log.
OK, from the log, it looks like you're hitting the same root cause that I hit, just at a different point in the view code, possibly due to unrelated differences in what's on the development tip and what's in the build you're testing with. The posted patch should resolve both issues just the same, so this should be resolved once the fix is ACKed and pushed.
Pushed to master at f9f53bcd0e96eef0875f4dd6e226d5aab267a11c
Able to build/push/ launch instance on ec2. and also the test connection was success-full.
rpm -qa | grep aeolus
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.