Giter VIP home page Giter VIP logo

Comments (7)

rp- avatar rp- commented on August 27, 2024

is there more info in the journal?
journalctl -u opennebula

from addon-linstor.

qwykx avatar qwykx commented on August 27, 2024

Here is the corresponding error from journalctl

Apr 20 08:00:47 HVS0501 /mkfs[8187]: INFO Entering datastore mkfs.
Apr 20 08:00:47 HVS0501 /mkfs[8187]: INFO running shell command: bash -c source /var/lib/one/remotes//datastore/libfs.sh && set_up_datastore /var/lib/one//datastores/128 / /var/tmp
Apr 20 08:00:47 HVS0501 /mkfs[8187]: INFO Creation of a new resource: OpenNebula-Image-107
Apr 20 08:00:47 HVS0501 /mkfs[8187]: INFO Deploying resource 'OpenNebula-Image-107' using resource group 'onegroup', prefer node: None
Apr 20 08:00:55 HVS0501 /mkfs[8187]: INFO ssh 'sto0501' cmd: set -e ; export PATH=/usr/sbin:/sbin:$PATH ; source /var/lib/one/remotes/etc/datastore/datastore.conf ; FS_OPTS=$(eval $(echo "echo \$FS_OPTS_raw")) ; $(mkfs_command "/dev/drbd1018" "raw" "10240" "$SUPPORTED_FS" "" "$FS_OPTS")
Apr 20 08:00:56 HVS0501 /mkfs[8187]: ERROR command ['bash', '-c', 'source /var/lib/one/remotes//scripts_common.sh && ssh_exec_and_log "sto0501" "set -e ; export PATH=/usr/sbin:/sbin:$PATH ; source /var/lib/one/remotes/etc/datastore/datastore.conf ; FS_OPTS=$(eval $(echo "echo \\$FS_OPTS_raw")) ; $(mkfs_command "/dev/drbd1018" "raw" "10240" "$SUPPORTED_FS" "" "$FS_OPTS")" "Error mkfs_command for resource OpenNebula-Image-107(OpenNebula-Image-107), on sto0501"'] failed: b'ERROR: bash: Command "set -e ; export PATH=/usr/sbin:/sbin:/bin:/sbin:/usr/bin:/usr/lib/one/sh/override:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ; source /var/lib/one/remotes/etc/datastore/datastore.conf ; FS_OPTS= ; qemu-img create -f raw /dev/drbd1018 10240M" failed: bash: line 3: /var/lib/one/remotes/etc/datastore/datastore.conf: No such file or directory\nERROR MESSAGE --8<------\nError mkfs_command for resource OpenNebula-Image-107(OpenNebula-Image-107), on sto0501\nERROR MESSAGE ------>8--\n'

from addon-linstor.

rp- avatar rp- commented on August 27, 2024

From the error it looks like you don't have the file /var/lib/one/remotes/etc/datastore/datastore.conf on your host sto0501, my test setup has this.
Can you show also your datastore settings: onedatastore show <ds_ID>

from addon-linstor.

qwykx avatar qwykx commented on August 27, 2024

The server sto0501 is a dedicated storage server and is not a compute node for opennebula. But it might be that I got the instructions wrong from linstor and have therefore configured it wrong somehow.

ALLOW_ORPHANS="yes"
BRIDGE_LIST="sto0501 sto0502"
CLONE_TARGET="SELF"
CLONE_TARGET_SHARED="SELF"
CLONE_TARGET_SSH="SELF"
COMPATIBLE_SYS_DS="129"
DISK_TYPE="BLOCK"
DISK_TYPE_SHARED="BLOCK"
DISK_TYPE_SSH="BLOCK"
DS_MAD="linstor"
LINSTOR_CONTROLLERS="10.199.99.19:3370"
LINSTOR_RESOURCE_GROUP="onegroup"
LN_TARGET="NONE"
LN_TARGET_SHARED="NONE"
LN_TARGET_SSH="NONE"
RESTRICTED_DIRS="/"
SAFE_DIRS="/var/tmp"
TM_MAD="linstor"
TM_MAD_SYSTEM="ssh,shared"
TYPE="IMAGE_DS"

from addon-linstor.

rp- avatar rp- commented on August 27, 2024

I checked another fresh test setup, there the file is also missing. 🤷

As a quick fix you can edit: /var/lib/one/remotes/datastore/linstor/mkfs
and remove line 84: source {remotes}etc/datastore/datastore.conf ; \

from addon-linstor.

qwykx avatar qwykx commented on August 27, 2024

Working now 👍🏼

from addon-linstor.

rp- avatar rp- commented on August 27, 2024

I released a new version with a correct fix: v1.1.1

from addon-linstor.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.