Repository navigation
Closed
Description
Current Behavior
admin@dut4:/config/> set container alpine-nginx enabled false
admin@dut4:/config/> leave
Error: EV ORIGIN: SHM event "done" ID 2 processing timed out.
Please check your changes, try 'diff' and 'do show interfaces'.
admin@dut4:/config/> diff
admin@dut4:/config/>
Jun 14 10:55:17 dut4 alpine-nginx[0]: opening fifo /run/containers/alpine-nginx.fifo
Jun 14 10:55:17 dut4 alpine-nginx[0]: entering poll loop ...
Jun 14 10:55:17 dut4 finit[1]: Stopped container:alpine-nginx[3258]
Jun 14 10:55:17 dut4 container[2658]: Container alpine-nginx has been removed.
Jun 14 10:55:19 dut4 finit[1]: Service container:alpine-nginx[0] died, restarting in 2000 msec (1/10)
Jun 14 10:55:19 dut4 finit[1]: Calling 'container -n alpine-nginx start' ...
Jun 14 10:55:21 dut4 finit[1]: Service container:alpine-nginx[0] died, restarting in 2000 msec (2/10)
Jun 14 10:55:21 dut4 finit[1]: Calling 'container -n alpine-nginx start' ...
Jun 14 10:55:23 dut4 finit[1]: Service container:alpine-nginx[0] died, restarting in 2000 msec (3/10)
Jun 14 10:55:23 dut4 finit[1]: Calling 'container -n alpine-nginx start' ...
Jun 14 10:55:25 dut4 finit[1]: Service container:alpine-nginx[0] died, restarting in 2000 msec (4/10)
Jun 14 10:55:25 dut4 finit[1]: Calling 'container -n alpine-nginx start' ...
Jun 14 10:55:27 dut4 finit[1]: Service container:alpine-nginx[0] died, restarting in 2000 msec (5/10)
Jun 14 10:55:27 dut4 finit[1]: Calling 'container -n alpine-nginx start' ...
Jun 14 10:55:29 dut4 finit[1]: Service container:alpine-nginx[0] died, restarting in 5000 msec (6/10)
Jun 14 10:55:29 dut4 finit[1]: Calling 'container -n alpine-nginx start' ...
Jun 14 10:55:34 dut4 finit[1]: Service container:alpine-nginx[0] died, restarting in 5000 msec (7/10)
Jun 14 10:55:34 dut4 finit[1]: Calling 'container -n alpine-nginx start' ...
Jun 14 10:55:39 dut4 finit[1]: Service container:alpine-nginx[0] died, restarting in 5000 msec (8/10)
Jun 14 10:55:39 dut4 finit[1]: Calling 'container -n alpine-nginx start' ...
Jun 14 10:55:44 dut4 finit[1]: Service container:alpine-nginx[0] died, restarting in 5000 msec (9/10)
Jun 14 10:55:44 dut4 finit[1]: Calling 'container -n alpine-nginx start' ...
Jun 14 10:55:49 dut4 finit[1]: Service container:alpine-nginx[0] died, restarting in 5000 msec (10/10)
Jun 14 10:55:49 dut4 finit[1]: Calling 'container -n alpine-nginx start' ...
Jun 14 10:55:54 dut4 finit[1]: Service container:alpine-nginx keeps crashing, not restarting.
Jun 14 10:55:56 dut4 klishd-service: Stop SysRepo session for "admin"
Jun 14 10:55:56 dut4 klishd[3132]: klishd-service: Stop SysRepo session for "admin"
admin@dut4:~$ initctl
PID IDENT STATUS RUNLEVELS DESCRIPTION
1233 udevd running [S-12345-789] Device event daemon (udev)
2394 dbus running [S-123456789] D-Bus message bus daemon
2658 confd running [S-12345----] Configuration daemon
3111 netopeer running [--12345----] NETCONF server
2662 dnsmasq running [S-12345----] DHCP/DNS proxy
3121 execd running [---2345----] Container job runner
3125 tty:hvc0 running [--12345-789] Getty on hvc0
3131 iitod running [S0123456789] LED daemon
3132 klishd running [---2345----] CLI backend daemon
3155 mdns-alias running [---2345----] mDNS alias advertiser
3134 rauc running [---2345----] Software update service
3142 sshd running [---2345----] OpenSSH daemon
3046 statd running [S-12345----] Status daemon
2328 syslogd running [S0123456789] System log daemon
2678 watchdogd running [S0123456789] System watchdog daemon
3148 zebra running [---2345----] Zebra routing daemon
3150 mdns running [---2345----] Avahi mDNS-SD daemon
3159 k8s-logger:alpine-nginx running [---2345----] Logger for container alpine-nginx
0 container:alpine-nginx crashed [---2345----] container alpine-nginx
3165 k8s-logger:curios running [---2345----] Logger for container curios
3221 container:curios running [---2345----] container curios
3172 k8s-logger:nginx running [---2345----] Logger for container nginx
3243 container:nginx running [---2345----] container nginx
3176 k8s-logger:web running [---2345----] Logger for container web
3219 container:web running [---2345----] container web
3181 lldpd running [---2345----] LLDP daemon (IEEE 802.1ab)
3182 staticd running [---2345----] Static routing daemon
admin@dut4:~$
I also tried 'no enabled' && copy ru st, rebooted, when it started all containers was up
Expected Behavior
Containers should not start when disabled.
Steps To Reproduce
{
"ieee802-dot1ab-lldp:lldp": {
"infix-lldp:enabled": true
},
"ietf-hardware:hardware": {
"component": [
{
"name": "USB",
"class": "infix-hardware:usb",
"state": {
"admin-state": "unlocked"
}
},
{
"name": "USB2",
"class": "infix-hardware:usb",
"state": {
"admin-state": "unlocked"
}
}
]
},
"ietf-interfaces:interfaces": {
"interface": [
{
"name": "e1",
"type": "infix-if-type:etherlike",
"ietf-ip:ipv4": {
"address": [
{
"ip": "192.168.30.2",
"prefix-length": 24
}
]
},
"ietf-ip:ipv6": {}
},
{
"name": "e2",
"type": "infix-if-type:etherlike",
"ietf-ip:ipv6": {}
},
{
"name": "e3",
"type": "infix-if-type:etherlike",
"ietf-ip:ipv6": {}
},
{
"name": "e4",
"type": "infix-if-type:etherlike",
"ietf-ip:ipv6": {}
},
{
"name": "e5",
"type": "infix-if-type:etherlike",
"ietf-ip:ipv6": {}
},
{
"name": "e6",
"type": "infix-if-type:etherlike",
"ietf-ip:ipv6": {}
},
{
"name": "e7",
"type": "infix-if-type:etherlike",
"ietf-ip:ipv6": {}
},
{
"name": "lo",
"type": "infix-if-type:loopback",
"ietf-ip:ipv4": {
"address": [
{
"ip": "127.0.0.1",
"prefix-length": 8
}
]
},
"ietf-ip:ipv6": {
"address": [
{
"ip": "::1",
"prefix-length": 128
}
]
}
}
]
},
"ietf-keystore:keystore": {
"asymmetric-keys": {
"asymmetric-key": [
{
"name": "genkey",
"public-key-format": "ietf-crypto-types:ssh-public-key-format",
"public-key": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDWNUh9EswCzt1sr3IyiTFb8ypaBKD6SNgNupT+Q2jXdSfGowzkvUaOEMs7K2sBP3UfZSSjNADutimi4bTQCBA0j1YS8g1Gxt69ELsqpdz78Asbi+N68kYKB6DJFF8qWReaLuidxR9sNt0W/5SteTbLKj9uoA8mjA3DaiYzxLh707ko41z3RYz9aEqmtsgxWONNlG8f3FSpUqSS7k2vmh7SzIiBhP+FIf20P1AUO7Tp9rNi1fEOU6l1j84raNDAFkcKScRPk6BcQENQ+Ut1pIDVUXk/hH0uvOs1sR4s2qSqHUyEqQGlJ5GHNDSzsEduGgagWqoO1B82A/Hk0524gBYLoFNboz8AW5YGvMKvOcFYIq57eUYaFg8XmPKIFGDjz/mb9NTRdF1R5fCY9hDc+6qod86KMNwUtbKu/3LO1rPP8rLLJr44I/q8vmQJ6tK6fdElzmOnuHI3fNhPkJvlfF4Fae2H9vICpoODOzJL5N7wKCxHZq48+FQ7QBe7P2fhBbE=",
"private-key-format": "ietf-crypto-types:rsa-private-key-format",
"cleartext-private-key": "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCMSi6B5x6Hxxr1VCCqhg0r2Qx+yRSqCelnzt57FdwhORpl/t8qtzU9NA4xY35kFgS5NVB2aCHZ6+bdtYFfEQ0Cp94BZDfFYt02d84XYBgotm4CyZ1uFxCt4bIGkd+S3qvqvSsv7TsxYsk1+7J8PFR1rCEVC4gi6KGU7Rkm0RK0ST549mLAK0m5OSZ4oJtIrFyhq1VdMYCF7bWu0QtrOMuphkOmVIxBirFzEXQ1cZpUu39qNtfq2TldX7zOicEaaeyh70qSgRtlXHinVXk/8M1dpQFARJOnAbREjpW2Ruc30i++vrxwRPrVjUBFYtG7u1MsBjklAAWWFf7G5qTHnP0DAgMBAAECggEAARZEDiBThZbMalE0DZdUcqcrOotl4M34tn9EDL9hZeXuAsooizdBeEZJVibFRQCKYvix/me6SbQKAK2fan2CZvCmvsa6pwmn/deMOXTbFDUayq1zqXWibxecFUvyw03qhBZ0a9oAEA3TGyRULjQaUf9ff6zjRRKLXD6u59lNkd5znlkDAx5K1XlSs7COJWF33Ovj3hDkuIGuv5K05wxdqqbKeFGMowxgiJDlCTNZmzzNxGSQ1ZTu/LLttVGFUTRQETJl2YhpWBhdirXYzQu+L4zbCy67lvCX4zA0PSqx7CLddYioA9HuFZha0pMn4OT08BrPi15oL1I7Mi9E0enCaQKBgQDCZgAhvpUFS30yYvbJdfaaNE2orJjUcWE1EKphAaeVrg4z6RSx3Ey05Rb7nM486KYHOkjG9QFvkpNg/Or4PBCv/D7u1qCTlhwVraOuqNLjI2v+mMj2xINGvt8ghPb+PBOPM+Ta24Msz5aCqIqAygrehNCRJYgoICsnG16qNJlrWQKBgQC4vsZ3Y4bOihqAO1hNXzz2/IZdc9KmHeyhZxPO8VYUvFPhqZPsrPfnjZUfIjhwP2dkNc/YyAKkaxafnEfuNMfecDsMSxFjE0cyEhgFIC/7zAJVti4NeaWDtPURLxzfveCb8q8KNot6EdePlyqNWEI9T0pJhf4fNYlaUr8b3UzLuwKBgQC6DGjf4sg4cxD1IiXSlaVX2+rfHaB+4awI31RQ1waOiDBrmg0GVDLNhdtDH8V6IaaUkEGKuH2RTJTkY+p1fPbzltScPKkd1rI2RSK8TDLY09PNrGfZVCXXlWFyfA7vLowBp8bFdwTJ5DrF/Yvgyn0wjagW4fa3gGIMYXNuLj0OsQKBgGbpRq8czuxgu/BwnnjDM7e15bdLHK2Sf81NGRivES+N1QAgsZkmpRXkpYvpSR0mBJcq7rQofmhOixSwPtVvq2K6i/oGGxJgm8lFkQHR80jFVQuf5zl0aQHcHKPM5b2xDNxyLJV42utN4xFGuNpxrrxuXchlDrEd5nxdGb4Q4YWfAoGBAJZkD6RrJDHC3J3IRqrz8bwQ4qWBDGo0jLbXMkYYZQelVvfl+tDs2jIgz94r4fTQqPcRLaNpL1ixPoOLoR+3RAfPiezyYO0wOL2nEC+KV/Z6zeJyYIlmus5MOg2Pm2onlk/+hW6pYMSSl/l1rLqeBH2204QetnuqVmwWdvYaECEF"
}
]
}
},
"ietf-netconf-acm:nacm": {
"groups": {
"group": [
{
"name": "admin",
"user-name": [
"admin"
]
}
]
},
"rule-list": [
{
"name": "admin-acl",
"group": [
"admin"
],
"rule": [
{
"name": "permit-all",
"module-name": "*",
"access-operations": "*",
"action": "permit",
"comment": "Allow 'admin' group complete access to all operations and data."
}
]
}
]
},
"ietf-netconf-server:netconf-server": {
"listen": {
"endpoints": {
"endpoint": [
{
"name": "default-ssh",
"ssh": {
"tcp-server-parameters": {
"local-address": "::"
},
"ssh-server-parameters": {
"server-identity": {
"host-key": [
{
"name": "default-key",
"public-key": {
"central-keystore-reference": "genkey"
}
}
]
}
}
}
}
]
}
}
},
"ietf-routing:routing": {
"control-plane-protocols": {
"control-plane-protocol": [
{
"type": "static",
"name": "fada",
"static-routes": {
"ietf-ipv4-unicast-routing:ipv4": {
"route": [
{
"destination-prefix": "0.0.0.0/0",
"next-hop": {
"next-hop-address": "192.168.30.1"
}
}
]
}
}
}
]
}
},
"ietf-system:system": {
"hostname": "dut4",
"dns-resolver": {
"server": [
{
"name": "google",
"udp-and-tcp": {
"address": "8.8.8.8"
}
}
]
},
"authentication": {
"user": [
{
"name": "admin",
"password": "$5$mI/zpOAqZYKLC2WU$i7iPzZiIjOjrBF3NyftS9CCq8dfYwHwrmUK097Jca9A",
"infix-system:shell": "infix-shell-type:bash"
}
]
},
"infix-system:motd-banner": "Li0tLS0tLS0uCnwgIC4gLiAgfCBJbmZpeCAtLSBhIE5ldHdvcmsgT3BlcmF0aW5nIFN5c3RlbQp8LS4gdiAuLXwgaHR0cHM6Ly9rZXJuZWxraXQuZ2l0aHViLmlvCictJy0tLSctJwo="
},
"infix-containers:containers": {
"container": [
{
"name": "alpine-nginx",
"enabled": false,
"image": "docker.io/yobasystems/alpine-nginx:latest",
"command": "sleep inf"
},
{
"name": "curios",
"image": "ghcr.io/kernelkit/curios:24.05.0",
"command": "/usr/sbin/telnetd -F",
"network": {
"host": true
}
},
{
"name": "nginx",
"image": "docker.io/library/nginx",
"command": "sleep inf"
},
{
"name": "web",
"image": "oci-archive:curios-httpd-v24.03.0.tar.gz",
"command": "/usr/sbin/httpd -f -v -p 81",
"network": {
"host": true
}
}
]
},
"infix-services:mdns": {
"enabled": true
}
}
Additional information
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
troglobit commentedon Jun 21, 2024
Reproduced.
troglobit commentedon Jun 21, 2024
Root cause is that
container delete, see below, takes too long and triggers the sysrepo internal timeout:infix/src/confd/src/infix-containers.c
Lines 199 to 200 in 2b1543b
Commenting out that line, keeping
initctl disable, then everything works perfectly. I'll look into moving the delete action to our background task manager,execd.confd: when disabling containers, delete in background
confd: when disabling containers, delete in background
confd: when disabling containers, delete in background
confd: when disabling containers, delete in background