{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/bugs/issues/2264","repository_url":"https://api.github.com/repos/coreos/bugs","labels_url":"https://api.github.com/repos/coreos/bugs/issues/2264/labels{/name}","comments_url":"https://api.github.com/repos/coreos/bugs/issues/2264/comments","events_url":"https://api.github.com/repos/coreos/bugs/issues/2264/events","html_url":"https://github.com/coreos/bugs/issues/2264","id":276306401,"number":2264,"title":"Ignition is broken on coreos-vagrant (VirtualBox)","user":{"login":"cl-ment","id":5272389,"avatar_url":"https://avatars1.githubusercontent.com/u/5272389?v=4","gravatar_id":"","url":"https://api.github.com/users/cl-ment","html_url":"https://github.com/cl-ment","followers_url":"https://api.github.com/users/cl-ment/followers","following_url":"https://api.github.com/users/cl-ment/following{/other_user}","gists_url":"https://api.github.com/users/cl-ment/gists{/gist_id}","starred_url":"https://api.github.com/users/cl-ment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cl-ment/subscriptions","organizations_url":"https://api.github.com/users/cl-ment/orgs","repos_url":"https://api.github.com/users/cl-ment/repos","events_url":"https://api.github.com/users/cl-ment/events{/privacy}","received_events_url":"https://api.github.com/users/cl-ment/received_events","type":"User","site_admin":false},"labels":[{"id":264722857,"url":"https://api.github.com/repos/coreos/bugs/labels/area/distribution","name":"area/distribution","color":"bfe5bf","default":false},{"id":387315433,"url":"https://api.github.com/repos/coreos/bugs/labels/component/vagrant","name":"component/vagrant","color":"0052cc","default":false},{"id":91823380,"url":"https://api.github.com/repos/coreos/bugs/labels/kind/bug","name":"kind/bug","color":"DF0101","default":false},{"id":726412325,"url":"https://api.github.com/repos/coreos/bugs/labels/platform/virtualbox","name":"platform/virtualbox","color":"5319e7","default":false},{"id":275179790,"url":"https://api.github.com/repos/coreos/bugs/labels/team/os","name":"team/os","color":"ffffff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-11-23T09:19:13Z","updated_at":"2018-05-03T11:43:01Z","closed_at":null,"author_association":"NONE","body":"# Issue Report #\r\n\r\n<!-- Fill in either the 'Bug' or 'Feature Request' section -->\r\n\r\n## Bug ##\r\n\r\n### Container Linux Version ###\r\n\r\n```\r\n$ cat /etc/os-release\r\nNAME=\"Container Linux by CoreOS\"\r\nID=coreos\r\nVERSION=1590.0.0\r\nVERSION_ID=1590.0.0\r\nBUILD_ID=2017-11-08-0831\r\nPRETTY_NAME=\"Container Linux by CoreOS 1590.0.0 (Ladybug)\"\r\nANSI_COLOR=\"38;5;75\"\r\nHOME_URL=\"https://coreos.com/\"\r\nBUG_REPORT_URL=\"https://issues.coreos.com\"\r\nCOREOS_BOARD=\"amd64-usr\"\r\n```\r\n\r\n### Environment ###\r\n\r\nVagrant on Virtualbox \r\n\r\n### Expected Behavior ###\r\n\r\nIgnition must do something according to the configuration file `config.ign` found in the vagrant directory.\r\n\r\n### Actual Behavior ###\r\n\r\nIgnition fails to fetch the startup configuration on coreos-vagrant\r\n\r\n```\r\ncore@core-01 ~ $ journalctl --all\r\n-- Logs begin at Thu 2017-11-23 08:16:02 UTC, end at Thu 2017-11-23 08:17:06 UTC. --\r\nNov 23 08:16:02 localhost kernel: Linux version 4.14.0-rc8-coreos (jenkins@jenkins-worker-2) (gcc version 4.9.4 (Gentoo Hardened 4.9.4 p1.0, pie-0.6.4)) #1 SMP Wed Nov 8 08:09:32 UTC 2017\r\nNov 23 08:16:02 localhost kernel: Command line: BOOT_IMAGE=/coreos/vmlinuz-a mount.usr=/dev/mapper/usr verity.usr=PARTUUID=7130c94a-213a-4e5a-8e26-6cce9662f132 rootflags=rw mount.usrflags=ro consoleblank=0 root=LABEL=ROOT console=ttyS0,115200n8 console=tty0 coreos.first_boot=detected coreos.randomize_disk_guid=00000000-0000-0000-0000-000000000001 coreos.oem.id=vagrant verity.usrhash=fdbfb3605c256bc41f7270fe4b688d2cfbbe2f12c1729ddcb3f7517b9749bf48\r\n[...]\r\nNov 23 08:16:04 localhost ignition[363]: Ignition v0.19.0\r\nNov 23 08:16:04 localhost ignition[363]: parsed url from cmdline: \"\"\r\nNov 23 08:16:04 localhost ignition[363]: no config URL provided\r\nNov 23 08:16:04 localhost ignition[363]: noop provider fetching empty config\r\nNov 23 08:16:04 localhost ignition[363]: failed to fetch config: not a config (empty)\r\nNov 23 08:16:04 localhost ignition[363]: not a config (empty): ignoring user-provided config\r\nNov 23 08:16:04 localhost ignition[363]: disks: op(1): [started]  waiting for udev to settle\r\nNov 23 08:16:04 localhost ignition[363]: disks: op(1): executing: \"/bin/udevadm\" \"settle\"\r\nNov 23 08:16:04 localhost ignition[363]: disks: op(1): [finished] waiting for udev to settle\r\n```\r\n\r\n\r\n### Reproduction Steps ###\r\n\r\n  1. git clone https://github.com/coreos/coreos-vagrant.git\r\n  2. cp config.ign.sample config.ign \r\n  3. vagrant up\r\n\r\n### Other Information ###\r\n\r\nIt looks like Ignition expects `coreos.oem.id=vagrant-virtualbox` or `coreos.oem.id=virtualbox` instead of `coreos.oem.id=vagrant` on the kernel commad line in order to fetch the configuration properly. \r\n\r\nWe can see this in https://github.com/coreos/ignition/blob/master/internal/oem/oem.go\r\n\r\n```\r\n\tconfigs.Register(Config{\r\n\t\tname:  \"vagrant\",\r\n\t\tfetch: noop.FetchConfig,\r\n\t})\r\n\tconfigs.Register(Config{\r\n\t\tname:  \"vagrant-virtualbox\",\r\n\t\tfetch: virtualbox.FetchConfig,\r\n\t})\r\n\tconfigs.Register(Config{\r\n\t\tname:  \"virtualbox\",\r\n\t\tfetch: virtualbox.FetchConfig,\r\n\t})\r\n```\r\n\r\nYou might want to change the parameter `oem_id` in `/usr/share/oem/grub.cfg` on the box to one of those mentioned above:\r\n\r\n```\r\ncore@core-01 /usr/share/oem $ cat grub.cfg\r\n# CoreOS GRUB settings\r\n\r\nset oem_id=\"vagrant\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/coreos/bugs/issues/comments/386267809","html_url":"https://github.com/coreos/bugs/issues/2264#issuecomment-386267809","issue_url":"https://api.github.com/repos/coreos/bugs/issues/2264","id":386267809,"user":{"login":"apeteri","id":1411829,"avatar_url":"https://avatars1.githubusercontent.com/u/1411829?v=4","gravatar_id":"","url":"https://api.github.com/users/apeteri","html_url":"https://github.com/apeteri","followers_url":"https://api.github.com/users/apeteri/followers","following_url":"https://api.github.com/users/apeteri/following{/other_user}","gists_url":"https://api.github.com/users/apeteri/gists{/gist_id}","starred_url":"https://api.github.com/users/apeteri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apeteri/subscriptions","organizations_url":"https://api.github.com/users/apeteri/orgs","repos_url":"https://api.github.com/users/apeteri/repos","events_url":"https://api.github.com/users/apeteri/events{/privacy}","received_events_url":"https://api.github.com/users/apeteri/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T11:43:01Z","updated_at":"2018-05-03T11:43:01Z","author_association":"NONE","body":"Any news on this issue? Setting the box URL to `.../coreos_production_vagrant_virtualbox.json` per the latest version of [Vagrantfile](https://github.com/coreos/coreos-vagrant/blob/10cbb90e7139b06fbff2d9d95db8da9dff7181f6/Vagrantfile) seems to work; the OEM ID is set to `vagrant-virtualbox` in the kernel command line."}}
{"actor":{"display_login":"apeteri"}}