Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #242489 > unrolled thread
| Started by | Gokan Atmaca <linux.gokan@gmail.com> |
|---|---|
| First post | 2021-11-28 20:50 +0100 |
| Last post | 2021-11-29 05:10 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.debian.user
ceph storage Gokan Atmaca <linux.gokan@gmail.com> - 2021-11-28 20:50 +0100
Re: ceph storage Pierre-Elliott Bécue <peb@debian.org> - 2021-11-28 21:10 +0100
Re: ceph storage Gokan Atmaca <linux.gokan@gmail.com> - 2021-11-29 05:10 +0100
| From | Gokan Atmaca <linux.gokan@gmail.com> |
|---|---|
| Date | 2021-11-28 20:50 +0100 |
| Subject | ceph storage |
| Message-ID | <Doylr-81D-1@gated-at.bofh.it> |
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
⠈⠳⣄⠀⠀⠀⠀
[toc] | [next] | [standalone]
| From | Pierre-Elliott Bécue <peb@debian.org> |
|---|---|
| Date | 2021-11-28 21:10 +0100 |
| Message-ID | <DoyEO-8nO-23@gated-at.bofh.it> |
| In reply to | #242489 |
[Multipart message — attachments visible in raw view] — view raw
Gokan Atmaca <linux.gokan@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
[toc] | [prev] | [next] | [standalone]
| From | Gokan Atmaca <linux.gokan@gmail.com> |
|---|---|
| Date | 2021-11-29 05:10 +0100 |
| Message-ID | <DoG9j-4u5-1@gated-at.bofh.it> |
| In reply to | #242492 |
> 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. On Sun, Nov 28, 2021 at 11:02 PM Pierre-Elliott Bécue <peb@debian.org> wrote: > > > Gokan Atmaca <linux.gokan@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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web