Hello Aniello Actually we followed a different approach, as we first built our plugin using a standalone opendaylight instance which of the same release of our ONAP instance (in our case it was fluorine)
Then to port this plugin to our ONAP SDNC instance I followed the below steps : 1. Create .kar files of the plugin from the opendaylight instance using command : "kar:create <plugin-name>" 2. On a fresh ONAP SDN-C installation, we copied the .kar files to “/opt/opendaylight/deploy/” 3. Replace the “/opt/opendaylight/etc/org.apache.karaf.features.cfg” with a new one that has our plugin details in prepended in both “featuresRepositories” & “featuresBoot” sections 4. Clear the cache folder “opt/opendaylight/data/cache/” 5. Restart the sdnc docker container Brgds Mohamed Waly Orange Labs Egypt Email : [email protected]<mailto:[email protected]> This e-mail (including any attachments) is confidential and may be legally privileged. If you are not an intended recipient or an authorized representative of an intended recipient, you are prohibited from using, copying or distributing the information in this e-mail or its attachments. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete all copies of this message and any attachments. Thank you. From: Aniello Paolo Malinconico [mailto:[email protected]] Sent: Monday, January 13, 2020 15:56 To: MOHAMED WALY Mohamed O-EG/HRCS; [email protected] Subject: Re: [onap-discuss] Unable to install features in SDNC Dublin and Elalto Hi all, I want to install a new custom plugin into SDNC, Dublin branch. The system returns several errors (similar to Abdel's ones) when I am installing the plugin (via zip file). My procedure to create a custom plugin is the following: 1. Clone the sdnc-northbound project form github, dublin branch 2. Modify one of the exiting plugin into the sdnc-northbound folder (i.e. the vnfapi folder) * Delete any reference to the old vnf api, replacing with the new logic implementation * Modify all pom.xml according to the new pluging name/verison 3. Run maven script in order to create the zip file containing all the login plugin plus the installation script install-feauture.sh 4. Copy zip file to sdnc container 5. Lanch the install-feauture.sh script After all these steps, the karaf console returns several errors and some of existing plugins (i.e. generic-resource, vnfapi ecc) go into GracePeriod State . I have tried to add the plugins details to /opt/opendaylight/etc/org.apache.karaf.features.cfg : featuresRepositories = mvn:org.onap.sdnc.northbound/sdnc-testapi/1.5.3-SNAPSHOT/xml/features, file:${karaf.home}/etc/7db1b195-6341-4654-a343-4d6073c8d307.xml, mvn:org.onap.ccsdk.sli.core/ccsdk-sli-core-all/0.4.4/xml/features, mvn:org.on....................... # # Comma separated list of features to install at startup # featuresBoot = sdnc-testapi, ee197ccf-3af7-4adc-a047-5eb910fc5525,odl-restconf-all,,................................... And then I tried to restart the container, but it returns same errors as Abdel. What is your procedure to create a custom sdnc plugin? What are u meaning for '.kar files'? Thanks, Aniello Paolo Malinconico _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19790): https://lists.onap.org/g/onap-discuss/message/19790 Mute This Topic: https://lists.onap.org/mt/39406803/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
