Zun

Console does not render in zun-ui when container was started with a heat template

Bug #1856233 reported by David Ivey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zun
Fix Committed
Medium
hongbin

Bug Description

zun and zun-ui built from source stable/train running on centos7 and using python-zunclient 3.6.0. When I start an interactive container with heat os::zun:container. I am unable to see anything in the console through zun-ui. It seems like the socket is open, but it returns nothing. I can type commands and they appear in the logs, but do not show/render in the console window. If I attach to that same container with cli I have no issues getting an interactive shell and using it. I could not find much in the logs, but with debug on for zun-wsproxy I get the following.

Dec 12 13:07:59 zun-a68d9b6f-bd40-50db-a60a-75c8177381ac zun-wsproxy[15290]: 2019-12-12 13:07:59.279 15290 DEBUG zun.websocket.websocketproxy [-] 172.17.1.5: new handler Process vmsg /usr/local/lib/python3.6/site-packages/websockify/websockifyserver.py:634
Dec 12 13:07:59 zun-a68d9b6f-bd40-50db-a60a-75c8177381ac zun-wsproxy[15290]: 2019-12-12 13:07:59.279 15290 DEBUG zun.websocket.websocketproxy [-] 172.17.1.5: new handler Process vmsg /usr/local/lib/python3.6/site-packages/websockify/websockifyserver.py:634
Dec 12 13:07:59 zun-a68d9b6f-bd40-50db-a60a-75c8177381ac zun-wsproxy[15290]: 2019-12-12 13:07:59.296 15300 INFO zun.websocket.websocketproxy [-] 172.17.1.5 - - [12/Dec/2019 13:07:59] 172.17.1.5: Plain non-SSL (ws://) WebSocket connection
Dec 12 13:07:59 zun-a68d9b6f-bd40-50db-a60a-75c8177381ac zun-wsproxy[15300]: 2019-12-12 13:07:59.296 15300 INFO zun.websocket.websocketproxy [-] 172.17.1.5 - - [12/Dec/2019 13:07:59] 172.17.1.5: Plain non-SSL (ws://) WebSocket connection
Dec 12 13:07:59 zun-a68d9b6f-bd40-50db-a60a-75c8177381ac zun-wsproxy[15290]: 2019-12-12 13:07:59.298 15300 INFO zun.websocket.websocketproxy [-] 172.17.1.5 - - [12/Dec/2019 13:07:59] 172.17.1.5: Path: '/?token=dfa0656d-a392-49dd-8dff-18743c65e979&uuid=c336f5c2-191a-4ffa-a536-1f79d937d136'
Dec 12 13:07:59 zun-a68d9b6f-bd40-50db-a60a-75c8177381ac zun-wsproxy[15300]: 2019-12-12 13:07:59.298 15300 INFO zun.websocket.websocketproxy [-] 172.17.1.5 - - [12/Dec/2019 13:07:59] 172.17.1.5: Path: '/?token=dfa0656d-a392-49dd-8dff-18743c65e979&uuid=c336f5c2-191a-4ffa-a536-1f79d937d136'
Dec 12 13:07:59 zun-a68d9b6f-bd40-50db-a60a-75c8177381ac zun-wsproxy[15290]: 2019-12-12 13:07:59.301 15300 DEBUG oslo_db.api [req-9dd5c55e-3ca1-4c33-97e7-5331c63582cb - - - - -] Loading backend 'sqlalchemy' from 'zun.db.sqlalchemy.api' _load_backend /usr/local/lib/python3.6/site-packages/oslo_db/api.py:261
Dec 12 13:07:59 zun-a68d9b6f-bd40-50db-a60a-75c8177381ac zun-wsproxy[15300]: 2019-12-12 13:07:59.301 15300 DEBUG oslo_db.api [req-9dd5c55e-3ca1-4c33-97e7-5331c63582cb - - - - -] Loading backend 'sqlalchemy' from 'zun.db.sqlalchemy.api' _load_backend /usr/local/lib/python3.6/site-packages/oslo_db/api.py:261
Dec 12 13:07:59 zun-a68d9b6f-bd40-50db-a60a-75c8177381ac zun-wsproxy[15290]: 2019-12-12 13:07:59.415 15300 DEBUG oslo_db.sqlalchemy.engines [req-9dd5c55e-3ca1-4c33-97e7-5331c63582cb - - - - -] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/local/lib/python3.6/site-packages/oslo_db/sqlalchemy/engines.py:307
Dec 12 13:07:59 zun-a68d9b6f-bd40-50db-a60a-75c8177381ac zun-wsproxy[15300]: 2019-12-12 13:07:59.415 15300 DEBUG oslo_db.sqlalchemy.engines [req-9dd5c55e-3ca1-4c33-97e7-5331c63582cb - - - - -] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/local/lib/python3.6/site-packages/oslo_db/sqlalchemy/engines.py:307
Dec 12 13:09:10 zun-a68d9b6f-bd40-50db-a60a-75c8177381ac zun-wsproxy[15290]: 2019-12-12 13:09:10.776 15300 INFO

hongbin (hongbin034)
Changed in zun:
status: New → Confirmed
assignee: nobody → hongbin (hongbin034)
Revision history for this message
hongbin (hongbin034) wrote :
Changed in zun:
status: Confirmed → In Progress
importance: Undecided → Medium
Revision history for this message
David Ivey (yevi) wrote :

The proposed fix worked in my environment

Revision history for this message
hongbin (hongbin034) wrote :

Cool! The fix is committed in Heat side.

Changed in zun:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.