[Bug 1966512] Re: FTBS in jammy: FAIL: magnumclient.tests.test_shell.ShellTest.test_help_on_subcommand

Launchpad Bug Tracker 1966512 at bugs.launchpad.net
Tue Mar 29 07:15:48 UTC 2022


This bug was fixed in the package python-magnumclient - 3.5.0-0ubuntu3

---------------
python-magnumclient (3.5.0-0ubuntu3) jammy; urgency=medium

  [ Corey Bryant ]
  * d/p/skip-tests.patch: Dropped. No longer needed as issue has been fixed.

  [ Felipe Reyes ]
  * d/p/lp1966512.patch: Fix test_help_on_subcommand on Python 3.10 (LP: #1966512).

 -- Felipe Reyes <felipe.reyes at canonical.com>  Fri, 25 Mar 2022 15:41:07
-0300

** Changed in: python-magnumclient (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-magnumclient in Ubuntu.
https://bugs.launchpad.net/bugs/1966512

Title:
  FTBS in jammy: FAIL:
  magnumclient.tests.test_shell.ShellTest.test_help_on_subcommand

Status in python-magnumclient package in Ubuntu:
  Fix Released

Bug description:
  This failure is due to a change in python 3.10 where the string
  "optional arguments" was changed to "options", more info at
  https://docs.python.org/3/whatsnew/3.10.html#argparse and
  https://bugs.python.org/issue9694 .

  Upstream bug: https://storyboard.openstack.org/#!/story/2009946
  Upstream fix: https://review.opendev.org/c/openstack/python-magnumclient/+/835217

  Test failures:

  ======================================================================
  FAIL: magnumclient.tests.test_shell.ShellTest.test_help_on_subcommand
  magnumclient.tests.test_shell.ShellTest.test_help_on_subcommand
  ----------------------------------------------------------------------
  testtools.testresult.real._StringException: Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/magnumclient/tests/test_shell.py", line 127, in test_help_on_subcommand
      self.assertThat((stdout + stderr),
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 480, in assertThat
      raise mismatch_error
  testtools.matchers._impl.MismatchError: 'usage: magnum bay-create [--name <name>] --baymodel <baymodel>\n                         [--node-count <node-count>]\n                         [--master-count <master-count>]\n                         [--discovery-url <discovery-url>]\n                         [--timeout <timeout>]\n\nCreate a bay. (Deprecated in favor of cluster-create.)\n\nOptions:\n  --name <name>         Name of the bay to create.\n  --baymodel <baymodel>\n                        ID or name of the baymodel.\n  --node-count <node-count>\n                        The bay node count.\n  --master-count <master-count>\n                        The number of master nodes for the bay.\n  --discovery-url <discovery-url>\n                        Specifies custom discovery url for node discovery.\n  --timeout <timeout>   The timeout for bay creation in minutes. The default\n                        is 60 minutes.\n' does not match /.*?^Optional arguments:/

  
  ======================================================================
  FAIL: magnumclient.tests.test_shell.ShellTestKeystoneV3.test_help_on_subcommand
  magnumclient.tests.test_shell.ShellTestKeystoneV3.test_help_on_subcommand
  ----------------------------------------------------------------------
  testtools.testresult.real._StringException: Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/magnumclient/tests/test_shell.py", line 127, in test_help_on_subcommand
      self.assertThat((stdout + stderr),
    File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 480, in assertThat
      raise mismatch_error
  testtools.matchers._impl.MismatchError: 'usage: magnum bay-create [--name <name>] --baymodel <baymodel>\n                         [--node-count <node-count>]\n                         [--master-count <master-count>]\n                         [--discovery-url <discovery-url>]\n                         [--timeout <timeout>]\n\nCreate a bay. (Deprecated in favor of cluster-create.)\n\nOptions:\n  --name <name>         Name of the bay to create.\n  --baymodel <baymodel>\n                        ID or name of the baymodel.\n  --node-count <node-count>\n                        The bay node count.\n  --master-count <master-count>\n                        The number of master nodes for the bay.\n  --discovery-url <discovery-url>\n                        Specifies custom discovery url for node discovery.\n  --timeout <timeout>   The timeout for bay creation in minutes. The default\n                        is 60 minutes.\n' does not match /.*?^Optional arguments:/

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-magnumclient/+bug/1966512/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list