Move Helm chart repo refresh from Sysinv conductor to agent
sysinv-conductor is stuck for 2 minutes during startup and unable to
handle any RPC requests. The refresh_helm_repo_information() function
executes “sudo -u sysadmin helm repo update” and waits for it.
Helm tries to reach external repo and timeouts after 2 minutes.
Any command (since sysinv-api is up and allows to execute them)
is expected to fail during this time window. Unblock conductor by
moving actual "helm repo update" invokation to sysinv agent.
Let conductor make a RPC call instead. And remove helm refresh from
conductor init - this would be called as part of application upload.
Change-Id: I29249146eaaebfe51a0f67e3ffaae9ce48784107
Closes-Bug: 1839665
Signed-off-by: Alex Kozyrev <email address hidden>
Reviewed: https:/ /review. opendev. org/681805 /git.openstack. org/cgit/ starlingx/ config/ commit/ ?id=783ed056966 344b4c3a715bae4 70a149798957d1
Committed: https:/
Submitter: Zuul
Branch: master
commit 783ed056966344b 4c3a715bae470a1 49798957d1
Author: Alex Kozyrev <email address hidden>
Date: Thu Sep 12 12:07:54 2019 -0400
Move Helm chart repo refresh from Sysinv conductor to agent
sysinv- conductor is stuck for 2 minutes during startup and unable to helm_repo_ information( ) function
handle any RPC requests. The refresh_
executes “sudo -u sysadmin helm repo update” and waits for it.
Helm tries to reach external repo and timeouts after 2 minutes.
Any command (since sysinv-api is up and allows to execute them)
is expected to fail during this time window. Unblock conductor by
moving actual "helm repo update" invokation to sysinv agent.
Let conductor make a RPC call instead. And remove helm refresh from
conductor init - this would be called as part of application upload.
Change-Id: I29249146eaaebf e51a0f67e3ffaae 9ce48784107
Closes-Bug: 1839665
Signed-off-by: Alex Kozyrev <email address hidden>