Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-3067

Inexplict cloud detection for AWS and OpenStack based cloud by querying metadata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0
    • None
    • None

    Description

      The cloud detector is used to check the cloud provider of the instance, see here],  For AWS cloud it using the URL http://169.254.169.254/latest/meta-data/instance-id to check the specific metadata to determine it is AWS instance. This is OK, but for OpenStack based cloud, the metadata is same with AWS, so this URL can also be accessed. So this cannot distinct the AWS and other OpenStack based clouds. This caused an issue when run "HybridClockTest.TimeSourceAutoSelection" test case, this test will use the above URL to detect the Cloud of instance current running on and then try to call the NTP service, for AWS, the dedicated NTP service is "169.254.169.123", but for OpenStack based cloud, there isn't such a dedicated NTP service. So this test case will fail if I run on a instance of OpenStack based cloud because the cloud detector suppose it is AWS instance and try to access "169.254.169.123".

       

      Attachments

        Activity

          People

            aserbin Alexey Serbin
            seanlau liusheng
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: