Mounting a filesystem from an unpartitioned disk is successful but throws errors on the gui on clicking "Apply" button.
Subsequent actions work as expected in spite of the previous error.
Mounting filesystem on unpartitioned disk succeeds but throws errors on GUI
-
- OMV 5.x
- resolved
- burnbasket
-
-
What is the output of blkid? I requested that multiple times already.
-
Sorry, I thought that was for the BTRFS thing, which is on https://github.com/openmediavault/openmediavault/pull/543
Here is the output for creation and query of the ext2 on raw disk:
root@openmediavault:~# mkfs.ext2 /dev/sdb
mke2fs 1.45.3 (14-Jul-2019)
Creating filesystem with 488378646 4k blocks and 122101760 inodes
Filesystem UUID: a164da10-d734-40fb-8fb9-d127bc6e4680
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: doneroot@openmediavault:~# e2label /dev/sdb omvData
root@openmediavault:~# blkid
/dev/sda1: UUID="710D-6276" TYPE="vfat" PARTUUID="34b64675-37c5-4609-bf7b-3a7583581c2c"
/dev/sda2: UUID="540e1951-019c-4745-88dd-f91788f2521d" TYPE="ext4" PARTUUID="0ed5021c-d409-4f2b-b83e-92c78c76a45a"
/dev/sda3: UUID="b0458068-f10f-4be9-ac01-2581d5db6990" TYPE="swap" PARTUUID="8e762cad-31b1-4c3f-8503-29bcd80cf353"
/dev/sdb: LABEL="omvData" UUID="a164da10-d734-40fb-8fb9-d127bc6e4680" TYPE="ext2" -
-
I also need the CLI output of
# omv-salt deploy run collectd
Please make sure the filesystem is the same as above, otherwise I need the blkid output again.
-
root@openmediavault:~# omv-salt deploy run collectd
debian:
Data failed to compile:
----------
Rendering SLS 'base:omv.deploy.collectd.plugins.disk' failed: Jinja error: 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 394, in render_jinja_tmpl
output = template.render(**decoded_context)
File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 51, in top-level template code
TypeError: 'NoneType' object is not subscriptable; line 51
---
[...]
# "fsname": "008530ff-a134-4264-898d-9ce30eeab927",
# }
{% if salt['mount.is_mounted'](mountpoint.dir) %}
{% set disk = salt['omv_utils.get_fs_parent_device_file'](mountpoint.fsname) %}
# Extract the device name from '/dev/xxx'.
{% set _ = disks.append(disk[5:]) %} <======================
{% endif %}
{% endfor %}
# Append the root filesystem.
{% set root_fs = salt['omv_utils.get_root_filesystem']() %}
{% set disk = salt['omv_utils.get_fs_parent_device_file'](root_fs) %}
[...]
---
root@openmediavault:~#This is still the same fs, I just created it a couple of minutes ago.
-
-
-
-
Confirmed: Mount of unpartitioned formatted disk on GUI works without error.
Test protocol attached.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!