Contribution to LXD

lxd

(Arda Güçlü) #1

Hello,

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,


(Stéphane Graber) #2

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.


(Idef1x) #4

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?


(Stéphane Graber) #5

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.


(Idef1x) #6

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
Ips:
lo: inet 127.0.0.1
lo: inet6 ::1
vps10: inet 10.10.0.136
vps10: inet6 fd00:10:10::136
vps10: inet6 fe80::216:3eff:fe8b:90eb
Resources:
Processes: 101
CPU usage:
CPU usage (in seconds): 478
Memory usage:
Memory (current): 476.58MB
Memory (peak): 546.80MB
Network usage:
erspan0:
Bytes received: 0B
Bytes sent: 0B
Packets received: 0
Packets sent: 0
gre0:
Bytes received: 0B
Bytes sent: 0B
Packets received: 0
Packets sent: 0
gretap0:
Bytes received: 0B
Bytes sent: 0B
Packets received: 0
Packets sent: 0
lo:
Bytes received: 846.99MB
Bytes sent: 846.99MB
Packets received: 504223
Packets sent: 504223
vps10:
Bytes received: 23.13MB
Bytes sent: 27.32MB
Packets received: 41075
Packets sent: 40561
Snapshots:
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


(Idef1x) #7

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