intel / ACON

Apache License 2.0
57 stars 18 forks source link

`acond`: Debug mode does not display log information #22

Closed billionairiam closed 1 year ago

billionairiam commented 1 year ago

When I use ./aconcli run -n mysql.json -c :5531 -i in testing MySQL docker. It didn't show the log information.

EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
NET: Registered PF_PACKET protocol family
NET: Registered PF_VSOCK protocol family
IPI shorthand broadcast: enabled
sched_clock: Marking stable (37541887, 1485813)->(48471238, -9443538)
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 10.0.2.2, my address is 10.0.2.15
IP-Config: Complete:
     device=eth0, hwaddr=52:54:00:12:34:56, ipaddr=10.0.2.15, mask=255.255.255.0, gw=10.0.2.2
     host=vm, domain=, nis-domain=(none)
     bootserver=10.0.2.2, rootserver=10.0.2.2, rootpath=
     nameserver0=10.0.2.3
Freeing unused kernel image (initmem) memory: 1144K
Write protecting the kernel read-only data: 8192k
Freeing unused kernel image (rodata/data gap) memory: 1488K
Run /init as init process
[Acond]: 2023/09/25 12:25:13 Service: Connected
TDX attestation device /dev/tdx_guest doesn't exist.
TDX attestation device /dev/tdx_guest doesn't exist.
2023/09/25 12:25:13 Received ACON Manifest, ID: sha384/7da649d544ac33643c9f1142e3a019bdc642cdd0739fe90d84e5c1eb84bae7845d5de83dec5c59cc1179d7f729b87ebb/0ca91674eb63246d4bb151aebae145691f0e17c56d7ae3c4471fa552337292ea2228ed1f37b5861c81bc4fed3ca4f0ea
2023/09/25 12:25:13 Missing layers:
2023/09/25 12:25:13     [0]: "sha384/b7c8706658cf91b7801dca37a2d05740a7b11ee8c5d037f443e46753b38d4e7d3b1ca6ff06f76fcb715a248cc8d50a8b"
2023/09/25 12:25:13     [1]: "sha384/0149d141f97502ad71720cd69ec9656aaacd324b7dff8ff41eb3efbcd4c228f35883edca55304187a1bd25e5ba2d754f"
2023/09/25 12:25:13     [2]: "sha384/a2afbb4096618cbffb17bcf2ac798b111633d869546d1fa36fb9f829e9f1fec46f4146651665f30e1d16f09fef47c294"
2023/09/25 12:25:13     [3]: "sha384/85a6423ba82b8284771ae13f899c6dde0d8ca796faea7aa1f3ae14c8b9807412eb7e6af04df5c1699bba200df80a5bfe"
2023/09/25 12:25:13     [4]: "sha384/9efd3437b3db299ed240b2fce4fde2f8edeaab0a2d8f42f20a7d9799d167c0dbc3dd5396781609f8cf258647fa0a0bcd"
2023/09/25 12:25:13     [5]: "sha384/5d0d873bd24814b55d9db4952077f846af1fcf5f86feaba2ca221d86fe6141f4cf9e2e8eef53602b3525b1b215e5fdf5"
2023/09/25 12:25:13     [6]: "sha384/f65eb4977058a86518f24cd5ba592e2d90edf8496c711d63a565d4aacb6a3f8961b0bafff73260b326d5efa0216859cd"
2023/09/25 12:25:13     [7]: "sha384/83702d88ce0addf0e6345713df2127aecd983c2284c909846d10de729f83c85dc02fa26a1fc698c2948235275045fb2c"
2023/09/25 12:25:13     [8]: "sha384/44bf0b8267c837ea9b202648078929dd6740c3bcf8ab2b5a59cb325725985e0369a943b2ef77bf50bfb04c3ff28e9af5"
2023/09/25 12:25:13     [9]: "sha384/df46188ca0634b742bb753a87a40c8edd92b27f73c28ca9a3e6d1b525427e0fd101dc99be37fca9328e4a6bf32405282"
2023/09/25 12:25:13     [10]: "sha384/687a1ca750ce7fa2a3e33ea1a80bc628d6235da403a842a89caa184c0d76de92f21c876d4ba810817425b61a538e167e"
2023/09/25 12:25:13     [11]: "sha384/5c27586d7317cb37f8776e07492e6f574bcc1825095f3d44d86446ab918467aa99a8e15c1a1be821fd23686459e783b3"
2023/09/25 12:25:13     [12]: "sha384/d07418ad4d1276406705d788b3de330d37bc3a53715b7ecf8a30b520e14a585bdc67af6a4ec3f08de8c47b13268b813f"
2023/09/25 12:25:13     [13]: "sha384/ccdfa1aec6214bf6db74b4addaca7f87ab5980bcfdbf6f5fcab8d8425bc2169ca3bc9dd6046b26e4b1da6ba33c31dfb0"
2023/09/25 12:25:13     [14]: "sha384/19c51e65b988841ab3160392c36dcb0986b8223ed1fb14dae601fa9a82e1bb220392a9b28d4fdb3391889bca564d5a10"
2023/09/25 12:25:13     [15]: "sha384/1bdcf953c2b1bb5053c5076a8b6c304cee319320449adc0f23f8b8a82c9b0996b967f8ae971d7c7d65b39d92b51e8ff4"
2023/09/25 12:25:13     [16]: "sha384/6f2c79b05d8ed5a51cb3be5d03796ebe887fa987cc5e4e0a938913cdac75680587d6af32f9dd8fdb9b8c25aaf17c2cf9"
2023/09/25 12:25:13     [17]: "sha384/83a56f80a8fd8c81e23ceccaf5558e0defcb039115d603d2040640c49794d5848322e22237f6f4cf68ad84ccd5ffadc1"
2023/09/25 12:25:14 Added File System Layer: sha384/b7c8706658cf91b7801dca37a2d05740a7b11ee8c5d037f443e46753b38d4e7d3b1ca6ff06f76fcb715a248cc8d50a8b
2023/09/25 12:25:14 Added File System Layer: sha384/0149d141f97502ad71720cd69ec9656aaacd324b7dff8ff41eb3efbcd4c228f35883edca55304187a1bd25e5ba2d754f
2023/09/25 12:25:14 Added File System Layer: sha384/a2afbb4096618cbffb17bcf2ac798b111633d869546d1fa36fb9f829e9f1fec46f4146651665f30e1d16f09fef47c294
2023/09/25 12:25:14 Added File System Layer: sha384/85a6423ba82b8284771ae13f899c6dde0d8ca796faea7aa1f3ae14c8b9807412eb7e6af04df5c1699bba200df80a5bfe
2023/09/25 12:25:14 Added File System Layer: sha384/9efd3437b3db299ed240b2fce4fde2f8edeaab0a2d8f42f20a7d9799d167c0dbc3dd5396781609f8cf258647fa0a0bcd
2023/09/25 12:25:14 Added File System Layer: sha384/5d0d873bd24814b55d9db4952077f846af1fcf5f86feaba2ca221d86fe6141f4cf9e2e8eef53602b3525b1b215e5fdf5
2023/09/25 12:25:16 Added File System Layer: sha384/f65eb4977058a86518f24cd5ba592e2d90edf8496c711d63a565d4aacb6a3f8961b0bafff73260b326d5efa0216859cd
2023/09/25 12:25:16 Added File System Layer: sha384/83702d88ce0addf0e6345713df2127aecd983c2284c909846d10de729f83c85dc02fa26a1fc698c2948235275045fb2c
2023/09/25 12:25:19 Added File System Layer: sha384/44bf0b8267c837ea9b202648078929dd6740c3bcf8ab2b5a59cb325725985e0369a943b2ef77bf50bfb04c3ff28e9af5
2023/09/25 12:25:19 Added File System Layer: sha384/df46188ca0634b742bb753a87a40c8edd92b27f73c28ca9a3e6d1b525427e0fd101dc99be37fca9328e4a6bf32405282
2023/09/25 12:25:19 Added File System Layer: sha384/687a1ca750ce7fa2a3e33ea1a80bc628d6235da403a842a89caa184c0d76de92f21c876d4ba810817425b61a538e167e
2023/09/25 12:25:19 Added File System Layer: sha384/5c27586d7317cb37f8776e07492e6f574bcc1825095f3d44d86446ab918467aa99a8e15c1a1be821fd23686459e783b3
2023/09/25 12:25:19 Added File System Layer: sha384/d07418ad4d1276406705d788b3de330d37bc3a53715b7ecf8a30b520e14a585bdc67af6a4ec3f08de8c47b13268b813f
2023/09/25 12:25:19 Added File System Layer: sha384/ccdfa1aec6214bf6db74b4addaca7f87ab5980bcfdbf6f5fcab8d8425bc2169ca3bc9dd6046b26e4b1da6ba33c31dfb0
2023/09/25 12:25:19 Added File System Layer: sha384/19c51e65b988841ab3160392c36dcb0986b8223ed1fb14dae601fa9a82e1bb220392a9b28d4fdb3391889bca564d5a10
2023/09/25 12:25:19 Added File System Layer: sha384/1bdcf953c2b1bb5053c5076a8b6c304cee319320449adc0f23f8b8a82c9b0996b967f8ae971d7c7d65b39d92b51e8ff4
2023/09/25 12:25:19 Added File System Layer: sha384/6f2c79b05d8ed5a51cb3be5d03796ebe887fa987cc5e4e0a938913cdac75680587d6af32f9dd8fdb9b8c25aaf17c2cf9
2023/09/25 12:25:19 Added File System Layer: sha384/83a56f80a8fd8c81e23ceccaf5558e0defcb039115d603d2040640c49794d5848322e22237f6f4cf68ad84ccd5ffadc1
2023/09/25 12:25:19 Started ACON Instance, ID: 1

I have no idea whether it is a success or not.

xxu36 commented 1 year ago

@billionairiam Lines started with date are all log messages from aconcli

billionairiam commented 1 year ago

@billionairiam Lines started with date are all log messages from aconcli

But why it didn't print the mysql log? I checked my entrypoint in json file, it will execute the MySQL script.

binxing commented 1 year ago

This is related to #3.

xiangquanliu commented 1 year ago

I will submit a PR to fix this issue.

xiangquanliu commented 1 year ago

PR submitted - https://github.com/intel/ACON/pull/34