** Description changed:

+ === Begin SRU Template ===
+ [Impact]
+ Ubuntu cloud-images do not identify the Aliyun cloud platform.
+ Until this change was put in place, they would fail to boot and consume
+ user-data or metadata there.
+ 
+ With the change in place, an official Ubuntu image from
+ http://cloud-images.ubuntu.com will work properly on Aliyun.
+ 
+ [Test Case]
+ The ideal test case is:
+ a.) download a cloud image, update its cloud-init
+     The tool 'get-proposed-cloudimg' [1] can be used to do this.
+ 
+     [1] https://git.launchpad.net/~smoser/cloud-init/+git/sru-
+ info/tree/bin/get-proposed-cloudimg
+ 
+ b.) publish that image to Aliyun cloud
+ c.) boot an instance from that image.
+ d.) verify function by ssh in verifying /run/cloud-init/result.json shows
+     that aliyun datasource was used.
+ 
+ Ideally post /var/log/cloud-init.log as an attachment to this bug.
+ 
+ [Regression Potential]
+ Generally small chance for regression, but a regression would most likely
+ be seen as an attempt to hit the metadata service at the well known end point
+ http://100.100.100.200.
+ 
+ This should be fairly well confined as attempts to use the Aliyun datasource
+ are gated by '_is_aliyun_' which does verifies that the dmi product name is
+ "Alibaba Cloud ECS"
+ 
+ [Other Info]
+ Upstream commit at
+   https://git.launchpad.net/cloud-init/commit/?id=4a60af5495
+ 
+ === End SRU Template ===
+ 
+ 
  As discussed at [1], the addition of AliYun datasource did not enable it by 
default.
  This is because it has no definitive check before polling the network for 
data.
  
  Lawrence suggested he has a solution for this:
-  | in our cloud platform, an instance vm could use an asm
-  | instructions `cpuid` (with eax setted to 0x40000100 ), it will
-  | returned our platform id keyword "AliYun" into register ebx and ecx,
-  | and if vm is not running on our environment, the value is others. so I
-  | guess this is a method to identify our platform ?
+  | in our cloud platform, an instance vm could use an asm
+  | instructions `cpuid` (with eax setted to 0x40000100 ), it will
+  | returned our platform id keyword "AliYun" into register ebx and ecx,
+  | and if vm is not running on our environment, the value is others. so I
+  | guess this is a method to identify our platform ?
  
  --
  [1] 
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/309614

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1638931

Title:
  enable AliYun datasource by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1638931/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to