Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-7405

ec2 metadata service requires trailing / for listing items

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: AWSAPI
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None

      Description

      This came to me through bug reports to cloud-init:
      https://bugs.launchpad.net/cloud-init/+bug/1356855
      and
      https://bugs.launchpad.net/cloud-init/+bug/1311107

      Apparently, the EC2 metadata service that cloudstack provides returns a 404 for "dictionary" entries that do not have a trailing /.

      Example (as reported to me, i have no first hand experience).
      $ wget http://169.254.169.254/latest/meta-data ;
      404
      $ wget http://169.254.169.254/latest/meta-data/
      $ cat index.html ; echo
      ami-id
      ami-launch-index
      ami-manifest-path
      block-device-mapping/
      hostname
      instance-action
      instance-id
      instance-type
      local-hostname
      local-ipv4
      mac
      metrics/
      network/
      placement/
      profile
      public-hostname
      public-ipv4
      public-keys/
      reservation-id
      security-groups
      services/

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              smoser Scott Moser
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: