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

loglevel don't work #738

Merged
merged 2 commits into from
Aug 21, 2018
Merged

loglevel don't work #738

merged 2 commits into from
Aug 21, 2018

Conversation

yanxuean
Copy link
Contributor

@yanxuean yanxuean commented Aug 14, 2018

fix #731
The 731 is evil
Signed-off-by: yanxuean [email protected]


This change is Reviewable

@yanxuean
Copy link
Contributor Author

@jellonek PTAL

@yanxuean
Copy link
Contributor Author

yanxuean commented Aug 14, 2018

  1. loglevel is 4
[cloud@cloud-test2:/var/lib/virtlet]$ ps -ef | grep virtlet
root      1025     1  0 Aug10 ?        00:00:02 /root/virtlet/images/http-server
root      7985     1  0 Aug10 ?        00:33:08 /root/virtlet/bin/criproxy -v 3 -logtostderr -connect /var/run/dockershim.sock,virtlet.cloud:/run/virtlet.sock -listen /run/criproxy.sock
root     14422 14404  0 16:55 ?        00:00:01 /usr/local/bin/virtlet --v 4
cloud    16089 12313  0 17:00 pts/0    00:00:00 grep --color=auto virtlet
  1. There are not "List", There are "Version"
[root@cloud-test1:~/virtlet/yaml/yan]$ kubectl logs virtlet-glrth -c virtlet -n kube-system
I0814 08:50:32.001786   12534 interface.go:360] Looking for default routes with IPv4 addresses
I0814 08:50:32.002029   12534 interface.go:365] Default route transits interface "ens3"
I0814 08:50:32.005800   12534 interface.go:174] Interface ens3 is up
I0814 08:50:32.005953   12534 interface.go:222] Interface "ens3" has 2 addresses :[192.168.122.196/24 fe80::5054:ff:fefa:a2eb/64].
I0814 08:50:32.006036   12534 interface.go:189] Checking addr  192.168.122.196/24.
I0814 08:50:32.006061   12534 interface.go:196] IP found 192.168.122.196
I0814 08:50:32.006087   12534 interface.go:228] Found valid IPv4 address 192.168.122.196 for interface "ens3".
I0814 08:50:32.006096   12534 interface.go:371] Found active IP 192.168.122.196
I0814 08:50:32.007562   12534 listener.go:66] UnixSocket Listener started
W0814 08:50:32.010140   12534 image.go:326] listing images: skipping image link "myimage%vsegw_paas_717.qcow2": stat "/var/lib/virtlet/images/data/8961703db3d575476e9b593996860d43ecf521608c3f9e015ce7efce8cbab948": stat /var/lib/virtlet/images/data/8961703db3d575476e9b593996860d43ecf521608c3f9e015ce7efce8cbab948: no such file or directory
I0814 08:50:32.010278   12534 manager.go:147] Starting server on socket /run/virtlet.sock
2018/08/14 08:50:32 transport: http2Server.HandleStreams failed to receive the preface from client: read unix /run/virtlet.sock->@: read: connection reset by peer
I0814 08:50:32.026359   12534 grpc.go:108] ENTER: /runtime.v1alpha2.RuntimeService/Version():
{}
I0814 08:50:32.026678   12534 grpc.go:117] LEAVE: /runtime.v1alpha2.RuntimeService/Version()
runtime_api_version: 0.1.0
runtime_name: virtlet
runtime_version: 0.1.0
version: 0.1.0
W0814 08:50:34.027123   12534 image.go:326] listing images: skipping image link "myimage%vsegw_paas_717.qcow2": stat "/var/lib/virtlet/images/data/8961703db3d575476e9b593996860d43ecf521608c3f9e015ce7efce8cbab948": stat /var/lib/virtlet/images/data/8961703db3d575476e9b593996860d43ecf521608c3f9e015ce7efce8cbab948: no such file or directory
I0814 08:50:36.797794   12534 grpc.go:108] ENTER: /runtime.v1alpha2.ImageService/ImageFsInfo():
{}
I0814 08:50:36.797859   12534 grpc.go:115] FAIL: /runtime.v1alpha2.ImageService/ImageFsInfo(): ImageFsInfo() not implemented
2018/08/14 08:50:37 transport: http2Server.HandleStreams failed to receive the preface from client: EOF
I0814 08:50:46.801168   12534 grpc.go:108] ENTER: /runtime.v1alpha2.ImageService/ImageFsInfo():
{}
I0814 08:50:46.801244   12534 grpc.go:115] FAIL: /runtime.v1alpha2.ImageService/ImageFsInfo(): ImageFsInfo() not implemented
2018/08/14 08:50:47 transport: http2Server.HandleStreams failed to receive the preface from client: EOF
I0814 08:50:56.804109   12534 grpc.go:108] ENTER: /runtime.v1alpha2.ImageService/ImageFsInfo():
{}
I0814 08:50:56.804174   12534 grpc.go:115] FAIL: /runtime.v1alpha2.ImageService/ImageFsInfo(): ImageFsInfo() not implemented
2018/08/14 08:50:57 transport: http2Server.HandleStreams failed to receive the preface from client: EOF
[root@cloud-test1:~/virtlet/yaml/yan]$ kubectl logs virtlet-glrth -c virtlet -n kube-system
I0814 08:50:32.001786   12534 interface.go:360] Looking for default routes with IPv4 addresses
I0814 08:50:32.002029   12534 interface.go:365] Default route transits interface "ens3"
I0814 08:50:32.005800   12534 interface.go:174] Interface ens3 is up
I0814 08:50:32.005953   12534 interface.go:222] Interface "ens3" has 2 addresses :[192.168.122.196/24 fe80::5054:ff:fefa:a2eb/64].
I0814 08:50:32.006036   12534 interface.go:189] Checking addr  192.168.122.196/24.
I0814 08:50:32.006061   12534 interface.go:196] IP found 192.168.122.196
I0814 08:50:32.006087   12534 interface.go:228] Found valid IPv4 address 192.168.122.196 for interface "ens3".
I0814 08:50:32.006096   12534 interface.go:371] Found active IP 192.168.122.196
I0814 08:50:32.007562   12534 listener.go:66] UnixSocket Listener started
W0814 08:50:32.010140   12534 image.go:326] listing images: skipping image link "myimage%vsegw_paas_717.qcow2": stat "/var/lib/virtlet/images/data/8961703db3d575476e9b593996860d43ecf521608c3f9e015ce7efce8cbab948": stat /var/lib/virtlet/images/data/8961703db3d575476e9b593996860d43ecf521608c3f9e015ce7efce8cbab948: no such file or directory
I0814 08:50:32.010278   12534 manager.go:147] Starting server on socket /run/virtlet.sock
2018/08/14 08:50:32 transport: http2Server.HandleStreams failed to receive the preface from client: read unix /run/virtlet.sock->@: read: connection reset by peer
I0814 08:50:32.026359   12534 grpc.go:108] ENTER: /runtime.v1alpha2.RuntimeService/Version():
{}
I0814 08:50:32.026678   12534 grpc.go:117] LEAVE: /runtime.v1alpha2.RuntimeService/Version()
runtime_api_version: 0.1.0
runtime_name: virtlet
runtime_version: 0.1.0
version: 0.1.0
W0814 08:50:34.027123   12534 image.go:326] listing images: skipping image link "myimage%vsegw_paas_717.qcow2": stat "/var/lib/virtlet/images/data/8961703db3d575476e9b593996860d43ecf521608c3f9e015ce7efce8cbab948": stat /var/lib/virtlet/images/data/8961703db3d575476e9b593996860d43ecf521608c3f9e015ce7efce8cbab948: no such file or directory
I0814 08:50:36.797794   12534 grpc.go:108] ENTER: /runtime.v1alpha2.ImageService/ImageFsInfo():
{}
I0814 08:50:36.797859   12534 grpc.go:115] FAIL: /runtime.v1alpha2.ImageService/ImageFsInfo(): ImageFsInfo() not implemented
2018/08/14 08:50:37 transport: http2Server.HandleStreams failed to receive the preface from client: EOF
I0814 08:50:46.801168   12534 grpc.go:108] ENTER: /runtime.v1alpha2.ImageService/ImageFsInfo():
{}
I0814 08:50:46.801244   12534 grpc.go:115] FAIL: /runtime.v1alpha2.ImageService/ImageFsInfo(): ImageFsInfo() not implemented
2018/08/14 08:50:47 transport: http2Server.HandleStreams failed to receive the preface from client: EOF
I0814 08:50:56.804109   12534 grpc.go:108] ENTER: /runtime.v1alpha2.ImageService/ImageFsInfo():
{}
I0814 08:50:56.804174   12534 grpc.go:115] FAIL: /runtime.v1alpha2.ImageService/ImageFsInfo(): ImageFsInfo() not implemented
2018/08/14 08:50:57 transport: http2Server.HandleStreams failed to receive the preface from client: EOF
W0814 08:51:04.035985   12534 image.go:326] listing images: skipping image link "myimage%vsegw_paas_717.qcow2": stat "/var/lib/virtlet/images/data/8961703db3d575476e9b593996860d43ecf521608c3f9e015ce7efce8cbab948": stat /var/lib/virtlet/images/data/8961703db3d575476e9b593996860d43ecf521608c3f9e015ce7efce8cbab948: no such file or directory
I0814 08:51:06.806553   12534 grpc.go:108] ENTER: /runtime.v1alpha2.ImageService/ImageFsInfo():
{}
I0814 08:51:06.806641   12534 grpc.go:115] FAIL: /runtime.v1alpha2.ImageService/ImageFsInfo(): ImageFsInfo() not implemented
2018/08/14 08:51:07 transport: http2Server.HandleStreams failed to receive the preface from client: EOF
[root@cloud-test1:~/virtlet/yaml/yan]$

@jellonek
Copy link
Contributor

Can you rebase your PR on top of master? I would like to process it quickly.

fix Mirantis#731
The 731 is evil
Signed-off-by: yanxuean <[email protected]>
@yanxuean
Copy link
Contributor Author

/retest

Copy link
Contributor

@jellonek jellonek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r1, 3 of 3 files at r2.
Reviewable status: 0 of 2 LGTMs obtained, and 1 stale

Copy link
Contributor

@pigmej pigmej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r1, 3 of 3 files at r2.
Reviewable status: 1 of 2 LGTMs obtained, and 1 stale

@pigmej pigmej merged commit c0070f6 into Mirantis:master Aug 21, 2018
@yanxuean yanxuean deleted the loglevel branch August 21, 2018 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There are plenty of useless info in virtlet log.
3 participants