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

Ubuntu Foundations Team Bug Bot 1966512 at bugs.launchpad.net
Fri Mar 25 20:19:47 UTC 2022


The attachment "lp1966512_jammy.patch" seems to be a debdiff.  The
ubuntu-sponsors team has been subscribed to the bug report so that they
can review and hopefully sponsor the debdiff.  If the attachment isn't a
patch, please remove the "patch" flag from the attachment, remove the
"patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe
the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
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:
  New

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-sponsors mailing list