"● novnc@91.210.104.11.service - samplenewstage\n Loaded: loaded (/etc/systemd/system/novnc@.service; disabled; vendor preset: disabled)\n Active: active (running) since Пн 2021-03-29 17:21:52 MSK; 3min 33s ago\n Main PID: 9108 (nojava-ipmi-kvm)\n CGroup: /system.slice/system-novnc.slice/novnc@91.210.104.11.service\n ├─9108 /usr/bin/python3 /usr/local/bin/nojava-ipmi-kvm -i 91.210.104.11 -u ADMIN -p dAurYo550aJU mykvmhost\n └─9129 /usr/bin/docker-current run -i -v /etc/hosts:/etc/hosts:ro --rm --name nojava-ipmi-kvmrc-11173e27-76b3-474a-b6db-56efd4428f50 -e XRES=1024x768 -e JAVA_VERSION=7u181 -e VNC_PASSWD=c6ocIO8LyANDXj4WF1M9 -e KVM_HOSTNAME=91.210.104.11 -P sciapp/nojava-ipmi-kvm:v0.9.0-openjdk-7 -d /cgi/url_redirect.cgi?url_name=ikvm\u0026url_type=jwsk -k -u ADMIN -l /cgi/login.cgi -U name -P pwd 91.210.104.11 -K SessionCookie\n\nмар 29 17:21:52 dockernovnc-app01a.infra.hostkey.ru systemd[1]: Started samplenewstage.\nмар 29 17:21:53 dockernovnc-app01a.infra.hostkey.ru nojava-ipmi-kvm[9108]: [INFO] Check if 'http://91.210.104.11/' is reachable...\nмар 29 17:21:53 dockernovnc-app01a.infra.hostkey.ru nojava-ipmi-kvm[9108]: [INFO] The url 'http://91.210.104.11/' is reachable.\nмар 29 17:21:54 dockernovnc-app01a.infra.hostkey.ru nojava-ipmi-kvm[9108]: [INFO] Starting the Docker container...\nмар 29 17:21:55 dockernovnc-app01a.infra.hostkey.ru nojava-ipmi-kvm[9108]: [INFO] Waiting for the Docker container to be up and ready...\nмар 29 17:22:15 dockernovnc-app01a.infra.hostkey.ru nojava-ipmi-kvm[9108]: [INFO] Docker container is up and running.\nмар 29 17:22:15 dockernovnc-app01a.infra.hostkey.ru nojava-ipmi-kvm[9108]: [INFO] Url to view kvm console: http://141.105.64.166:32786/vnc.html?host=141.105.64.166\u0026port=32786\u0026autoconnect=true\u0026password=c6ocIO8LyANDXj4WF1M9\n"#
регекспом пройдитесь да и все
view kvm console:\s*(\S+)
http://141.105.64.166:32787/vnc.html?host=141.105.64.166&port=32787&autoconnect=true&password=dp1f0H5WKq9jsfmITxNT из лога такое , а по факту выгржает "view kvm console: http://141.105.64.166:32786/vnc.html?host=141.105.64.166\u0026port=32786\u0026autoconnect=true\u0026password=c6ocIO8LyANDXj4WF1M9"#exit
а как толкьо ссылку отдавать?
Обсуждают сегодня