Opennebula 6.4.0 + Alpine Linux, problems launching Sunstone

Hello everyone!

I managed to write an APKbuild for Alpine linux 3.16.

Warning! Some terrible code :slight_smile:

So, APKbuild works, Oned runs, but I’m having problems with Sunstone - it can’t run.

The following error is in the logs:

fumoffu-test-node:~# cat /var/log/one/sunstone.log 
# Logfile created on 2022-07-09 19:31:07 +0300 by logger.rb/v1.5.0
Sat Jul 09 19:31:07 2022 [E]: Unknown alias: provisionactions
Sat Jul 09 19:31:16 2022 [E]: Unknown alias: provisionactions
Sat Jul 09 19:33:26 2022 [E]: Unknown alias: provisionactions
Sat Jul 09 19:36:27 2022 [E]: Unknown alias: provisionactions
fumoffu-test-node:~# 

Google does not help, I did not find a similar problem on the forum.

There is an assumption that there are problems with npm packages, because I had to patch some files before building sunstone:

Index: src/sunstone/public/package.json
--- src/sunstone/public/package.json
+++ src/sunstone/public/package.json
@@ -6,7 +6,7 @@
     "grunt-cli": "1.3.2",
     "grunt-contrib-requirejs": "1.0.0",
     "grunt-contrib-watch": "1.1.0",
-    "grunt-sass": "2.1.0",
-    "node-sass": "4.14.1"
+    "grunt-sass": "3.1.0",
+    "node-sass": "7.0.1"
   }
 }
Index: src/sunstone/public/Gruntfile.js
--- src/sunstone/public/Gruntfile.js
+++ src/sunstone/public/Gruntfile.js
@@ -14,6 +14,8 @@
 /* limitations under the License.                                             */
 /* -------------------------------------------------------------------------- */

+const sass = require('node-sass');
+
 module.exports = function(grunt) {
   grunt.initConfig({
     pkg: grunt.file.readJSON("package.json"),
@@ -24,7 +26,8 @@
       },
       dist: {
         options: {
-          outputStyle: "compressed"
+          outputStyle: "compressed",
+	         implementation: sass
         },
         files: {
           "css/app.css": "scss/app.scss"

How to understand what is the problem?

Thanks everyone in advance!

Hmm, maybe a problem with the Ruby?

In file /etc/one/sunstone-views/kvm/cloud.yml i see provisionactions

Looks like anchored_content. I need to dig Yaml :slight_smile:

My issue is found in the official git.

Тhat is, it turns out that I need to use other Ruby version*?

I tried to build Opennebula 6.4.0 for Alpine 3.15 - everything went well. Ruby version 3.0.
Alpine 3.16 has Ruby 3.1.

Updated link to apkbuild.

1 Like

Nice job done! Tried to containerise it yet?

Thx!

Tried to containerise it yet?

Not yet, i writing APKBUILD to deploy Ruby-gems and trying to test how it all works under Alpine linux.