SUCCESSFUL verification on Jammy, Kinetic and Lunar.  No tracebacks, all
expected CloudArchitecture, CloudName, CloudPlatform and CloudRegion are
present when expected for openstack or ec2/aws. No missing apport report
keys from orig to -proposed.

Long logs of test run below Jammy/Kinetic/Lunar:
$ bash ./sru-2025376-verification.sh 
+ cat
+ cat
+ cat
+ for release in jammy kinetic lunar
+ VM=sru-jammy
+ lxc launch ubuntu-daily:jammy sru-jammy
Creating sru-jammy
Starting sru-jammy
+ lxc exec sru-jammy -- cloud-init status --wait --long
................................
status: done
boot_status_code: enabled-by-generator
last_update: Thu, 29 Jun 2023 19:44:00 +0000
detail:
DataSourceLXD
+ echo --- 1. Generate current apport report, selecting Openstack as cloud.
--- 1. Generate current apport report, selecting Openstack as cloud.
+ echo --- step through prompts and select K to keep report
--- step through prompts and select K to keep report
+ lxc exec sru-jammy -- apport-bug cloud-init

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
..
*** Your device details (lshw) may be useful to developers when addressing this 
bug, but gathering it requires admin privileges. Would you like to include this 
info?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): n
.
*** Is this machine running in a cloud environment?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y

*** Please select the cloud vendor or environment in which this instance
is running


Choices:
  1: AliYun
  2: AltCloud
  3: Amazon - Ec2
  4: Azure
  5: Bigstep
  6: Brightbox
  7: CloudSigma
  8: CloudStack
  9: DigitalOcean
  10: E24Cloud
  11: GCE - Google Compute Engine
  12: Huawei Cloud
  13: Exoscale
  14: Hetzner Cloud
  15: NWCS
  16: IBM - (aka SoftLayer or BlueMix)
  17: LXD
  18: MAAS
  19: NoCloud
  20: OpenNebula
  21: OpenStack
  22: Oracle
  23: OVF
  24: RbxCloud - (HyperOne, Rootbox, Rubikon)
  25: OpenTelekomCloud
  26: SAP Converged Cloud
  27: Scaleway
  28: SmartOS
  29: UpCloud
  30: VMware
  31: Vultr
  32: ZStack
  33: Outscale
  34: Other
  C: Cancel
Please choose 
(1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/C):
 21


*** Your user-data, cloud-config or autoinstall files can optionally  be 
provided from /var/lib/cloud/instance/user-data.txt and could be useful to 
developers when addressing this bug. Do you wish to attach user-data to this 
bug?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y
...

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (66.5 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): k
Problem report file: /tmp/apport.cloud-init.5fl06mv5.apport
++ lxc exec sru-jammy ls /tmp
++ grep apport
+ APPORT_FILE=apport.cloud-init.5fl06mv5.apport
+ lxc file pull sru-jammy/tmp/apport.cloud-init.5fl06mv5.apport 
apport-sru-jammy.orig
+ lxc exec sru-jammy rm /tmp/apport.cloud-init.5fl06mv5.apport
+ lxc file push setup_proposed.sh sru-jammy/
+ lxc exec sru-jammy -- bash /setup_proposed.sh
+ grep cloud-init
  cloud-init
Get:1 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 cloud-init all 
23.2-0ubuntu0~22.04.1 [533 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Preparing to unpack .../cloud-init_23.2-0ubuntu0~22.04.1_all.deb ...
Unpacking cloud-init (23.2-0ubuntu0~22.04.1) over (23.1.2-0ubuntu0~22.04.1) ...
Setting up cloud-init (23.2-0ubuntu0~22.04.1) ...
+ lxc file push openstack.json sru-jammy/run/cloud-init/instance-data.json
+ echo --- 2. Generate -proposed apport report which sources openstack 
instance-data.json, selecting Openstack as cloud.
--- 2. Generate -proposed apport report which sources openstack 
instance-data.json, selecting Openstack as cloud.
+ lxc exec sru-jammy -- apport-bug cloud-init

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
....
*** Your device details (lshw) may be useful to developers when addressing this 
bug, but gathering it requires admin privileges. Would you like to include this 
info?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): n

*** Your user-data, cloud-config or autoinstall files can optionally  be
provided from /var/lib/cloud/instance/user-data.txt and could be useful
to developers when addressing this bug. Do you wish to attach user-data
to this bug?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y
...

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (66.9 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): k
Problem report file: /tmp/apport.cloud-init.15uh6cz6.apport
++ lxc exec sru-jammy ls /tmp
++ grep apport
+ APPORT_FILE=apport.cloud-init.15uh6cz6.apport
+ lxc file pull sru-jammy/tmp/apport.cloud-init.15uh6cz6.apport 
apport-sru-jammy.openstack-proposed
+ lxc exec sru-jammy rm /tmp/apport.cloud-init.15uh6cz6.apport
+ echo --- 3. Generate -proposed apport report which sources ec2 instance-data, 
selecting Ec2 as cloud.
--- 3. Generate -proposed apport report which sources ec2 instance-data, 
selecting Ec2 as cloud.
+ lxc file push ec2.json sru-jammy/run/cloud-init/instance-data.json
+ lxc exec sru-jammy -- apport-bug cloud-init

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
....
*** Your device details (lshw) may be useful to developers when addressing this 
bug, but gathering it requires admin privileges. Would you like to include this 
info?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): n

