mirror of https://github.com/sipwise/ngcpcfg.git
Otherwise ngcp-installer failed to install PRO/Carrier as we build the file /etc/ngcp_mgmt_node the very first time on the first MGMT node: > +08:22:48 cfg_build_templates > +08:22:48 cfg_build_configs /etc/ngcp_mgmt_node > +08:22:48 build_configs=($1) > +08:22:48 declare -a build_configs > +08:22:48 log_info 'Generating default configuration files /etc/ngcp_mgmt_node' > +08:22:48 tee -a /tmp/ngcp-installer.log > +08:22:48 echo 'Generating default configuration files /etc/ngcp_mgmt_node' > Generating default configuration files /etc/ngcp_mgmt_node > +08:22:48 ngcpcfg build /etc/ngcp_mgmt_node > cat: /etc/ngcp_mgmt_node: No such file or directory > +08:22:48 log_die 'Error running '\''ngcpcfg build'\''' Checking the file availability is not enough here, the next error is: > (sp1)root@sp1:/# ngcpcfg build > /usr/share/ngcp-ngcpcfg/scripts//check: line 83: NGCP_IS_MGMT: unbound variable > (sp1)root@sp1:/# cat /etc/default/ngcp-roles > NGCP_TYPE="sppro" > (sp1)root@sp1:/# It happens because /etc/default/ngcp-roles is a fake one at this stage. Handling NGCP_IS_MGMT properly is also not enough: > (sp1)root@sp1:/# ngcpcfg build > 2018-07-16 16:49:32: Error: Remote origin of ngcpcfg is '/mnt/glusterfs/ngcpcfg-share', expected: 'sp:/mnt/glusterfs/ngcpcfg-share'. > 2018-07-16 16:49:32: Error: NOTE: execute `cd /etc/ngcp-config ; git remote set-url origin 'sp:/mnt/glusterfs/ngcpcfg-share'` to adjust setting. > 2018-07-16 16:49:32: Error: NOTE: perform `ngcpcfg clean --all` to recreate local master branch from remote. > (sp1)root@sp1:/# Which happens because the peer is not yet configured at the moment (first node installation). Introducing new internal option '--no-check-origin' to skip the test into installer. Change-Id: I0265c65f45972e92ca92320871a7ef29f8904fecchanges/31/22531/4
parent
b6983c6434
commit
e218928a60
Loading…
Reference in new issue