Skip to content

unable to create disks #4674

@nkm269

Description

@nkm269

i have below toml blueprint file
[root@hypnode1 myblueprints]# cat test.toml
name = "test-ol8"
description = ""
version = "1.0.0"

[[packages]]
name = "python3"

[[groups]]
name = "graphical-admin-tools"

[customizations.installer]
unattended = true

[customizations.kernel]

name - not yet supported (to assign a name)

append = "mitigations=off"

[customizations]
hostname = "hypnode1"
partitioning_mode = "lvm"

[[customizations.user]]
name = "opc"
password = "$6$zRhOgi4D3trWWutk$w2B4NUdQGknxfgGrmFJ50NhMAfbvVITOBdp./yEE0Qvy8rnZ0jWRp21C/D1g801oDf5uxvyTHMA3NHtutkZEd0"
key = ""
home = "/home/opc"
shell = "/usr/bin/bash"
groups = [ "users", "wheel"]

[[customizations.sshkey]]
user = "root"
key = ""

[[customizations.disk.partitions]]
type = "plain"
label = "data"
mountpoint = "/data"
fs_type = "ext4"
minsize = "50 GiB"

[[customizations.disk.partitions]]
type = "lvm"
name = "mainvg"
minsize = "20 GiB"

[[customizations.disk.partitions.logical_volumes]]
name = "rootlv"
mountpoint = "/"
label = "root"
fs_type = "ext4"
minsize = "2 GiB"

[[customizations.disk.partitions.logical_volumes]]
name = "homelv"
mountpoint = "/home"
label = "home"
fs_type = "ext4"
minsize = "2 GiB"

[[customizations.disk.partitions.logical_volumes]]
name = "swaplv"
fs_type = "swap"
minsize = "1 GiB"

i pushed this blueprint file using below command
sudo composer-cli blueprints push test.toml

and when i see the contents using show commadn. i don't see disk related information and i exported to qcow2 format and created instance using this image but i see disks are not mounted. what is the reason for the issue ?

[root@hypnode1 myblueprints]# sudo composer-cli blueprints show test-ol8
name = "test-ol8"
description = ""
version = "1.0.1"
modules = []
distro = ""

[[packages]]
name = "python3"

[[groups]]
name = "graphical-admin-tools"

[customizations]
hostname = "hypnode1"
partitioning_mode = "lvm"
[customizations.kernel]
append = "mitigations=off"

[[customizations.sshkey]]
user = "root"
key = ""

[[customizations.user]]
name = "opc"
password = "$6$zRhOgi4D3trWWutk$w2B4NUdQGknxfgGrmFJ50NhMAfbvVITOBdp./yEE0Qvy8rnZ0jWRp21C/D1g801oDf5uxvyTHMA3NHtutkZEd0"
key = ""
home = "/home/opc"
shell = "/usr/bin/bash"
groups = ["users", "wheel"]

[root@hypnode1 myblueprints]#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions