mesosphere-backup / mesos-cli

This project has been deprecated. Please use the DC/OS CLI.
https://github.com/mesosphere/dcos-cli
Apache License 2.0
116 stars 30 forks source link

Exception in "ps -i" #40

Open sttts opened 10 years ago

sttts commented 10 years ago

Just got this exception. I have restarted all the slave with a rolling reboot some hours ago. That could be the reason.

$ mesos ps -i
Traceback (most recent call last):
  File "/Users/sts/Arbeit/teamwire/mesos-cli/env/bin/mesos-ps", line 9, in <module>
    load_entry_point('mesos.cli==0.1.4', 'console_scripts', 'mesos-ps')()
  File "/Users/sts/Arbeit/teamwire/mesos-cli/mesos/cli/cli.py", line 74, in wrapper
    return fn(*args, **kwargs)
  File "/Users/sts/Arbeit/teamwire/mesos-cli/mesos/cli/log.py", line 44, in timer
    return fn(*args, **kwargs)
  File "/Users/sts/Arbeit/teamwire/mesos-cli/mesos/cli/cli.py", line 52, in wrapper
    return fn(cmd_args, *args, **kwargs)
  File "/Users/sts/Arbeit/teamwire/mesos-cli/mesos/cli/cmds/ps.py", line 88, in main
    MASTER.tasks(active_only=(not args.inactive), fltr=args.task)):
  File "/Users/sts/Arbeit/teamwire/mesos-cli/mesos/cli/parallel.py", line 93, in by_slave
    tasks = sorted(tasks, key=keyfn)
  File "/Users/sts/Arbeit/teamwire/mesos-cli/mesos/cli/parallel.py", line 92, in <lambda>
    keyfn = lambda x: x.slave["id"]
  File "/Users/sts/Arbeit/teamwire/mesos-cli/mesos/cli/util.py", line 57, in __get__
    value = self.fget(inst)
  File "/Users/sts/Arbeit/teamwire/mesos-cli/mesos/cli/task.py", line 58, in slave
    return self.master.slave(self["slave_id"])
  File "/Users/sts/Arbeit/teamwire/mesos-cli/mesos/cli/util.py", line 73, in memoizer
    cache[key] = obj(*args, **kwargs)
  File "/Users/sts/Arbeit/teamwire/mesos-cli/mesos/cli/master.py", line 138, in slave
    "Slave {0} no longer exists.".format(fltr))
mesos.cli.exceptions.SlaveDoesNotExist: Slave 20141009-071500-33554442-5050-3646-0 no longer exists.
grampelberg commented 10 years ago

Of course it does. Great issue.