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

[Bug] No device scan when enabling it from runtime until the next devscan period #8

Open
sbengo opened this issue Mar 13, 2018 · 0 comments

Comments

@sbengo
Copy link
Collaborator

sbengo commented Mar 13, 2018

Hello,

When a HMC device is configured when active = false and the user makes a reload conf or iniitialize the agent, the status of the device is set up as:

Parameter Value
Active false
Connected true

When the user wants to activate the device, the following code section is reached:

case "enabled":
status := val.Data.(bool)
b.rtData.Lock()
b.DeviceActive = status
b.Infof("device STATUS ACTIVE [%t] ", status)
b.rtData.Unlock()

And it tries to retrieve data on the following state:

Parameter Value
Active true
Connected true

As it seems the device connected = true it doesn't scan the devices and it won't do it until the PendingLoops reaches 0

The following log shows the errors:

time="2018-03-09 12:54:13" level=info msg="[*hmc.HMCServer] [Test_HMC]Received Message...enabled: true"
time="2018-03-09 12:54:13" level=info msg="[*hmc.HMCServer] [Test_HMC]device STATUS  ACTIVE  [true] " 
time="2018-03-09 12:54:54" level=info msg="[*hmc.HMCServer] [Test_HMC]Init gather cycle for device Test_HMC" 
time="2018-03-09 12:54:54" level=error msg="[*hmc.HMCServer] [Test_HMC]Error in  import Data to HMC Test_HMC: ERROR: Any Scanned SM/LPAR devices detected" 
time="2018-03-09 12:54:54" level=debug msg="[*hmc.HMCServer] [Test_HMC]Check HMC Connectivity: Nothing to do in the HMCSERVER" 
time="2018-03-09 12:54:54" level=info msg="STATS HMC :  polling took [0.000000 seconds] " 
time="2018-03-09 12:54:54" level=info msg="STATS HMC: last scan send took [0.000000 seconds]" 
time="2018-03-09 12:54:54" level=info msg="STATS INFLUX: influx send took [0.000000 seconds]" 
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