*** Your user-data, cloud-config or autoinstall files can optionally  be
provided from /var/lib/cloud/instance/user-data.txt and could be useful
to developers when addressing this bug. Do you wish to attach user-data
to this bug?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y
...

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (66.9 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): k
Problem report file: /tmp/apport.cloud-init.ftsetvhm.apport
++ lxc exec sru-jammy ls /tmp
++ grep apport
+ APPORT_FILE=apport.cloud-init.ftsetvhm.apport
+ lxc file pull sru-jammy/tmp/apport.cloud-init.ftsetvhm.apport 
apport-sru-jammy.ec2-proposed
+ lxc exec sru-jammy rm /tmp/apport.cloud-init.ftsetvhm.apport
++ ls apport-sru-focal.orig apport-sru-jammy.ec2-proposed 
apport-sru-jammy.openstack-proposed apport-sru-jammy.orig
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-focal.orig
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-jammy.ec2-proposed
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-jammy.openstack-proposed
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-jammy.orig
+ echo --- 4. Inspect diff tags of orig to openstack-proposed report
--- 4. Inspect diff tags of orig to openstack-proposed report
+ diff -urN apport-sru-jammy.orig apport-sru-jammy.openstack-proposed
--- apport-sru-jammy.orig       2023-06-29 13:48:21.775558419 -0600
+++ apport-sru-jammy.openstack-proposed 2023-06-29 13:48:21.771558410 -0600
@@ -2,8 +2,12 @@
 ApportVersion: 2.20.11-0ubuntu82.5
 Architecture: amd64
 CasperMD5CheckResult: unknown
