Linux server version keeps changing

Arkterix
Tera Contributor

Hi all,

Have an issue with Linux server os version (os_version) that keeps changing/fluctuating with every discovery. This started to appear after upgrading to Utah (patch2-hotfix4). Have not seen it before. And since we use distribution version, ie 7.9, as basis for patching this will not work.

 

Looking at the pattern it seems like ServiceNow is updating os version with both the kernel version, and then afterwards with the distribution version.

 

As a first step I disabled the ServiceNow step that adds in kernel version into this field. There is an additonal step stopping this to work (in some odd cases), step 9.5, why build a condition like that?

 

Your thoughts? Anyone else seen this changing os version? Any advice on solution?

 

Cheers, /Johan

9 REPLIES 9

Hi Johan,

 

Thanks for sharing the details, curious how were you able to fix the issue, probably by deactivating the below step?

 

1.1. Get system info
=> "uname -a"

1.4. Extract OS version from uname

2. Insert OS name, version and name to cmdb_ci_linux_server

The result of this os version is something like: 3.10.0-1160.102......

Hi,

If the distribution version is most important you can do what I did:

Remove setting the Kernel version, Step 2 as I mentioned. You need to keep the step active since other fields are set there.

Step 9.5 can be kept as is, as I mentioned above I had some odd cases with some servers, but this was resolved by the below.

Create a Pattern extension to the Linux server pattern (if you don't have one).
Set the os_version ($cmdb_ci_linux_server[*].os_version = $os_version) on the condition that $os_version Is Not Empty.

This has two side effects:
Your pattern will not be OOTB (you can loose updates from ServiceNow, alt. you need to follow upgrade conflicts tightly).
And that this affects ALL Linux servers that you run Discovery on.

 

Tell me how it went.

Thanks for your inputs!

Yes, I raised this concern as well multiple times, as it was not reproduceable during that time, they were least interest and after certain time closed the ticket and this issue not occurs on frequently, its intermettent, once in 6/7 months

Hi Kavita,

 

Any luck on this issue, I am facing the same issue with the OS Version flipping.

 

Thanks,

Shantanu