Overview

In order to avoid name clashes between repositories in Nordix, decisions was made that every Open Source upstream project should have it's own namespace in Nordix gerrit. This was implemented already for Acumos, OpenDev and OpenDaylight projects, we have to migrate the ONAP repositories under it's own namespace - 'onap' as well. This means that existing ONAP repository URL path will be updated with namespace, for example:  https://gerrit.nordix.org/policy/engine will be changed to https://gerrit.nordix.org/onap/policy/engine.

Updating local copy of ONAP repository to new remote URL location

Cloning repository

1. The easiest and safest way is to clone repository again from new location using updated heis-clone.sh script which also set correctly the gerrit remote for 'git review'.

heis-clone.sh <gerrit-userid> onap/policy/engine engine

Note:  Please refresh (pull) the tools repo in order to get new version of heis-clone.sh script. 

2. If you prefer to clone it manually, just use the new location:

git clone ssh://<gerrit-userid>@gerrit.nordix.org:29418/onap/policy/engine

In this case you plan to use the 'git review' for this repository you have to set up the gerrit remote manual.

First check the origin remote for the given ONAP repository:

$ git remote -v 
origin	ssh://<gerrit-userid>@gerrit.nordix.org:29418/onap/policy/engine (fetch)
origin	ssh://<gerrit-userid>@gerrit.nordix.org:29418/onap/policy/engine (push)

 After that just set the gerrit remote  with the same URL as the origin:

git remote add gerrit ssh://<gerrit-userid>@gerrit.nordix.org:29418/onap/policy/engine

Pointing local repository to new URL location 

If for whatever reason the local copy of the repository can't be cloned again. The origin remote have to be updated with new URL to make sure it contains the 'onap' namespace part. For example: 

git remote set-url origin ssh://<user_name>@gerrit.nordix.org:29418/onap/policy/engine

Again, In this case you plan to use the 'git review' for this repository you have to set the gerrit remote manual to updated URL location. 

git remote set-url gerrit ssh://<user_name>@gerrit.nordix.org:29418/onap/policy/engine

ONAP repos migration status

The decisions was made that we will start with ONAP repositories that don't have a pending review in the Nordix Gerrit. After the given ONAP repository is migrated to new location the access to the old repository will be blocked and after 2 weeks the old repository will be deleted from Nordix. Here is the list of the ONAP repositories and it current migration status:

RepositoryMigratedPending reviewDeletedNew location
policy/engineYESNOYESonap/policy/engine
policy/commonYESNOYESonap/policy/common
policy/coreYESNOYESonap/policy/core
policy/distributionYESNOYESonap/policy/distribution
policy/dockerYESNOYESonap/policy/docker
policy/drools-applicationsYESNOYESonap/policy/drools-applications
policy/drools-pdpYESNOYESonap/policy/drools-pdp
policy/guiYESNOYESonap/policy/gui
policy/oomYESNOYESonap/policy/oom
policy/parentYESNOYESonap/policy/parent
policy/pdpYESNOYESonap/policy/pdp
policy/xacml-pdpYESNOYESonap/policy/xacml-pdp
policy/papYESNOYESonap/policy/pap
policy/apiYESNOYESonap/policy/api
policy/apex-pdpYESNOYESonap/policy/apex-pdp
policy/modelsYESNOYESonap/policy/models
aai/oomYESNOYESonap/aai/oom
aai/schema-serviceYES
NOYESonap/aai/schema-service
appcYESNO
YESonap/appc
appc/cdtYES
NOYESonap/appc/cdt
appc/deploymentYES
NOYESonap/appc/deployment
appc/parentYES
NOYESonap/appc/parent
ccsdk/appsYES
NOYESonap/ccsdk/apps
ccsdk/cdsYES
NO
YESonap/ccsdk/cds

dcaegen2

YES
NO
YESonap/dcaegen2
dcaegen2/collectorsYES
NOYESonap/dcaegen2/collectors
dcaegen2/collectors/datafileYES
NO
YESonap/dcaegen2/collectors/datafile
dcaegen2/deploymentsYES
NOYESonap/dcaegen2/deployments
dcaegen2/platform/blueprintsYES
NO
YESonap/dcaegen2/platform/blueprints
dcaegen2/services/pm-mapperYES
NO
YESonap/dcaegen2/services/pm-mapper
dcaegen2/services/prhYES
NOYESonap/dcaegen2/services/prh
dmaap/buscontrollerYES
NOYESonap/dmaap/buscontroller
dmaap/datarouterYES
NO
YESonap/dmaap/datarouter
dmaap/dbcapiYES
NOYESonap/dmaap/dbcapi
integrationYES
NO
YESonap/integration
integration/csitYES
NO
YESonap/integration/csit
oomYES
NO
YESonap/oom
oom/offline-installerYES
NO
YESonap/oom/offline-installer
portalYES
NOYESonap/portal
sdcYES
NO
YESonap/sdc
sdnc/oamYES
NOYESonap/sdnc/oam
soYES
NO
YESonap/so
so/docker-configYES
NO
YESonap/so/docker-config
testsuiteYES
NOYESonap/testsuite
vidYESNOYESonap/vid
ci-managementYESNOYESonap/ci-management



  • No labels