netgroup-polito / CrownLabs

Kubernetes-based Remote Laboratories
https://crownlabs.polito.it
Apache License 2.0
105 stars 41 forks source link

The NextCloud disk is not mounted in xubuntu 18.04 #214

Closed giorio94 closed 4 years ago

giorio94 commented 4 years ago

Problem description

The cloud-init script fails to configure and mount the NextCloud disk in xubuntu 18.04

Logs

cloud-init log

``` 2020-04-20 16:35:37,943 - stages.py[INFO]: Loaded datasource DataSourceNoCloud - DataSourceNoCloud [seed=/dev/vdb][dsmode=net] 2020-04-20 16:35:38,084 - stages.py[INFO]: Applying network configuration from fallback bringup=False: {'ethernets': {'enp1s0': {'dhcp4': True, 'set-name': 'enp1s0', 'match': {'macaddress': '26:54:06:c4:9b:b0'}}}, 'version': 2} {'type': 'physical', 'name': 'enp1s0', 'mac_address': '26:54:06:c4:9b:b0', 'match': {'macaddress': '26:54:06:c4:9b:b0'}, 'subnets': [{'type': 'dhcp4'}]} {'enp1s0': {'dhcp4': True, 'set-name': 'enp1s0', 'match': {'macaddress': '26:54:06:c4:9b:b0'}}} 2020-04-20 16:35:38,850 - util.py[WARNING]: Failed loading yaml blob. Invalid format at line 8 column 6: "while scanning a plain scalar in "", line 8, column 6: - [https://crownlabs.polito.it/clou ... ^ found unexpected ':' in "", line 8, column 11: - [https://crownlabs.polito.it/cloud/rem ... ^ Please check http://pyyaml.org/wiki/YAMLColonInFlowContext for details." 2020-04-20 16:35:38,862 - util.py[WARNING]: Failed loading yaml blob. Invalid format at line 8 column 6: "while scanning a plain scalar in "", line 8, column 6: - [https://crownlabs.polito.it/clou ... ^ found unexpected ':' in "", line 8, column 11: - [https://crownlabs.polito.it/cloud/rem ... ^ Please check http://pyyaml.org/wiki/YAMLColonInFlowContext for details." 2020-04-20 16:35:38,862 - util.py[WARNING]: Failed at merging in cloud config part from part-001 Traceback (most recent call last): File "/usr/lib/python3/dist-packages/cloudinit/handlers/cloud_config.py", line 140, in handle_part self._merge_part(payload, headers) File "/usr/lib/python3/dist-packages/cloudinit/handlers/cloud_config.py", line 116, in _merge_part (payload_yaml, my_mergers) = self._extract_mergers(payload, headers) File "/usr/lib/python3/dist-packages/cloudinit/handlers/cloud_config.py", line 95, in _extract_mergers mergers_yaml = mergers.dict_extract_mergers(payload_yaml) File "/usr/lib/python3/dist-packages/cloudinit/mergers/__init__.py", line 83, in dict_extract_mergers raw_mergers = config.pop('merge_how', None) AttributeError: 'NoneType' object has no attribute 'pop' 2020-04-20 16:35:39,478 - __init__.py[INFO]: Created new group lxd 2020-04-20 16:35:48,094 - cc_apt_configure.py[INFO]: No custom template provided, fall back to builtin 2020-04-20 17:13:30,313 - stages.py[INFO]: Loaded datasource DataSourceNoCloud - DataSourceNoCloud [seed=/dev/vdb][dsmode=net] 2020-04-20 17:13:30,960 - util.py[WARNING]: Failed loading yaml blob. Invalid format at line 8 column 6: "while scanning a plain scalar in "", line 8, column 6: - [https://crownlabs.polito.it/clou ... ^ found unexpected ':' in "", line 8, column 11: - [https://crownlabs.polito.it/cloud/rem ... ^ Please check http://pyyaml.org/wiki/YAMLColonInFlowContext for details." 2020-04-20 17:13:30,986 - util.py[WARNING]: Failed loading yaml blob. Invalid format at line 8 column 6: "while scanning a plain scalar in "", line 8, column 6: - [https://crownlabs.polito.it/clou ... ^ found unexpected ':' in "", line 8, column 11: - [https://crownlabs.polito.it/cloud/rem ... ^ Please check http://pyyaml.org/wiki/YAMLColonInFlowContext for details." 2020-04-20 17:13:30,987 - util.py[WARNING]: Failed at merging in cloud config part from part-001 Traceback (most recent call last): File "/usr/lib/python3/dist-packages/cloudinit/handlers/cloud_config.py", line 140, in handle_part self._merge_part(payload, headers) File "/usr/lib/python3/dist-packages/cloudinit/handlers/cloud_config.py", line 116, in _merge_part (payload_yaml, my_mergers) = self._extract_mergers(payload, headers) File "/usr/lib/python3/dist-packages/cloudinit/handlers/cloud_config.py", line 95, in _extract_mergers mergers_yaml = mergers.dict_extract_mergers(payload_yaml) File "/usr/lib/python3/dist-packages/cloudinit/mergers/__init__.py", line 83, in dict_extract_mergers raw_mergers = config.pop('merge_how', None) AttributeError: 'NoneType' object has no attribute 'pop' ```

AndreaCossio commented 4 years ago

Maybe quoting the link should work @giorio94

giorio94 commented 4 years ago

Closing, since #223 correctly fixed this issue.