mattmcspirit / azurestack

Azure Stack Resources
80 stars 41 forks source link

Support for a scenario behind a proxy #51

Closed stseifert closed 5 years ago

stseifert commented 5 years ago

Unfortunately ConfigASDK.ps1 script expects a direct internet Access (uses test-netconnection). I'm getting followinf error: "One or more internet connectivity tests failed"

It would be great if you support a proxy scenario with proxy authentication (username, Password) because all our Internet traffic goes via an Internet proxy.

mattmcspirit commented 5 years ago

Hi again,

So, the ConfigASDK script actually works in one of three 'modes'

1) "Online" - this mode runs if you pass all the connection tests (test-netconnection etc) and you don't provide a ConfigAsdkOfflinefiles.zip

2) "PartialOnline" - this mode runs if you pass the connection tests and you provide a zip file

3) "Offline" this mode runs if you fail the connection tests, and you provide a zip file.

If you fail the connection tests, and don't provide a zip file, the script won't run at all.

To work with a proxy, I suspect I could add the functionality pretty easily - like this here: https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-powershell-install#6-configure-powershell-to-use-a-proxy-server

The problem however, isn't with PowerShell - the challenge for me is inside the Windows and Linux VMs that are deployed as part of the overall process. If the script operates in "Online" mode (because you've setup the PowerShell session to use the proxy correctly, and the "ASDK Host" is connected to the internet) when it gets to the stage of, for example, deploying the MySQL and SQL DB hosts, the Linux OS's will not know about the proxy configuration, so when they try to install MySQL and SQL directly from the internet (apt-get etc), it will fail.

I'd have to figure out a way for any Linux guest OS's to also automatically configure the proxy with the correct credentials so they can work seamlessly in 'Online' mode through a proxy.

Maybe I'll figure out a way to do "PartialOnline" with a proxy so you can still do things like register the ASDK automatically, but it will install the Linux guest OS's from the ZIP file, and if you don't supply the zip file, I'll stop the script.

Let me think about it for a future release.

Thanks! Matt

stseifert commented 5 years ago

Hi Matt,

thanks for your email. I’m in contact with the product team, we are urgendly waiting for an Azure Stack version which is proxy-capable. (I’m getting the first ADSK release maybe 1810 or 1811 which supports a proxy)

That’s why we can install Azure Stack appliance in disconnected mode only.

For the current ADSK we found an interim solution to run it in connected mode (we put a proxy configuration in the base image before installing ADSK).

From my point of view I would be very happy when support a proxy is supported. We are using Azure Stack App Services and I’m looking for a solution to automate the whole installation.

Regards Steffen

Von: Matt McSpirit notifications@github.com Gesendet: Donnerstag, 1. November 2018 19:46 An: mattmcspirit/azurestack azurestack@noreply.github.com Cc: Seifert, Steffen steffen.seifert@vwfs.com; Author author@noreply.github.com Betreff: Re: [mattmcspirit/azurestack] Support for a scenario behind a proxy (#51)

Hi again,

So, the ConfigASDK script actually works in one of three 'modes'

  1. "Online" - this mode runs if you pass all the connection tests (test-netconnection etc) and you don't provide a ConfigAsdkOfflinefiles.zip

  2. "PartialOnline" - this mode runs if you pass the connection tests and you provide a zip file

  3. "Offline" this mode runs if you fail the connection tests, and you provide a zip file.

If you fail the connection tests, and don't provide a zip file, the script won't run at all.

To work with a proxy, I suspect I could add the functionality pretty easily - like this here: https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-powershell-install#6-configure-powershell-to-use-a-proxy-server

The problem however, isn't with PowerShell - the challenge for me is inside the Windows and Linux VMs that are deployed as part of the overall process. If the script operates in "Online" mode (because you've setup the PowerShell session to use the proxy correctly, and the "ASDK Host" is connected to the internet) when it gets to the stage of, for example, deploying the MySQL and SQL DB hosts, the Linux OS's will not know about the proxy configuration, so when they try to install MySQL and SQL directly from the internet (apt-get etc), it will fail.

I'd have to figure out a way for any Linux guest OS's to also automatically configure the proxy with the correct credentials so they can work seamlessly in 'Online' mode through a proxy.

Maybe I'll figure out a way to do "PartialOnline" with a proxy so you can still do things like register the ASDK automatically, but it will install the Linux guest OS's from the ZIP file, and if you don't supply the zip file, I'll stop the script.

Let me think about it for a future release.

Thanks! Matt

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mattmcspirit/azurestack/issues/51#issuecomment-435142735, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AU--Fsa50EJSIUqJirovTYUL5BuRLrlHks5uq0FxgaJpZM4YGbGU.

Volkswagen Financial Services Digital Solutions GmbH Sitz/Registered seat: Braunschweig Registergericht/Registration court: Amtsgericht Braunschweig HRB Nr./Commercial Register No.: 201153 Geschäftsführer/Executive Director: Torsten Zibell (Sprecher/Spokesman), Jens Springer, Thomas Sutter

Wichtiger Hinweis: Die vorgenannten Angaben werden jeder E-Mail automatisch hinzugefügt und lassen keine Rückschlüsse auf den Rechtscharakter der E-Mail zu. Important note: The above information is automatically added to this e-mail. This addition does not constitute a representation that the content of this e-mail is legally relevant and/or is intended to be legally binding upon Volkswagen Financial Services Digital Solutions GmbH.