How to enable our own appmarket on OpenNebula 4.14 Beta 1

Hi all,

I am a bit confuse about to configure on the yaml files to show our own appmarket. In the current version, there are the following lines referring to it:

[root@test-sunstone4 sunstone-views]# grep -i market admin.yaml.rpmsave 
apptools-appmarket-dashboard: true
apptools-appmarket-appliances: true
marketplace-tab: false
marketplace-tab:
        marketplace_info_tab: false
        Marketplace.refresh: false
        Marketplace.import: false
apptools-appmarket-dashboard:
apptools-appmarket-appliances:
        appmarketplace_info_tab: true
        appmarketplace_jobs_tab: true
        appmarketplace_template_tab: true
        appmarketplace_jobs_tab:
        AppMarket.refresh: true
        AppMarket.import: true
        AppMarket.delete: true
        AppMarket.convert: true
        AppMarket.create_dialog: true

But now, there are only these lines:

[root@test-sunstone4 sunstone-views]# grep -i market admin.yaml
marketplace-tab: false
marketplace-tab:
        marketplace_info_tab: false
        Marketplace.refresh: false
        Marketplace.import: false

So, I am not sure how to configure the yaml file in order that it is only showed our own marketplace. I would appreciate any help about it.

Thanks in advance,
Esteban

Hi,

Please, ignore this post.

It is my fault, I had forgot that it is necessary to add these fields by hand to the yaml file.

Sorry for any inconvenience,
Esteban

Hi,

Sorry for reopening this topic again but I am not able to see our appmarket in the OpenNebula 4.14.1.

I have restored the sunstone views/configuration on the sunstone node according to https://github.com/OpenNebula/addon-appmarket/blob/master/doc/installation_and_configuration.md

But I don’t see any tab on the sunstone related to the appmarket. Did anyone else experiment this issue?

I would appreciate any help on it.

Thanks in advance,
Esteban

Hi,

The appmarket addon does not work with one-4.14beta yet. You can point the current marketplace tab to your custom appmarket (sunstone-server.conf), but you cannot use the tabs included in the appmarket addon.

Cheers

Hi Daniel,

Thank you very much for answering so fast :smile:

Ok, we will test it as soon as it is ready :smile:

Regards,
Esteban

Hi Daniel, Do you know if the appmarket addon is working for OpenNebula 4.14?. Right now, It isn’t in Beta. I have updated OpenNebula from 4.12 to 4.14, everything looks good, but I can’t see the appmarket addon in the OpenNebula’s dashboard.
Note:

Regards.

Hi,

We are in the process of upgrading AppMarket addon for one-4.14, but it depends on some changes we did to improve the external tabs support in Sunstone. We will release the new AppMarket version as soon as one-4.14.2 is released.

Cheers

Thanks a lot for your response. I’ll be waiting the upgrade AppMarket addon.

Regards.
Yessel Briceño

Hi Daniel, I’m testing the new version of OpenNebula and Appmarket. But I have a issue. the following task that I done:

Wed Nov 25 17:45:09 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:45:09] “GET /dist/main.js?v=4.14.2 HTTP/1.1” 304 - 0.0013
Wed Nov 25 17:45:09 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:45:09] “GET /bower_components/fontawesome/fonts/fontawesome-webfont.woff2?v=4.3.0 HTTP/1.1” 304 - 0.0012
Wed Nov 25 17:45:09 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:45:09] “GET /css/opensans/opensans.woff HTTP/1.1” 304 - 0.0009
Wed Nov 25 17:45:10 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:45:10] “GET /images/favicon.ico HTTP/1.1” 200 - 0.0543
Wed Nov 25 17:45:52 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:45:52] “GET / HTTP/1.1” 200 - 0.1010
Wed Nov 25 17:46:19 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:46:19] “GET / HTTP/1.1” 200 - 0.0840
Wed Nov 25 17:46:19 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:46:19] “GET /locale/languages/en_US.js?v=4.14.2 HTTP/1.1” 304 - 0.0017
Wed Nov 25 17:46:19 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:46:19] “GET /css/app.min.css?v=4.14.2 HTTP/1.1” 304 - 0.0018
Wed Nov 25 17:46:19 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:46:19] “GET /dist/main.js?v=4.14.2 HTTP/1.1” 304 - 0.0016
Wed Nov 25 17:46:19 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:46:19] “GET /bower_components/fontawesome/fonts/fontawesome-webfont.woff2?v=4.3.0 HTTP/1.1” 304 - 0.0012
Wed Nov 25 17:46:19 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:46:19] “GET /css/opensans/opensans.woff HTTP/1.1” 304 - 0.0007
Wed Nov 25 17:46:20 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:46:20] “GET /images/favicon.ico HTTP/1.1” 200 - 0.0037
Wed Nov 25 17:47:44 2015 [I]: 10.65.52.30 - - [25/Nov/2015 17:47:44] “GET /dist/main.js.map HTTP/1.1” 200 - 0.6770

