pypxe / PyPXE

Pure Python PXE (DHCP-(Proxy)/TFTP/HTTP/NBD) Server
MIT License
547 stars 125 forks source link

Various Patches which Complete v1.6 #88

Closed mmattioli closed 9 years ago

mmattioli commented 9 years ago

Proposal

Various bug fixes, patches, and improvements which complete v1.6. This release fixes #85, fixes #83, fixes #82, fixes #80, fixes #79, and fixes #27.

Improvements

mmattioli commented 9 years ago

@psychomario before we do any actual testing perhaps we should take care of any missing documentation for whatever patches/fixes we have here?

psychomario commented 9 years ago

@mmattioli Probably, I was just about to comment regarding this. So far I've noticed that debug negation is missing from --help and the README, I'm just about to go through the rest to find other missing sections.

psychomario commented 9 years ago

The following kwarg table items are missing from DOCUMENTATION.md:

I believe that is it. Do you want me to write a section under Background for NBD and a similar table for the kwargs?

mmattioli commented 9 years ago

@psychomario yeah if you handle the NBD stuff I'll take care of the DHCP stuff

psychomario commented 9 years ago

I've got something written up in #91, accepting any criticism.

psychomario commented 9 years ago

Do you think --dhcp-fileserver and --dhcp-whitelist should be somehow separated from the rest of the --dhcp-* arguments, as they are the two that are available in both --dhcp and --dhcp-proxy modes?

mmattioli commented 9 years ago

Not really, if someone has an understanding of how DHCP works then they should have an understanding that these two options would inherently work in both modes.

psychomario commented 9 years ago

Fair enough.

mmattioli commented 9 years ago

@psychomario is this ready for testing or are we missing something? Pretty sure we should be ready to start testing but just wanted to check with you.

psychomario commented 9 years ago

I think we're ready for testing. I'll be able to test everything in the ~morning, although I'm not expecting to find anything as I've been testing as I've been going along.

mmattioli commented 9 years ago

Sounds good, let me know if you run into anything because once this is merged and we tag the new release I think we can take a break for a while lol

psychomario commented 9 years ago

Well that's all the long standing issues done, except for NFS, which I really ought to get motivated to continue as I have the summer off.

psychomario commented 9 years ago

I've done some testing, and my fixes are present in #92, there's also a query regarding log messages. Once that PR is resolved then I think we're ready to be merged.

mmattioli commented 9 years ago

@psychomario LGTM Ready to go?

psychomario commented 9 years ago

Other than the query in #92, I think so:

With the initial debug logging block, there are a lot of lines that duplicate the service name in the log format string and the actual log message. For example:

2015-05-12 17:30:51,190 [DEBUG] PyPXE.TFTP TFTP Server IP: 0.0.0.0
2015-05-12 17:30:51,190 [DEBUG] PyPXE.TFTP TFTP Server Port: 69
2015-05-12 17:30:51,190 [DEBUG] PyPXE.TFTP TFTP Network Boot Directory: .

Should we remove the second TFTP, as it is already present in the logging namespace?

mmattioli commented 9 years ago

@psychomario just fixed, good catch :+1: Ready?

psychomario commented 9 years ago

@mmattioli Thanks! I think we're ready now, yes.