Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cTentacleAgent Server Url Error #287

Open
dgcode opened this issue Aug 31, 2021 · 0 comments
Open

cTentacleAgent Server Url Error #287

dgcode opened this issue Aug 31, 2021 · 0 comments

Comments

@dgcode
Copy link

dgcode commented Aug 31, 2021

Hi,

I have noticed an issue with OctopusDSC when running from Azure Automation, specifically the cTentacleAgent resource.

For context, we have a VM hosting Octopus sitting behind an Application Gateway and we also power down this VM during our off hours for cost saving.

This leads me to our issue. Whenever the server is shut down, a 502 is thrown from the Application Gateway. This then causes cTentacleAgent on other servers to throw a “non-terminating” error and causes the whole DSC compliance check to fail. This is not ideal as I am unable to have compliance reporting during the period that the server is off as the whole configuration fails for any nodes I have this set up with, not just the cTentacleAgent configuration.

Preferred behaviour would be to have the resource mark the node as non-compliant.

I have already raised this issue in Slack (recieved no response from anyone) and created a topic in help.octopus.com "cTentacleAgent Server Url" and was told my options were:

  • Fix the issue myself in the OctopusDSC module - Not feasible as I import the module into Azure Automation from the PS Gallery
  • Turn on the server 24/7 to avoid the issue - Defeats the purpose of trying to save money by turning it off in the first place
  • Raise the issue on this repo in the hopes it doesn't get deprioritised into oblivion

Screenshots of issue:
Azure Automation
Event Viewer

My DSC code:

## Configure Octopus Tentacle
cTentacleAgent TentacleAgent {
    Name                        = "Tentacle"
    ApiKey                      = $ApiKey
    OctopusServerUrl            = $ServerUri
    OctopusServerThumbprint     = $ServerThumbprint
    DefaultApplicationDirectory = (Join-Path -Path $OctopusDirectory -ChildPath $ApplicationDirectory)
    ListenPort                  = $ListenPort
    Environments                = $Environments
    Roles                       = $Roles
    Space                       = $Space
    RegisterWithServer          = $RegisterWithServer
    State                       = "Started"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant