azure: use non-static instance-id

Bug #1204190 reported by Scott Moser
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Unassigned
cloud-init (Ubuntu)
Fix Released
Medium
Unassigned

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
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Scott Moser (smoser) wrote :
Scott Moser (smoser)
Changed in cloud-init:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

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="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="goalstate10.xsd">
  ...
  <Container>
    <ContainerId>fb3c8d4d-5087-4878-9e71-472119b5750c</ContainerId>
    <RoleInstanceList>
      <RoleInstance>
        <InstanceId>8391407e1edc4dd095dae486073ad2b2.utl-0723-ci4a</InstanceId>
        <State>Started</State>
        <Configuration>
        ...
        </Configuration>
      </RoleInstance>
    </RoleInstanceList>
  </Container>

The InstanceID value corresponds to the deployment ID.

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

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

Revision history for this message
Scott Moser (smoser) wrote :

fixed in trunk at 839.

Changed in cloud-init:
status: Confirmed → Fix Committed
Revision history for this message
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
Revision history for this message
Scott Moser (smoser) wrote :

fixed in 0.7.3

Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.