-CloudName: OpenStack
-Date: Thu Jun 29 19:44:01 2023
+CloudArchitecture: CloudArchitecture
+CloudID: openstack
+CloudName: openstack
+CloudPlatform: openstack
+CloudSubPlatform: metadata (http://169.254.169.254)
+Date: Thu Jun 29 19:44:25 2023
 Dependencies:
  adduser 3.118ubuntu5
  apt 2.4.9
@@ -257,7 +261,7 @@
  zlib1g 1:1.2.11.dfsg-2ubuntu9.2
 DistroRelease: Ubuntu 22.04
 NonfreeKernelModules: cpuid snd_usb_audio snd_usbmidi_lib usbhid veth nft_masq 
zfs zunicode zzstd zlua zavl icp zcommon znvpair spl vhost_net tap vhost_vsock 
vmw_vsock_virtio_transport_common vhost vhost_iotlb vsock ccm xt_comment rfcomm 
cmac algif_hash algif_skcipher af_alg xt_CHECKSUM xt_MASQUERADE xt_conntrack 
ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat snd_seq_dummy snd_hrtimer 
nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables 
libcrc32c nfnetlink bnep binfmt_misc nls_iso8859_1 snd_ctl_led 
snd_soc_skl_hda_dsp snd_soc_intel_hda_dsp_common snd_soc_hdac_hdmi 
snd_sof_probes joydev snd_hda_codec_hdmi snd_hda_codec_realtek 
snd_hda_codec_generic snd_soc_dmic snd_sof_pci_intel_tgl 
snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation 
soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof 
snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match 
snd_soc_acpi soundwire_bus snd_soc_core snd_compress iwlmvm ac97_bus 
snd_pcm_dmaengine snd_hda_intel intel_tcc_cooling snd_intel_dspcfg 
x86_pkg_temp_thermal intel_powerclamp btusb snd_intel_sdw_acpi coretemp mei_pxp 
btrtl snd_hda_codec mei_hdcp mac80211 snd_seq_midi btbcm snd_seq_midi_event 
uvcvideo snd_hda_core btintel processor_thermal_device_pci snd_rawmidi 
videobuf2_vmalloc btmtk pmt_telemetry processor_thermal_device videobuf2_memops 
snd_hwdep videobuf2_v4l2 rapl processor_thermal_rfim intel_rapl_msr pmt_class 
libarc4 intel_cstate bluetooth iwlwifi videodev processor_thermal_mbox snd_seq 
think_lmi mei_me spi_nor thinkpad_acpi firmware_attributes_class 
processor_thermal_rapl videobuf2_common ecdh_generic snd_pcm mc snd_seq_device 
cfg80211 ecc mtd mei nvram wmi_bmof intel_rapl_common snd_timer intel_vsec 
ucsi_acpi typec_ucsi snd igen6_edac soundcore typec int3403_thermal 
ledtrig_audio platform_profile int340x_thermal_zone intel_hid input_leds 
int3400_thermal sparse_keymap acpi_thermal_rel acpi_pad acpi_tad hid_multitouch 
kvm_intel serio_raw mac_hid kvm irqbypass iptable_filter ip6table_filter 
ip6_tables br_netfilter bridge stp llc arp_tables msr parport_pc ppdev lp 
parport efi_pstore dmi_sysfs ip_tables x_tables autofs4 dm_crypt i915 drm_buddy 
i2c_algo_bit ttm drm_display_helper cec rc_core drm_kms_helper hid_generic 
syscopyarea crct10dif_pclmul crc32_pclmul polyval_clmulni polyval_generic 
ghash_clmulni_intel sha512_ssse3 aesni_intel sysfillrect sysimgblt nvme 
crypto_simd cryptd drm psmouse e1000e intel_lpss_pci i2c_i801 intel_lpss 
thunderbolt xhci_pci nvme_core spi_intel_pci i2c_hid_acpi spi_intel i2c_smbus 
xhci_pci_renesas idma64 i2c_hid nvme_common video hid wmi pinctrl_tigerlake
-Package: cloud-init 23.1.2-0ubuntu0~22.04.1
+Package: cloud-init 23.2-0ubuntu0~22.04.1
 PackageArchitecture: all
 ProcCpuinfoMinimal:
  processor     : 15
@@ -267,7 +271,7 @@
  model name    : 12th Gen Intel(R) Core(TM) i5-1250P
  stepping      : 3
  microcode     : 0x429
- cpu MHz               : 425.451
+ cpu MHz               : 2100.000
  cache size    : 12288 KB
  physical id   : 0
  siblings      : 16
@@ -293,7 +297,7 @@
  LANG=C.UTF-8
 ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
 SourcePackage: cloud-init
-Tags:  jammy uec-images
+Tags:  jammy uec-images package-from-proposed
 Uname: Linux 6.2.0-20-generic x86_64
 UpgradeStatus: No upgrade log present (probably fresh install)
 _MarkForUpload: True
+ true
+ echo --- 5. Inspect diff tags of openstack-proposed to ec2-proposed report
--- 5. Inspect diff tags of openstack-proposed to ec2-proposed report
+ diff -urN apport-sru-jammy.openstack-proposed apport-sru-jammy.ec2-proposed
--- apport-sru-jammy.openstack-proposed 2023-06-29 13:48:21.771558410 -0600
+++ apport-sru-jammy.ec2-proposed       2023-06-29 13:48:21.771558410 -0600
@@ -2,12 +2,11 @@
 ApportVersion: 2.20.11-0ubuntu82.5
 Architecture: amd64
 CasperMD5CheckResult: unknown
-CloudArchitecture: CloudArchitecture
-CloudID: openstack
-CloudName: openstack
-CloudPlatform: openstack
-CloudSubPlatform: metadata (http://169.254.169.254)
-Date: Thu Jun 29 19:44:25 2023
+CloudArchitecture: x86_64
+CloudName: aws
+CloudPlatform: ec2
+CloudRegion: us-east-2
+Date: Thu Jun 29 19:48:12 2023
 Dependencies:
  adduser 3.118ubuntu5
  apt 2.4.9
@@ -271,7 +270,7 @@
  model name    : 12th Gen Intel(R) Core(TM) i5-1250P
  stepping      : 3
  microcode     : 0x429
- cpu MHz               : 2100.000
+ cpu MHz               : 2270.429
  cache size    : 12288 KB
  physical id   : 0
  siblings      : 16
+ true
+ for release in jammy kinetic lunar
+ VM=sru-kinetic
+ lxc launch ubuntu-daily:kinetic sru-kinetic
Creating sru-kinetic
Starting sru-kinetic                          
+ lxc exec sru-kinetic -- cloud-init status --wait --long
............................
status: done
boot_status_code: enabled-by-generator
last_update: Thu, 29 Jun 2023 19:49:19 +0000
detail:
DataSourceLXD
+ echo --- 1. Generate current apport report, selecting Openstack as cloud.
--- 1. Generate current apport report, selecting Openstack as cloud.
+ echo --- step through prompts and select K to keep report
--- step through prompts and select K to keep report
+ lxc exec sru-kinetic -- apport-bug cloud-init

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
..
*** Your device details (lshw) may be useful to developers when addressing this 
bug, but gathering it requires admin privileges. Would you like to include this 
info?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): n
.
*** Is this machine running in a cloud environment?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y

*** Please select the cloud vendor or environment in which this instance
is running


Choices:
  1: AliYun
  2: AltCloud
  3: Amazon - Ec2
  4: Azure
  5: Bigstep
  6: Brightbox
  7: CloudSigma
  8: CloudStack
  9: DigitalOcean
  10: E24Cloud
  11: GCE - Google Compute Engine
  12: Huawei Cloud
  13: Exoscale
  14: Hetzner Cloud
  15: NWCS
  16: IBM - (aka SoftLayer or BlueMix)
  17: LXD
  18: MAAS
  19: NoCloud
  20: OpenNebula
  21: OpenStack
  22: Oracle
  23: OVF
  24: RbxCloud - (HyperOne, Rootbox, Rubikon)
  25: OpenTelekomCloud
  26: SAP Converged Cloud
  27: Scaleway
  28: SmartOS
  29: UpCloud
  30: VMware
  31: Vultr
  32: ZStack
  33: Outscale
  34: Other
  C: Cancel
Please choose 
(1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/C):
 21


*** Your user-data, cloud-config or autoinstall files can optionally  be 
provided from /var/lib/cloud/instance/user-data.txt and could be useful to 
developers when addressing this bug. Do you wish to attach user-data to this 
bug?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y
...

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (65.1 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): k
Problem report file: /tmp/apport.cloud-init.r7lv3rmw.apport
++ lxc exec sru-kinetic ls /tmp
++ grep apport
+ APPORT_FILE=apport.cloud-init.r7lv3rmw.apport
+ lxc file pull sru-kinetic/tmp/apport.cloud-init.r7lv3rmw.apport 
apport-sru-kinetic.orig
+ lxc exec sru-kinetic rm /tmp/apport.cloud-init.r7lv3rmw.apport
+ lxc file push setup_proposed.sh sru-kinetic/
+ lxc exec sru-kinetic -- bash /setup_proposed.sh
+ grep cloud-init
  cloud-init
Get:1 http://archive.ubuntu.com/ubuntu kinetic-proposed/main amd64 cloud-init 
all 23.2-0ubuntu0~22.10.1 [527 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Preparing to unpack .../cloud-init_23.2-0ubuntu0~22.10.1_all.deb ...
Unpacking cloud-init (23.2-0ubuntu0~22.10.1) over (23.1.2-0ubuntu0~22.10.1) ...
Setting up cloud-init (23.2-0ubuntu0~22.10.1) ...
+ lxc file push openstack.json sru-kinetic/run/cloud-init/instance-data.json
+ echo --- 2. Generate -proposed apport report which sources openstack 
instance-data.json, selecting Openstack as cloud.
--- 2. Generate -proposed apport report which sources openstack 
instance-data.json, selecting Openstack as cloud.
+ lxc exec sru-kinetic -- apport-bug cloud-init

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
....
*** Your device details (lshw) may be useful to developers when addressing this 
bug, but gathering it requires admin privileges. Would you like to include this 
info?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): n
.
*** Your user-data, cloud-config or autoinstall files can optionally  be 
provided from /var/lib/cloud/instance/user-data.txt and could be useful to 
developers when addressing this bug. Do you wish to attach user-data to this 
bug?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y
....

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (65.8 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): k
Problem report file: /tmp/apport.cloud-init.8xxq8zh3.apport
++ lxc exec sru-kinetic ls /tmp
++ grep apport
+ APPORT_FILE=apport.cloud-init.8xxq8zh3.apport
+ lxc file pull sru-kinetic/tmp/apport.cloud-init.8xxq8zh3.apport 
apport-sru-kinetic.openstack-proposed
+ lxc exec sru-kinetic rm /tmp/apport.cloud-init.8xxq8zh3.apport
+ echo --- 3. Generate -proposed apport report which sources ec2 instance-data, 
selecting Ec2 as cloud.
--- 3. Generate -proposed apport report which sources ec2 instance-data, 
selecting Ec2 as cloud.
+ lxc file push ec2.json sru-kinetic/run/cloud-init/instance-data.json
+ lxc exec sru-kinetic -- apport-bug cloud-init

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
....
*** Your device details (lshw) may be useful to developers when addressing this 
bug, but gathering it requires admin privileges. Would you like to include this 
info?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): n

*** Your user-data, cloud-config or autoinstall files can optionally  be
provided from /var/lib/cloud/instance/user-data.txt and could be useful
to developers when addressing this bug. Do you wish to attach user-data
to this bug?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y
.....

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (65.5 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): k
Problem report file: /tmp/apport.cloud-init.pyut9w_z.apport
++ lxc exec sru-kinetic ls /tmp
++ grep apport
+ APPORT_FILE=apport.cloud-init.pyut9w_z.apport
+ lxc file pull sru-kinetic/tmp/apport.cloud-init.pyut9w_z.apport 
apport-sru-kinetic.ec2-proposed
+ lxc exec sru-kinetic rm /tmp/apport.cloud-init.pyut9w_z.apport
++ ls apport-sru-focal.orig apport-sru-jammy.ec2-proposed 
apport-sru-jammy.openstack-proposed apport-sru-jammy.orig 
apport-sru-kinetic.ec2-proposed apport-sru-kinetic.openstack-proposed 
apport-sru-kinetic.orig
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-focal.orig
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-jammy.ec2-proposed
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-jammy.openstack-proposed
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-jammy.orig
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-kinetic.ec2-proposed
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-kinetic.openstack-proposed
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-kinetic.orig
+ echo --- 4. Inspect diff tags of orig to openstack-proposed report
--- 4. Inspect diff tags of orig to openstack-proposed report
+ diff -urN apport-sru-kinetic.orig apport-sru-kinetic.openstack-proposed
--- apport-sru-kinetic.orig     2023-06-29 13:50:54.371928525 -0600
+++ apport-sru-kinetic.openstack-proposed       2023-06-29 13:50:54.367928514 
-0600
@@ -2,8 +2,12 @@
 ApportVersion: 2.23.1-0ubuntu3.2
 Architecture: amd64
 CasperMD5CheckResult: unknown
