Public bug reported: When deploying on Azure, cloud-init analyze does not acccount for significant amounts of non-zero work performed by the Azure datasource. When looking at cloud-init analyze in the init-network stage, we see a gap of 15 seconds unaccounted for between restoring from cache and reading user-data:
Starting stage: init-network |`->restored from cache with run check: DataSourceAzure [seed=/dev/sr0] @14.81800s +00.01900s |`->reading and applying user-data @30.42300s +00.00400s cloud-init analyze show output: http://paste.ubuntu.com/p/84RFphvYBy/ systemd-analyze blame: http://paste.ubuntu.com/p/3YrCm9Gc26 We likely need to wrap some of the Azure datasource get/walk in a events.ReportEventStack context in order to get a view of what happens. ProblemType: Bug DistroRelease: Ubuntu 17.10 Package: cloud-init 17.2-35-gf576b2a2-0ubuntu1~17.10.2 ProcVersionSignature: Ubuntu 4.13.0-38.43-generic 4.13.16 Uname: Linux 4.13.0-38-generic x86_64 ApportVersion: 2.20.7-0ubuntu3.7 Architecture: amd64 CloudName: Azure Date: Tue Apr 10 15:22:32 2018 PackageArchitecture: all ProcEnviron: TERM=xterm-256color PATH=(custom, no user) LANG=C.UTF-8 SHELL=/bin/bash SourcePackage: cloud-init UpgradeStatus: No upgrade log present (probably fresh install) user_data.txt: #cloud-config ssh_import_id: [chad.smith] hostname: SRU-worked ** Affects: cloud-init (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug artful uec-images ** Description changed: - - - When deploying on Azure, cloud-init analyze does not acccount for significant amounts of non-zero work performed by the Azure datasource. When looking at cloud-init analyze in the init-network stage, we see a gap of 15 seconds unaccounted for between restoring from cache and reading user-data: + When deploying on Azure, cloud-init analyze does not acccount for + significant amounts of non-zero work performed by the Azure datasource. + When looking at cloud-init analyze in the init-network stage, we see a + gap of 15 seconds unaccounted for between restoring from cache and + reading user-data: Starting stage: init-network |`->restored from cache with run check: DataSourceAzure [seed=/dev/sr0] @14.81800s +00.01900s |`->reading and applying user-data @30.42300s +00.00400s - I've attached cloud-init analyze and systemd-analyze blame to this bug - for reference + cloud-init analyze show output: http://paste.ubuntu.com/p/84RFphvYBy/ + systemd-analyze blame: http://paste.ubuntu.com/p/3YrCm9Gc26 - - We likely need to wrap some of the Azure datasource get/walk in a events.ReportEventStack context in order to get a view of what happens. + We likely need to wrap some of the Azure datasource get/walk in a + events.ReportEventStack context in order to get a view of what happens. ProblemType: Bug DistroRelease: Ubuntu 17.10 Package: cloud-init 17.2-35-gf576b2a2-0ubuntu1~17.10.2 ProcVersionSignature: Ubuntu 4.13.0-38.43-generic 4.13.16 Uname: Linux 4.13.0-38-generic x86_64 ApportVersion: 2.20.7-0ubuntu3.7 Architecture: amd64 CloudName: Azure Date: Tue Apr 10 15:22:32 2018 PackageArchitecture: all ProcEnviron: - TERM=xterm-256color - PATH=(custom, no user) - LANG=C.UTF-8 - SHELL=/bin/bash + TERM=xterm-256color + PATH=(custom, no user) + LANG=C.UTF-8 + SHELL=/bin/bash SourcePackage: cloud-init UpgradeStatus: No upgrade log present (probably fresh install) user_data.txt: - #cloud-config - ssh_import_id: [chad.smith] - hostname: SRU-worked + #cloud-config + ssh_import_id: [chad.smith] + hostname: SRU-worked -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1762759 Title: cloud-init analyze: event timing gap in azure's events To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1762759/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs