azure: use non-static instance-id

Bug #1204190 reported by Scott Moser on 2013-07-23
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cloud-init
Medium
Unassigned
cloud-init (Ubuntu)
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

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="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.

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