-CloudName: OpenStack
-Date: Thu Jun 29 19:49:20 2023
+CloudArchitecture: CloudArchitecture
+CloudID: openstack
+CloudName: openstack
+CloudPlatform: openstack
+CloudSubPlatform: metadata (http://169.254.169.254)
+Date: Thu Jun 29 19:50:31 2023
 Dependencies:
  adduser 3.121ubuntu1
  apt 2.5.3
@@ -266,7 +270,7 @@
  zlib1g 1:1.2.11.dfsg-4.1ubuntu1
 DistroRelease: Ubuntu 22.10
 NonfreeKernelModules: cpuid snd_usb_audio snd_usbmidi_lib usbhid veth nft_masq 
zfs zunicode zzstd zlua zavl icp zcommon znvpair spl vhost_net tap vhost_vsock 
vmw_vsock_virtio_transport_common vhost vhost_iotlb vsock ccm xt_comment rfcomm 
cmac algif_hash algif_skcipher af_alg xt_CHECKSUM xt_MASQUERADE xt_conntrack 
ipt_REJECT nf_reject_ipv4 xt_tcpudp nft_compat snd_seq_dummy snd_hrtimer 
nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables 
libcrc32c nfnetlink bnep binfmt_misc nls_iso8859_1 snd_ctl_led 
snd_soc_skl_hda_dsp snd_soc_intel_hda_dsp_common snd_soc_hdac_hdmi 
snd_sof_probes joydev snd_hda_codec_hdmi snd_hda_codec_realtek 
snd_hda_codec_generic snd_soc_dmic snd_sof_pci_intel_tgl 
snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation 
soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof 
snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match 
snd_soc_acpi soundwire_bus snd_soc_core snd_compress iwlmvm ac97_bus 
snd_pcm_dmaengine snd_hda_intel intel_tcc_cooling snd_intel_dspcfg 
x86_pkg_temp_thermal intel_powerclamp btusb snd_intel_sdw_acpi coretemp mei_pxp 
btrtl snd_hda_codec mei_hdcp mac80211 snd_seq_midi btbcm snd_seq_midi_event 
uvcvideo snd_hda_core btintel processor_thermal_device_pci snd_rawmidi 
videobuf2_vmalloc btmtk pmt_telemetry processor_thermal_device videobuf2_memops 
snd_hwdep videobuf2_v4l2 rapl processor_thermal_rfim intel_rapl_msr pmt_class 
libarc4 intel_cstate bluetooth iwlwifi videodev processor_thermal_mbox snd_seq 
think_lmi mei_me spi_nor thinkpad_acpi firmware_attributes_class 
processor_thermal_rapl videobuf2_common ecdh_generic snd_pcm mc snd_seq_device 
cfg80211 ecc mtd mei nvram wmi_bmof intel_rapl_common snd_timer intel_vsec 
ucsi_acpi typec_ucsi snd igen6_edac soundcore typec int3403_thermal 
ledtrig_audio platform_profile int340x_thermal_zone intel_hid input_leds 
int3400_thermal sparse_keymap acpi_thermal_rel acpi_pad acpi_tad hid_multitouch 
kvm_intel serio_raw mac_hid kvm irqbypass iptable_filter ip6table_filter 
ip6_tables br_netfilter bridge stp llc arp_tables msr parport_pc ppdev lp 
parport efi_pstore dmi_sysfs ip_tables x_tables autofs4 dm_crypt i915 drm_buddy 
i2c_algo_bit ttm drm_display_helper cec rc_core drm_kms_helper hid_generic 
syscopyarea crct10dif_pclmul crc32_pclmul polyval_clmulni polyval_generic 
ghash_clmulni_intel sha512_ssse3 aesni_intel sysfillrect sysimgblt nvme 
crypto_simd cryptd drm psmouse e1000e intel_lpss_pci i2c_i801 intel_lpss 
thunderbolt xhci_pci nvme_core spi_intel_pci i2c_hid_acpi spi_intel i2c_smbus 
xhci_pci_renesas idma64 i2c_hid nvme_common video hid wmi pinctrl_tigerlake
-Package: cloud-init 23.1.2-0ubuntu0~22.10.1
+Package: cloud-init 23.2-0ubuntu0~22.10.1
 PackageArchitecture: all
 ProcCpuinfoMinimal:
  processor     : 15
@@ -276,7 +280,7 @@
  model name    : 12th Gen Intel(R) Core(TM) i5-1250P
  stepping      : 3
  microcode     : 0x429
- cpu MHz               : 2100.000
+ cpu MHz               : 1943.396
  cache size    : 12288 KB
  physical id   : 0
  siblings      : 16
@@ -302,7 +306,7 @@
  LANG=C.UTF-8
 ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
 SourcePackage: cloud-init
-Tags:  kinetic uec-images
+Tags:  kinetic uec-images package-from-proposed
 Uname: Linux 6.2.0-20-generic x86_64
 UpgradeStatus: No upgrade log present (probably fresh install)
 _MarkForUpload: True
+ true
+ echo --- 5. Inspect diff tags of openstack-proposed to ec2-proposed report
--- 5. Inspect diff tags of openstack-proposed to ec2-proposed report
+ diff -urN apport-sru-kinetic.openstack-proposed 
apport-sru-kinetic.ec2-proposed
--- apport-sru-kinetic.openstack-proposed       2023-06-29 13:50:54.367928514 
-0600
+++ apport-sru-kinetic.ec2-proposed     2023-06-29 13:50:54.363928503 -0600
@@ -2,12 +2,11 @@
 ApportVersion: 2.23.1-0ubuntu3.2
 Architecture: amd64
 CasperMD5CheckResult: unknown
-CloudArchitecture: CloudArchitecture
-CloudID: openstack
-CloudName: openstack
-CloudPlatform: openstack
-CloudSubPlatform: metadata (http://169.254.169.254)
-Date: Thu Jun 29 19:50:31 2023
+CloudArchitecture: x86_64
+CloudName: aws
+CloudPlatform: ec2
+CloudRegion: us-east-2
+Date: Thu Jun 29 19:50:43 2023
 Dependencies:
  adduser 3.121ubuntu1
  apt 2.5.3
@@ -280,7 +279,7 @@
  model name    : 12th Gen Intel(R) Core(TM) i5-1250P
  stepping      : 3
  microcode     : 0x429
- cpu MHz               : 1943.396
+ cpu MHz               : 2100.000
  cache size    : 12288 KB
  physical id   : 0
  siblings      : 16
+ true
+ for release in jammy kinetic lunar
+ VM=sru-lunar
+ lxc launch ubuntu-daily:lunar sru-lunar
Creating sru-lunar
Starting sru-lunar                            
+ lxc exec sru-lunar -- cloud-init status --wait --long
......................................
status: done
boot_status_code: enabled-by-generator
last_update: Thu, 29 Jun 2023 19:51:55 +0000
detail:
DataSourceLXD
+ echo --- 1. Generate current apport report, selecting Openstack as cloud.
--- 1. Generate current apport report, selecting Openstack as cloud.
+ echo --- step through prompts and select K to keep report
--- step through prompts and select K to keep report
+ lxc exec sru-lunar -- apport-bug cloud-init

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
..
*** Your device details (lshw) may be useful to developers when addressing this 
bug, but gathering it requires admin privileges. Would you like to include this 
info?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): n
.
*** Is this machine running in a cloud environment?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y

*** Please select the cloud vendor or environment in which this instance
is running


Choices:
  1: AliYun
  2: AltCloud
  3: Amazon - Ec2
  4: Azure
  5: Bigstep
  6: Brightbox
  7: CloudSigma
  8: CloudStack
  9: DigitalOcean
  10: E24Cloud
  11: GCE - Google Compute Engine
  12: Huawei Cloud
  13: Exoscale
  14: Hetzner Cloud
  15: NWCS
  16: IBM - (aka SoftLayer or BlueMix)
  17: LXD
  18: MAAS
  19: NoCloud
  20: OpenNebula
  21: OpenStack
  22: Oracle
  23: OVF
  24: RbxCloud - (HyperOne, Rootbox, Rubikon)
  25: OpenTelekomCloud
  26: SAP Converged Cloud
  27: Scaleway
  28: SmartOS
  29: UpCloud
  30: VMware
  31: Vultr
  32: ZStack
  33: Outscale
  34: Other
  C: Cancel
Please choose 
(1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/C):
 21


*** Your user-data, cloud-config or autoinstall files can optionally  be 
provided from /var/lib/cloud/instance/user-data.txt and could be useful to 
developers when addressing this bug. Do you wish to attach user-data to this 
bug?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y
...

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (66.7 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): k
Problem report file: /tmp/apport.cloud-init.7ummv8mb.apport
++ lxc exec sru-lunar ls /tmp
++ grep apport
+ APPORT_FILE=apport.cloud-init.7ummv8mb.apport
+ lxc file pull sru-lunar/tmp/apport.cloud-init.7ummv8mb.apport 
apport-sru-lunar.orig
+ lxc exec sru-lunar rm /tmp/apport.cloud-init.7ummv8mb.apport
+ lxc file push setup_proposed.sh sru-lunar/
+ lxc exec sru-lunar -- bash /setup_proposed.sh
+ grep cloud-init
cloud-init is already the newest version (23.1.2-0ubuntu0~23.04.1).
+ lxc file push openstack.json sru-lunar/run/cloud-init/instance-data.json
+ echo --- 2. Generate -proposed apport report which sources openstack 
instance-data.json, selecting Openstack as cloud.
--- 2. Generate -proposed apport report which sources openstack 
instance-data.json, selecting Openstack as cloud.
+ lxc exec sru-lunar -- apport-bug cloud-init

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
....
*** Your device details (lshw) may be useful to developers when addressing this 
bug, but gathering it requires admin privileges. Would you like to include this 
info?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): n

