host attributes need to reflect that initial inventory has been collected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
John Kung |
Bug Description
Brief Description
-----------------
The system inventory agent needs to explicitly indicate that inventory collection has finished for each host. Our current method for determining whether a host has been inventoried successfully is to wait for the disk list to be non-empty. That worked well until recently when the host file system feature was merged. The system inventory agent now collects/creates host file systems after the disk list is populated so a provisioning system waiting on the disk list will move ahead to unlock the node prematurely before the host file systems have been created and reported to system inventory. This can lead to undefined behavior either on the system being provisioned or the provisioning system that is configuring the target system.
If we do not fix this properly with an explicit/
Severity
--------
major, the system may not be configured properly if it is unlocked prior to the end of inventory collection.
Steps to Reproduce
------------------
This is a timing issue so there are no reliable steps to reproduce the issue.
Expected Behavior
------------------
The should be a host attribute that reports whether the system inventory agent has completed the initial inventory collection (i.e., something like initial-
Actual Behavior
----------------
There is no deterministic indicator today, we need to rely on knowing what step the agent will run last and poll for that completion.
Reproducibility
---------------
unknown
System Configuration
-------
Any
Branch/Pull Time/Commit
-------
20190718T013000Z
Last Pass
---------
unknown
Timestamp/Logs
--------------
n/a
Test Activity
-------------
Developer testing
Marking as stx.2.0 as the current approach is not deterministic