[Bug 2055077] Re: cloudinit.sources.DataSourceEc2:583 Calling 'None' failed

Steve Langasek 2055077 at bugs.launchpad.net
Wed Mar 6 19:02:33 UTC 2024


AIUI the proposed change to livecd-rootfs has some issues wrt
correctness on flavors, moving this back to 'in progress'

** Changed in: livecd-rootfs (Ubuntu)
       Status: Fix Committed => In Progress

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

Title:
  cloudinit.sources.DataSourceEc2:583 Calling 'None' failed

Status in subiquity:
  Fix Committed
Status in ubuntu-desktop-provision:
  New
Status in cloud-init package in Ubuntu:
  In Progress
Status in livecd-rootfs package in Ubuntu:
  In Progress

Bug description:
  Install ISOs built with the stock cloud-init /etc/cloud/cloud.cfg will
  have the installer hang for some time, while it waits for attempts to
  reach EC2 that will ultimately fail.

  In livecd-rootfs, I thought the fix was going to be to supply the
  special installer cloud.cfg file for all Subiquity-backend install
  cases, but doing so is insufficient so more investigation is needed.

  In cloud-init, I also believe there is a bug here, as there appears to
  be a call to a None reference.  This also triggers the warning dialog
  from LP: #1669675, which does explicitly ask for a bug to be filed.

  Steps to reproduce:
  1. Start from the edubuntu ISO, I used https://cdimage.ubuntu.com/edubuntu/daily-live/20240301/noble-desktop-amd64.iso
  2. observe cloud-init service state (inactive (dead))
  3. start it anyhow

  Messages like the following are visible in cloud-init.log
  2024-02-26 19:29:49,617 WARNING cloudinit.sources.DataSourceEc2:583 Calling 'None' failed [119/120s]: request error [HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x74a6d282ad70>, 'Connection to 169.254.169.254 timed out. (connect timeout=18.0)'))]
  2024-02-26 19:29:49,618 DEBUG cloudinit.url_helper:305 [0/1] open 'http://[fd00:ec2::254]/2009-04-04/meta-data/instance-id' with {'url': 'http://[fd00:ec2::254]/2009-04-04/meta-data/instance-id', 'stream': False, 'allow_redirects': True, 'method': 'GET', 'timeout': 0.0} configuration

  Original description follows:

  Doesn't get past "Preparing Edubuntu..." with spinner.

  $ ubuntu-desktop-bootstrap --try-or-install

  (ubuntu_bootstrap:6154): Gdk-CRITICAL **: 18:44:41.905:
  gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed

  (ubuntu_bootstrap:6154): Gtk-WARNING **: 18:44:41.906:
  /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so:
  undefined symbol: ibus_input_context_set_post_process_key_event

  (ubuntu_bootstrap:6154): Gtk-WARNING **: 18:44:41.906: Loading IM context type 'ibus' failed
  flutter: INFO ubuntu_bootstrap: Logging to /var/log/installer/ubuntu_bootstrap.log
  flutter: WARNING subiquity_server: Unable to find the subiquity_client package. Falling back to the current working dir: /home/edubuntu
  flutter: INFO subiquity_server: Waiting server up to 90 seconds
  flutter: INFO subiquity_server: ApplicationState.WAITING
  flutter: DEBUG config: Loaded config file from /usr/share/desktop-provision/whitelabel.yaml
  flutter: INFO flavor_provider: Using flavor from config: UbuntuFlavor.edubuntu
  flutter: INFO subiquity_client: Opening socket to Endpoint(/run/subiquity/socket )
  flutter: DEBUG desktop: Disabling automounting
  flutter: DEBUG subiquity_client: POST http://localhost/meta/client_variant?variant=%22desktop%22
  flutter: DEBUG subiquity_client: GET http://localhost/refresh?wait=true
  flutter: DEBUG telemetry: Writing report to /var/log/installer/telemetry
  flutter: DEBUG subiquity_client: ==> setVariant(Variant.DESKTOP) null
  flutter: DEBUG subiquity_client: ==> checkRefresh() {"availability": "UNAVAILABLE", "current_snap_version": "0+git.883b07e1", "new_snap_version": ""}
  flutter: DEBUG refresh: RefreshState.status(status: RefreshStatus(availability: RefreshCheckState.UNAVAILABLE, currentSnapVersion: 0+git.883b07e1, newSnapVersion: ))
  flutter: INFO subiquity_status: null => ApplicationStatus(state: ApplicationState.WAITING, confirmingTty: , error: null, cloudInitOk: true, interactive: true, echoSyslogId: subiquity_echo.5204, logSyslogId: subiquity_log.5204, eventSyslogId: subiquity_event.5204)
  flutter: DEBUG subiquity_client: POST http://localhost/meta/mark_configured?endpoint_names=%5B%22mirror%22%2C%22proxy%22%2C%22ssh%22%2C%22snaplist%22%2C%22ubuntu_pro%22%5D
  flutter: DEBUG subiquity_client: ==> markConfigured([mirror, proxy, ssh, snaplist, ubuntu_pro]) null
  flutter: DEBUG desktop: Disabling screen blanking
  flutter: DEBUG desktop: Disabling screensaver
  flutter: DEBUG desktop: Inhibiting Gnome session
  flutter: ERROR page_images: Error loading image for tryOrInstall from /usr/share/desktop-provision/images/try-or-install.svg: File does not exist.
  flutter: INFO subiquity_status: null => ApplicationStatus(state: ApplicationState.WAITING, confirmingTty: , error: null, cloudInitOk: true, interactive: true, echoSyslogId: subiquity_echo.5204, logSyslogId: subiquity_log.5204, eventSyslogId: subiquity_event.5204)
  flutter: INFO subiquity_status: null => ApplicationStatus(state: ApplicationState.WAITING, confirmingTty: , error: null, cloudInitOk: true, interactive: true, echoSyslogId: subiquity_echo.5204, logSyslogId: subiquity_log.5204, eventSyslogId: subiquity_event.5204)
  flutter: DEBUG subiquity_client: GET http://localhost/meta/interactive_sections
  flutter: DEBUG subiquity_client: ==> getInteractiveSections() null
  flutter: INFO locale: Loaded 75 languages
  flutter: DEBUG subiquity_client: GET http://localhost/locale
  flutter: DEBUG subiquity_client: ==> locale() "C.UTF-8"
  flutter: INFO locale: Selected en_US as UI language

  ** (ubuntu_bootstrap:6154): WARNING **: 18:45:07.029: atk-bridge:
  get_device_events_reply: unknown signature

  (ubuntu_bootstrap:6154): GLib-GObject-WARNING **: 18:49:16.943: ../../../gobject/gsignal.c:2765: instance '0x5f63e1cd8270' has no handler with id '155'
  edubuntu at edubuntu:~$ ubuntu-desktop-bootstrap --try-or-install

  (ubuntu_bootstrap:6402): Gdk-CRITICAL **: 18:49:41.467:
  gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed

  (ubuntu_bootstrap:6402): Gtk-WARNING **: 18:49:41.468:
  /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so:
  undefined symbol: ibus_input_context_set_post_process_key_event

  (ubuntu_bootstrap:6402): Gtk-WARNING **: 18:49:41.468: Loading IM context type 'ibus' failed
  flutter: INFO ubuntu_bootstrap: Logging to /var/log/installer/ubuntu_bootstrap.log
  flutter: WARNING subiquity_server: Unable to find the subiquity_client package. Falling back to the current working dir: /home/edubuntu
  flutter: INFO subiquity_server: Waiting server up to 90 seconds
  flutter: INFO subiquity_server: ApplicationState.WAITING
  flutter: DEBUG config: Loaded config file from /usr/share/desktop-provision/whitelabel.yaml
  flutter: INFO flavor_provider: Using flavor from config: UbuntuFlavor.edubuntu
  flutter: INFO subiquity_client: Opening socket to Endpoint(/run/subiquity/socket )
  flutter: DEBUG desktop: Disabling automounting
  flutter: DEBUG subiquity_client: POST http://localhost/meta/client_variant?variant=%22desktop%22
  flutter: DEBUG subiquity_client: GET http://localhost/refresh?wait=true
  flutter: DEBUG telemetry: Writing report to /var/log/installer/telemetry
  flutter: DEBUG subiquity_client: ==> setVariant(Variant.DESKTOP) null
  flutter: DEBUG subiquity_client: ==> checkRefresh() {"availability": "UNAVAILABLE", "current_snap_version": "0+git.883b07e1", "new_snap_version": ""}
  flutter: DEBUG refresh: RefreshState.status(status: RefreshStatus(availability: RefreshCheckState.UNAVAILABLE, currentSnapVersion: 0+git.883b07e1, newSnapVersion: ))
  flutter: INFO subiquity_status: null => ApplicationStatus(state: ApplicationState.WAITING, confirmingTty: , error: null, cloudInitOk: true, interactive: true, echoSyslogId: subiquity_echo.5204, logSyslogId: subiquity_log.5204, eventSyslogId: subiquity_event.5204)
  flutter: DEBUG subiquity_client: POST http://localhost/meta/mark_configured?endpoint_names=%5B%22mirror%22%2C%22proxy%22%2C%22ssh%22%2C%22snaplist%22%2C%22ubuntu_pro%22%5D
  flutter: DEBUG subiquity_client: ==> markConfigured([mirror, proxy, ssh, snaplist, ubuntu_pro]) null
  flutter: DEBUG desktop: Disabling screen blanking
  flutter: DEBUG desktop: Disabling screensaver
  flutter: DEBUG desktop: Inhibiting Gnome session
  flutter: INFO subiquity_status: null => ApplicationStatus(state: ApplicationState.WAITING, confirmingTty: , error: null, cloudInitOk: true, interactive: true, echoSyslogId: subiquity_echo.5204, logSyslogId: subiquity_log.5204, eventSyslogId: subiquity_event.5204)
  flutter: INFO subiquity_status: null => ApplicationStatus(state: ApplicationState.WAITING, confirmingTty: , error: null, cloudInitOk: true, interactive: true, echoSyslogId: subiquity_echo.5204, logSyslogId: subiquity_log.5204, eventSyslogId: subiquity_event.5204)
  flutter: DEBUG subiquity_client: GET http://localhost/meta/interactive_sections
  flutter: DEBUG subiquity_client: ==> getInteractiveSections() null
  flutter: INFO locale: Loaded 75 languages
  flutter: DEBUG subiquity_client: GET http://localhost/locale
  flutter: DEBUG subiquity_client: ==> locale() "C.UTF-8"
  flutter: INFO locale: Selected en_US as UI language

  ** (ubuntu_bootstrap:6402): WARNING **: 18:50:06.594: atk-bridge:
  get_device_events_reply: unknown signature

  --

  name:      ubuntu-desktop-bootstrap
  summary:   Ubuntu Desktop Bootstrap
  publisher: Sebastien Bacher (seb128)
  store-url: https://snapcraft.io/ubuntu-desktop-bootstrap
  license:   unset
  description: |
    This project is a modern implementation of the Ubuntu Desktop installer,
    using subiquity as a backend and Flutter for the UI.
  commands:
    - ubuntu-desktop-bootstrap.os-prober
    - ubuntu-desktop-bootstrap.probert
    - ubuntu-desktop-bootstrap.subiquity-loadkeys
    - ubuntu-desktop-bootstrap
  services:
    ubuntu-desktop-bootstrap.subiquity-server: simple, enabled, active
  snap-id:      dLfoSWlQziHta7kJaco3IhnPwGVJ3bIt
  tracking:     latest/candidate
  refresh-date: today at 18:39 UTC
  channels:
    latest/stable:    0+git.15cde5fb 2024-02-12  (6) 122MB classic
    latest/candidate: 0+git.883b07e1 2024-02-26 (12) 123MB classic
    latest/beta:      ^
    latest/edge:      ^
  installed:          0+git.883b07e1            (12) 123MB classic

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




More information about the foundations-bugs mailing list