Project

Profile

Help

Issue #2700

closed

Crane crashes on start-up if "debug" config option isn't present

Added by Ichimonji10 about 7 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Low
Assignee:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version - Crane:
Platform Release:
Target Release - Crane:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

Let's say that you install crane (in my case, from the nightly RPM build) and create the following /etc/crane.conf:

[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.

Actions #1

Updated by Ichimonji10 about 7 years ago

  • Description updated (diff)
Actions #2

Updated by Ichimonji10 about 7 years ago

  • Description updated (diff)
Actions #3

Updated by Ichimonji10 about 7 years ago

  • Description updated (diff)
Actions #4

Updated by ipanova@redhat.com about 7 years ago

  • Tags Easy Fix added
Actions #5

Updated by ttereshc about 7 years ago

  • Priority changed from Normal to Low
  • Severity changed from 2. Medium to 1. Low
  • Triaged changed from No to Yes
Actions #6

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #7

Updated by bmbouter about 5 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.

Actions #8

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF