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

Fallback networking doesn't handle IOError when reading sys/net/<iface>/carrier #2731

Closed
ubuntu-server-builder opened this issue May 10, 2023 · 10 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: #1625766

Launchpad details
affected_projects = ['cloud-init (Ubuntu)', 'cloud-init (Ubuntu Xenial)', 'cloud-init (Ubuntu Yakkety)']
assignee = None
assignee_name = None
date_closed = 2016-12-23T17:35:32.070016+00:00
date_created = 2016-09-20T18:29:38.627479+00:00
date_fix_committed = 2016-12-16T17:50:39.655564+00:00
date_fix_released = 2016-12-23T17:35:32.070016+00:00
id = 1625766
importance = high
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1625766
milestone = None
owner = jwillx
owner_name = J
private = False
status = fix_released
submitter = jwillx
submitter_name = J
tags = ['verification-done']
duplicates = [1646919]

Launchpad user J(jwillx) wrote on 2016-09-20T18:29:38.627479+00:00

Sometimes reading from /sys/class/net//carrier returns an error and is unhangled causing fallback networking to not bring anything up.

[Original Description]

I am running Arch on a KVM vps provider. I installed using this template: Arch Linux 2016.03 64-bit (template). Everything was working fine until I decided to upgrade. I did pacman -Syu and everything upgraded without error until it restarted.

I had to manually install certain python packages. But, I kept getting more errors so I joined IRC.

Here's the log: https://irclogs.ubuntu.com/2016/09/20/%23cloud-init.html

Was told to post it Here to sum up everything

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

Launchpad user Scott Moser(smoser) wrote on 2016-12-23T17:35:27.725849+00:00

This is fixed in cloud-init 0.7.9.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Brian Murray(brian-murray) wrote on 2017-01-12T19:45:10.390982+00:00

I'm accepting this cloud-init upload into yakkety-proposed but this particular bug is missing SRU bug information, could it please be added?

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Brian Murray(brian-murray) wrote on 2017-01-12T19:47:11.300080+00:00

Hello J, or anyone else affected,

Accepted cloud-init into yakkety-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/cloud-init/0.7.8-68-gca3ae67-0ubuntu1~16.10.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2017-01-20T17:04:37.691968+00:00

This code path is involved on each boot, but on Ubuntu we never triggered the failure case. Failure case happens when some drivers were in different state. I realize this is not great, but I'm marking this as verification-done based on:

$ release=yakkety
$ lxc launch "ubuntu-daily:$release" "$name"
$ lxc exec $name -- dpkg-query --show cloud-init
cloud-init 0.7.8-49-g9e904bb-0ubuntu1~16.10.1

$ lxc file pull $name/etc/cloud/build.info -
build_name: server
serial: 20170119

enable proposed, update

$ m=http://archive.ubuntu.com/ubuntu;
$ echo "deb $m $release-proposed main" | lxc file push - $name/etc/apt/sources.list.d/proposed.list
$ lxc exec $name -- sh -c 'apt update -q && apt install cloud-init' </dev/null
$ lxc exec $name -- dpkg-query --show cloud-init
cloud-init 0.7.8-68-gca3ae67-0ubuntu1~16.10.1

clean up to make it look like first boot.

$ lxc exec $name -- sh -c 'cd /var/lib/cloud; for d in ; do [ "$d" = "seed" ] || rm -vRf "$d"; done'
$ lxc exec $name -- sh -c 'rm -f /var/log/cloud
'
$ lxc restart $name

$ lxc exec $name -- grep WARN /var/log/cloud-init.log || echo no warn
no warn

$ lxc lau

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Andy Whitcroft(apw) wrote on 2017-01-30T18:17:42.348509+00:00

The verification of the Stable Release Update for cloud-init has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Launchpad Janitor(janitor) wrote on 2017-01-30T18:18:12.820305+00:00

This bug was fixed in the package cloud-init - 0.7.8-68-gca3ae67-0ubuntu1~16.10.1


