Re-try initializing the CLM API when it returns SA_AIS_ERR_UNAVAILABLE, so that
the NTF service properly waits for the node to become configured by the
autoscaling functionality.
---
 src/ntf/ntfd/ntfs_clm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ntf/ntfd/ntfs_clm.c b/src/ntf/ntfd/ntfs_clm.c
index 4407faf00..1f63def8f 100644
--- a/src/ntf/ntfd/ntfs_clm.c
+++ b/src/ntf/ntfd/ntfs_clm.c
@@ -117,7 +117,8 @@ void *ntfs_clm_init_thread(void *cb)
        TRACE_ENTER();
 
        rc = saClmInitialize_4(&_ntfs_cb->clm_hdl, &clm_callbacks, &clmVersion);
-       while ((rc == SA_AIS_ERR_TRY_AGAIN) || (rc == SA_AIS_ERR_TIMEOUT)) {
+       while ((rc == SA_AIS_ERR_TRY_AGAIN) || (rc == SA_AIS_ERR_TIMEOUT) ||
+              (rc == SA_AIS_ERR_UNAVAILABLE)) {
                osaf_nanosleep(&kHundredMilliseconds);
                rc = saClmInitialize_4(&_ntfs_cb->clm_hdl, &clm_callbacks,
                                       &clmVersion);
-- 
2.13.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to