Deploy ESXi on server with more then one disk

Bug #1939587 reported by Kyrylo Sypko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Undecided
Unassigned
3.0
Won't Fix
Undecided
Unassigned
3.1
Fix Released
Undecided
Unassigned

Bug Description

Hello.

When I deploy server with only one disk in it everything works fine. But on servers with two or more disks MAAS don’t create any datastores. It successfully deploy ESXi, configure network, register server in the vCenter. But there are no any datastores. I tried to create datastores in UI on both disks, tried leave datastore only on the disk with the system. In both cases there are no datastores after deployment. And only when I deleted second disk in the UI, after comissioning, server succsessfully deploed and created datastore.

Also I can’t choose disk to setup ESXi. In logs I see that maas chose disk by itself

"
Running command [’/usr/sbin/multipath’, ‘-F’] with allowed return codes [0, 1] (capture=False)
‘custom’ mode but multiple devices given. using first found
mode is ‘custom’. multiple devices given. using ‘/dev/sda’ (first available)
installing in ‘custom’ mode to ‘sda’
writing image to disk {‘type’: ‘dd-gz’, ‘uri’: ‘http://10.15.30.30:5248/images/esxi/amd64/generic/7.0.2-ams/uploaded/root-dd.gz’}, sda
"

I'm using snap version/build 2.9.2-9165-g.c3e7848d1

Steps to reproduce:
1. Comission new server
2. Go to storage and click radiobutton "boot" on the second disk (/dev/sdb)
3. Change storage layout to VMFS6
4. Delete default darastore 1
5. Create two new datastores (screenshot)
4. Deploy server
5. At the Logs tab you will see "multiple devices given. using ‘/dev/sda’ (first available)"

Revision history for this message
Kyrylo Sypko (kiruka4) wrote :
Revision history for this message
Kyrylo Sypko (kiruka4) wrote :

Forgot to add messages logs

Revision history for this message
Björn Tillenius (bjornt) wrote :

From the image, it looks like you're using ESXi 7, right? That's not supported at the moment, but we're working on supporting it this cycle.

Changed in maas:
status: New → Incomplete
Revision history for this message
Kyrylo Sypko (kiruka4) wrote :

Yes, you are right we tried to deploy ESXi 7.0.2. Do you know the estimated time to add support of ESXi 7?

Also I found that the entry "multiple devices given. using ‘/dev/sda’ (first available)" comes from the /snap/maas/current/usr/lib/python3/dist-packages/curtin/commands/block_meta.py script.

if len(devices) > 1:
        if args.devices is not None:
            LOG.warn("'%s' mode but multiple devices given. "
                     "using first found", args.mode)
        available = [f for f in devices
                     if block.is_valid_device(f)]
        target = sorted(available)[0]

But I can't understand why there are three devices in the variable "devices"

Declared block devices: ['/dev/sda', '/dev/sdb', '/dev/sda1']

I expected that only device with flag "grub_device: true" should be there.

I tried to deploy Ubuntu to see how much devices maas will find in this case. But I saw that maas didn't use this script during Ubuntu deploying.

Could you please explain me:
1. How and when maas decide to use this script?
2. How it finds devices?
3. And why did you add this check for len(devices) > 1?

Alberto Donato (ack)
Changed in maas:
milestone: none → next
status: Incomplete → Fix Committed
Bill Wear (billwear)
Changed in maas:
milestone: next → 3.1.0-beta1
Bill Wear (billwear)
Changed in maas:
status: Fix Committed → Fix Released
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

For documentation purposes, the fix has been released on MAAS 3.1 and later.

$ git remote get-url origin
https://git.launchpad.net/maas

$ git log --oneline origin/master | grep 'Add VMFS7 storage layout for VMware ESXi 7.0'
7434f9e207d2 Add VMFS7 storage layout for VMware ESXi 7.0

$ git describe --contains 7434f9e207d2
3.1.0-beta1~504

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.