cloud-init (0.7.8-68-gca3ae67-0ubuntu1~16.10.1) yakkety; urgency=medium

  • debian/cherry-pick: add utility for cherry picking commits from upstream
    into patches in debian/patches.
  • New upstream snapshot.
    • mounts: use mount -a again to accomplish mounts (LP: #1647708)
    • CloudSigma: Fix bug where datasource was not loaded in local search.
      (LP: #1648380)
    • when adding a user, strip whitespace from group list
      [Lars Kellogg-Stedman] (LP: #1354694)
    • fix decoding of utf-8 chars in yaml test
    • Replace usage of sys_netdev_info with read_sys_net (LP: #1625766)
    • fix problems found in python2.6 test.
    • OpenStack: extend physical types to include hyperv, hw_veb, vhost_user.
      (LP: #1642679)
    • tests: fix assumptions that expected no eth0 in system. (LP: #1644043)
    • net/cmdline: Consider ip= or ip6= on command line not only ip=
      (LP: #1639930)
    • Just use file logging by default [Joshua Harlow] (LP: #1643990)
    • Improve formatting for ProcessExecutionError [Wesley Wiedenmeier]
    • flake8: fix trailing white space
    • Doc: various documentation fixes [Sean Bright]
    • cloudinit/config/cc_rh_subscription.py: Remove repos before adding
      [Brent Baude]
    • packages/redhat: fix rpm spec file.
    • main: set TZ in environment if not already set. [Ryan Harper]
    • disk_setup: Use sectors as unit when formatting MBR disks with sfdisk.
      [Daniel Watkins] (LP: #1460715)

-- Scott Moser smoser@ubuntu.com Mon, 19 Dec 2016 15:07:12 -0500

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Brian Murray(brian-murray) wrote on 2017-02-06T15:44:06.880983+00:00

Hello J, or anyone else affected,

Accepted cloud-init into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/cloud-init/0.7.9-0ubuntu1~16.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Brian Murray(brian-murray) wrote on 2017-02-06T21:33:09.438076+00:00

Hello J, or anyone else affected,

Accepted cloud-init into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/cloud-init/0.7.9-0ubuntu1~16.04.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2017-02-09T02:24:14.670822+00:00

$ release=xenial
$ lxc launch "ubuntu-daily:$release" "$name"
$ lxc exec $name -- dpkg-query --show cloud-init
cloud-init 0.7.8-49-g9e904bb-0ubuntu1~16.04.4

$ lxc file pull $name/etc/cloud/build.info -
build_name: server
serial: 20170207

enable proposed, update

$ m=http://archive.ubuntu.com/ubuntu;
$ echo "deb $m $release-proposed main" | lxc file push - $name/etc/apt/sources.list.d/proposed.list
$ lxc exec $name -- sh -c 'apt update -q && apt install cloud-init' </dev/null
$ lxc exec $name -- dpkg-query --show cloud-init
cloud-init 0.7.9-0ubuntu1~16.04.2

clean up to make it look like first boot.

$ lxc exec $name -- sh -c 'cd /var/lib/cloud; for d in ; do [ "$d" = "seed" ] || rm -vRf "$d"; done'
$ lxc exec $name -- sh -c 'rm -f /var/log/cloud
'
$ lxc restart $name

$ lxc exec $name -- grep WARN /var/log/cloud-init.log || echo no warn
no warn

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Launchpad Janitor(janitor) wrote on 2017-02-22T00:43:01.813488+00:00

This bug was fixed in the package cloud-init - 0.7.9-0ubuntu1~16.04.2


cloud-init (0.7.9-0ubuntu1~16.04.2) xenial-proposed; urgency=medium

  • debian/update-grub-legacy-ec2: fix shell syntax error. (LP: #1662221)

cloud-init (0.7.9-0ubuntu1~16.04.1) xenial-proposed; urgency=medium

  • debian/copyright: update License field to include Apache.
  • debian/update-grub-legacy-ec2: fix to include kernels whose config
    has CONFIG_XEN=y (LP: #1379080).
  • debian/patches/azure-use-walinux-agent.patch: continue relying on
    walinux agent in stable release.
  • New upstream release.
    • doc: adjust headers in tests documentation for consistency.
    • pep8: fix issue found in zesty build with pycodestyle.
    • integration test: initial commit of integration test framework
      [Wesley Wiedenmeier]
    • LICENSE: Allow dual licensing GPL-3 or Apache 2.0 [Jon Grimm]
    • Fix config order of precedence, putting kernel command line over system.
      [Wesley Wiedenmeier] (LP: #1582323)
    • pep8: whitespace fix [Scott Moser]
    • Update the list of valid ssh keys. [Michael Felt]
    • network: add ENI unit test for statically rendered routes.
    • set_hostname: avoid erroneously appending domain to fqdn
      [Lars Kellogg-Stedman] (LP: #1647910)
    • doc: change 'nobootwait' to 'nofail' in docs [Anhad Jai Singh]
    • Replace an expired bit.ly link in code comment. [Joshua Harlow]
    • user-groups: fix bug when groups was provided as string and had spaces
      [Scott Moser] (LP: #1354694)
    • when adding a user, strip whitespace from group list
      [Lars Kellogg-Stedman] (LP: #1354694)
    • fix decoding of utf-8 chars in yaml test
    • Replace usage of sys_netdev_info with read_sys_net
      [Joshua Harlow] (LP: #1625766)
    • fix problems found in python2.6 test. [Joshua Harlow]
    • Just use file logging by default [Joshua Harlow] (LP: #1643990)
    • Improve formatting for ProcessExecutionError [Wesley Wiedenmeier]
    • flake8: fix trailing white space
    • Doc: various documentation fixes [Sean Bright]
    • cloudinit/config/cc_rh_subscription.py: Remove repos before adding
      [Brent Baude]
    • packages/redhat: fix rpm spec file.
    • main: set TZ in environment if not already set. [Ryan Harper]

-- Scott Moser smoser@ubuntu.com Mon, 06 Feb 2017 16:18:28 -0500

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