Hi,

In OpenNebula 4.14.2 the yaml configuration files of the views have changed (/etc/one/sunstone-views/*.yaml). Please check the differences between your files and the ones in the repo and yours. For example, the enabled_tabs attribute is now and array instead of a hash

I would like to comment that we are also facing the same issue commented by @ybriceno .

According to http://docs.opennebula.org/4.14/integration/references/sunstone_dev.html#adding-custom-tabs , it is necessary modify /usr/lib/one/sunstone/public/app/main.js file to include the AppMarket tabs as dependencies of the app module and also the user and admin yaml files for enabling appmarket tabs. These last ones we already did but for main.js, we modified but then I see we need to execute grunt requirejs command according to link http://docs.opennebula.org/4.14/integration/references/sunstone_dev.html#adding-custom-tabs but this one does not work for us:

[root@test-sunstone4 one]# cd /usr/lib/one/sunstone/public/app/
[root@test-sunstone4 app]# grunt requirejs

Local Npm module “grunt-sass” not found. Is it installed?
Local Npm module “grunt-contrib-watch” not found. Is it installed?
Local Npm module “grunt-contrib-requirejs” not found. Is it installed?
Warning: Task “requirejs” not found. Use --force to continue.
Aborted due to warnings.

Probably, I am missing something but in any case, I would appreciate any help on this.

Thanks in advance,
Esteban

1 Like

I answer to myself:

About the grunt requirejs, we were able to do it by installing grunt-contrib-requirejs globally:

npm install grunt-contrib-requirejs

grunt requirejs

Local Npm module “grunt-sass” not found. Is it installed?
Local Npm module “grunt-contrib-watch” not found. Is it installed?

   Running "requirejs:compileCSS" (requirejs) task

   Running "requirejs:compileJS" (requirejs) task

   Done, without errors.

I am not really sure if previous command was ok or not.

But we still have the same issue, for some reason never load the OpenNebula Dashboard(loading loading).

I need to check the yaml files, maybe, as @dmolina commented, we are missing something on the yaml files.

Thanks,
Esteban

1 Like

I answer to myself again, indeed, It was due to the /etc/one/sunstone-views/*.yaml . In previous release, the “enabled_tabs” were true or false but now, the true/false thing does exist any more on the enable tabs. For example:

  • 4.12.1:

    enabled_tabs:
    dashboard-tab: true
    system-tab: false

  • 4.14.2:

      enabled_tabs:
         -  dashboard-tab
        #- system-tab
    

We corrected this and now the dashboard loads correctly.

Thanks,
Esteban

1 Like

Hi Daniel.

Let me share with you, Finally. I could upgrade OpenNebuela 4.14.2 with Appmarket 2.1.3, both work fine. Was necessary run grunt requirejs command. Thanks to @esfreire. I did the following, I’m not sure if the order is ok, but it works fine.:

  1. cd /usr/lib/one/sunstone/public/app/
  2. grunt requirejs
  3. npm install grunt-contrib-requirejs
  4. npm install grunt-sass grunt-contrib-watch
  5. grunt requirejs

Sunstone Develompent Dependencies

  1. npm install -g bower
  2. npm install -g grunt
  3. npm install -g grunt-cli
  4. npm install
  5. bower install
  6. bower install --allow-root
  7. grunt sass
  8. grunt requirejs

Finally show that any errors like this:

root@opennebula-test1:# grunt requirejs
Running “requirejs:compileCSS” (requirejs) task

Running “requirejs:compileJS” (requirejs) task

Done, without errors.