Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 911653

Summary: KeyError in remove_remote_var_dirs
Product: Red Hat OpenStack Reporter: Jaroslav Henner <jhenner>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED ERRATA QA Contact: Jaroslav Henner <jhenner>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 2.0 (Folsom)CC: aortega, derekh, mmagr, ykaul
Target Milestone: snapshot3Keywords: Regression, TestBlocker, Triaged
Target Release: 2.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-packstack-2012.2.2-1.0.dev408 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-05 21:03:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
answfile none

Description Jaroslav Henner 2013-02-15 14:37:47 UTC
Description of problem:
When deploying with swift, packstack fails.


Version-Release number of selected component (if applicable):
openstack-packstack-2012.2.2-0.9.dev406.el6ost.noarch


How reproducible:
2/2

Steps to Reproduce:
1. Use the provided answfile 
2.
3.
  
Actual results:
2013-02-15 13:29:55::ERROR::run_setup::599::root:: Error running remote script:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 587, in _main
    runSequences()
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 563, in runSequences
    controller.runAllSequences()
  File "/usr/lib/python2.6/site-packages/packstack/installer/setup_controller.py", line 62, in runAllSequences
    sequence.run()
  File "/usr/lib/python2.6/site-packages/packstack/installer/setup_sequences.py", line 153, in run
    step.run()
  File "/usr/lib/python2.6/site-packages/packstack/installer/setup_sequences.py", line 60, in run
    function()
  File "/usr/lib/python2.6/site-packages/packstack/plugins/swift_600.py", line 225, in createstoragemanifest
    check_device(host, device)
  File "/usr/lib/python2.6/site-packages/packstack/plugins/swift_600.py", line 206, in check_device
    server.execute()
  File "/usr/lib/python2.6/site-packages/packstack/installer/common_utils.py", line 408, in execute
    '%s' % stdoutdata)
ScriptRuntimeError: Error running remote script:
2013-02-15 13:29:55::ERROR::run_setup::838::root:: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 830, in main
    _main(confFile)
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 602, in _main
    remove_remote_var_dirs()
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 615, in remove_remote_var_dirs
    host_dir = controller.temp_map[host]
KeyError: '10.34.69.137'


Expected results:
No problems.

Additional info:

Comment 1 Jaroslav Henner 2013-02-15 14:38:46 UTC
Created attachment 697826 [details]
answfile

Comment 5 Derek Higgins 2013-02-15 17:06:24 UTC
The problem here was that the local server was being tested for the existence of swift storage devices instead of the remote storage host.

Comment 9 Jaroslav Henner 2013-02-22 09:40:47 UTC
It is fine with openstack-packstack-2012.2.2-1.0.dev408.el6ost.noarch

Comment 11 errata-xmlrpc 2013-03-05 21:03:44 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/RHSA-2013-0595.html