Open axi92 opened 4 years ago
Is it possible that rancheros is not able to detect the filesystem because the permissions are missing?
When rancheros is done booting into ram blkid
does not show any external devices only the internal disc is shown.
Just when I use sudo all the usb devices are shown.
Could that be the cause that I get this on boot: Configdrive was enabled but has no configdrive device or filesystem, ignore cloudinit
Steps to reproduce:
blkid
[rancher@rancher ~]$ blkid
/dev/sda: UUID="a219bda2-3be8-4c40-8246-376ebd6f9f63" TYPE="ext4"
sudo blkid
/dev/sda: UUID="a219bda2-3be8-4c40-8246-376ebd6f9f63" TYPE="ext4"
/dev/sdb1: UUID="2019-08-22-07-33-27-00" LABEL="RancherOS" TYPE="iso9660" PTUUID="2f6cb907" PTTYPE="dos" PARTUUID="2f6cb907-01"
/dev/sdc: UUID="2019-11-28-14-18-27-00" LABEL="config-2" TYPE="iso9660"
Was reading through the code that triggers before the log you said you get. It calls this function to resolve the device: https://github.com/rancher/os/blob/88c5b5ef14caf5739b1763d6ea8c82cd8ee9d885/pkg/util/cutil.go#L18
Which happens to state that it is less reliable than blkid -h
. Not sure if that is the problem, but that line indicates that your device is not found. May be worth investigating the function that they use to find the device.
RancherOS Version: 1.5.4 Where are you running RancherOS? baremetal
I have 2 usb sticks. The first with the rancher os iso and another with the cloud config file system that looks like this: openstack/latest/user_data https://coreos.com/os/docs/latest/cloud-config-locations.html with the content:
The config drive stick is formatet with:
mkfs.vfat -n config-2 -I /dev/sdc
Edit: I got this line in my boot log: https://github.com/rancher/os/blob/master/pkg/init/cloudinit/cloudinit.go#L49 and blkid does not show my usb drive.
Am I right that rancher os should automatically mount the config-2 drive because of this https://github.com/rancher/os/blob/master/os-config.tpl.yml#L86 ?
My target is to setup a baremetal machine without any display or keyboard just with 2 usb sticks one iso and the second the config.
Edit2: when I use
blkid
i just see the local disk where i already installed rancheros with the label "RANCHER_STATE" but I am not using that one, I booted from sdc label"RancherOS" what only will show after I didsudo blkid
then I see all of them and on my configdrive the sdb the label is not present. After I did oncesudo blkid
it works also without sudo! The output is like this: