Deepak Nadig Anantha

Recent Posts


Recent Comments


Archives


Categories


Meta


ONOS Fuel plugin for OPNFV Danube

Deepak Nadig AnanthaDeepak Nadig Anantha

This post provides a quick-fix for installing the fuel-plugin-onos for OPNFV Danube release.

First clone the fuel-plugin-onos repository on the fuel node:

git clone git://git.openstack.org/openstack/fuel-plugin-onos

Install the fuel plugin builder with:

pip install fuel-plugin-builder

To build the plugin use:

fpb --debug --build fuel-plugin-onos/

If your build fails and you see the following error, see the fix below.

DEBUG 23819 (utils) + wget http://download.oracle.com/otn/java/jdk/8u51-b16//jdk-8u51-linux-x64.tar.gz -P /root/fuel-plugin-onos/deployment_scripts/puppet/modules/onos/files
DEBUG 23819 (utils) -- --  http://download.oracle.com/otn/java/jdk/8u51-b16//jdk-8u51-linux-x64.tar.gz
DEBUG 23819 (utils) Resolving download.oracle.com (download.oracle.com)... 104.118.104.33, 104.118.104.34
DEBUG 23819 (utils) Connecting to download.oracle.com (download.oracle.com)|104.118.104.33|:80... connected.
DEBUG 23819 (utils) HTTP request sent, awaiting response... 302 Moved Temporarily
DEBUG 23819 (utils) Location: https://edelivery.oracle.com/akam/otn/java/jdk/8u51-b16/jdk-8u51-linux-x64.tar.gz [following]
DEBUG 23819 (utils) -- --  https://edelivery.oracle.com/akam/otn/java/jdk/8u51-b16/jdk-8u51-linux-x64.tar.gz
DEBUG 23819 (utils) Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.4.124.229, 2600:1418:3:18b::2d3e, 2600:1418:3:1a2::2d3e
DEBUG 23819 (utils) Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.4.124.229|:443... connected.
DEBUG 23819 (utils) HTTP request sent, awaiting response... 302 Moved Temporarily
DEBUG 23819 (utils) Location: https://login.oracle.com/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.2~CA55CD32~0DCBA21B9B4F20333F9FFA87A839AC88983E264AC099D252C75E94E8E1AC0A30C1F86D1A19AC081DD07D38A22669AA519DA575C9B1AD7BF840A1352D634D6766E3E82BAC9DFCCB08289A3E96596E3213334F9DEEDAB2456FE0F35FF44B7667EB992E6A8F091390DF96E195E8A24B3026362372F6CB40D53B08530B15C8341C4CF06EEFD083A0F647F1E41B66722CBC0E12BB6F2B256CA762D566C1D7A9B8956B2A276D287BF7FCADE149E4C1D5E2E1DAFF8FD0DE8F76DD4AAAECA7C1B13EA364673297C53B48CE79D4234595F2C616A2ED36F43B9AB19C7A267CA6EE94C35D7C1901FCCC56138C6517499BDBEB36764A561893615433E9D6 [following]
DEBUG 23819 (utils) -- --  https://login.oracle.com/pls/orasso/orasso.wwsso_app_admin.ls_login?Site2pstoreToken=v1.2~CA55CD32~0DCBA21B9B4F20333F9FFA87A839AC88983E264AC099D252C75E94E8E1AC0A30C1F86D1A19AC081DD07D38A22669AA519DA575C9B1AD7BF840A1352D634D6766E3E82BAC9DFCCB08289A3E96596E3213334F9DEEDAB2456FE0F35FF44B7667EB992E6A8F091390DF96E195E8A24B3026362372F6CB40D53B08530B15C8341C4CF06EEFD083A0F647F1E41B66722CBC0E12BB6F2B256CA762D566C1D7A9B8956B2A276D287BF7FCADE149E4C1D5E2E1DAFF8FD0DE8F76DD4AAAECA7C1B13EA364673297C53B48CE79D4234595F2C616A2ED36F43B9AB19C7A267CA6EE94C35D7C1901FCCC56138C6517499BDBEB36764A561893615433E9D6
DEBUG 23819 (utils) Resolving login.oracle.com (login.oracle.com)... 209.17.4.8
DEBUG 23819 (utils) Connecting to login.oracle.com (login.oracle.com)|209.17.4.8|:443... connected.
DEBUG 23819 (utils) HTTP request sent, awaiting response... 401 Authorization Required
DEBUG 23819 (utils) Authorization failed.
ERROR 23819 (cli) Shell command executed with "6" exit code: ./pre_build_hook 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/cli.py", line 126, in main
    perform_action(args)
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/cli.py", line 106, in perform_action
    actions.make_builder(args.build).run()
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/actions/build.py", line 73, in run
    self.run_pre_build_hook()
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/actions/build.py", line 86, in run_pre_build_hook
    utils.exec_cmd(self.pre_build_hook_cmd, self.plugin_path)
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/utils.py", line 95, in exec_cmd
    'exit code: {1} '.format(exit_code, cmd))
ExecutedErrorNonZeroExitCode: Shell command executed with "6" exit code: ./pre_build_hook 
Unexpected error
Shell command executed with "6" exit code: ./pre_build_hook 

Edit the fuel-plugin-onos/pre_build_hook and deployment_scripts/puppet/modules/onos/manifests/init.pp files and update the JDK URL and filenames to the latest version. You can check these HERE.

...
jdk_url=http://download.oracle.com/otn-pub/java/jdk/8u131-b11/
...
...
jdk=jdk-8u131-linux-x64.tar.gz

You should now be able to build the plugin to create an RPM file and install the onos-0.10-0.10.0-1.noarch.rpm with:

fuel plugins --install fuel-plugin-onos/onos-0.10-0.10.0-1.noarch.rpm
Comments 0
There are currently no comments.

%d bloggers like this: