When the xapp notification subscription
is done vesmgr makes a query of running
xapps and recreates the vespa configuration
and starts vespa.
Vespa is not started before we have got the
configuration from the xapp manager.
Change-Id: I286fff7ed33e5704e6b9a18d1dd5358b6282bbdb
Signed-off-by: Roni Riska <roni.riska@nokia.com>
subscribeXAppNotifications(chXAppSubscriptions)
subscribeXAppNotifications(chXAppSubscriptions)
- createConf([]byte{})
- startVesagent(chVesagent)
-
runVesmgr(chVesagent, chSupervision, chXAppNotifications, chXAppSubscriptions)
}
runVesmgr(chVesagent, chSupervision, chXAppNotifications, chXAppSubscriptions)
}
logger.Info("vesmgr main loop ready")
mystate := normalState
var xappStatus []byte
logger.Info("vesmgr main loop ready")
mystate := normalState
var xappStatus []byte
for {
select {
case supervision := <-chSupervision:
for {
select {
case supervision := <-chSupervision:
* the situation is fixed when the next
* xapp notif comes
*/
* the situation is fixed when the next
* xapp notif comes
*/
xappStatus, err = queryConf()
if err == nil {
killVespa(vesagent.process)
xappStatus, err = queryConf()
if err == nil {
killVespa(vesagent.process)
logger.Error("Failed to make xApp subscriptions, vesmgr exiting: %s", isSubscribed.err)
os.Exit(1)
}
logger.Error("Failed to make xApp subscriptions, vesmgr exiting: %s", isSubscribed.err)
os.Exit(1)
}
+ xappStatus, err = queryConf()
+ if err == nil {
+ createConf(xappStatus)
+ startVesagent(chVesagent)
+ }
# The Jenkins job uses this string for the tag in the image name
# for example nexus3.o-ran-sc.org:10004/my-image-name:0.0.1
---
# The Jenkins job uses this string for the tag in the image name
# for example nexus3.o-ran-sc.org:10004/my-image-name:0.0.1
---