azure: use non-static instance-id

Bug #1204190 reported by Scott Moser on 2013-07-23
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)

Bug Description

currently cloud-init is using static instance-id for azure.
we ave access to the sharedconfig.xml file now, which seems like it might have a "real" instance id.

It looks like useful instance id might be:
    <ServiceInstance name="15a5261e1eb8429aa5f1a127bb17af1f.0" guid="{8937503e-0229-46b9-b107-3da2e03f69e2}" />

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: cloud-init 0.7.3~bzr829-0ubuntu1
ProcVersionSignature: User Name 3.10.0-4.13-generic 3.10.1
Uname: Linux 3.10.0-4-generic x86_64
ApportVersion: 2.11-0ubuntu1
Architecture: amd64
Date: Tue Jul 23 17:06:00 2013
MarkForUpload: True
PackageArchitecture: all
 PATH=(custom, no user)
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Scott Moser (smoser) wrote :
Scott Moser (smoser) on 2013-07-23
Changed in cloud-init:
status: New → Confirmed
importance: Undecided → Medium

The proper place to get the instance ID is from GoalState.1.xml.

cat GoalState.1.xml
<?xml version="1.0" encoding="utf-8"?>
<GoalState xmlns:xsi="" xsi:noNamespaceSchemaLocation="goalstate10.xsd">

The InstanceID value corresponds to the deployment ID.

In the SharedConfig.xml, you can use the "DeploymentName" as the instance ID just fine.

Scott Moser (smoser) wrote :

fixed in trunk at 839.

Changed in cloud-init:
status: Confirmed → Fix Committed
Scott Moser (smoser) wrote :

This was fixed in 0.7.3~bzr845-0ubuntu1, fix is now available in archive at 0.7.3~bzr849-0ubuntu1.

Changed in cloud-init (Ubuntu):
status: Confirmed → Fix Released
Scott Moser (smoser) wrote :

fixed in 0.7.3

Changed in cloud-init:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers