Contribution to LXD


I would like to contribute LXD project, but I could not find out where should I start first. Issues at Github have been seemed to be handled already. Is there any place that I can put my effort on LXD go/cluster/api part?, could you please give any guidance about the starting point for experienced developers.

Thank you,

Sorry about that, we indeed normally mark issues that are good for new contributors as “Easy” on Github, but we’ve run out of those right now :slight_smile:

The two things off the top of my head which were recently discussed but didn’t make it to a Github issue yet are:

  • Fixing lxc info to show the list of snapshots sorted by date rather than name
  • Moving our codebase from using the syscall to the x/unix package

Both of those would qualify for good new contributor issues, so they may be good starting points for you.

Otherwise, the best first contributions are those just fixing some small grip/gap you may have with what we have right now.

While you’re add fixing lxc info anyway…it doesn’t show disk size anymore as well (at least for ZFS backend) or is that on purpose?
Maybe putting I/O usage in it as well might be handy?

I do see Disk usage here show up fine, the container needs to be running but if it is, this works fine for me on ZFS.

Hmm then all my 3 LXD hosts are messed up or I am getting blind. My output shows:

$ lxc info cloud
Name: cloud
Location: none
Remote: unix://
Architecture: x86_64
Created: 2019/04/10 09:12 UTC
Status: Running
Type: persistent
Profiles: default
Pid: 2855
lo: inet
lo: inet6 ::1
vps10: inet
vps10: inet6 fd00:10:10::136
vps10: inet6 fe80::216:3eff:fe8b:90eb
Processes: 101
CPU usage:
CPU usage (in seconds): 478
Memory usage:
Memory (current): 476.58MB
Memory (peak): 546.80MB
Network usage:
Bytes received: 0B
Bytes sent: 0B
Packets received: 0
Packets sent: 0
Bytes received: 0B
Bytes sent: 0B
Packets received: 0
Packets sent: 0
Bytes received: 0B
Bytes sent: 0B
Packets received: 0
Packets sent: 0
Bytes received: 846.99MB
Bytes sent: 846.99MB
Packets received: 504223
Packets sent: 504223
Bytes received: 23.13MB
Bytes sent: 27.32MB
Packets received: 41075
Packets sent: 40561
20190603.1005 (taken at 2019/06/03 08:05 UTC) (stateless)
backup-201906031231 (taken at 2019/06/03 10:31 UTC) (stateless)

All on snap 3.13 with ZFS on ubuntu 18.04, 18.10 and 19.04

Nevermind…when using projects it doesn’t show, but for the default project it does…I’ll file a github issue…