ArcPy service_draft module stalls with no errors in Linux environments when using an ArcGIS Server (.ags) connection to Windows or Linux ArcGIS Server with an untrusted certificate.
The bug is reported for 10.7.1. With 10.8.1 and newer ArcGIS Server, if a certificate prompt is encountered, the script fails with the following error, “Error connecting to server.”