If we use the "machine_type" annotation to select bz2-2x8 when CreateInstance is called then selectInstanceProfile will choose the correct vm flavour however selectImage will incorrectly choose the first (amd64) image as the spec.Arch check it does does not have the correct information. The creation will fail later with...
[adaptor/cloud] creating an instance : Image OS architecture amd64 is not supported by the instance profile bz2-2x8
To fix this:
1) updateInstanceProfileSpecList should populate the InstanceTypeSpecs with Arch from the GetInstanceProfileWithContext result
2) In CreateInstance after calling selectInstanceProfile the incoming spec should be merged with the instanceProfile spec
3) Call getImage with the new merged spec
We provide both amd64 and s390x instance profiles as well as amd64 and s390x images.
If we use the "machine_type" annotation to select
bz2-2x8
whenCreateInstance
is called thenselectInstanceProfile
will choose the correct vm flavour howeverselectImage
will incorrectly choose the first (amd64) image as thespec.Arch
check it does does not have the correct information. The creation will fail later with...To fix this: 1)
updateInstanceProfileSpecList
should populate theInstanceTypeSpec
s withArch
from theGetInstanceProfileWithContext
result 2) In CreateInstance after callingselectInstanceProfile
the incomingspec
should be merged with the instanceProfilespec
3) CallgetImage
with the new mergedspec