Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1141

Azurecompute - RoleToXML doesn't close the ConfigurationSets element corretly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • jclouds-labs

    Description

      There is a missing .up() call for "ConfigurationSets" element in RoleToXML class.

      So the generated XML looks like:

      <PersistentVMRole xmlns="http://schemas.microsoft.com/windowsazure">
        <RoleName>...</RoleName>
        <RoleType>PersistentVMRole</RoleType>
        <ConfigurationSets>
          <ConfigurationSet>...</ConfigurationSet>
          <DataVirtualHardDisks/><OSVirtualHardDisk>...</OSVirtualHardDisk>
          <RoleSize>Basic_A1</RoleSize>
        </ConfigurationSets>
      </PersistentVMRole>
      

      The correct output is:

      <PersistentVMRole xmlns="http://schemas.microsoft.com/windowsazure">
        <RoleName>...</RoleName>
        <RoleType>PersistentVMRole</RoleType>
        <ConfigurationSets>
          <ConfigurationSet>...</ConfigurationSet>
        </ConfigurationSets>
        <DataVirtualHardDisks/>
        <OSVirtualHardDisk>...</OSVirtualHardDisk>
        <RoleSize>Basic_A1</RoleSize>
      </PersistentVMRole>
      

      See https://msdn.microsoft.com/en-us/library/azure/jj157187.aspx

      Attachments

        Activity

          People

            Unassigned Unassigned
            kwart Josef Cacek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: