The error you are seeing is because the server is responding with an invalid HTTP code, or one that the python httplib cannot understand.
Can you check the HTTP code you are getting, by performing a tcpdump while running the script? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to maas in Ubuntu. https://bugs.launchpad.net/bugs/1320074 Title: maas-import-pxe fails to catch comms errors when downloading UEFI shim and TBs instead To manage notifications about this bug go to: https://bugs.launchpad.net/maas/+bug/1320074/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs