Tuesday, 2021-08-03

kata-irc-bot<david_hay> FYI @jakob.naucke it was a self-inflicted wound on my part - I've added some logic to `setup_bundle` to check for the existence of the bundle ( which we've already pulled inside the Pod Sandbox ) but hadn't bothered to move the code that does `let _ = spec.save(config_path.to_str().unwrap());` inside that logic ... meaning that my `CreateContainer` function was over-riding `config.json` from the pulled image with a much smaller version08:31
kata-irc-bot.... :facepalm:08:31
kata-irc-bot<jakob.naucke> No worries – happy to hear you resolved it, but OOI: that smaller version, it specified to exec `sh` like the real thing, but with the smaller version, it couldn't be launched?08:38
kata-irc-bot<david_hay> Yeah, I suspect that was because there was no path being set in the `config.json`08:54
kata-irc-bot<david_hay> ``` {   "ociVersion": "1.0.2-dev",   "process": {     "terminal": true,     "user": {       "uid": 0,       "gid": 0     },     "args": [       "sh"     ],     "cwd": "/",     "capabilities": {},     "noNewPrivileges": true,     "oomScoreAdj": 0   },   "root": {     "path": "/run/kata-containers/0123456789012345678901234567890123456789/rootfs",     "readonly": true   },   "linux": {     "resources": {       "devices": [         {      08:54
kata-irc-bot    "allow": false,           "type": "b",           "major": 259,           "minor": 1,           "access": "rw"         }       ]     },     "namespaces": [       {         "type": "pid"       }     ]   } }``` 08:54
kata-irc-bot<david_hay> Note that the `args[]` is set to `sh` and that there're no `env[]` settings e.g. `PATH`08:54

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!