docker-archive / dockercloud-cli

CLI for Docker Cloud
https://cloud.docker.com/
Apache License 2.0
74 stars 40 forks source link

StreamingLog object has no attribute '_namespace' #51

Closed robinduckett closed 7 years ago

robinduckett commented 7 years ago

StreamingLog object has no attribute '_namespace'

When trying to view a log on a namespace, this is the error I get.

DOCKERCLOUD_NAMESPACE set

jmshelby commented 7 years ago

As an update, and a little more information. I am seeing this happen when running docker-cloud cli from MAC OS in v1.0.8, as well as when running cli from the docker container of v1.0.8. But I don't see this bug when running from the docker container with tag: v1.0.7 ... seems to be a bug introduced in version 1.0.8

tifayuki commented 7 years ago

I will take a look at it and do a patch ASAP

tifayuki commented 7 years ago

@robinduckett @jmshelby

I have updated the SDK to a new version that contains the fix. Can you do pip install -U python-dockercloud to upgrade the SDK version from v1.0.11 to v1.0.12 and try again?

Thank you

robinduckett commented 7 years ago

About a month too late, implemented it myself using node / websocket API directly, and no longer use this CLI due to the fact that it didn't seem to support namespaces which is kind of important for the way my client uses Docker Cloud.

Is there anywhere I can log issues against the docker cloud API directly because I've come across a few issues surrounding the implementation of remote execution (no way to send escaped characters, so you can't do things like update the terminal window size of the remote container using control characters \033[ etc) among other things.

jmshelby commented 7 years ago

@tifayuki - thanks but i'm just using the pre-built docker image, not really sure how to setup all that pip stuff. We're you able to recreate the issue on your end before you fixed it? if so, then I trust the fix

tifayuki commented 7 years ago

@jmshelby I have rebuild the image with tag latest and v1.0.9

tifayuki commented 7 years ago

@robinduckett Sorry about the late fix. The CLI doesn't directly support namespace with options, but the python SDK supports it.

To Report API issue. You can either open a support ticket, or go to the docker forum and open an issue(https://forums.docker.com/c/docker-cloud)

jmshelby commented 7 years ago

sweet thanks! @tifayuki

v1.0.9 is working great for me

jmshelby commented 7 years ago

Although the bug is fixed in v1.0.9, that version does not seem to be available via homebrew yet ... any word on when the taps are going to be updated?

tifayuki commented 7 years ago

@jmshelby The homebrew is not updated. I will send a PR for a new version soon.

tifayuki commented 7 years ago

The PR for the new version has been merged to homebrew

jmshelby commented 7 years ago

thanks Feng