← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1791781] [NEW] instance-data.json not persisted across reboot.

 

Public bug reported:

cloud-init v18.3 /run/cloud-init/instance-data.json does not persist
across reboot.

Affects: Xenial series or later


Any attempt by services/consumers to re-use instance data after a machine reboots will fail.

To reproduce:


$ lxc launch ubuntu-daily:xenial test-xenial
Creating test-xenial
Starting test-xenial

$ lxc exec test-xenial cat /ruc/cloud-init/instance-data.json/cloud-init/instance-data.json
{
 "base64-encoded-keys": [
  "ds/vendor-data",
...

$ lxc exec test-xenial reboot
$ lxc exec test-xenial cat /ruc/cloud-init/instance-data.json

cat: /run/cloud-init/instance-data.json: No such file or directory


Note: cloud-init only writes instnace-data.json when processing meta-
data on the 1st boot via DataSource.get_data call. We either need to
persist this data somewhere else, or write it again per boot.

** Affects: cloud-init
     Importance: High
     Assignee: Chad Smith (chad.smith)
         Status: Confirmed

** Changed in: cloud-init
   Importance: Undecided => High

** Changed in: cloud-init
       Status: New => Confirmed

** Changed in: cloud-init
     Assignee: (unassigned) => Chad Smith (chad.smith)

-- 
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/1791781

Title:
  instance-data.json not persisted across reboot.

Status in cloud-init:
  Confirmed

Bug description:
  cloud-init v18.3 /run/cloud-init/instance-data.json does not persist
  across reboot.

  Affects: Xenial series or later

  
  Any attempt by services/consumers to re-use instance data after a machine reboots will fail.

  To reproduce:

  
  $ lxc launch ubuntu-daily:xenial test-xenial
  Creating test-xenial
  Starting test-xenial

  $ lxc exec test-xenial cat /ruc/cloud-init/instance-data.json/cloud-init/instance-data.json
  {
   "base64-encoded-keys": [
    "ds/vendor-data",
  ...

  $ lxc exec test-xenial reboot
  $ lxc exec test-xenial cat /ruc/cloud-init/instance-data.json

  cat: /run/cloud-init/instance-data.json: No such file or directory


  Note: cloud-init only writes instnace-data.json when processing meta-
  data on the 1st boot via DataSource.get_data call. We either need to
  persist this data somewhere else, or write it again per boot.

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


Follow ups