Project

General

Profile

Bug #37470

ceph-volume: Python3 - name 'raw_input' is not defined

Added by Volker Theile 10 days ago. Updated 10 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
11/29/2018
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

When running 'ceph-volume lvm batch --filestore /dev/vdg' on a Python3 environment (with fixed issue #37467) the following error occurs:

otal OSDs: 1

  Type            Path                                                    LV Size         % of device
----------------------------------------------------------------------------------------------------
  [data]          /dev/vdg                                                15.00 GB        75%
  [journal]       /dev/vdg                                                5.00 GB         25%
--> The above OSDs would be created if the operation continues
Traceback (most recent call last):
  File "/usr/sbin/ceph-volume", line 6, in <module>
    main.Volume()
  File "/usr/lib/python3.6/site-packages/ceph_volume/main.py", line 40, in __init__
    self.main(self.argv)
  File "/usr/lib/python3.6/site-packages/ceph_volume/main.py", line 151, in main
    terminal.dispatch(self.mapper, subcommand_args)
  File "/usr/lib/python3.6/site-packages/ceph_volume/terminal.py", line 182, in dispatch
    instance.main()
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/main.py", line 40, in main
    terminal.dispatch(self.mapper, self.argv)
  File "/usr/lib/python3.6/site-packages/ceph_volume/terminal.py", line 182, in dispatch
    instance.main()
  File "/usr/lib/python3.6/site-packages/ceph_volume/decorators.py", line 16, in is_root
    return func(*a, **kw)
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/batch.py", line 279, in main
    self.execute(args)
  File "/usr/lib/python3.6/site-packages/ceph_volume/devices/lvm/batch.py", line 170, in execute
    if not prompt_bool('do you want to proceed? (yes/no)'):
  File "/usr/lib/python3.6/site-packages/ceph_volume/util/__init__.py", line 75, in prompt_bool
    input_prompt = _raw_input or raw_input
NameError: name 'raw_input' is not defined

Also available in: Atom PDF