nailgun cannot fetch astute logs

Bug #1524244 reported by Dmitry Bilunov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
New
Undecided
Unassigned

Bug Description

Clicking the "Show" button in the logs tab with "Source" set to "Astute" shows "Unable to fetch logs." message.

fuel-8.0-265-2015-12-07_07-42-00.iso

> GET /api/logs?node=&source=astute&level=ERROR&_=1449651172320 HTTP/1.1
> Host: 10.20.0.2:8443
> Cookie: i18next=en-US; token=94c497a8171d4ea39f40fad8c7287d9e
> Accept-Encoding: gzip, deflate, sdch
> Accept-Language: en-US,en;q=0.8,ru;q=0.6
> User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.10 Safari/537.36
> Accept: application/json, text/javascript, */*; q=0.01
> Referer: https://10.20.0.2:8443/
> X-Auth-Token: 94c497a8171d4ea39f40fad8c7287d9e
> X-Requested-With: XMLHttpRequest
> Connection: keep-alive
>
< HTTP/1.1 404 Not Found
< Server: nginx
< Date: Wed, 09 Dec 2015 09:11:22 GMT
< Content-Type: text/html; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Cache-Control: store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
< Expires: Thu, 01 Jan 1970 00:00:00 GMT
< Content-Encoding: gzip
<
* Connection #0 to host 10.20.0.2 left intact
{"message": "Log file not found", "errors": []}

[pid 32755] epoll_wait(4, <unfinished ...>
[pid 32754] epoll_wait(4, <unfinished ...>
[pid 32755] <... epoll_wait resumed> {{EPOLLIN, {u32=3, u64=3}}}, 1, -1) = 1
[pid 32754] <... epoll_wait resumed> {{EPOLLIN, {u32=3, u64=3}}}, 1, -1) = 1
[pid 32755] accept4(3, <unfinished ...>
[pid 32754] accept4(3, <unfinished ...>
[pid 32755] <... accept4 resumed> 0x7f8c8e5a10a2, [110], SOCK_NONBLOCK) = -1 EAGAIN (Resource temporarily unavailable)
[pid 32754] <... accept4 resumed> {sa_family=AF_INET, sin_port=htons(55015), sin_addr=inet_addr("10.20.0.2")}, [16], SOCK_NONBLOCK) = 7
[pid 32755] epoll_wait(4, <unfinished ...>
[pid 32754] read(7, "\0007\3\0\f\0QUERY_STRING\31\0source=astut"..., 49184) = 827
[pid 32754] stat("/var/log/nailgun/api.log", {st_mode=S_IFREG|0644, st_size=16345322, ...}) = 0
[pid 32754] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
[pid 32754] write(6, "2015-12-09 09:12:56.366 DEBUG [7"..., 124) = 124
[pid 32754] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
[pid 32754] stat("/var/log/astute/astute.log", 0x7ffec649ece0) = -1 ENOENT (No such file or directory)
[pid 32754] stat("/var/log/nailgun/api.log", {st_mode=S_IFREG|0644, st_size=16345446, ...}) = 0
[pid 32754] stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
[pid 32754] write(6, "2015-12-09 09:12:56.371 DEBUG [7"..., 149) = 149
[pid 32754] writev(7, [{"HTTP/1.1 404 Not Found\r\nCache-Co"..., 185}, {"{\"message\": \"Log file not found\""..., 47}], 2) = 232
[pid 32754] close(7) = 0
[pid 32754] writev(2, [{"[pid: 413|app: 0|req: 5172/11112"..., 231}], 1) = 231
[pid 32754] epoll_wait(4, ^CProcess 32754 detached

Creating a symlink to "../astute.log" (as /var/log/astute/astute.log) fixes the problem.

Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: none → 8.0
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.