Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mlaunch list throws typeError for a sharded deployment #770

Closed
itay-ct opened this issue Jan 8, 2020 · 3 comments
Closed

mlaunch list throws typeError for a sharded deployment #770

itay-ct opened this issue Jan 8, 2020 · 3 comments
Assignees
Milestone

Comments

@itay-ct
Copy link

itay-ct commented Jan 8, 2020

mlaunch init & mlaunch stop works fine. However 'mlaunch list' returns
Traceback (most recent call last):
File "/usr/local/bin/mlaunch", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/mtools/mlaunch/mlaunch.py", line 2074, in main
tool.run()
File "/usr/local/lib/python3.7/site-packages/mtools/mlaunch/mlaunch.py", line 548, in run
getattr(self, self.args['command'])()
File "/usr/local/lib/python3.7/site-packages/mtools/mlaunch/mlaunch.py", line 1058, in list
print_table(print_docs)
File "/usr/local/lib/python3.7/site-packages/mtools/util/print_table.py", line 16, in print_table
for row in rows if hasattr(row, 'iter')) for k in keys]
File "/usr/local/lib/python3.7/site-packages/mtools/util/print_table.py", line 16, in
for row in rows if hasattr(row, 'iter')) for k in keys]
File "/usr/local/lib/python3.7/site-packages/mtools/util/print_table.py", line 16, in
for row in rows if hasattr(row, 'iter')) for k in keys]
TypeError: string indices must be integers

Software Version
mtools mtools version 1.6.1
11.0.0 (clang-1100.0.33.16)]
MongoDB server 4.2.2
Operating system macos 10.15.2
@stennie
Copy link
Collaborator

stennie commented Jan 9, 2020

@itay-ct I can't reproduce this problem in Python 3.7.4 with a trivial mlaunch init --single; mlaunch stop; mlaunch list.

Can you comment with the exact command lines you are using and the output of mlaunch --version?

Thanks,
Stennie

@itay-ct
Copy link
Author

itay-ct commented Jan 9, 2020

Hi Stennie,
mlaunch --version returns:

mtools version 1.6.1 || Python 3.7.6 (default, Dec 30 2019, 19:38:26) [Clang
11.0.0 (clang-1100.0.33.16)]

I can reproduce this error after running "mlaunch init --replicaset --sharded 3" and then "mlaunch list"

@stennie stennie added bug and removed question labels Jan 11, 2020
@stennie stennie added this to the 1.6.2 milestone Jan 11, 2020
@stennie stennie self-assigned this Jan 11, 2020
@stennie
Copy link
Collaborator

stennie commented Jan 11, 2020

@itay-ct Thanks for the version and steps to reproduce (I can repro the same issue).

@stennie stennie changed the title mlaunch list throws typeError mlaunch list throws typeError for a sharded deployment Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants