stork issueshttps://gitlab.isc.org/isc-projects/stork/-/issues2020-06-22T10:48:18Zhttps://gitlab.isc.org/isc-projects/stork/-/issues/305error while pulling reservations by server from agent2020-06-22T10:48:18ZMichal Nowikowskierror while pulling reservations by server from agentThe problem appears in subsequent fetch of reservations in case when kea-dhcp4 daemon is stopped.
```
ERRO[2020-05-31 11:14:47] host.go:88 error occurred while fetching hosts from app {ID:1 CreatedAt:2020-05-31 09:14:02.2...The problem appears in subsequent fetch of reservations in case when kea-dhcp4 daemon is stopped.
```
ERRO[2020-05-31 11:14:47] host.go:88 error occurred while fetching hosts from app {ID:1 CreatedAt:2020-05-31 09:14:02.279493 +0000 UTC MachineID:1 Machine:0xc000844160 Type:kea Active:false Meta:{Version:1.7.3 ExtendedVersion:} AccessPoints:[0xc0009b20f0] Daemons:[0xc0007c2fc0 0xc0007c3080 0xc0007c3140 0xc0007c3200]}: error returned by Kea in response to reservation-get-page command
isc.org/stork/server/apps/kea.(*HostDetectionIterator).sendReservationGetPage
/home/godfryd/isc/repos/stork-dashb/backend/server/apps/kea/host.go:253
isc.org/stork/server/apps/kea.(*HostDetectionIterator).DetectHostsPageFromHostCmds
/home/godfryd/isc/repos/stork-dashb/backend/server/apps/kea/host.go:366
isc.org/stork/server/apps/kea.updateHostsFromHostCmds
/home/godfryd/isc/repos/stork-dashb/backend/server/apps/kea/host.go:546
isc.org/stork/server/apps/kea.(*HostsPuller).pullData
/home/godfryd/isc/repos/stork-dashb/backend/server/apps/kea/host.go:85
isc.org/stork/server/agentcomm.(*PeriodicPuller).pullerLoop
/home/godfryd/isc/repos/stork-dashb/backend/server/agentcomm/puller.go:93
runtime.goexit
/home/godfryd/isc/repos/stork-dashb/tools/1.13.5/go/src/runtime/asm_amd64.s:1357
problem with sending reservation-get-page command upon attempt to detect host reservations over the host_cmds hooks library
WARN[2020-05-31 11:14:47] statspuller.go:49 missing key total-addreses in LocalSubnet 15 stats
INFO[2020-05-31 11:14:47] host.go:101 completed pulling hosts from Kea apps: 0/1 succeeded
ERRO[2020-05-31 11:14:47] puller.go:95 errors were encountered while pulling data from Kea apps: error returned by Kea in response to reservation-get-page command
isc.org/stork/server/apps/kea.(*HostDetectionIterator).sendReservationGetPage
/home/godfryd/isc/repos/stork-dashb/backend/server/apps/kea/host.go:253
isc.org/stork/server/apps/kea.(*HostDetectionIterator).DetectHostsPageFromHostCmds
/home/godfryd/isc/repos/stork-dashb/backend/server/apps/kea/host.go:366
isc.org/stork/server/apps/kea.updateHostsFromHostCmds
/home/godfryd/isc/repos/stork-dashb/backend/server/apps/kea/host.go:546
isc.org/stork/server/apps/kea.(*HostsPuller).pullData
/home/godfryd/isc/repos/stork-dashb/backend/server/apps/kea/host.go:85
isc.org/stork/server/agentcomm.(*PeriodicPuller).pullerLoop
/home/godfryd/isc/repos/stork-dashb/backend/server/agentcomm/puller.go:93
runtime.goexit
/home/godfryd/isc/repos/stork-dashb/tools/1.13.5/go/src/runtime/asm_amd64.s:1357
problem with sending reservation-get-page command upon attempt to detect host reservations over the host_cmds hooks library
```0.9Marcin SiodelskiMarcin Siodelskihttps://gitlab.isc.org/isc-projects/stork/-/issues/364App refresh mechanism keeps tossing information about log files2020-08-12T10:03:35ZMarcin SiodelskiApp refresh mechanism keeps tossing information about log filesIn order to reproduce the bug:
- Start with rake docker_up
- Add agent-kea
- Navigate to the Kea app
- Click on the log file which will take you to the log viewer
- Click refresh button
You're going to see error message saying that the ...In order to reproduce the bug:
- Start with rake docker_up
- Add agent-kea
- Navigate to the Kea app
- Click on the log file which will take you to the log viewer
- Click refresh button
You're going to see error message saying that the log file with the given id doesn't exist. It seems like we have some background task updating the app information which keeps tossing the log files and adds them with a different id. If you now:
- click back in the browser
- click again on the same log file
you will see that the log file ID has changed. That's what seems to be causing the error message to be displayed.0.10Marcin SiodelskiMarcin Siodelskihttps://gitlab.isc.org/isc-projects/stork/-/issues/360UI can't retrieve data (server side events broken?)2020-08-10T13:29:30ZTomek MrugalskiUI can't retrieve data (server side events broken?)On the latest master (8fa945083e9fb4a1ce6c87f72ab89fcbd21baf81), I have clean stork running, using rake docker_up.
I've observed a plethora of problems:
1. added agent-kea, which initially worked ok, but later (after couple mins) report...On the latest master (8fa945083e9fb4a1ce6c87f72ab89fcbd21baf81), I have clean stork running, using rake docker_up.
I've observed a plethora of problems:
1. added agent-kea, which initially worked ok, but later (after couple mins) reported comm problem with the dhcpv4 and ca daemons ("There is observed issue in communication with the daemon.", see screenshot 1)
1. added agent-kea-ha1, agent-kea-ha2, they report losing communication. ha1 becomes unreachable, ha2 reports partner down (see screenshot 2)
1. the RPS and pool utilization is not updated anymore (clicking refresh buttons in the ui, pressing ctrl-r doesn't change a thing, see screenshot 3)
1. the daemons status is broken (shows all as grey no-entry sign, but when you hover your cursor over it, some say the communication is ok, see screenshot 4)
I'm reporting all of those in a single issue, because I believe most of them (maybe except the log viewer) can be explained with a problem with server side events. More on this in the first comment.
SCREENSHOT 1 (lost comm with dhcpv4 and ca running on agent-kea)
![Screenshot_2020-08-04_at_19.10.28](/uploads/928c65b9fe461d7f5cc90addab65bb89/Screenshot_2020-08-04_at_19.10.28.png)
SCREENSHOT 2 (ha1 lost comm with its partner)
![Screenshot_2020-08-04_at_19.13.27](/uploads/74f21272b7ad6adafc00523efe25ffee/Screenshot_2020-08-04_at_19.13.27.png)
SCREENSHOT 3 (dashboard not updated)
![Screenshot_2020-08-04_at_19.17.15](/uploads/d7ac2e1fccf7c08a1992fa6c30a94432/Screenshot_2020-08-04_at_19.17.15.png)
SCREENSHOT 4 (broken app status update)
![Screenshot_2020-08-04_at_19.18.54](/uploads/6b8e39c75637771cb5e72aeb24d99a99/Screenshot_2020-08-04_at_19.18.54.png)0.10Michal NowikowskiMichal Nowikowskihttps://gitlab.isc.org/isc-projects/stork/-/issues/359Link to log viewer doesn't work2020-08-10T13:56:19ZTomek MrugalskiLink to log viewer doesn't workOn the latest master (8fa945083e9fb4a1ce6c87f72ab89fcbd21baf81), I have clean stork running, using rake docker_up.
It used to work, but right now the list of logs files is not clickable anymore.
Perhaps this is a failed rebase/merge pr...On the latest master (8fa945083e9fb4a1ce6c87f72ab89fcbd21baf81), I have clean stork running, using rake docker_up.
It used to work, but right now the list of logs files is not clickable anymore.
Perhaps this is a failed rebase/merge problem?
Screenshot
![Screenshot_2020-08-04_at_19.15.26](/uploads/d7fd0446ee8bf2af6b3bdf0213320978/Screenshot_2020-08-04_at_19.15.26.png)0.10Marcin SiodelskiMarcin Siodelskihttps://gitlab.isc.org/isc-projects/stork/-/issues/351DDNS daemon is not detected properly2020-08-12T13:04:46ZTomek MrugalskiDDNS daemon is not detected properlyThe DDNS daemon was not detected properly. Here's what I did:
1. `rake docker_up`
2. `docker-compose exec agent-kea bash`
3. `apt install isc-kea-ddns-server`
4. `kea-dhcp-ddns -c /etc/kea/kea-dhcp-ddns.conf`
The server had started in ...The DDNS daemon was not detected properly. Here's what I did:
1. `rake docker_up`
2. `docker-compose exec agent-kea bash`
3. `apt install isc-kea-ddns-server`
4. `kea-dhcp-ddns -c /etc/kea/kea-dhcp-ddns.conf`
The server had started in the console and was running:
```
root@agent-kea:/agent# kea-dhcp-ddns -c /etc/kea/kea-dhcp-ddns.conf
2020-07-20 15:42:32.524 INFO [kea-dhcp-ddns.dctl/218.139649607673728] DCTL_STARTING DhcpDdns starting, pid: 218, version: 1.7.9 (development)
2020-07-20 15:42:32.524 WARN [kea-dhcp-ddns.dctl/218.139649607673728] DCTL_DEVELOPMENT_VERSION This software is a development branch of Kea. It is not recommended for production use.
INFO COMMAND_ACCEPTOR_START Starting to accept connections via unix domain socket bound to /tmp/ddns-ctrl-socket
INFO DCTL_CONFIG_COMPLETE server has completed configuration: listening on 127.0.0.1, port 53001, using UDP
INFO DHCP_DDNS_STARTED Kea DHCP-DDNS server version 1.7.9 started
```
Refreshing app and machine didn't fix this. The DDNS was still labeled as not detected.0.10https://gitlab.isc.org/isc-projects/stork/-/issues/334upgrading rpm with stork-agent from 0.8 to 0.9 fails2020-08-11T07:19:14ZMichal Nowikowskiupgrading rpm with stork-agent from 0.8 to 0.9 fails```
useradd: user 'stork-agent' already exists
```
and
```
usermod: user 'stork-agent' does not exist
```
https://support.isc.org/Ticket/Display.html?id=16776```
useradd: user 'stork-agent' already exists
```
and
```
usermod: user 'stork-agent' does not exist
```
https://support.isc.org/Ticket/Display.html?id=167760.10Michal NowikowskiMichal Nowikowskihttps://gitlab.isc.org/isc-projects/stork/-/issues/325when BIND 9 is restarted then it is not longer monitored by prometheus.NewPro...2020-07-06T14:40:25ZMichal Nowikowskiwhen BIND 9 is restarted then it is not longer monitored by prometheus.NewProcessCollectorCurrently monitoring of BIND 9 process is initialized for BIND 9 PID at exporter initialization phase. So restarting BIND 9 is not noticed and exporter is still monitoring non existing, killed process.Currently monitoring of BIND 9 process is initialized for BIND 9 PID at exporter initialization phase. So restarting BIND 9 is not noticed and exporter is still monitoring non existing, killed process.0.10https://gitlab.isc.org/isc-projects/stork/-/issues/312getting users is crashing when no params passed2020-07-08T07:46:27ZMichal Nowikowskigetting users is crashing when no params passed```
Jun 05 06:49:47 stork-server stork-server[3800]: 2020/06/05 06:49:47 http: panic serving 127.0.0.1:57510: runtime error: invalid memory address or nil pointer dereference
Jun 05 06:49:47 stork-server stork-server[3800]: goroutine 214...```
Jun 05 06:49:47 stork-server stork-server[3800]: 2020/06/05 06:49:47 http: panic serving 127.0.0.1:57510: runtime error: invalid memory address or nil pointer dereference
Jun 05 06:49:47 stork-server stork-server[3800]: goroutine 214 [running]:
Jun 05 06:49:47 stork-server stork-server[3800]: net/http.(*conn).serve.func1(0xc000154820)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:1767 +0x139
Jun 05 06:49:47 stork-server stork-server[3800]: panic(0xbe2e60, 0x134ee80)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/runtime/panic.go:679 +0x1b2
Jun 05 06:49:47 stork-server stork-server[3800]: isc.org/stork/server/restservice.(*RestAPI).GetUsers(0xc000128900, 0xe29ac0, 0xc00051eba0, 0xc00070cd00, 0x0, 0x0, 0x0, 0xc00051eba0, 0xe29ac0)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/backend/server/restservice/restusers.go:92 +0x46
Jun 05 06:49:47 stork-server stork-server[3800]: isc.org/stork/server/gen/restapi.HandlerAPI.func19(0xc00070cd00, 0x0, 0x0, 0x0, 0xb98c60, 0xc00015a140, 0xc000733401, 0xc0002f67e0)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/backend/server/gen/restapi/configure_stork.go:211 +0xd6
Jun 05 06:49:47 stork-server stork-server[3800]: isc.org/stork/server/gen/restapi/operations/users.GetUsersHandlerFunc.Handle(0xc0001aaa80, 0xc00070cd00, 0x0, 0x0, 0x0, 0xb98c60, 0xc00015a140, 0x0, 0xc00015a0f0)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/backend/server/gen/restapi/operations/users/get_users.go:19 +0x65
Jun 05 06:49:47 stork-server stork-server[3800]: isc.org/stork/server/gen/restapi/operations/users.(*GetUsers).ServeHTTP(0xc0001c7e40, 0xe25f00, 0xc0000e1c80, 0xc00070cd00)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/backend/server/gen/restapi/operations/users/get_users.go:69 +0x29f
Jun 05 06:49:47 stork-server stork-server[3800]: github.com/go-openapi/runtime/middleware.NewOperationExecutor.func1(0xe25f00, 0xc0000e1c80, 0xc00070cb00)
Jun 05 06:49:47 stork-server stork-server[3800]: /root/go/pkg/mod/github.com/go-openapi/runtime@v0.19.6/middleware/operation.go:28 +0x75
Jun 05 06:49:47 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc0000abd00, 0xe25f00, 0xc0000e1c80, 0xc00070cb00)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:49:47 stork-server stork-server[3800]: github.com/alexedwards/scs/v2.(*SessionManager).LoadAndSave.func1(0xe27540, 0xc0005342a0, 0xc0001d4d00)
Jun 05 06:49:47 stork-server stork-server[3800]: /root/go/pkg/mod/github.com/alexedwards/scs/v2@v2.2.0/session.go:136 +0x205
Jun 05 06:49:47 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc0001c7ee0, 0xe27540, 0xc0005342a0, 0xc0001d4d00)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:49:47 stork-server stork-server[3800]: github.com/go-openapi/runtime/middleware.NewRouter.func1(0xe27540, 0xc0005342a0, 0xc0001d4b00)
Jun 05 06:49:47 stork-server stork-server[3800]: /root/go/pkg/mod/github.com/go-openapi/runtime@v0.19.6/middleware/router.go:76 +0x356
Jun 05 06:49:47 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc000275aa0, 0xe27540, 0xc0005342a0, 0xc0001d4b00)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:49:47 stork-server stork-server[3800]: github.com/go-openapi/runtime/middleware.Redoc.func1(0xe27540, 0xc0005342a0, 0xc0001d4b00)
Jun 05 06:49:47 stork-server stork-server[3800]: /root/go/pkg/mod/github.com/go-openapi/runtime@v0.19.6/middleware/redoc.go:72 +0x286
Jun 05 06:49:47 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc000528340, 0xe27540, 0xc0005342a0, 0xc0001d4b00)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:49:47 stork-server stork-server[3800]: github.com/go-openapi/runtime/middleware.Spec.func1(0xe27540, 0xc0005342a0, 0xc0001d4b00)
Jun 05 06:49:47 stork-server stork-server[3800]: /root/go/pkg/mod/github.com/go-openapi/runtime@v0.19.6/middleware/spec.go:46 +0x188
Jun 05 06:49:47 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc000528380, 0xe27540, 0xc0005342a0, 0xc0001d4b00)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:49:47 stork-server stork-server[3800]: isc.org/stork/server/restservice.fileServerMiddleware.func1(0xe27540, 0xc0005342a0, 0xc0001d4b00)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/backend/server/restservice/middleware.go:51 +0x85
Jun 05 06:49:47 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc00051f7d0, 0xe27540, 0xc0005342a0, 0xc0001d4b00)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:49:47 stork-server stork-server[3800]: isc.org/stork/server/restservice.loggingMiddleware.func1(0xe27540, 0xc0005342a0, 0xc0001d4b00)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/backend/server/restservice/middleware.go:32 +0x32e
Jun 05 06:49:47 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc000275fe0, 0xe27540, 0xc0005342a0, 0xc0001d4b00)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:49:47 stork-server stork-server[3800]: net/http.serverHandler.ServeHTTP(0xc00039b500, 0xe27540, 0xc0005342a0, 0xc0001d4b00)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2802 +0xa4
Jun 05 06:49:47 stork-server stork-server[3800]: net/http.(*conn).serve(0xc000154820, 0xe29a00, 0xc00011e740)
Jun 05 06:49:47 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:1890 +0x875
Jun 05 06:49:47 stork-server stork-server[3800]: created by net/http.(*Server).Serve
Jun 05 06:49:47 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2928 +0x384
```0.10https://gitlab.isc.org/isc-projects/stork/-/issues/311wrong params to create user crashes stork server2020-07-08T07:46:28ZMichal Nowikowskiwrong params to create user crashes stork server```
un 05 06:15:41 stork-server stork-server[3800]: 2020/06/05 06:15:41 http: panic serving 127.0.0.1:39950: runtime error: invalid memory address or nil pointer dereference
Jun 05 06:15:41 stork-server stork-server[3800]: goroutine 97 [...```
un 05 06:15:41 stork-server stork-server[3800]: 2020/06/05 06:15:41 http: panic serving 127.0.0.1:39950: runtime error: invalid memory address or nil pointer dereference
Jun 05 06:15:41 stork-server stork-server[3800]: goroutine 97 [running]:
Jun 05 06:15:41 stork-server stork-server[3800]: net/http.(*conn).serve.func1(0xc0001546e0)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:1767 +0x139
Jun 05 06:15:41 stork-server stork-server[3800]: panic(0xbe2e60, 0x134ee80)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/runtime/panic.go:679 +0x1b2
Jun 05 06:15:41 stork-server stork-server[3800]: isc.org/stork/server/restservice.(*RestAPI).CreateUser(0xc000128900, 0xe29ac0, 0xc00051eed0, 0xc0006de300, 0x0, 0xc00015b010, 0xe29ac0)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/backend/server/restservice/restusers.go:155 +0x3a
Jun 05 06:15:41 stork-server stork-server[3800]: isc.org/stork/server/gen/restapi.HandlerAPI.func4(0xc0006de300, 0x0, 0xb98c60, 0xc00015b010, 0xc0006d3401, 0xc00015b000)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/backend/server/gen/restapi/configure_stork.go:149 +0xbc
Jun 05 06:15:41 stork-server stork-server[3800]: isc.org/stork/server/gen/restapi/operations/users.CreateUserHandlerFunc.Handle(0xc0001aa230, 0xc0006de300, 0x0, 0xb98c60, 0xc00015b010, 0x0, 0x0)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/backend/server/gen/restapi/operations/users/create_user.go:19 +0x4e
Jun 05 06:15:41 stork-server stork-server[3800]: isc.org/stork/server/gen/restapi/operations/users.(*CreateUser).ServeHTTP(0xc0001c7c60, 0xe25f00, 0xc000019ac0, 0xc0006de300)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/backend/server/gen/restapi/operations/users/create_user.go:69 +0x28d
Jun 05 06:15:41 stork-server stork-server[3800]: github.com/go-openapi/runtime/middleware.NewOperationExecutor.func1(0xe25f00, 0xc000019ac0, 0xc0006de100)
Jun 05 06:15:41 stork-server stork-server[3800]: /root/go/pkg/mod/github.com/go-openapi/runtime@v0.19.6/middleware/operation.go:28 +0x75
Jun 05 06:15:41 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc0000abd00, 0xe25f00, 0xc000019ac0, 0xc0006de100)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:15:41 stork-server stork-server[3800]: github.com/alexedwards/scs/v2.(*SessionManager).LoadAndSave.func1(0xe27540, 0xc000534460, 0xc00043aa00)
Jun 05 06:15:41 stork-server stork-server[3800]: /root/go/pkg/mod/github.com/alexedwards/scs/v2@v2.2.0/session.go:136 +0x205
Jun 05 06:15:41 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc0001c7ee0, 0xe27540, 0xc000534460, 0xc00043aa00)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:15:41 stork-server stork-server[3800]: github.com/go-openapi/runtime/middleware.NewRouter.func1(0xe27540, 0xc000534460, 0xc00043a800)
Jun 05 06:15:41 stork-server stork-server[3800]: /root/go/pkg/mod/github.com/go-openapi/runtime@v0.19.6/middleware/router.go:76 +0x356
Jun 05 06:15:41 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc000275aa0, 0xe27540, 0xc000534460, 0xc00043a800)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:15:41 stork-server stork-server[3800]: github.com/go-openapi/runtime/middleware.Redoc.func1(0xe27540, 0xc000534460, 0xc00043a800)
Jun 05 06:15:41 stork-server stork-server[3800]: /root/go/pkg/mod/github.com/go-openapi/runtime@v0.19.6/middleware/redoc.go:72 +0x286
Jun 05 06:15:41 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc000528340, 0xe27540, 0xc000534460, 0xc00043a800)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:15:41 stork-server stork-server[3800]: github.com/go-openapi/runtime/middleware.Spec.func1(0xe27540, 0xc000534460, 0xc00043a800)
Jun 05 06:15:41 stork-server stork-server[3800]: /root/go/pkg/mod/github.com/go-openapi/runtime@v0.19.6/middleware/spec.go:46 +0x188
Jun 05 06:15:41 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc000528380, 0xe27540, 0xc000534460, 0xc00043a800)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:15:41 stork-server stork-server[3800]: isc.org/stork/server/restservice.fileServerMiddleware.func1(0xe27540, 0xc000534460, 0xc00043a800)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/backend/server/restservice/middleware.go:51 +0x85
Jun 05 06:15:41 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc00051f7d0, 0xe27540, 0xc000534460, 0xc00043a800)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:15:41 stork-server stork-server[3800]: isc.org/stork/server/restservice.loggingMiddleware.func1(0xe27540, 0xc000534460, 0xc00043a800)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/backend/server/restservice/middleware.go:32 +0x32e
Jun 05 06:15:41 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc000275fe0, 0xe27540, 0xc000534460, 0xc00043a800)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:15:41 stork-server stork-server[3800]: net/http.serverHandler.ServeHTTP(0xc00039b500, 0xe27540, 0xc000534460, 0xc00043a800)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2802 +0xa4
Jun 05 06:15:41 stork-server stork-server[3800]: net/http.(*conn).serve(0xc0001546e0, 0xe29a00, 0xc00011e140)
Jun 05 06:15:41 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:1890 +0x875
Jun 05 06:15:41 stork-server stork-server[3800]: created by net/http.(*Server).Serve
Jun 05 06:15:41 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2928 +0x384
```0.10https://gitlab.isc.org/isc-projects/stork/-/issues/310wrong or no params in user login crashes stork server2020-09-09T13:56:31ZMichal Nowikowskiwrong or no params in user login crashes stork server```
Jun 05 06:00:39 stork-server stork-server[3800]: 2020/06/05 06:00:39 http: panic serving 127.0.0.1:47870: runtime error: invalid memory address or nil pointer dereference
Jun 05 06:00:39 stork-server stork-server[3800]: goroutine 39 ...```
Jun 05 06:00:39 stork-server stork-server[3800]: 2020/06/05 06:00:39 http: panic serving 127.0.0.1:47870: runtime error: invalid memory address or nil pointer dereference
Jun 05 06:00:39 stork-server stork-server[3800]: goroutine 39 [running]:
Jun 05 06:00:39 stork-server stork-server[3800]: net/http.(*conn).serve.func1(0xc0000adea0)
Jun 05 06:00:39 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:1767 +0x139
Jun 05 06:00:39 stork-server stork-server[3800]: panic(0xbe2e60, 0x134ee80)
Jun 05 06:00:39 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/runtime/panic.go:679 +0x1b2
Jun 05 06:00:39 stork-server stork-server[3800]: isc.org/stork/server/restservice.(*RestAPI).CreateSession(0xc000128900, 0xe29ac0, 0xc0004085d0, 0xc0001d4b00, 0x0, 0x0, 0xc000408540, 0xe29ac0)
Jun 05 06:00:39 stork-server stork-server[3800]: /build/backend/server/restservice/restusers.go:56 +0x57
Jun 05 06:00:39 stork-server stork-server[3800]: isc.org/stork/server/gen/restapi.HandlerAPI.func3(0xc0001d4b00, 0x0, 0x0, 0xc000408501, 0xc00069a280)
Jun 05 06:00:39 stork-server stork-server[3800]: /build/backend/server/gen/restapi/configure_stork.go:144 +0x6e
Jun 05 06:00:39 stork-server stork-server[3800]: isc.org/stork/server/gen/restapi/operations/users.CreateSessionHandlerFunc.Handle(0xc0001aa150, 0xc0001d4b00, 0x0, 0x0, 0xc00069a280, 0x0)
Jun 05 06:00:39 stork-server stork-server[3800]: /build/backend/server/gen/restapi/operations/users/create_session.go:19 +0x44
Jun 05 06:00:39 stork-server stork-server[3800]: isc.org/stork/server/gen/restapi/operations/users.(*CreateSession).ServeHTTP(0xc0001c7c40, 0xe25f00, 0xc000518340, 0xc0001d4b00)
Jun 05 06:00:39 stork-server stork-server[3800]: /build/backend/server/gen/restapi/operations/users/create_session.go:54 +0x176
Jun 05 06:00:39 stork-server stork-server[3800]: github.com/go-openapi/runtime/middleware.NewOperationExecutor.func1(0xe25f00, 0xc000518340, 0xc0001d4b00)
Jun 05 06:00:39 stork-server stork-server[3800]: /root/go/pkg/mod/github.com/go-openapi/runtime@v0.19.6/middleware/operation.go:28 +0x75
Jun 05 06:00:39 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc0000abd00, 0xe25f00, 0xc000518340, 0xc0001d4b00)
Jun 05 06:00:39 stork-server stork-server[3800]: /build/tools/1.13.5/go/src/net/http/server.go:2007 +0x44
Jun 05 06:00:39 stork-server stork-server[3800]: github.com/alexedwards/scs/v2.(*SessionManager).LoadAndSave.func1(0xe27540, 0xc0005341c0, 0xc0001d4a00)
Jun 05 06:00:39 stork-server stork-server[3800]: /root/go/pkg/mod/github.com/alexedwards/scs/v2@v2.2.0/session.go:136 +0x205
Jun 05 06:00:39 stork-server stork-server[3800]: net/http.HandlerFunc.ServeHTTP(0xc0001c7ee0, 0xe27540, 0xc0005341c0, 0xc0001d4a00)
```0.10https://gitlab.isc.org/isc-projects/stork/-/issues/396Canceling edit breaks down adding new machines2020-10-12T12:42:06ZTomek MrugalskiCanceling edit breaks down adding new machinesHere's how to repro this problem:
1. start as usual (`rake docker_up`)
1. add machine (don't close the tab)
1. click the crayon icon near the agent-kea:8080, click cancel
1. try to add another machine
When I click on the add new machin...Here's how to repro this problem:
1. start as usual (`rake docker_up`)
1. add machine (don't close the tab)
1. click the crayon icon near the agent-kea:8080, click cancel
1. try to add another machine
When I click on the add new machine, there's the popup (this works as intended). But once I type the name and click add, nothing happens visually and there's this error in the console.
![add-machine-fail](/uploads/c76a90bd79f0b48c7dd1814c50cf238c/add-machine-fail.png)0.11https://gitlab.isc.org/isc-projects/stork/-/issues/384Issues with daemon status presentation2020-09-02T14:39:09ZMarcin SiodelskiIssues with daemon status presentationI observed several issues with presenting the status of the Kea daemons after shutting down the agent and/or Kea daemons. The steps to reproduce the first issue:
- Start Stork Agent and Kea DHCPv4 and Agent on the machine
- Add the machi...I observed several issues with presenting the status of the Kea daemons after shutting down the agent and/or Kea daemons. The steps to reproduce the first issue:
- Start Stork Agent and Kea DHCPv4 and Agent on the machine
- Add the machine to Stork
- Make sure you can see the Kea app and you get green ticks on DHCPv4 and CA daemons and red cross on DHCPv6
- Shut down the agent. After a while you should observe communication errors and red crosses on DHCPv4 and CA
- Restart the agent and wait a while. The red crosses are still there for DHCPv4 and CA.
The situation doesn't even seem to improve when refreshing the page nor after refreshing machine/app.
Another interesting case is this:
- I had everything running and I now shut down Kea CA
- I was expecting that the communication error will show up after a while in the daemon tab, but it didn't. Nevertheless...
- I clicked on the dashboard and saw red crosses next to the Kea daemons (as expected)
- I restarted Kea CA
- I started navigating between the dashboard and the Kea app view. I still see error boxes and red crosses even though the CA is working fine
- Refreshing the page doesn't work. Still see errors.0.11Marcin SiodelskiMarcin Siodelskihttps://gitlab.isc.org/isc-projects/stork/-/issues/379app status on machine tab with bind app is incorrect2020-08-31T09:37:08ZMichal Nowikowskiapp status on machine tab with bind app is incorrectmore details here: https://gitlab.isc.org/isc-projects/stork/-/issues/370#note_154481more details here: https://gitlab.isc.org/isc-projects/stork/-/issues/370#note_1544810.11Michal NowikowskiMichal Nowikowskihttps://gitlab.isc.org/isc-projects/stork/-/issues/242Filtering kea apps doesn't work on app names2020-08-27T10:35:37ZTomek MrugalskiFiltering kea apps doesn't work on app namesThis is a follow-up to https://gitlab.isc.org/isc-projects/stork/-/merge_requests/123#note_125138.
The problem is on Kea apps page. The filtering field says "version or any other field", but in fact it doesn't filter using app names. I'...This is a follow-up to https://gitlab.isc.org/isc-projects/stork/-/merge_requests/123#note_125138.
The problem is on Kea apps page. The filtering field says "version or any other field", but in fact it doesn't filter using app names. I've added agent-kea-ha1 and agent-kea-ha2. When used "kea-ha" as filtering string, all apps disappeared.0.11https://gitlab.isc.org/isc-projects/stork/-/issues/425Spurious directory created when running rake install_server2020-10-12T14:50:15ZMarcin SiodelskiSpurious directory created when running rake install_serverAs pointed out in the following comment: https://gitlab.isc.org/isc-projects/stork/-/issues/395#note_160894
there is empty directory created when running `rake install_server`.
The original report:
Extra directory. I did install stork...As pointed out in the following comment: https://gitlab.isc.org/isc-projects/stork/-/issues/395#note_160894
there is empty directory created when running `rake install_server`.
The original report:
Extra directory. I did install stork the following way:
```
rake install_server DESTDIR=/home/thomson/stork-0.11
```
The contents was installed properly, but there was an extra directory created: `/home/thomson/stork-0.11/home/thomson/devel/stork-0.11.0/tools/node-v12.16.2-linux-x64`
The dir is empty, though. There's a bug somewhere in the install scripts.0.12Marcin SiodelskiMarcin Siodelskihttps://gitlab.isc.org/isc-projects/stork/-/issues/411Stork cannot parse named.conf with multiple allow addresses in inet_spec2020-09-22T07:22:57ZMatthijs Mekkingmatthijs@isc.orgStork cannot parse named.conf with multiple allow addresses in inet_specFrom the mailing list:
I am testing out using Stork for BIND9 in a lab environment. I can connect to the Stork Agent running on the BIND server without any problems, but Stork never shows the DNS service as running. I have verified that...From the mailing list:
I am testing out using Stork for BIND9 in a lab environment. I can connect to the Stork Agent running on the BIND server without any problems, but Stork never shows the DNS service as running. I have verified that BIND is running.
When I check messages on the BIND server, I see the following:
```
Sep 21 14:46:22 bind_server stork-agent: #033[33mWARN#033[0m[2020-09-21 14:46:22] bind9.go:284 cannot parse BIND 9 statistics-channels clause
Sep 21 14:46:32 bind_server stork-agent: #033[33mWARN#033[0m[2020-09-21 14:46:32] bind9.go:91 cannot parse BIND 9 inet configuration: no match (controls {
```
The config syntax is valid from BIND's perspective. Does Stork have requirements above and beyond that?
Thanks!
Details:
BIND: 9.11.4
Stork: 0.11.0
Controls Clause of bind config:
```
controls {
inet 127.0.0.1 allow { localhost; };
inet * allow {localhost; 10.50.0.100; 10.50.0.105; };
};
```
Statistics Channel clause of bind config:
```
statistics-channels {
inet 10.50.0.105 port 80 allow { localhost; 10.50.0.100; 10.50.0.105; };
};
```0.12https://gitlab.isc.org/isc-projects/stork/-/issues/408system tests end with error2020-09-16T09:33:05ZMichal Nowikowskisystem tests end with errorThis occurs in pylxd 2.2.10 that we are using.
It seems to be addressed in 2.2.11 so upgrading should help.
```python
_____________________ test_machines[centos/7-ubuntu/18.04] _____________________
agent_distro = 'centos/7', server_dis...This occurs in pylxd 2.2.10 that we are using.
It seems to be addressed in 2.2.11 so upgrading should help.
```python
_____________________ test_machines[centos/7-ubuntu/18.04] _____________________
agent_distro = 'centos/7', server_distro = 'ubuntu/18.04'
@pytest.mark.parametrize("agent_distro,server_distro", SUPPORTED_DISTROS)
def test_machines(agent_distro, server_distro):
> s, a = prepare_one_server_and_agent(agent_distro, server_distro)
tests.py:62:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests.py:20: in prepare_one_server_and_agent
s.setup_wait()
containers.py:171: in setup_wait
raise e
containers.py:175: in setup
self._setup(*args)
containers.py:333: in _setup
self.prepare_stork_server(pkg_ver)
containers.py:324: in prepare_stork_server
self.run('bash -c "ps axu|grep isc"')
containers.py:144: in run
result = self.cntr.execute(cmd2, env)
venv/lib/python3.6/site-packages/pylxd/models/container.py:440: in execute
manager.close_all()
venv/lib/python3.6/site-packages/ws4py/manager.py:345: in close_all
ws.close(code=code, reason=message)
venv/lib/python3.6/site-packages/ws4py/client/__init__.py:205: in close
self._write(self.stream.close(code=code, reason=reason).single(mask=True))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pylxd.models.container._CommandWebsocketClient object at 0x7f22c98c6ac8>
b = b'\x88\x99\xd5E\x02e\xd6\xacQ\x00\xa73g\x17\xf5,qE\xa6-w\x11\xa1,l\x02\xf5!m\x12\xbb'
def _write(self, b):
"""
Trying to prevent a write operation
on an already closed websocket stream.
This cannot be bullet proof but hopefully
will catch almost all use cases.
"""
if self.terminated or self.sock is None:
raise RuntimeError("Cannot send on a terminated websocket")
> self.sock.sendall(b)
E BrokenPipeError: [Errno 32] Broken pipe
venv/lib/python3.6/site-packages/ws4py/websocket.py:285: BrokenPipeError
```0.12Michal NowikowskiMichal Nowikowskihttps://gitlab.isc.org/isc-projects/stork/-/issues/397Error in the example command line starting the agent2020-10-12T12:34:09ZMarcin SiodelskiError in the example command line starting the agentThe ARM says this in section 2.2.4:
```
$ sudo systemctl enable isc-stork-server
$ sudo systemctl start isc-stork-server
```
but should be:
```
$ sudo systemctl enable isc-stork-agent
$ sudo systemctl start isc-stork-agent
```The ARM says this in section 2.2.4:
```
$ sudo systemctl enable isc-stork-server
$ sudo systemctl start isc-stork-server
```
but should be:
```
$ sudo systemctl enable isc-stork-agent
$ sudo systemctl start isc-stork-agent
```0.12Marcin SiodelskiMarcin Siodelskihttps://gitlab.isc.org/isc-projects/stork/-/issues/371The list of most active subnets is not dynamic2020-09-04T15:47:00ZTomek MrugalskiThe list of most active subnets is not dynamicYou can click the refresh button to reload the pool utilization for the 5 subnets that are shown there, but those will always be the same 5 subnets, until you reload the dashboard.
How to reproduce this:
1. `rake docker_up`
1. add kea w...You can click the refresh button to reload the pool utilization for the 5 subnets that are shown there, but those will always be the same 5 subnets, until you reload the dashboard.
How to reproduce this:
1. `rake docker_up`
1. add kea with some subnets
1. open dashboards
1. open traffic panel and generate traffic in some subnets that are not on the list.
1. wait a bit, hit refresh.0.12https://gitlab.isc.org/isc-projects/stork/-/issues/413Stork not pulling lease stats for DHCP42023-03-15T16:52:51ZleecgenesisStork not pulling lease stats for DHCP4---
name: Stork not pulling lease stats for DHCP4
about: Stork colocated on a single kea-dhcp4/6 host running Kea 1.8.0 and Stork 0.11 is not reporting DHCP4 lease statistics.
---
**Describe the bug**
I have a single DHCP VM built with...---
name: Stork not pulling lease stats for DHCP4
about: Stork colocated on a single kea-dhcp4/6 host running Kea 1.8.0 and Stork 0.11 is not reporting DHCP4 lease statistics.
---
**Describe the bug**
I have a single DHCP VM built with Kea version 1.8.0 and Stork 0.11 running on CentOS 7 using prebuilt packages. It's sole purpose is to serve as a DHCP helper for a small regional network. It's currently got 3 IPv4 ranges and 4 IPv6 ranges. The IPv4 ranges contain approximately 1000 IPv4 addresses, and the IPv6 ranges are /64's with prefix delegation handing out /56's from a larger /48 block.
Stork is working fine, on non-standard ports, however the DHCP4 statistics never report. IPv6 statistics, including leases AND prefix-delegations report just fine. Looking at the stdout for the isc-stork-server process, I see the following repeating errors every minute:
statspuller.go:59 missing key total-addreses in LocalSubnet 4 stats
statspuller.go:59 missing key total-addreses in LocalSubnet 5 stats
statspuller.go:59 missing key total-addreses in LocalSubnet 6 stats
Additionally,
**To Reproduce**
Steps to reproduce the behavior:
1. Install Kea 1.8.0, Stork 0.11 from package manager in CentOS 7.
2. Configure kea-ctrl-agent, kea-dhcp4, kea-dhcp6, and agent.env, server.env as attached.
3. DHCP Processes work, clients receive addresses and IPv6 Prefix Delegations.
4. Kea functions as expected.
5. Stork does NOT display DHCP4 statistics, DOES display DHCP6 statistics.
**Expected behavior**
I expect stork to display both DHCP4 and DHCP6 statistics for all discovered ranges.
**Environment:**
- Kea version: 1.8.0
- Stork: 0.11.0
- OS: CentOS 7.8
- Kea: Using MySQL backend, but memfile and PSQL backend also compiled in.
- Kea: Using libdhcp_stat_cmds.so and libdhcp_lease_cmds.so on both DHCP4 and DHCP6.
[agent.env](/uploads/d8037ffb05b4d499d03d5114cd04d819/agent.env)
[kea-ctrl-agent.conf](/uploads/f5c4d0cfeca2c8f72c17160f842bc189/kea-ctrl-agent.conf)
[kea-dhcp4.conf](/uploads/56f052faff28a147b0ca5f0dddbcb249/kea-dhcp4.conf)
[kea-dhcp6.conf](/uploads/91598b56fcd21981d1a9da2cf27a7524/kea-dhcp6.conf)
[server.env](/uploads/6e79c09f7caa83e28275697779c5f8da/server.env)0.13Michal NowikowskiMichal Nowikowski