canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.93k stars 875 forks source link

WARNINGs and failures in log on OVH public cloud #3233

Closed ubuntu-server-builder closed 1 year ago

ubuntu-server-builder commented 1 year ago

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

Launchpad details
affected_projects = ['cloud-init (Ubuntu)']
assignee = None
assignee_name = None
date_closed = 2018-10-02T21:13:11.116808+00:00
date_created = 2018-09-13T16:45:04.931814+00:00
date_fix_committed = 2018-09-13T22:15:44.570003+00:00
date_fix_released = 2018-10-02T21:13:11.116808+00:00
id = 1792415
importance = medium
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1792415
milestone = None
owner = smoser
owner_name = Scott Moser
private = False
status = fix_released
submitter = smoser
submitter_name = Scott Moser
tags = ['amd64', 'apport-bug', 'cosmic', 'ec2-images']
duplicates = []

Launchpad user Scott Moser(smoser) wrote on 2018-09-13T16:45:04.931814+00:00

Part of "make OVH work right" was brought up by Tobias in https://code.launchpad.net/~tobijk/cloud-init/+git/cloud-init/+merge/354752

After that, though we still see some warnings in the logs that is attached.

ProblemType: Bug DistroRelease: Ubuntu 18.10 Package: cloud-init 18.3-39-g757247f9-0ubuntu1 [modified: usr/lib/python3/dist-packages/cloudinit/sources/helpers/openstack.py] ProcVersionSignature: Ubuntu 4.18.0-7.8-generic 4.18.5 Uname: Linux 4.18.0-7-generic x86_64 ApportVersion: 2.20.10-0ubuntu9 Architecture: amd64 CloudName: Other Date: Thu Sep 13 16:37:09 2018 Ec2AMI: ami-00014f37 Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: s1-2 Ec2Kernel: unavailable Ec2Ramdisk: unavailable PackageArchitecture: all ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR= LANG=C.UTF-8 SHELL=/bin/bash SourcePackage: cloud-init UpgradeStatus: No upgrade log present (probably fresh install) cloud-init-log-warnings: 2018-09-13 16:34:54,017 - util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceOpenStack.DataSourceOpenStackLocal'> failed cloudinit.util.ProcessExecutionError: Unexpected error while running command. Stderr: Error: Nexthop has invalid gateway. 2018-09-13 16:34:56,266 - openstack.py[DEBUG]: Failed reading optional path http://169.254.169.254/openstack/latest/user_data due to: 404 Client Error: Not Found for url: http://169.254.169.254/openstack/latest/user_data user_data.txt:

ubuntu-server-builder commented 1 year ago

Launchpad user Scott Moser(smoser) wrote on 2018-09-13T16:45:04.931814+00:00

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

ubuntu-server-builder commented 1 year ago

Launchpad user Scott Moser(smoser) wrote on 2018-09-13T16:47:34.261713+00:00

Below is cloud-init log entries around the warning.

Here are the contents of the lease file that dhclient wrote:

cat /run/dhclient-lease-file

lease { interface "ens3"; fixed-address 54.36.113.86; option subnet-mask 255.255.255.255; option routers 54.36.112.1; option dhcp-lease-time 86400; option dhcp-message-type 5; option domain-name-servers 213.186.33.99; option dhcp-server-identifier 54.36.112.1; option interface-mtu 1500; option domain-name "openstacklocal"; renew 5 2018/09/14 03:08:26; rebind 5 2018/09/14 13:45:08; expire 5 2018/09/14 16:45:08; }

2018-09-13 16:45:08,843 - util.py[DEBUG]: Reading from /var/tmp/cloud-init/cloud-init-dhcp-seeuch_6/dhcp.leases (quiet=False) 2018-09-13 16:45:08,843 - util.py[DEBUG]: Read 442 bytes from /var/tmp/cloud-init/cloud-init-dhcp-seeuch_6/dhcp.leases 2018-09-13 16:45:08,844 - util.py[DEBUG]: Reading from /var/tmp/cloud-init/cloud-init-dhcp-seeuch_6/dhcp.leases (quiet=False) 2018-09-13 16:45:08,844 - util.py[DEBUG]: Read 442 bytes from /var/tmp/cloud-init/cloud-init-dhcp-seeuch_6/dhcp.leases 2018-09-13 16:45:08,844 - dhcp.py[DEBUG]: Received dhcp lease on ens3 for 54.36.113.86/255.255.255.255 2018-09-13 16:45:08,844 - init.py[DEBUG]: Attempting setup of ephemeral network on ens3 with 54.36.113.86/32 brd 54.36.113.86 2018-09-13 16:45:08,844 - util.py[DEBUG]: Running command ['ip', '-family', 'inet', 'addr', 'add', '54.36.113.86/32', 'broadcast', '54.36.113.86', 'dev', 'ens3'] with allowed return codes [0] (shell=False, capture=True) 2018-09-13 16:45:08,848 - util.py[DEBUG]: Running command ['ip', '-family', 'inet', 'link', 'set', 'dev', 'ens3', 'up'] with allowed return codes [0] (shell=False, capture=True) 2018-09-13 16:45:08,850 - util.py[DEBUG]: Running command ['ip', 'route', 'show', '0.0.0.0/0'] with allowed return codes [0] (shell=False, capture=True) 2018-09-13 16:45:08,853 - util.py[DEBUG]: Running command ['ip', '-4', 'route', 'add', 'default', 'via', '54.36.112.1', 'dev', 'ens3'] with allowed return codes [0] (shell=False, capture=True) 2018-09-13 16:45:08,856 - handlers.py[DEBUG]: finish: init-local/search-OpenStackLocal: FAIL: no local data found from DataSourceOpenStackLocal 2018-09-13 16:45:08,856 - util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceOpenStack.DataSourceOpenStackLocal'> failed 2018-09-13 16:45:08,856 - util.py[DEBUG]: Getting data from <class 'cloudinit.sources.DataSourceOpenStack.DataSourceOpenStackLocal'> failed Traceback (most recent call last): File "/usr/lib/python3/dist-packages/cloudinit/sources/init.py", line 601, in find_source if s.update_metadata([EventType.BOOT_NEW_INSTANCE]): File "/usr/lib/python3/dist-packages/cloudinit/sources/init.py", line 490, in update_metadata result = self.get_data() File "/usr/lib/python3/dist-packages/cloudinit/sources/init.py", line 182, in get_data return_value = self._get_data() File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceOpenStack.py", line 131, in _get_data with EphemeralDHCPv4(self.fallback_interface): File "/usr/lib/python3/dist-packages/cloudinit/net/dhcp.py", line 63, in enter ephipv4.enter() File "/usr/lib/python3/dist-packages/cloudinit/net/init.py", line 648, in enter self._bringup_router() File "/usr/lib/python3/dist-packages/cloudinit/net/init.py", line 702, in _bringup_router 'dev', self.interface], capture=True) File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 2067, in subp cmd=args) cloudinit.util.ProcessExecutionError: Unexpected error while running command. Command: ['ip', '-4', 'route', 'add', 'default', 'via', '54.36.112.1', 'dev', 'ens3'] Exit code: 2 Reason: - Stdout: Stderr: Error: Nexthop has invalid gateway. 2018-09-13 16:45:08,908 - main.py[DEBUG]: No local datasource found

ubuntu-server-builder commented 1 year ago

Launchpad user Server Team CI bot(server-team-bot) wrote on 2018-09-13T22:15:42.239160+00:00

This bug is fixed with commit 12066fc8 to cloud-init on branch master. To view that commit see the following URL: https://git.launchpad.net/cloud-init/commit/?id=12066fc8

ubuntu-server-builder commented 1 year ago

Launchpad user Scott Moser(smoser) wrote on 2018-10-02T21:13:12.735356+00:00

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

Thank you.

ubuntu-server-builder commented 1 year ago

Launchpad user Scott Moser(smoser) wrote on 2018-10-03T14:13:04.900476+00:00

This bug is fixed in 18.10

This bug was fixed in the package cloud-init - 18.4-0ubuntu1

cloud-init (18.4-0ubuntu1) cosmic; urgency=medium