← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1901174] [NEW] ds-identify cannot identify disk-based resources on FreeBSD

 

Public bug reported:

Following https://github.com/canonical/cloud-init/pull/617
i tried to replicate this on my laptop.

In a FreeBSD 12, there is no `blkid`. That means that the NoCloud seed image, which was provided as iso9660 formatted disk wasn't found.
The equivalent tool on FreeBSD to find disks would be `geom`

```
meena@fbsd12-1 /u/h/meena> geom label status -a
          Name  Status  Components
  gpt/gptboot0     N/A  vtbd1p1
     gpt/swap0     N/A  vtbd1p2
iso9660/cidata     N/A  vtbd2
```

and here, in -s for script-friendly output:

```
meena@fbsd12-1 /u/h/meena> geom label status -as
  gpt/gptboot0  N/A  vtbd1p1
     gpt/swap0  N/A  vtbd1p2
iso9660/cidata  N/A  vtbd2
```

where we have type/label followed by status and and then device name (a
partition or slice)

We should change read_fs_info() to call a `blkid` or `geom` parser
function based on which OS we're on.

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1901174

Title:
  ds-identify cannot identify disk-based resources on FreeBSD

Status in cloud-init:
  New

Bug description:
  Following https://github.com/canonical/cloud-init/pull/617
  i tried to replicate this on my laptop.

  In a FreeBSD 12, there is no `blkid`. That means that the NoCloud seed image, which was provided as iso9660 formatted disk wasn't found.
  The equivalent tool on FreeBSD to find disks would be `geom`

  ```
  meena@fbsd12-1 /u/h/meena> geom label status -a
            Name  Status  Components
    gpt/gptboot0     N/A  vtbd1p1
       gpt/swap0     N/A  vtbd1p2
  iso9660/cidata     N/A  vtbd2
  ```

  and here, in -s for script-friendly output:

  ```
  meena@fbsd12-1 /u/h/meena> geom label status -as
    gpt/gptboot0  N/A  vtbd1p1
       gpt/swap0  N/A  vtbd1p2
  iso9660/cidata  N/A  vtbd2
  ```

  where we have type/label followed by status and and then device name
  (a partition or slice)

  We should change read_fs_info() to call a `blkid` or `geom` parser
  function based on which OS we're on.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1901174/+subscriptions


Follow ups