[2.3, UI] MAAS permits assigning a disk device to mount to itself

Bug #1732743 reported by Rod Smith on 2017-11-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

In the MAAS web UI, it's possible to assign a disk device to mount to itself -- for instance, to mount /dev/sda3 at /dev/sda3. When so configured, MAAS will deploy the node, and that deployment will seem to succeed; however, it will be inaccessible via SSH. The console, if accessible, will not show a "login:" prompt, but a bash root prompt ("root@hostname:~#"); presumably the system is booted in maintenance mode. The /etc/fstab file shows the UUID value for the partition in the fs_spec field and the device filename (as inappropriately entered in MAAS) in the fs_file field.

This situation is obviously the result of user error; however, the symptoms are rather mysterious, and MAAS could easily handle this better by refusing to accept a mount point inside /dev, or perhaps in other locations. (In a quick check, MAAS initially seemed to accept a mount point of /etc, but then quietly removed it from the list of filesystems, so perhaps there's already some logic to handle this for some mount points.)

Below is my MAAS version information. I'm also attaching the /var/log/maas directory tree from the server, although I don't think it's relevant. (I tested this on the server "brennan.")

$ dpkg -l '*maas*'|cat
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
ii maas 2.2.2-6099-g8751f91-0ubuntu1~16.04.1 all "Metal as a Service" is a physical cloud and IPAM
ii maas-cert-server 0.2.30-0~76~ubuntu16.04.1 all Ubuntu certification support files for MAAS server
ii maas-cli 2.2.2-6099-g8751f91-0ubuntu1~16.04.1 all MAAS client and command-line interface
un maas-cluster-controller <none> <none> (no description available)
ii maas-common 2.2.2-6099-g8751f91-0ubuntu1~16.04.1 all MAAS server common files
ii maas-dhcp 2.2.2-6099-g8751f91-0ubuntu1~16.04.1 all MAAS DHCP server
ii maas-dns 2.2.2-6099-g8751f91-0ubuntu1~16.04.1 all MAAS DNS server
ii maas-proxy 2.2.2-6099-g8751f91-0ubuntu1~16.04.1 all MAAS Caching Proxy
ii maas-rack-controller 2.2.2-6099-g8751f91-0ubuntu1~16.04.1 all Rack Controller for MAAS
ii maas-region-api 2.2.2-6099-g8751f91-0ubuntu1~16.04.1 all Region controller API service for MAAS
ii maas-region-controller 2.2.2-6099-g8751f91-0ubuntu1~16.04.1 all Region Controller for MAAS
un maas-region-controller-min <none> <none> (no description available)
un python-django-maas <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
un python-maas-provisioningserver <none> <none> (no description available)
ii python3-django-maas 2.2.2-6099-g8751f91-0ubuntu1~16.04.1 all MAAS server Django web framework (Python 3)
ii python3-maas-client 2.2.2-6099-g8751f91-0ubuntu1~16.04.1 all MAAS python API client (Python 3)
ii python3-maas-provisioningserver 2.2.2-6099-g8751f91-0ubuntu1~16.04.1 all MAAS server provisioning libraries (Python 3)

Rod Smith (rodsmith) wrote :
summary: - MAAS permits assigning a disk device to mount to itself
+ [2.3, UI] MAAS permits assigning a disk device to mount to itself
Changed in maas:
importance: Undecided → Medium
status: New → Triaged
milestone: none → 2.4.x
no longer affects: maas/2.3
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers