Project

General

Profile

Bug #39489

Ubuntu/Nautilus: TypeError: sequence item 0: expected a bytes-like object, str found

Added by Vasu Kulkarni 12 months ago. Updated 9 months ago.

Status:
New
Priority:
High
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature:

Description

http://qa-proxy.ceph.com/teuthology/teuthology-2019-04-24_05:55:02-ceph-deploy-nautilus-distro-basic-mira/3885238/teuthology.log

2019-04-24T09:02:36.190 INFO:teuthology.orchestra.run.mira038:Running:
2019-04-24T09:02:36.190 INFO:teuthology.orchestra.run.mira038:> cd /home/ubuntu/cephtest/ceph-deploy && ./ceph-deploy new mira108.front.sepia.ceph.com mira046.front.sepia.ceph.com mira038.front.sepia.ceph.com
2019-04-24T09:02:36.673 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.conf][DEBUG ] found configuration file at: /home/ubuntu/.cephdeploy.conf
2019-04-24T09:02:36.673 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ] Invoked (2.0.2): ./ceph-deploy new mira108.front.sepia.ceph.com mira046.front.sepia.ceph.com mira038.front.sepia.ceph.com
2019-04-24T09:02:36.674 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ] ceph-deploy options:
2019-04-24T09:02:36.674 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf object at 0x7fce9c7fffd0>
2019-04-24T09:02:36.674 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  verbose                       : False
2019-04-24T09:02:36.674 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  ssh_copykey                   : True
2019-04-24T09:02:36.674 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  ceph_conf                     : None
2019-04-24T09:02:36.674 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  fsid                          : None
2019-04-24T09:02:36.674 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  mon                           : ['mira108.front.sepia.ceph.com', 'mira046.front.sepia.ceph.com', 'mira038.front.sepia.ceph.com']
2019-04-24T09:02:36.675 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  overwrite_conf                : False
2019-04-24T09:02:36.675 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  username                      : None
2019-04-24T09:02:36.675 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  public_network                : None
2019-04-24T09:02:36.675 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  quiet                         : False
2019-04-24T09:02:36.675 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  cluster                       : ceph
2019-04-24T09:02:36.675 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  func                          : <function new at 0x7fce9b8ddf28>
2019-04-24T09:02:36.675 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  default_release               : False
2019-04-24T09:02:36.676 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.cli][INFO  ]  cluster_network               : None
2019-04-24T09:02:36.676 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.new][DEBUG ] Creating new cluster named ceph
2019-04-24T09:02:36.676 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy.new][INFO  ] making sure passwordless SSH succeeds
2019-04-24T09:02:36.746 INFO:teuthology.orchestra.run.mira038.stderr:[mira108.front.sepia.ceph.com][DEBUG ] connected to host: mira038
2019-04-24T09:02:36.750 INFO:teuthology.orchestra.run.mira038.stderr:[mira108.front.sepia.ceph.com][INFO  ] Running command: ssh -CT -o BatchMode=yes mira108.front.sepia.ceph.com true
2019-04-24T09:02:37.220 INFO:teuthology.orchestra.run.mira038.stderr:Warning: Permanently added 'mira108.front.sepia.ceph.com,172.21.8.104' (ECDSA) to the list of known hosts.
2019-04-24T09:02:37.616 INFO:teuthology.orchestra.run.mira038.stderr:[mira108.front.sepia.ceph.com][DEBUG ] connection detected need for sudo
2019-04-24T09:02:37.663 INFO:teuthology.orchestra.run.mira038.stderr:Warning: Permanently added 'mira108.front.sepia.ceph.com,172.21.8.104' (ECDSA) to the list of known hosts.
2019-04-24T09:02:38.044 INFO:teuthology.orchestra.run.mira038.stderr:[mira108.front.sepia.ceph.com][DEBUG ] connected to host: mira108.front.sepia.ceph.com
2019-04-24T09:02:38.157 INFO:teuthology.orchestra.run.mira038.stderr:[mira108.front.sepia.ceph.com][INFO  ] Running command: sudo /bin/ip link show
2019-04-24T09:02:38.172 INFO:teuthology.orchestra.run.mira038.stderr:[mira108.front.sepia.ceph.com][INFO  ] Running command: sudo /bin/ip addr show
2019-04-24T09:02:38.183 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ] Traceback (most recent call last):
2019-04-24T09:02:38.184 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ]   File "/home/ubuntu/cephtest/ceph-deploy/ceph_deploy/util/decorators.py", line 69, in newfunc
2019-04-24T09:02:38.185 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ]     return f(*a, **kw)
2019-04-24T09:02:38.185 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ]   File "/home/ubuntu/cephtest/ceph-deploy/ceph_deploy/cli.py", line 166, in _main
2019-04-24T09:02:38.185 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ]     return args.func(args)
2019-04-24T09:02:38.185 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ]   File "/home/ubuntu/cephtest/ceph-deploy/ceph_deploy/new.py", line 145, in new
2019-04-24T09:02:38.185 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ]     remote_ips = net.ip_addresses(distro.conn)
2019-04-24T09:02:38.185 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ]   File "/home/ubuntu/cephtest/ceph-deploy/ceph_deploy/util/net.py", line 84, in ip_addresses
2019-04-24T09:02:38.186 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ]     ifaces = linux_interfaces(conn)
2019-04-24T09:02:38.186 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ]   File "/home/ubuntu/cephtest/ceph-deploy/ceph_deploy/util/net.py", line 168, in linux_interfaces
2019-04-24T09:02:38.186 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ]     ifaces = _interfaces_ip(b'\n'.join(cmd1).decode('utf-8') + '\n' +
2019-04-24T09:02:38.187 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ] TypeError: sequence item 0: expected a bytes-like object, str found
2019-04-24T09:02:38.187 INFO:teuthology.orchestra.run.mira038.stderr:[ceph_deploy][ERROR ]
2019-04-24T09:02:38.240 DEBUG:teuthology.orchestra.run:got remote process result: 1
2019-04-24T09:02:38.240 INFO:tasks.ceph_deploy:Error encountered, logging exception before tearing down ceph-deploy
2019-04-24T09:02:38.240 INFO:tasks.ceph_deploy:Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_ceph_nautilus/qa/tasks/ceph_deploy.py", line 342, in build_ceph_cluster
    raise RuntimeError("ceph-deploy: new command failed")
