Bug 1011413

Summary: Packstack fails on missing gethostlist function import
Product: Red Hat OpenStack Reporter: Rami Vaknin <rvaknin>
Component: openstack-packstackAssignee: Solly Ross <sross>
Status: CLOSED ERRATA QA Contact: Ami Jeain <ajeain>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0CC: ajeain, aortega, ddomingo, derekh, hateya, mmagr, oblaut, sross, xqueralt, yeylon
Target Milestone: betaKeywords: TestBlocker
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-2013.2.1-0.6.dev763.el6ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-20 00:24:40 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
Rebased patch none

Description Rami Vaknin 2013-09-24 08:48:39 UTC
Version:
Havana on RHEL6.4
puddle: 4.0/2013-09-23.2


Description:
Packstack fails to install OpenStack, it throw the following exception after few seconds:

2013-09-24 11:10:22::ERROR::run_setup::915::root:: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 910, in main
    _main(confFile)
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 577, in _main
    runSequences()
  File "/usr/lib/python2.6/site-packages/packstack/installer/run_setup.py", line 554, in runSequences
    controller.runAllSequences()
  File "/usr/lib/python2.6/site-packages/packstack/installer/setup_controller.py", line 90, in runAllSequences
    sequence.run(self.CONF)
  File "/usr/lib/python2.6/site-packages/packstack/installer/core/sequences.py", line 105, in run
    step.run(config=config)
  File "/usr/lib/python2.6/site-packages/packstack/installer/core/sequences.py", line 52, in run
    raise SequenceError(str(ex))
SequenceError: global name 'gethostlist' is not defined

Comment 2 Solly Ross 2013-09-24 19:16:54 UTC
looks like plugins/prescript_000.py needed

```
from packstack.modules.ospluginutils import gethostlist
from packstack.installer import utils
```

Comment 4 Martin Magr 2013-09-26 08:40:00 UTC
Created attachment 803277 [details]
Rebased patch

Comment 6 Scott Lewis 2013-11-19 16:54:31 UTC
Auto adding >= MODIFIED bugs to beta

Comment 11 errata-xmlrpc 2013-12-20 00:24:40 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-2013-1859.html