Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Guest][Ubuntu-22.04][Cloud-Init] - Storage customization not working #3579

Open
NileshChandekar opened this issue Feb 8, 2024 · 5 comments
Labels
3.2.2 Release 3.2.2 Bug Report Reporting a bug host-os/rocky/8 Cobbler is running on Rocky 8

Comments

@NileshChandekar
Copy link

  • Trying to configure the custom layout using user-data [cloud-init]
  storage:
    layout:
      name: lvm
      sizing-policy: largest
    config:
      - type: partition
        id: boot-partition
        device: root-disk
        size: 10%
      - type: partition
        id: root-partition
        size: 10G
      - type: partition
        id: data-partition
        device: root-disk
        size: -1
  • But its not working.

Expectation:

Should create

/home
/var

other than
/ and /boot

Cobbler version

[root@localhost pub]# cobbler --version 
Cobbler 3.2.2
  source: ?, ?
  build time: Wed Apr  5 15:54:53 2023
[root@localhost pub]# 

Operating system

[root@localhost pub]# cat /etc/*release
Rocky Linux release 8.9 (Green Obsidian)
NAME="Rocky Linux"
VERSION="8.9 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.9 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2029-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.9"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.9"
Rocky Linux release 8.9 (Green Obsidian)
Rocky Linux release 8.9 (Green Obsidian)
Rocky Linux release 8.9 (Green Obsidian)
[root@localhost pub]# 
@NileshChandekar NileshChandekar added the Bug Report Reporting a bug label Feb 8, 2024
@NileshChandekar
Copy link
Author

Expectation to have below layout:-

nc@localhost:~$ df -hT
Filesystem                                           Type   Size  Used Avail Use%   Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv     ext4    10G  2.8G   7G  13%     /
/dev/mapper/ubuntu--vg-home-v         ext4    10G  2.8G   7G  13%     /home
/dev/mapper/ubuntu--vg-var-lv            ext4    10G  2.8G   7G  13%     /var
/dev/mapper/ubuntu--vg-varlog-lv       ext4    10G  2.8G   7G  13%     /var/log
/dev/sda2                                             ext4   1.5G  125M  1.3G  10%   /boot
nc@localhost:~$ 
  • Anyone has autoinstall user-data file please share.

@easpeagle
Copy link

At the risk of sounding daft... I don't see a "device" called out here:

      - type: partition
        id: root-partition
        size: 10G

@NileshChandekar
Copy link
Author

Tried this one

storage:
    config:
    - ptable: gpt
      path: /dev/sda
      preserve: true
      name: ''
      grub_device: true
      type: disk
      id: disk-sda
    - device: disk-sda
      size: 1048576
      flag: bios_grub
      number: 1
      preserve: true
      grub_device: false
      type: partition
      id: partition-sda1
    - device: disk-sda
      size: 2147483648
      wipe: superblock
      flag: linux
      number: 2
      preserve: true
      grub_device: false
      type: partition
      id: partition-sda2
    - fstype: xfs
      volume: partition-sda2
      preserve: false
      type: format
      id: format-0
    - device: disk-sda
      size: 10737418240
      wipe: superblock
      flag: linux
      number: 3
      preserve: true
      grub_device: false
      type: partition
      id: partition-sda3
    - fstype: xfs
      volume: partition-sda3
      preserve: false
      type: format
      id: format-1
    - path: /
      device: format-1
      type: mount
      id: mount-1
    - device: disk-sda
      size: 5368709120
      wipe: superblock
      flag: linux
      number: 4
      preserve: true
      grub_device: false
      type: partition
      id: partition-sda4
    - fstype: xfs
      volume: partition-sda4
      preserve: false
      type: format
      id: format-2
    - path: /home
      device: format-2
      type: mount
      id: mount-2
    - device: disk-sda
      size: 3221225472
      wipe: superblock
      flag: linux
      number: 5
      preserve: true
      grub_device: false
      type: partition
      id: partition-sda5
    - fstype: ext4
      volume: partition-sda5
      preserve: false
      type: format
      id: format-3
    - path: /var
      device: format-3
      type: mount
      id: mount-3
    - device: disk-sda
      size: 5261754368
      wipe: superblock
      flag: linux
      number: 6
      preserve: true
      grub_device: false
      type: partition
      id: partition-sda6
    - fstype: xfs
      volume: partition-sda6
      preserve: false
      type: format
      id: format-4
    - path: /var/log
      device: format-4
      type: mount
      id: mount-4
    - path: /boot
      device: format-0
      type: mount
      id: mount-0
  • Doesnt help

Expected to have:

├─sda1   8:1    0    1M  0 part 
├─sda2   8:2    0    2G  0 part /boot
├─sda3   8:3    0   10G  0 part /
├─sda4   8:4    0    5G  0 part /home
├─sda5   8:5    0    3G  0 part /var
└─sda6   8:6    0  4.9G  0 part /var/log
Filesystem     Type   Size  Used Avail Use% Mounted on
/dev/sda3      xfs     10G  2.3G  7.8G  23% /
/dev/sda5      ext4   2.9G  328M  2.4G  12% /var
/dev/sda4      xfs    5.0G   68M  5.0G   2% /home
/dev/sda6      xfs    4.9G   86M  4.9G   2% /var/log
/dev/sda2      xfs    2.0G  172M  1.9G   9% /boot

@SchoolGuy SchoolGuy added 3.2.2 Release 3.2.2 host-os/rocky/8 Cobbler is running on Rocky 8 labels Feb 14, 2024
@NileshChandekar
Copy link
Author

Any update on above BUG

@SchoolGuy
Copy link
Member

This is officially not supported yet. As such you are on your own so far. At the moment my capacity does not allow me to push forward this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.2.2 Release 3.2.2 Bug Report Reporting a bug host-os/rocky/8 Cobbler is running on Rocky 8
Projects
Status: Todo
Development

No branches or pull requests

3 participants