Skip to content

OVF datasource should check if instant id is still on VMware Platform #3402

@ubuntu-server-builder

Description

@ubuntu-server-builder

This bug was originally filed in Launchpad as LP: #1835205

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = None
date_created = 2019-07-03T11:24:36.299696+00:00
date_fix_committed = None
date_fix_released = None
id = 1835205
importance = medium
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1835205
milestone = None
owner = pengpengs
owner_name = Pengpeng Sun
private = False
status = triaged
submitter = pengpengs
submitter_name = Pengpeng Sun
tags = []
duplicates = []

Launchpad user Pengpeng Sun(pengpengs) wrote on 2019-07-03T11:24:36.299696+00:00

Currently DatasourceOVF does not check the instance id to determine if current instance is a new instance or not, so that every booting, cloud-init will go through entire datasource list.

This leads an issue:
When a VM's network is customized to static IP by cloud-init DatasourceOVF and then the VM is rebooted, the VM's network will be changed to DHCP after rebooting since this time no customization config file will be found. cloud-init uses DatasourceNone which change network to "default" configuration.

The expected behaviors are:

  1. cloud-init checks the instance id to know if this instance is "iid-vmware-xxxxxx" which means it's a VMware VM. If yes, it should always use datasourceOVF.
  2. When there has customization config file, datasourceOVF parse the configures and enable nics as usual.
  3. When there is no customization config file, datasourceOVF wait for it until timeout and then cloud-init does NOT apply other datasources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlylaunchpadMigrated from Launchpad

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions