Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#include fails silently. #3069

Closed
ubuntu-server-builder opened this issue May 11, 2023 · 4 comments
Closed

#include fails silently. #3069

ubuntu-server-builder opened this issue May 11, 2023 · 4 comments
Labels
launchpad Migrated from Launchpad priority Fix soon

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1734939

Launchpad details
affected_projects = ['cloud-init (Ubuntu)']
assignee = falcojr
assignee_name = James Falcon
date_closed = 2020-08-25T19:31:05.390727+00:00
date_created = 2017-11-28T16:53:10.877007+00:00
date_fix_committed = 2020-06-04T14:59:55.759681+00:00
date_fix_released = 2020-08-25T19:31:05.390727+00:00
id = 1734939
importance = high
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1734939
milestone = None
owner = smoser
owner_name = Scott Moser
private = False
status = fix_released
submitter = smoser
submitter_name = Scott Moser
tags = ['amd64', 'apport-bug', 'bionic', 'uec-images']
duplicates = []

Launchpad user Scott Moser(smoser) wrote on 2017-11-28T16:53:10.877007+00:00

Cloud-init can fail to download a url in '#include' for reasons such
as bug 1734167 but not represent that failure anywhere.

$ curl --silent https://hastebin.com/raw/coladicuva
#!/bin/sh
cat /proc/uptime | tee /run/user-script-uptime

$ lxc launch ubuntu-daily:bionic b4 "--config=user.user-data=#include https://hastebin.com/raw/coladicuva"

$ sleep 20
$ lxc exec b4 grep WARN /var/log/cloud-init.log
2017-11-28 16:49:12,251 - user_data.py[WARNING]: HTTPSConnectionPool(host='hastebin.com', port=443): Max retries exceeded with url: /raw/coladicuva (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f20736a4e80>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)) for url: https://hastebin.com/raw/coladicuva

$ lxc exec b4 cat /run/cloud-init/result.json
{
 "v1": {
  "datasource": "DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]",
  "errors": []
 }
}

Related bugs:

  • bug 1734167: DNS doesn't work in no-cloud as launched by ubuntu

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cloud-init 17.1-41-g76243487-0ubuntu1
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.8-0ubuntu2
Architecture: amd64
CloudName: NoCloud
Date: Tue Nov 28 16:38:49 2017
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=C.UTF-8
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
cloud-init-log-warnings: 2017-11-28 16:37:17,380 - user_data.py[WARNING]: HTTPConnectionPool(host='smoser.brickies.net', port=80): Max retries exceeded with url: /ubuntu/nocloud/user-data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f66a4f01f28>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)) for url: http://smoser.brickies.net/ubuntu/nocloud/user-data
user_data.txt: #include http://smoser.brickies.net/ubuntu/nocloud/user-data

@ubuntu-server-builder ubuntu-server-builder added launchpad Migrated from Launchpad priority Fix soon labels May 11, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2017-11-28T16:53:10.877007+00:00

Launchpad attachments: NonfreeKernelModules.txt,Dependencies.txt,JournalErrors.txt,ProcCpuinfoMinimal.txt,cloud-init-output.log.txt.txt,logs.tgz.gz,lshw.txt.txt

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user James Falcon(falcojr) wrote on 2020-06-04T16:37:22.276815+00:00

#367

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Launchpad Janitor(janitor) wrote on 2020-07-10T18:23:27.884026+00:00

This bug was fixed in the package cloud-init - 20.2-94-g3d06abc2-0ubuntu1


cloud-init (20.2-94-g3d06abc2-0ubuntu1) groovy; urgency=medium

-- Daniel Watkins oddbloke@ubuntu.com Fri, 10 Jul 2020 09:11:25 -0400

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user James Falcon(falcojr) wrote on 2020-08-25T19:31:07.049672+00:00

This bug is believed to be fixed in cloud-init in version 20.3. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
launchpad Migrated from Launchpad priority Fix soon
Projects
None yet
Development

No branches or pull requests

1 participant