summaryrefslogtreecommitdiff
path: root/cloudinit/apport.py
Commit message (Collapse)AuthorAgeFilesLines
* apport: only prompt for cloud_name when instance-data.json is absentChad Smith2023-03-201-1/+23
| | | | | | | | | | | | | | | Do not prompt for CloudName when instance-data.json exists and is valid YAML. When instance-data.json exists, general-hooks/cloud_init.py will add the following fields to bug reports: CloudName, CloudID, CloudPlatform and CloudSubplatform. Downstream ubuntu packaging braches deliver: debian/apport-general-hook.py to /usr/share/apport/general-hooks/cloud-init.py Only prompt in during apport bug when the general-hook can't process instance-data.json.
* add NWCS datasource (#1793)shell-skrimp2022-10-261-0/+1
| | | | I am writing a cloud platform (nwcs) and need to add support to cloud-init.
* apport: fix some data collection failures due to symlinks (#1797)Dan Bungert2022-10-251-5/+8
| | | | Apport screens out symlinks, so we should send realpath() normalized paths instead.
* cli: collect logs and apport subiquity supportChad Smith2022-10-211-6/+40
| | | | | | | | | | | | | | | | | | | | | cli/apport: collect-logs include subiquity logs config when present Add support for both cloud-init collect-logs and apport to include subiquity live installer artifacts if present to aid in bug triage. Apport integration to attach subiquity, curtin and ubuntu-desktop-installer report keys when logs or config files are present. `ubuntu-bug cloud-init` will also automatically tag the bug as curtin, subiquity or ubuntu-desktop-installer if related logs are present in the bug report. Additional collect-logs support to collect /var/lib/cloud/data in the event that cloud-init is disabled by systemd generator with /run/cloud-init/disabled flag. In these situations we want to collect /var/lib/cloud/data dir for more context on prior cloud-init behavior.
* Identify 3DS Outscale Datasource as Ec2 (#1686)Maxime Dufour2022-09-021-0/+1
| | | | | | | | | | | | | | Outscale has an Ec2-compatible metadata service and is detected by: DMI product name: 3DS Outscale VM DMI vendor: 3DS Outscale The difference between stock Ec2 IMDS and Outscale is that the tags routes in their IMDS can return 404s if tags contain certain characters which result in 404 errors in cloud-int logs (LP: #1988157) To avoid errors in cloud-init on tag-related route 404s, add a parameter to retrieval_exception_ignore_cb to helpers/ec2/_get_instance_metadata to allow 404s on tag-related routes to be skipped.
* Identify Huawei Cloud as OpenStack (#1689)huang xinjie2022-08-311-0/+1
| | | | | | | Huawei Cloud is a international cloud provider and it runs OpenStack. Due to the commit 1efa8a0, we're not able to force the use of the OpenStack datasource. Detect OpenStack when DMI chassis_asset_tag is HUAWEICLOUD
* cloud-config: honor cloud_dir setting (#1523)Alberto Contreras2022-06-221-3/+9
| | | | | | | | | | | Ensure cloud_dir setting is respected rather than hardcoding "/var/lib/cloud" - Modules affected: cmd.main, apport, devel.logs (collect-logs), cc_snap, sources.DataSourceAzure, sources.DataSourceBigstep, util:fetch_ssl_details. - testing: Extend and port to pytest unit tests, add integration test. LP: #1976564
* Adopt Black and isort (SC-700) (#1157)James Falcon2021-12-151-68/+85
| | | | | Applied Black and isort, fixed any linting issues, updated tox.ini and CI.
* Add Vultr support (#827)David Dymko2021-04-131-0/+1
| | | | | | | This PR adds in support so that cloud-init can run on instances deployed on Vultr cloud. This was originally brought up in #628. Co-authored-by: Eric Benner <ebenner@vultr.com>
* Datasource for UpCloud (#743)Antti Myyrä2021-02-081-0/+1
| | | | New datasource utilizing UpCloud metadata API, including relevant unit tests and documentation.
* Identify SAP Converged Cloud as OpenStackSilvio Knizek2020-03-261-0/+1
| | | add SAP Converged Cloud as cloud provider
* apport: Add RbxCloud dsAdam Dobrawy2019-12-181-1/+3
|
* Add Support for e24cloud to Ec2 datasource.Scott Moser2019-10-111-0/+1
| | | | | | | | | e24cloud provides an EC2 compatible datasource. This just identifies their platform based on dmi 'system-vendor' having 'e24cloud'. https://www.e24cloud.com/en/ . Updated chassis typo in zstack unit test docstring. LP: #1696476
* Add datasource for ZStack platform.Shixin Ruan2019-09-181-0/+1
| | | | | | | | Zstack platform provides a AWS Ec2 metadata service, and identifies their platform to the guest by setting the 'chassis asset tag' to a string that ends with '.zstack.io'. LP: #1841181
* New data source for the Exoscale.com cloud platformChris Glass2019-08-081-0/+1
| | | | | | | - dsidentify switches to the new Exoscale datasource on matching DMI name - New Exoscale datasource added Signed-off-by: Mathieu Corbin <mathieu.corbin@exoscale.ch>
* Add datasource Oracle Compute Infrastructure (OCI).Scott Moser2018-08-171-0/+1
| | | | | | | | | | | This adds a Oracle specific datasource that functions with OCI. It is a simplified version of the OpenStack metadata server with support for vendor-data. It does not support the OCI-C (classic) platform. Also here is a move of BrokenMetadata to common 'sources' as this was the third occurrence of that class.
* Apport: add Brightbox, IBM, LXD, and OpenTelekomCloud to list of clouds.Scott Moser2018-04-111-4/+23
| | | | | When filing a bug with apport, this allows the user to choose Brightbox, IBM, LXD, or OpenTelekomCloud as their cloud.
* Add Hetzner Cloud DataSourceScott Moser2018-03-191-3/+3
| | | | | | | | The Hetzner Cloud metadata service is an AWS-style service available over HTTP via the link local address 169.254.169.254. https://hetzner.com/cloud https://docs.hetzner.cloud/
* cmdline: add collect-logs subcommand.Chad Smith2017-09-151-0/+105
Add a new collect-logs sub command to the cloud-init CLI. This script will collect all logs pertinent to a cloud-init run and store them in a compressed tar-gzipped file. This tarfile can be attached to any cloud-init bug filed in order to aid in bug triage and resolution. A cloudinit.apport module is also added that allows apport interaction. Here is an example bug filed via ubuntu-bug cloud-init: LP: #1716975. Once the apport launcher is packaged in cloud-init, bugs can be filed against cloud-init with the following command: ubuntu-bug cloud-init LP: #1607345