Crane crashes on start-up if "debug" config option isn't present
Let's say that you install crane (in my case, from the nightly RPM build) and create the following
[general] data_dir: /var/lib/published/docker endpoint: localhost:5000
In this case, Crane will fail to start:
[root@fedora-24-pulp-2-13 ~]# python2 -c 'from crane.app import create_app; create_app().run()' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.7/site-packages/crane/app.py", line 29, in create_app config.load(app) File "/usr/lib/python2.7/site-packages/crane/config.py", line 59, in load read_config(app, parser) File "/usr/lib/python2.7/site-packages/crane/config.py", line 81, in read_config app.config['DEBUG'] = parser.getboolean(SECTION_GENERAL, KEY_DEBUG) File "/usr/lib64/python2.7/ConfigParser.py", line 368, in getboolean v = self.get(section, option) File "/usr/lib64/python2.7/ConfigParser.py", line 618, in get raise NoOptionError(option, section) ConfigParser.NoOptionError: No option 'debug' in section: 'general'
This isn't expected. The documentation states that
debug defaults to "false", meaning that the
debug option should be optional.
This affects the nightly builds of Crane for Pulp 2.12 and 2.13.
#7 Updated by bmbouter over 2 years ago
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.
Please register to edit this issue