overcloud node provide fails with TypeError

Bug #1931674 reported by Rabi Mishra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Rabi Mishra

Bug Description

(undercloud-noauth) [CentOS-8 - stack@undercloud ~]$ openstack overcloud node provide 2187a02b-82bd-4c51-999b-96af20c70c68
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/ansible_runner/runner_config.py", line 340, in prepare_command
    cmdline_args = self.loader.load_file('args', string_types, encoding=None)
  File "/usr/lib/python3.6/site-packages/ansible_runner/loader.py", line 164, in load_file
    contents = parsed_data = self.get_contents(path)
  File "/usr/lib/python3.6/site-packages/ansible_runner/loader.py", line 98, in get_contents
    raise ConfigurationError('specified path does not exist %s' % path)
ansible_runner.exceptions.ConfigurationError: specified path does not exist /tmp/tripleo3c0ss2zv/args

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tripleoclient/command.py", line 34, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 39, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/cliff/command.py", line 185, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_node.py", line 222, in take_action
    node_uuids=parsed_args.node_uuids)
  File "/usr/lib/python3.6/site-packages/tripleoclient/workflows/baremetal.py", line 123, in provide
    'node_uuids': node_uuids
  File "/usr/lib/python3.6/site-packages/tripleoclient/utils.py", line 658, in run_ansible_playbook
    runner_config.prepare()
  File "/usr/lib/python3.6/site-packages/ansible_runner/runner_config.py", line 174, in prepare
    self.prepare_command()
  File "/usr/lib/python3.6/site-packages/ansible_runner/runner_config.py", line 346, in prepare_command
    self.command = self.generate_ansible_command()
  File "/usr/lib/python3.6/site-packages/ansible_runner/runner_config.py", line 415, in generate_ansible_command
    v = 'v' * self.verbosity
TypeError: can't multiply sequence by non-int of type 'ClientManager'
can't multiply sequence by non-int of type 'ClientManager'
(undercloud-noauth) [CentOS-8 - stack@undercloud ~]$ openstack overcloud node provide 2187a02b-82bd-4c51-999b-96af20c70c68
Exception occured while running the command
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/ansible_runner/runner_config.py", line 340, in prepare_command
    cmdline_args = self.loader.load_file('args', string_types, encoding=None)
  File "/usr/lib/python3.6/site-packages/ansible_runner/loader.py", line 164, in load_file
    contents = parsed_data = self.get_contents(path)
  File "/usr/lib/python3.6/site-packages/ansible_runner/loader.py", line 98, in get_contents
    raise ConfigurationError('specified path does not exist %s' % path)
ansible_runner.exceptions.ConfigurationError: specified path does not exist /tmp/tripleowjmflgsb/args

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/tripleoclient/command.py", line 34, in run
    super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 39, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3.6/site-packages/cliff/command.py", line 185, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python3.6/site-packages/tripleoclient/v1/overcloud_node.py", line 222, in take_action
    node_uuids=parsed_args.node_uuids)
  File "/usr/lib/python3.6/site-packages/tripleoclient/workflows/baremetal.py", line 123, in provide
    'node_uuids': node_uuids
  File "/usr/lib/python3.6/site-packages/tripleoclient/utils.py", line 658, in run_ansible_playbook
    runner_config.prepare()
  File "/usr/lib/python3.6/site-packages/ansible_runner/runner_config.py", line 174, in prepare
    self.prepare_command()
  File "/usr/lib/python3.6/site-packages/ansible_runner/runner_config.py", line 346, in prepare_command
    self.command = self.generate_ansible_command()
  File "/usr/lib/python3.6/site-packages/ansible_runner/runner_config.py", line 415, in generate_ansible_command
    v = 'v' * self.verbosity
TypeError: can't multiply sequence by non-int of type 'ClientManager'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/795925
Committed: https://opendev.org/openstack/python-tripleoclient/commit/8de4d4a3804557f5a5ededcef779206b581e938b
Submitter: "Zuul (22348)"
Branch: master

commit 8de4d4a3804557f5a5ededcef779206b581e938b
Author: ramishra <email address hidden>
Date: Fri Jun 11 11:07:19 2021 +0530

    Fix overcloud node provide

    We don't seem to pass the correct arguments when
    specifying nodes.

    Closes-Bug: #1931674
    Change-Id: Ic1fb1a8d3cf76a4cae64e38cd4d48d9182bf114e

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 17.1.0

This issue was fixed in the openstack/python-tripleoclient 17.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/python-tripleoclient/+/826221

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/826221
Committed: https://opendev.org/openstack/python-tripleoclient/commit/fe6ed229bb706d6e167086daaeaebb5f76d4bfb9
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit fe6ed229bb706d6e167086daaeaebb5f76d4bfb9
Author: ramishra <email address hidden>
Date: Fri Jun 11 11:07:19 2021 +0530

    Fix overcloud node provide

    We don't seem to pass the correct arguments when
    specifying nodes.

    Closes-Bug: #1931674
    Change-Id: Ic1fb1a8d3cf76a4cae64e38cd4d48d9182bf114e
    (cherry picked from commit 8de4d4a3804557f5a5ededcef779206b581e938b)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 16.5.0

This issue was fixed in the openstack/python-tripleoclient 16.5.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.