Friday, 2021-07-30

kata-irc-bot<david_hay> Hey @samuel.ortiz just wanted to keep you updated - have modified my `UnpackImage` function to make the bundle available in `/run/kata-containers/<cid>` and can "see" that the `setup_bundle()` function can see the `config.json` via      `let config_path = bundle_path.join("config.json");`  and can check for the existence of that file using `Path::new(&config_path).is_file()`  So, just to check my understanding, did we suggest that14:24
kata-irc-botwe *NOT* run the mount functionality in that function: -  ```fs::create_dir_all(&rootfs_path)?;     BareMount::new(         &spec_root.path,         rootfs_path.to_str().unwrap(),         "bind",         MsFlags::MS_BIND,         "",         &sl!(),     )     .mount()?;``` *IF* that file exists ?14:24
kata-irc-bot<samuel.ortiz> Hey @david_hay14:25
kata-irc-bot<samuel.ortiz> Yes, I think we should not mount anything if we already have something there.14:25
kata-irc-bot<david_hay> Perfect, working on that now, thanks, mate ;)14:36
kata-irc-bot<david_hay> Looking like it worked .....16:15
kata-irc-bot<david_hay> ```{"msg":"receive createcontainer, spec: Spec { version: \"1.0.2-dev\", process: Some(Process { terminal: true, console_size: None, user: User { uid: 0, gid: 0, additional_gids: [], username: \"\" }, args: [\"sh\"], env: [], cwd: \"/\", capabilities: Some(LinuxCapabilities { bounding: [], effective: [], inheritable: [], permitted: [], ambient: [] }), rlimits: [], no_new_privileges: true, apparmor_profile: \"\", oom_score_adj:16:16
kata-irc-botSome(0), selinux_label: \"\" }), root: Some(Root { path: \"./bundle/rootfs\", readonly: true }), hostname: \"\", mounts: [], hooks: None, annotations: {}, linux: Some(Linux { uid_mappings: [], gid_mappings: [], sysctl: {}, resources: None, cgroups_path: \"\", namespaces: [], devices: [], seccomp: None, rootfs_propagation: \"\", masked_paths: [], readonly_paths: [], mount_label: \"\", intel_rdt: None }), solaris: None, windows: None, vm: None16:16
kata-irc-bot}","level":"INFO","ts":"2021-07-30T16:02:00.619371003+00:00","name":"kata-agent","source":"agent","pid":"57","subsystem":"rpc","version":"0.1.0"}``` ``` {"msg":"wait parent to setup user id mapping","level":"INFO","ts":"2021-07-30T16:02:00.686027773+00:00","version":"0.1.0","module":"rustjail","subsystem":"container","eid":"0123456789012345678901234567890123456789","action":"child process16:16
kata-irc-botlog","source":"agent","pid":"57","name":"kata-agent","cid":"0123456789012345678901234567890123456789"} {"msg":"setup rootfs16:16
kata-irc-bot/run/kata-containers/0123456789012345678901234567890123456789/rootfs","level":"INFO","ts":"2021-07-30T16:02:00.686067083+00:00","eid":"0123456789012345678901234567890123456789","module":"rustjail","subsystem":"container","version":"0.1.0","cid":"0123456789012345678901234567890123456789","pid":"57","source":"agent","name":"kata-agent","action":"child process log"}``` etc.16:16
kata-irc-bot<david_hay> Put it this way, something worked16:16
kata-irc-bot<david_hay> :P16:16

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