Giter VIP home page Giter VIP logo

Comments (7)

tomponline avatar tomponline commented on September 14, 2024

@monstermunchkin can you take this one? Perhaps an issue with lxd-agent providing the devlxd socket?

from lxc-ci.

subnet-dev avatar subnet-dev commented on September 14, 2024

I forgot to mention that exactly the same procedure with the ubuntu/focal/cloud image works perfectly. So I think the problem does not come from lxc/lxc but from the image.

from lxc-ci.

stgraber avatar stgraber commented on September 14, 2024
cloudinit.sources.InvalidMetaDataException: Invalid HTTP response [500] from http://lxd/1.0/meta-data: internal server error

So could be a lxd-agent problem or LXD on the host not responding or something?

from lxc-ci.

subnet-dev avatar subnet-dev commented on September 14, 2024

It looks like cloud ini doesn't have the same data source list.

from lxc-ci.

monstermunchkin avatar monstermunchkin commented on September 14, 2024

I cannot reproduce this even after multiple tries. So it doesn't seem to be a lxd-agent problem.

from lxc-ci.

subnet-dev avatar subnet-dev commented on September 14, 2024

The problem is solved with this image on the exact same server :

+-----------------------------+--------------+--------+-------------------------------------+--------------+-----------------+----------+------------------------------+
|            ALIAS            | FINGERPRINT  | PUBLIC |             DESCRIPTION             | ARCHITECTURE |      TYPE       |   SIZE   |         UPLOAD DATE          |
+-----------------------------+--------------+--------+-------------------------------------+--------------+-----------------+----------+------------------------------+
| ubuntu/jammy/cloud (3 more) | 19e1e50e1d27 | no     | Ubuntu jammy amd64 (20230120_07:43) | x86_64       | VIRTUAL-MACHINE | 278.46MB | Jan 20, 2023 at 3:49pm (UTC) |
+-----------------------------+--------------+--------+-------------------------------------+--------------+-----------------+----------+------------------------------+
2023-01-20 15:49:50,876 - util.py[DEBUG]: Cloud-init v. 22.4.2-0ubuntu0~22.04.1 running 'init-local' at Fri, 20 Jan 2023 15:49:50 +0000. Up 3.23 seconds.
2023-01-20 15:49:50,876 - main.py[DEBUG]: No kernel command line url found.
2023-01-20 15:49:50,876 - main.py[DEBUG]: Closing stdin.
2023-01-20 15:49:50,894 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [644] 0 bytes
2023-01-20 15:49:50,894 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 104:4
2023-01-20 15:49:50,894 - util.py[DEBUG]: Writing to /var/lib/cloud/data/python-version - wb: [644] 4 bytes
2023-01-20 15:49:50,895 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance/boot-finished
2023-01-20 15:49:50,895 - handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]
2023-01-20 15:49:50,895 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
2023-01-20 15:49:50,895 - stages.py[DEBUG]: no cache found
2023-01-20 15:49:50,895 - handlers.py[DEBUG]: finish: init-local/check-cache: SUCCESS: no cache found
2023-01-20 15:49:50,895 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance
2023-01-20 15:49:50,981 - stages.py[DEBUG]: Using distro class <class 'cloudinit.distros.ubuntu.Distro'>
2023-01-20 15:49:50,982 - __init__.py[DEBUG]: Looking for data source in: ['LXD', 'None'], via packages ['', 'cloudinit.sources'] that matches dependencies ['FILESYSTEM']
2023-01-20 15:49:50,985 - __init__.py[DEBUG]: Searching for local data source in: ['DataSourceLXD']
2023-01-20 15:49:50,985 - handlers.py[DEBUG]: start: init-local/search-LXD: searching for local data from DataSourceLXD
2023-01-20 15:49:50,985 - __init__.py[DEBUG]: Seeing if we can get any data from <class 'cloudinit.sources.DataSourceLXD.DataSourceLXD'>
2023-01-20 15:49:50,985 - __init__.py[DEBUG]: Update datasource metadata and network config due to events: boot-new-instance
2023-01-20 15:49:51,035 - DataSourceLXD.py[DEBUG]: [GET] [HTTP:200] http://lxd/1.0/meta-data
2023-01-20 15:49:51,061 - DataSourceLXD.py[DEBUG]: [GET] [HTTP:200] http://lxd/1.0/config
2023-01-20 15:49:51,097 - DataSourceLXD.py[DEBUG]: [GET] [HTTP:200] http://lxd/1.0/config/cloud-init.user-data
2023-01-20 15:49:51,119 - DataSourceLXD.py[DEBUG]: [GET] [HTTP:200] http://lxd/1.0/devices
2023-01-20 15:49:51,119 - util.py[DEBUG]: Crawl of metadata service took 0.134 seconds
2023-01-20 15:49:51,119 - util.py[DEBUG]: Attempting to load yaml from string of length 88 with allowed root types (<class 'dict'>,)
2023-01-20 15:49:51,120 - util.py[DEBUG]: Writing to /run/cloud-init/cloud-id-lxd - wb: [644] 4 bytes
2023-01-20 15:49:51,121 - util.py[DEBUG]: Creating symbolic link from '/run/cloud-init/cloud-id' => '/run/cloud-init/cloud-id-lxd'
2023-01-20 15:49:51,121 - atomic_helper.py[DEBUG]: Atomically writing to file /run/cloud-init/instance-data-sensitive.json (via temporary file /run/cloud-init/tmpx3w7lhcy) - w: [600] 5172 bytes/chars

from lxc-ci.

monstermunchkin avatar monstermunchkin commented on September 14, 2024

I'm glad the issue fixed itself. Closing this then.

from lxc-ci.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.