#349 rpkgError: Could not generate update request: No option 'display_name' in section: <nevr>
Closed: Fixed 3 years ago by onosek. Opened 4 years ago by churchyard.

With bodhi 4.1.0, this is the error in tests:

======================================================================
ERROR: test_create_update_in_stage_bodhi (test_cli.TestUpdate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.8/configparser.py", line 789, in get
    value = d[option]
  File "/usr/lib64/python3.8/collections/__init__.py", line 891, in __getitem__
    return self.__missing__(key)            # support subclasses that define __missing__
  File "/usr/lib64/python3.8/collections/__init__.py", line 883, in __missing__
    raise KeyError(key)
KeyError: 'display_name'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/cli.py", line 702, in update
    self.cmd.update(bodhi_config, template=bodhi_template_file)
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/__init__.py", line 277, in update
    update_details = bodhi.parse_file(template)
  File "/usr/lib/python3.8/site-packages/bodhi/client/bindings.py", line 625, in parse_file
    'display_name': config.get(section, 'display_name', raw=True),
  File "/usr/lib64/python3.8/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 272, in test_create_update_in_stage_bodhi
    self.assert_bodhi_update(cli, update_type='enhancement')
  File "/usr/lib/python3.8/site-packages/mock/mock.py", line 1330, in patched
    return func(*args, **keywargs)
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 199, in assert_bodhi_update
    cli.update()
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/cli.py", line 708, in update
    raise rpkgError('Could not generate update request: %s\n'
pyrpkg.errors.rpkgError: Could not generate update request: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '
A copy of the filled in template is saved as bodhi.template.last

======================================================================
ERROR: test_create_with_cli_options (test_cli.TestUpdate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.8/configparser.py", line 789, in get
    value = d[option]
  File "/usr/lib64/python3.8/collections/__init__.py", line 891, in __getitem__
    return self.__missing__(key)            # support subclasses that define __missing__
  File "/usr/lib64/python3.8/collections/__init__.py", line 883, in __missing__
    raise KeyError(key)
KeyError: 'display_name'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/cli.py", line 702, in update
    self.cmd.update(bodhi_config, template=bodhi_template_file)
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/__init__.py", line 277, in update
    update_details = bodhi.parse_file(template)
  File "/usr/lib/python3.8/site-packages/bodhi/client/bindings.py", line 625, in parse_file
    'display_name': config.get(section, 'display_name', raw=True),
  File "/usr/lib64/python3.8/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 305, in test_create_with_cli_options
    self.assert_bodhi_update(
  File "/usr/lib/python3.8/site-packages/mock/mock.py", line 1330, in patched
    return func(*args, **keywargs)
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 199, in assert_bodhi_update
    cli.update()
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/cli.py", line 708, in update
    raise rpkgError('Could not generate update request: %s\n'
pyrpkg.errors.rpkgError: Could not generate update request: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '
A copy of the filled in template is saved as bodhi.template.last

======================================================================
ERROR: test_create_with_notes_in_multiple_lines (test_cli.TestUpdate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.8/configparser.py", line 789, in get
    value = d[option]
  File "/usr/lib64/python3.8/collections/__init__.py", line 891, in __getitem__
    return self.__missing__(key)            # support subclasses that define __missing__
  File "/usr/lib64/python3.8/collections/__init__.py", line 883, in __missing__
    raise KeyError(key)
KeyError: 'display_name'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/cli.py", line 702, in update
    self.cmd.update(bodhi_config, template=bodhi_template_file)
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/__init__.py", line 277, in update
    update_details = bodhi.parse_file(template)
  File "/usr/lib/python3.8/site-packages/bodhi/client/bindings.py", line 625, in parse_file
    'display_name': config.get(section, 'display_name', raw=True),
  File "/usr/lib64/python3.8/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 342, in test_create_with_notes_in_multiple_lines
    self.assert_bodhi_update(
  File "/usr/lib/python3.8/site-packages/mock/mock.py", line 1330, in patched
    return func(*args, **keywargs)
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 199, in assert_bodhi_update
    cli.update()
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/cli.py", line 708, in update
    raise rpkgError('Could not generate update request: %s\n'
pyrpkg.errors.rpkgError: Could not generate update request: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '
A copy of the filled in template is saved as bodhi.template.last

======================================================================
ERROR: test_request_update (test_cli.TestUpdate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.8/configparser.py", line 789, in get
    value = d[option]
  File "/usr/lib64/python3.8/collections/__init__.py", line 891, in __getitem__
    return self.__missing__(key)            # support subclasses that define __missing__
  File "/usr/lib64/python3.8/collections/__init__.py", line 883, in __missing__
    raise KeyError(key)
KeyError: 'display_name'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/cli.py", line 702, in update
    self.cmd.update(bodhi_config, template=bodhi_template_file)
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/__init__.py", line 277, in update
    update_details = bodhi.parse_file(template)
  File "/usr/lib/python3.8/site-packages/bodhi/client/bindings.py", line 625, in parse_file
    'display_name': config.get(section, 'display_name', raw=True),
  File "/usr/lib64/python3.8/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 253, in test_request_update
    self.assert_bodhi_update(cli, update_type='enhancement')
  File "/usr/lib/python3.8/site-packages/mock/mock.py", line 1330, in patched
    return func(*args, **keywargs)
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 199, in assert_bodhi_update
    cli.update()
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/cli.py", line 708, in update
    raise rpkgError('Could not generate update request: %s\n'
pyrpkg.errors.rpkgError: Could not generate update request: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '
A copy of the filled in template is saved as bodhi.template.last

======================================================================
ERROR: test_show_editor_if_notes_is_omitted (test_cli.TestUpdate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.8/configparser.py", line 789, in get
    value = d[option]
  File "/usr/lib64/python3.8/collections/__init__.py", line 891, in __getitem__
    return self.__missing__(key)            # support subclasses that define __missing__
  File "/usr/lib64/python3.8/collections/__init__.py", line 883, in __missing__
    raise KeyError(key)
KeyError: 'display_name'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/cli.py", line 702, in update
    self.cmd.update(bodhi_config, template=bodhi_template_file)
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/__init__.py", line 277, in update
    update_details = bodhi.parse_file(template)
  File "/usr/lib/python3.8/site-packages/bodhi/client/bindings.py", line 625, in parse_file
    'display_name': config.get(section, 'display_name', raw=True),
  File "/usr/lib64/python3.8/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 330, in test_show_editor_if_notes_is_omitted
    self.assert_bodhi_update(cli, update_type='bugfix')
  File "/usr/lib/python3.8/site-packages/mock/mock.py", line 1330, in patched
    return func(*args, **keywargs)
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 199, in assert_bodhi_update
    cli.update()
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/cli.py", line 708, in update
    raise rpkgError('Could not generate update request: %s\n'
pyrpkg.errors.rpkgError: Could not generate update request: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '
A copy of the filled in template is saved as bodhi.template.last

======================================================================
ERROR: test_show_editor_if_update_type_is_omitted (test_cli.TestUpdate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.8/configparser.py", line 789, in get
    value = d[option]
  File "/usr/lib64/python3.8/collections/__init__.py", line 891, in __getitem__
    return self.__missing__(key)            # support subclasses that define __missing__
  File "/usr/lib64/python3.8/collections/__init__.py", line 883, in __missing__
    raise KeyError(key)
KeyError: 'display_name'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/cli.py", line 702, in update
    self.cmd.update(bodhi_config, template=bodhi_template_file)
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/__init__.py", line 277, in update
    update_details = bodhi.parse_file(template)
  File "/usr/lib/python3.8/site-packages/bodhi/client/bindings.py", line 625, in parse_file
    'display_name': config.get(section, 'display_name', raw=True),
  File "/usr/lib64/python3.8/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 317, in test_show_editor_if_update_type_is_omitted
    self.assert_bodhi_update(
  File "/usr/lib/python3.8/site-packages/mock/mock.py", line 1330, in patched
    return func(*args, **keywargs)
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 199, in assert_bodhi_update
    cli.update()
  File "/builddir/build/BUILD/fedpkg-1.37/fedpkg/cli.py", line 708, in update
    raise rpkgError('Could not generate update request: %s\n'
pyrpkg.errors.rpkgError: Could not generate update request: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '
A copy of the filled in template is saved as bodhi.template.last

======================================================================
FAIL: test_incorrect_request_type_in_template (test_cli.TestUpdate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 292, in test_incorrect_request_type_in_template
    six.assertRaisesRegex(self, rpkgError, 'Incorrect request type',
  File "/usr/lib/python3.8/site-packages/six.py", line 677, in assertRaisesRegex
    return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "Incorrect request type" does not match "Could not generate update request: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '
A copy of the filled in template is saved as bodhi.template.last"


======================================================================
FAIL: test_incorrect_update_type_in_template (test_cli.TestUpdate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 286, in test_incorrect_update_type_in_template
    six.assertRaisesRegex(self, rpkgError, 'Incorrect update type',
  File "/usr/lib/python3.8/site-packages/six.py", line 677, in assertRaisesRegex
    return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "Incorrect update type" does not match "Could not generate update request: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '
A copy of the filled in template is saved as bodhi.template.last"


======================================================================
FAIL: test_missing_update_type_in_template (test_cli.TestUpdate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/fedpkg-1.37/test/test_cli.py", line 280, in test_missing_update_type_in_template
    six.assertRaisesRegex(self, rpkgError, 'Missing update type',
  File "/usr/lib/python3.8/site-packages/six.py", line 677, in assertRaisesRegex
    return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "Missing update type" does not match "Could not generate update request: No option 'display_name' in section: ' fedpkg-1.29-9.fc27 '
A copy of the filled in template is saved as bodhi.template.last"


----------------------------------------------------------------------
Ran 156 tests in 12.700s

FAILED (errors=6, failures=3)

If I had to guess, this has to do with https://github.com/fedora-infra/bodhi/pull/3213

Downstream Fedora bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1737426


Metadata Update from @onosek:
- Issue set to the milestone: 1.39

3 years ago

Metadata Update from @onosek:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata