This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Problem with API / Discovery Credentials

I have a python script I use to discover our retail environments.  It has worked successfully on more than 700 stores.  But all of a sudden with no known changes it has started failing.  The problem appears to be with the credentials.

This is the line I see in the Orion.InformationService.log file:

2020-01-03 10:34:45,372 [114] ERROR SolarWinds.Orion.Core.SharedCredentials.CredentialDAL - (null) (null)  Unable to find credential with ID = 7, owner =  and credentialType = SolarWinds.Orion.Core.SharedCredentials.Credentials.UsernamePasswordCredential

I can verify with SWQL that the snmp credential with ID of 7 does in fact exist in the Orion.Credentials table and has the expected value.  But the type is: SolarWinds.Orion.Core.Models.Credentials.SnmpCredentialsV2  Not SolarWinds.Orion.Core.SharedCredentials.Credentials.UsernamePasswordCredential as I see in the error statement.

I do specify the type in the core plugin context:

  corePluginContext = {

    'BulkList': bulkList,

    'Credentials': [{'CredentialID': 7, 'Order':1, 'CredentialOwner': 'Orion', 'CredentialType': 'SolarWinds.Orion.Core.Models.Credentials.SnmpCredentialsV2'}],

    'WmiRetriesCount': 0,

    'WmiRetryIntervalMiliseconds': 1000

  }

 

If I print the core plugin context after is is created in the script I don't see any reference to the owner or the type.  (See the xml of that below)

I've tried not specifying the owner or credential type but the error does not change.

Anyone have any idea what is happening or what might have changed?

Thanks.

Core Plugin Context:

<?xml version="1.0" encoding="utf-16"?>

<PluginItems>

    <knownTypes>

        <ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">

            <string>SolarWinds.Orion.Core.Models.Discovery.CoreDiscoveryPluginConfiguration,SolarWinds.Orion.Core.Models.V1</string>

        </ArrayOfstring>

    </knownTypes>

    <pluginItem>

        <ArrayOfDiscoveryPluginConfigurationBase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Discovery">

            <DiscoveryPluginConfigurationBase xmlns:d2p1="http://schemas.solarwinds.com/2008/Orion" i:type="d2p1:CoreDiscoveryPluginConfiguration">

                <d2p1:ActiveDirectoryList />

                <d2p1:AddressRange />

                <d2p1:AgentsAddresses xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />

                <d2p1:AgentsFilterDefinition i:nil="true" />

                <d2p1:AgentsFilterQuery i:nil="true" />

                <d2p1:AutoImportVolumeTypes xmlns:d3p1="http://schemas.datacontract.org/2004/07/SolarWinds.Common.Snmp" i:nil="true" />

                <d2p1:BulkList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">

                    <d3p1:string>172.31.67.254</d3p1:string>

                    <d3p1:string>172.31.64.2</d3p1:string>

                    <d3p1:string>172.31.64.25</d3p1:string>

                    <d3p1:string>172.31.64.161</d3p1:string>

                    <d3p1:string>172.31.64.210</d3p1:string>

                    <d3p1:string>172.31.64.38</d3p1:string>

                    <d3p1:string>172.31.64.39</d3p1:string>

                    <d3p1:string>172.31.64.30</d3p1:string>

                    <d3p1:string>172.31.66.75</d3p1:string>

                    <d3p1:string>172.31.66.76</d3p1:string>

                    <d3p1:string>172.31.66.77</d3p1:string>

                    <d3p1:string>172.31.66.78</d3p1:string>

                    <d3p1:string>172.31.64.144</d3p1:string>

                    <d3p1:string>172.31.64.145</d3p1:string>

                    <d3p1:string>172.31.64.146</d3p1:string>

                    <d3p1:string>172.31.64.147</d3p1:string>

                </d2p1:BulkList>

                <d2p1:Credentials>

                    <d2p1:credentials>

                        <knownTypes>

                            <ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />

                        </knownTypes>

                        <pluginItem>

                            <d2p1:ArrayOfCredential xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />

                        </pluginItem>

                    </d2p1:credentials>

                </d2p1:Credentials>

                <d2p1:DiscoverAgentNodes>false</d2p1:DiscoverAgentNodes>

                <d2p1:PreferredPollingMethod>SNMP</d2p1:PreferredPollingMethod>

                <d2p1:SharedCredentials xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">

                    <d3p1:KeyValueOfintint>

                        <d3p1:Key>1</d3p1:Key>

                        <d3p1:Value>7</d3p1:Value>

                    </d3p1:KeyValueOfintint>

                </d2p1:SharedCredentials>

                <d2p1:SubnetList />

                <d2p1:WMICredentials />

                <d2p1:WmiRetries>0</d2p1:WmiRetries>

                <d2p1:WmiRetryInterval>PT1S</d2p1:WmiRetryInterval>

            </DiscoveryPluginConfigurationBase>

        </ArrayOfDiscoveryPluginConfigurationBase>

    </pluginItem>

</PluginItems>