*** Is this machine running in a cloud environment?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y

*** Please select the cloud vendor or environment in which this instance
is running


Choices:
  1: AliYun
  2: AltCloud
  3: Amazon - Ec2
  4: Azure
  5: Bigstep
  6: Brightbox
  7: CloudSigma
  8: CloudStack
  9: DigitalOcean
  10: E24Cloud
  11: GCE - Google Compute Engine
  12: Huawei Cloud
  13: Exoscale
  14: Hetzner Cloud
  15: NWCS
  16: IBM - (aka SoftLayer or BlueMix)
  17: LXD
  18: MAAS
  19: NoCloud
  20: OpenNebula
  21: OpenStack
  22: Oracle
  23: OVF
  24: RbxCloud - (HyperOne, Rootbox, Rubikon)
  25: OpenTelekomCloud
  26: SAP Converged Cloud
  27: Scaleway
  28: SmartOS
  29: UpCloud
  30: VMware
  31: Vultr
  32: ZStack
  33: Outscale
  34: Other
  C: Cancel
Please choose 
(1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/C):
 21

.
*** Your user-data, cloud-config or autoinstall files can optionally  be 
provided from /var/lib/cloud/instance/user-data.txt and could be useful to 
developers when addressing this bug. Do you wish to attach user-data to this 
bug?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y
...

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (67.2 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): k
Problem report file: /tmp/apport.cloud-init.8o0o9n7v.apport
++ lxc exec sru-lunar ls /tmp
++ grep apport
+ APPORT_FILE=apport.cloud-init.8o0o9n7v.apport
+ lxc file pull sru-lunar/tmp/apport.cloud-init.8o0o9n7v.apport 
apport-sru-lunar.openstack-proposed
+ lxc exec sru-lunar rm /tmp/apport.cloud-init.8o0o9n7v.apport
+ echo --- 3. Generate -proposed apport report which sources ec2 instance-data, 
selecting Ec2 as cloud.
--- 3. Generate -proposed apport report which sources ec2 instance-data, 
selecting Ec2 as cloud.
+ lxc file push ec2.json sru-lunar/run/cloud-init/instance-data.json
+ lxc exec sru-lunar -- apport-bug cloud-init

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
....
*** Your device details (lshw) may be useful to developers when addressing this 
bug, but gathering it requires admin privileges. Would you like to include this 
info?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): n

*** Is this machine running in a cloud environment?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y

*** Please select the cloud vendor or environment in which this instance
is running


Choices:
  1: AliYun
  2: AltCloud
  3: Amazon - Ec2
  4: Azure
  5: Bigstep
  6: Brightbox
  7: CloudSigma
  8: CloudStack
  9: DigitalOcean
  10: E24Cloud
  11: GCE - Google Compute Engine
  12: Huawei Cloud
  13: Exoscale
  14: Hetzner Cloud
  15: NWCS
  16: IBM - (aka SoftLayer or BlueMix)
  17: LXD
  18: MAAS
  19: NoCloud
  20: OpenNebula
  21: OpenStack
  22: Oracle
  23: OVF
  24: RbxCloud - (HyperOne, Rootbox, Rubikon)
  25: OpenTelekomCloud
  26: SAP Converged Cloud
  27: Scaleway
  28: SmartOS
  29: UpCloud
  30: VMware
  31: Vultr
  32: ZStack
  33: Outscale
  34: Other
  C: Cancel
