cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #05736
Re: [Merge] ~chad.smith/cloud-init:feature/1797480-azure-support-gen2-instances into cloud-init:master
To test:
Gen2 instances are only on eastus region or westeurope I believe
# Spawn gen1 & gen2, install this version of cloud-init and run cloud-init clean --reboot --logs
# Ensure proper /dev/disk/cloud symllinks exist and no Tracebacks in /var/log/cloud-init.log
make deb
# Gen1
az vm create --name=cosmic-gen1 --image=Canonical:UbuntuServer:18.10-DAILY:latest --admin-username=root -g srugroup1 --admin-username=ubuntu --custom-data ../sethostname.yaml
vm_ip=`az vm list-ip-addresses --name cosmic-gen1 | jq -r '.[] | .virtualMachine.network.publicIpAddresses[].ipAddress'`
scp cloud-init*deb ubuntu@$vm_ip:
ssh ubuntu@$vm_ip grep Trace /var/log/cloud-init.log;
echo '--- Expect gen1 cloud disk dev links for root and resource + partiions';
ssh ubuntu@$vm_ip ls -l /dev/disk/cloud;
ssh ubuntu@$vm_ip 'sudo dpkg -i ./cloud-init*deb';
ssh ubuntu@$vm_ip 'sudo cloud-init clean --logs --reboot'
echo '--- Expect same gen1 cloud disk dev links for root and resource + partiions';
ssh ubuntu@$vm_ip ls -l /dev/disk/cloud;
echo '--- Expect no Traceback";
ubuntu@$vm_ip grep Trace /var/log/cloud-init.log; # Expect no trace
# Gen2
az vm create --name=cosmic-gen2 --image=Canonical:UbuntuServer:18.10-DAILY:latest --admin-username=root -g srugroup1 --admin-username=ubuntu --custom-data ../sethostname.yaml --size Standard_DC2s -l eastus
vm_ip=`az vm list-ip-addresses --name cosmic-gen1 | jq -r '.[] | .virtualMachine.network.publicIpAddresses[].ipAddress'`
make deb
echo '--- Expect Traceback on Gen2 with stock cloud-init";
ssh ubuntu@$vm_ip grep Trace -A 8 /var/log/cloud-init.log;
echo '--- Expect no Gen2 cloud disk dev links for root and resource + partiions';
ssh ubuntu@$vm_ip ls -l /dev/disk/cloud;
ssh ubuntu@$vm_ip 'sudo dpkg -i ./cloud-init*deb';
ssh ubuntu@$vm_ip 'sudo cloud-init clean --logs --reboot'
echo '--- Expect Gen2 cloud disk dev links for root and resource + partiions';
ssh ubuntu@$vm_ip ls -l /dev/disk/cloud;
echo '--- Expect no Traceback after upgrade";
ubuntu@$vm_ip grep Trace /var/log/cloud-init.log; # Expect no trace
--
https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/358190
Your team cloud-init commiters is requested to review the proposed merge of ~chad.smith/cloud-init:feature/1797480-azure-support-gen2-instances into cloud-init:master.
References