Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ceph storage

32 views
Skip to first unread message

Gokan Atmaca

unread,
Nov 28, 2021, 2:50:04 PM11/28/21
to
Hello

I am installing ceph storage. I have 3 monitors, 3 OSD servers. I am
using the link below for installation. (*) The error I get is as
follows. I couldn't run "fdisk" on the OSD server.

What could cause the problem?


(*)
https://github.com/ceph/ceph-deploy.git

error:

# ceph-deploy disk list ceph-osd1 ceph-osd2 ceph-osd3
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (2.1.0): /usr/local/bin/ceph-deploy
disk list ceph-osd1 ceph-osd2 ceph-osd3
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] overwrite_conf : False
[ceph_deploy.cli][INFO ] ceph_conf : None
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] subcommand : list
[ceph_deploy.cli][INFO ] cd_conf :
<ceph_deploy.conf.cephdeploy.Conf object at 0x7febc9bfaca0>
[ceph_deploy.cli][INFO ] default_release : False
[ceph_deploy.cli][INFO ] func : <function
disk at 0x7febc9c144c0>
[ceph_deploy.cli][INFO ] host :
['ceph-osd1', 'ceph-osd2', 'ceph-osd3']
[ceph_deploy.cli][INFO ] debug : False
[ceph-osd1][DEBUG ] connected to host: ceph-osd1
[ceph-osd1][INFO ] Running command: fdisk -l
[ceph_deploy][ERROR ] Traceback (most recent call last):
[ceph_deploy][ERROR ] File
"/usr/local/lib/python3.8/dist-packages/ceph_deploy/util/decorators.py",
line 69, in newfunc
[ceph_deploy][ERROR ] return f(*a, **kw)
[ceph_deploy][ERROR ] File
"/usr/local/lib/python3.8/dist-packages/ceph_deploy/cli.py", line 166,
in _main
[ceph_deploy][ERROR ] return args.func(args)
[ceph_deploy][ERROR ] File
"/usr/local/lib/python3.8/dist-packages/ceph_deploy/osd.py", line 435,
in disk
[ceph_deploy][ERROR ] disk_list(args, cfg)
[ceph_deploy][ERROR ] File
"/usr/local/lib/python3.8/dist-packages/ceph_deploy/osd.py", line 375,
in disk_list
[ceph_deploy][ERROR ] line = line.decode('utf-8')
[ceph_deploy][ERROR ] AttributeError: 'str' object has no attribute 'decode'
[ceph_deploy][ERROR ]



--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

Pierre-Elliott Bécue

unread,
Nov 28, 2021, 3:10:05 PM11/28/21
to

Gokan Atmaca <linux...@gmail.com> wrote on 28/11/2021 at 20:39:51+0100:

> Hello
>
> I am installing ceph storage. I have 3 monitors, 3 OSD servers. I am
> using the link below for installation. (*) The error I get is as
> follows. I couldn't run "fdisk" on the OSD server.
>
> What could cause the problem?
>
>
> (*)
> https://github.com/ceph/ceph-deploy.git

I could be wrong, but isn't ceph-deploy deprecated?

Regarding your specific error, it'd be worth diving in the python code
and try to put some debug prints at some relevant steps. Python3 is
trying to decode a string, which can't work, as strings in python3 are
already decoded (versus "bytestring" which are not).

Cheers,

--
PEB
signature.asc

Gokan Atmaca

unread,
Nov 28, 2021, 11:10:04 PM11/28/21
to
> I could be wrong, but isn't ceph-deploy deprecated?
I did not use native package. I'm still testing.


> Regarding your specific error, it'd be worth diving in the python code
> and try to put some debug prints at some relevant steps. Python3 is
> trying to decode a string, which can't work, as strings in python3 are
> already decoded (versus "bytestring" which are not).


Yes it looks like that. I think I will use native packages.
0 new messages