Please choose 
(1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/C):
 21

.
*** Your user-data, cloud-config or autoinstall files can optionally  be 
provided from /var/lib/cloud/instance/user-data.txt and could be useful to 
developers when addressing this bug. Do you wish to attach user-data to this 
bug?


What would you like to do? Your options are:
  Y: Yes
  N: No
  C: Cancel
Please choose (Y/N/C): y
..

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (67.6 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): k
Problem report file: /tmp/apport.cloud-init.40zhlhh_.apport
++ lxc exec sru-lunar ls /tmp
++ grep apport
+ APPORT_FILE=apport.cloud-init.40zhlhh_.apport
+ lxc file pull sru-lunar/tmp/apport.cloud-init.40zhlhh_.apport 
apport-sru-lunar.ec2-proposed
+ lxc exec sru-lunar rm /tmp/apport.cloud-init.40zhlhh_.apport
++ ls apport-sru-focal.orig apport-sru-jammy.ec2-proposed 
apport-sru-jammy.openstack-proposed apport-sru-jammy.orig 
apport-sru-kinetic.ec2-proposed apport-sru-kinetic.openstack-proposed 
apport-sru-kinetic.orig apport-sru-lunar.ec2-proposed 
apport-sru-lunar.openstack-proposed apport-sru-lunar.orig
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-focal.orig
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-jammy.ec2-proposed
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-jammy.openstack-proposed
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-jammy.orig
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-kinetic.ec2-proposed
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-kinetic.openstack-proposed
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-kinetic.orig
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-lunar.ec2-proposed
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-lunar.openstack-proposed
+ for file in `ls apport*`
+ sed -i '1,/logs.tgz/!d' apport-sru-lunar.orig
+ echo --- 4. Inspect diff tags of orig to openstack-proposed report
--- 4. Inspect diff tags of orig to openstack-proposed report
+ diff -urN apport-sru-lunar.orig apport-sru-lunar.openstack-proposed
--- apport-sru-lunar.orig       2023-06-29 13:55:51.907065306 -0600
+++ apport-sru-lunar.openstack-proposed 2023-06-29 13:55:51.899065426 -0600
@@ -2,14 +2,14 @@
 ApportVersion: 2.26.1-0ubuntu2
 Architecture: amd64
 CasperMD5CheckResult: unknown
-CloudArchitecture: x86_64
+CloudArchitecture: CloudArchitecture
 CloudBuildName: server
-CloudID: lxd
+CloudID: openstack
 CloudName: OpenStack
-CloudPlatform: lxd
+CloudPlatform: openstack
 CloudSerial: 20230624
