Hi
I am going the migration from package version v1 to v2 but maapi_init_upgrade() is failing
My Expectation is
Start Confd server with phase 0 with old CDB data , fxs and init files
perform the in service upgrade using Maapi APIs (maapi_perform_upgrade() , maapi_perform_upgrade & maapi_commit_upgrade) in confd phase 0 with new fxs and init files
once the upgrades successful then start the confd server phase 1 & phase 2
But upgrade is failing in step 2 Steps:
Starts confd server with phase 0 , server up and running in phase 0 --> OK
started migration from v1 to v2 using maapi apis , but maapi_init_upgrade() is failed --> NOK
below are the error
[2017-08-25 05:34:29] DEBUG internal error --> CONFD_ERR
Maapi Init upgrade failed ret = -1 confd_errno = 18
So question is it possible to do the in-service upgrade after phase 0 using maapi APIs?
Please let me know your opinion,
Can you attach the logs for this, which may give some hint at what the internal error could be.
One thing you may want to consider is giving this a try as a normal upgrade, that is, stop ConfD, copy the new .fxs files into your load path, then try the upgrade to see if that is successful. That way you’ll know whether it is something due to the changes in your models versus trying to do a more complex in-service upgrade.
Well, the “in-service upgrade” is assumed to be done when ConfD is “in service”:-), i.e. up and running - this is definitely not the case in phase0, since CDB is not yet available at that point (a better error message would of course be appropriate though). If you are starting ConfD, it’s really a lot simpler to do the “normal” upgrade driven by CDB as Greg suggests. It may be possible to do an in-service upgrade in phase1, but even then I don’t really see the point of doing that instead of the “normal” one.
Tried printing the confderr log… I see following in the beginning of the file…
*** {error,{badarg,size}}. Trying to open file as non wrapping log.
20-Sep-2017::10:50:41.374 <0.80.0> <0.86.0> ** Generic server cdb_op terminating
** Last message in was {perform_upgrade,