RuntimeError: ceph-deploy: new command failed

History

#1 Updated by HacKan CuBa 9 months ago

Vasu Kulkarni wrote:

http://qa-proxy.ceph.com/teuthology/teuthology-2019-04-24_05:55:02-ceph-deploy-nautilus-distro-basic-mira/3885238/teuthology.log

[...]

I believe I have encounter the same bug:

                                                                                                     
[dade][DEBUG ] --> ceph-volume lvm activate successful for osd ID: 4                                                                                                     
[dade][DEBUG ] --> ceph-volume lvm create successful for: vg-b163a080-61ad-44c0-8d6d-210d03edd361/lv-acfb0c1a-02a3-41c7-aa8d-94557cc300c1                                
[dade][INFO  ] checking OSD status...                                                                                                                                    
[dade][INFO  ] Running command: sudo /bin/ceph --cluster=ceph osd stat --format=json                                                                                     
[ceph_deploy][ERROR ] Traceback (most recent call last):                                                                                                                 
[ceph_deploy][ERROR ]   File "/home/cephadm/ceph-deploy/ceph_deploy/util/decorators.py", line 69, in newfunc                                                             
[ceph_deploy][ERROR ]     return f(*a, **kw)                                                                                                                             
[ceph_deploy][ERROR ]   File "/home/cephadm/ceph-deploy/ceph_deploy/cli.py", line 166, in _main                                                                          
[ceph_deploy][ERROR ]     return args.func(args)
[ceph_deploy][ERROR ]   File "/home/cephadm/ceph-deploy/ceph_deploy/osd.py", line 424, in osd                                                                            
[ceph_deploy][ERROR ]     create(args, cfg)                                                                                                                              
[ceph_deploy][ERROR ]   File "/home/cephadm/ceph-deploy/ceph_deploy/osd.py", line 302, in create                                                                         
[ceph_deploy][ERROR ]     catch_osd_errors(distro.conn, distro.conn.logger, args)                                                                                        
[ceph_deploy][ERROR ]   File "/home/cephadm/ceph-deploy/ceph_deploy/osd.py", line 147, in catch_osd_errors                                                               
[ceph_deploy][ERROR ]     status = osd_status_check(conn, args.cluster)                                                                                                  
[ceph_deploy][ERROR ]   File "/home/cephadm/ceph-deploy/ceph_deploy/osd.py", line 128, in osd_status_check                                                               
[ceph_deploy][ERROR ]     loaded_json = json.loads(b''.join(out).decode('utf-8'))                                                                                        
[ceph_deploy][ERROR ] TypeError: sequence item 0: expected a bytes-like object, str found                                                                                
[ceph_deploy][ERROR ]

ceph-deploy version 2.0.2
ceph version 13.2.1 (5533ecdc0fda920179d7ad84e0aa65a127b20d77) mimic (stable)

Also available in: Atom PDF