-CloudSubPlatform: LXD socket API v. 1.0 (/dev/lxd/sock)
-Date: Thu Jun 29 19:51:56 2023
+CloudSubPlatform: metadata (http://169.254.169.254)
+Date: Thu Jun 29 19:52:21 2023
 Dependencies:
  adduser 3.129ubuntu1
  apt 2.6.0
+ true
+ echo --- 5. Inspect diff tags of openstack-proposed to ec2-proposed report
--- 5. Inspect diff tags of openstack-proposed to ec2-proposed report
+ diff -urN apport-sru-lunar.openstack-proposed apport-sru-lunar.ec2-proposed
--- apport-sru-lunar.openstack-proposed 2023-06-29 13:55:51.899065426 -0600
+++ apport-sru-lunar.ec2-proposed       2023-06-29 13:55:51.899065426 -0600
@@ -2,14 +2,13 @@
 ApportVersion: 2.26.1-0ubuntu2
 Architecture: amd64
 CasperMD5CheckResult: unknown
-CloudArchitecture: CloudArchitecture
+CloudArchitecture: x86_64
 CloudBuildName: server
-CloudID: openstack
 CloudName: OpenStack
-CloudPlatform: openstack
+CloudPlatform: ec2
+CloudRegion: us-east-2
 CloudSerial: 20230624
-CloudSubPlatform: metadata (http://169.254.169.254)
-Date: Thu Jun 29 19:52:21 2023
+Date: Thu Jun 29 19:55:29 2023
 Dependencies:
  adduser 3.129ubuntu1
  apt 2.6.0
+ true


** Tags removed: verification-needed-jammy verification-needed-kinetic
** Tags added: verification-done-jammy verification-done-kinetic

** Also affects: apport (Ubuntu Lunar)
   Importance: Undecided
       Status: New

** Also affects: cloud-init (Ubuntu Lunar)
   Importance: Undecided
       Status: New

** Tags added: verification-done-lunar

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1724623

Title:
  Update ubuntu cloud info

Status in Apport:
  Fix Released
Status in apport package in Ubuntu:
  Fix Released
Status in cloud-init package in Ubuntu:
  Fix Released
Status in cloud-init source package in Focal:
  Fix Committed
Status in cloud-init source package in Jammy:
  Fix Committed
Status in cloud-init source package in Kinetic:
  Fix Committed
Status in apport source package in Lunar:
  New
Status in cloud-init source package in Lunar:
  New

Bug description:
  [ Impact ]
  Apport reported bug add invalid bug tags such as `uec-images` which no longer 
has meaning or `ec2-images` on openstack. Since cloud-init is installed in all 
these images and detects the correct datasource, leverage cloud-init's 
instance-data.json or cloud-id

  [ Test Plan ]

  1. Launch LXD container for each series
  2. upgrade to cloud-init from -proposed.
  3. Execute apport-bug cloud-init and view report to assess that correct tags 
are present for LXD datasource.
  4. replace /run/cloud-init/instance-data.json cloud-id content with examples 
from openstack, ec2, configdrive and assert appropriate tags match the platform 
details.

  verification scriptlet (attached):

  #!/bin/bash
  set -ex

  cat > setup_proposed.sh <<EOF
  #/bin/bash
  mirror=http://archive.ubuntu.com/ubuntu
  echo deb \$mirror \$(lsb_release -sc)-proposed main | tee 
/etc/apt/sources.list.d/proposed.list
  apt-get update -q
  apt-get install -qy cloud-init
  EOF

  
  cat > openstack.json <<EOF
  {
    "ds" : {},
    "v1": {
          "cloud_id": "openstack",
          "cloud_name": "openstack",
          "machine": "CloudArchitecture",
          "platform": "openstack",
          "region": null,
          "subplatform": "metadata (http://169.254.169.254)"
    }
  }
  EOF

  cat > ec2.json << EOF
  {
    "ds": {
      "imageId": "ami-123",
      "instanceType": "m1.tiny",
      "region": "us-east-1"
    },
    "v1": {
      "cloud_name": "aws",
      "distro": "ubuntu",
      "distro_release": "jammy",
      "distro_version": "22.04",
      "instance_id": "i-06b5687b4d7b8595d",
      "machine": "x86_64",
      "platform": "ec2",
      "python_version": "3.10.4",
      "region": "us-east-2",
      "variant": "ubuntu"
    }
  }
  EOF

  for release in focal jammy kinetic lunar; do
   VM=sru-$release
   lxc launch ubuntu-daily:$release $VM
   while ! lxc exec $VM -- cloud-init status --wait --long; do
      sleep 5
   done
   echo --- 1. Generate current apport report, selecting Openstack as cloud.
   echo --- step through prompts and select 'K' to keep report
   lxc exec $VM -- apport-bug cloud-init
   APPORT_FILE=$(lxc exec $VM ls /tmp | grep apport)
   lxc file pull $VM/tmp/$APPORT_FILE apport-$VM.orig
   lxc exec $VM rm /tmp/$APPORT_FILE

   lxc file push setup_proposed.sh $VM/
   lxc exec $VM -- bash /setup_proposed.sh | grep cloud-init

   lxc file push openstack.json $VM/run/cloud-init/instance-data.json
   echo --- 2. Generate -proposed apport report which sources openstack 
instance-data.json, selecting Openstack as cloud.
   lxc exec $VM -- apport-bug cloud-init
   APPORT_FILE=$(lxc exec $VM ls /tmp | grep apport)
   lxc file pull $VM/tmp/$APPORT_FILE apport-$VM.openstack-proposed
   lxc exec $VM rm /tmp/$APPORT_FILE

   echo --- 3. Generate -proposed apport report which sources ec2 
instance-data, selecting Ec2 as cloud.
   lxc file push ec2.json $VM/run/cloud-init/instance-data.json
   lxc exec $VM -- apport-bug cloud-init
   APPORT_FILE=$(lxc exec $VM ls /tmp | grep apport)
   lxc file pull $VM/tmp/$APPORT_FILE apport-$VM.ec2-proposed
   lxc exec $VM rm /tmp/$APPORT_FILE

   # redact logs lines for easy diffs
   for file in `ls apport*`; do
       sed -i '1,/logs.tgz/!d' $file
   done
   echo --- 4. Inspect diff tags of orig to openstack-proposed report
   diff -urN apport-$VM.orig apport-$VM.openstack-proposed || true
   echo --- 5. Inspect diff tags of openstack-proposed to ec2-proposed report
   diff -urN apport-$VM.openstack-proposed apport-$VM.ec2-proposed || true

  done

  
  [ Where problems could occur ]
  apport-bug could traceback on poor logic preventing simple bug filing at 
apport CLI. It could omit tags if unable to process 
cloud-init/instance-data.json. nothing critical to daily performance, uptime or 
security

  [ Other Info ]

  
  [Original description]

  Issues:
   - Using the presence of cloud-init to flag an image as a cloud image is 
incorrect now that ubuntu-server includes cloud-init (and ubuntu-core images)
   - Using the presence of EC2 metadata source is incorrect as many non-EC2 
clouds provide EC2 metadata.  Thus we have bugs like bug #1722946 that are 
tagged as an 'ec2-images' bug which are clearly on openstack
   - Marking all bugs that have cloud-init but no EC2 metadata source as an 
'uec-images' bug uses a name that no longer has meaning.

  Solution:
   - If cloud-init is present, check for /etc/cloud/build.info to indicate an 
Ubuntu cloud images, tag as 'cloud-images'.  Pull the build_name and serial 
from that file into the bug comments.
   - If cloud-init is present, check for the presence of 
/run/cloud-init/cloud.cfg.  Parse this yaml to determine the datasource type.  
Add the datasource used to the bug comment.

  I have filed bug #1724626 to ask cloud-init development to surface
  more information from ds-identify to help ID the cloud so that we can
  better tag/annotate the bug.  There may also be some info we can get
  to indicate the image ID on more clouds than just AWS.  At a minimum I
  would like to see dsidentify make the EC2 platform it found available
  for consumers in cloud.cfg.  This would allow us to identify AWS EC2
  from look-alike datasources so that we can tag a bug as ec2-images for
  bug really on AWS and add EC2 specific fields to the
  description/attachments.

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1724623/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to