Gerrit hook scripts failing with IndexError exceptions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Core Infrastructure |
Fix Released
|
High
|
Khai Do |
Bug Description
Probably related to recent changes in Jeepyb and projects.
Traceback (most recent call last):
File "/usr/local/
from jeepyb.
File "/usr/local/
from jeepyb import projects as p
File "/usr/local/
'PROJECTS_
File "/usr/local/
self.
File "/usr/local/
configs_list = [config for config in yaml.load_
IndexError: list index out of range
Traceback (most recent call last):
File "/usr/local/
from jeepyb.
File "/usr/local/
from jeepyb import projects as p
File "/usr/local/
'PROJECTS_
File "/usr/local/
self.
File "/usr/local/
configs_list = [config for config in yaml.load_
IndexError: list index out of range
Traceback (most recent call last):
File "/usr/local/
from jeepyb.
File "/usr/local/
from jeepyb import projects
File "/usr/local/
'PROJECTS_
File "/usr/local/
self.
File "/usr/local/
configs_list = [config for config in yaml.load_
IndexError: list index out of range
Changed in openstack-ci: | |
status: | Triaged → Fix Committed |
Changed in openstack-ci: | |
status: | Fix Committed → Fix Released |
We probably need to do something like manage_ projects. py's...
configs = [config for config in yaml.load_ all(open( PROJECTS_ YAML))] exists( PROJECTS_ INI):
projects_ yaml_list = configs[0] ConfigParser( )
defaults. read(PROJECTS_ INI)
projects_ yaml_list = configs[1]
if os.path.
defaults = ConfigParser.
[...]
else:
defaults = configs[0][0]
[...]
Ultimately I think we need to be going through jeepyb. utils.ProjectsY amlRegistry( ), maybe indirectly via new functions in jeepyb.projects.