Comment 0 for bug 1536726

Revision history for this message
David Wilde (dave-wilde) wrote :

The `check-requirements.yml` bootstrap role fails when the bootstrap_host_data_disk_device is greater than 1 TB because it is splitting on the string ' GB' and the ansible fact reports the size in ' TB'.

```
TASK: [bootstrap-host | Fail if there is not enough disk space available (disk specified)] ***
fatal: [localhost] => error while evaluating conditional: (ansible_devices[bootstrap_host_data_disk_device]['size'] | replace(' GB','')) | int
>= bootstrap_host_data_disk_min_size | int
```

```
            "sdc": {
                "holders": [],
                "host": "Serial Attached SCSI controller: LSI Logic / Symbios Logic SSS6200 PCI-Express Flash SSD (rev 03)",
                "model": "NWD-BLP4-1600",
                "partitions": {
                    "sdc1": {
                        "sectors": "3124997632",
                        "sectorsize": 512,
                        "size": "1.46 TB",
                        "start": "2048"
                    }
                },
                "removable": "0",
                "rotational": "0",
                "scheduler_mode": "deadline",
                "sectors": "3124999680",
                "sectorsize": "512",
                "size": "1.46 TB",
                "support_discard": "512",
                "vendor": "LSI"
            }
```