Coder Social home page Coder Social logo

Comments (7)

lucab avatar lucab commented on May 30, 2024 1

@dustymabe indeed, #147 plus #201 fixed this. Closing.

from afterburn.

lucab avatar lucab commented on May 30, 2024

Some more details on cloud reporting protocols.

Packet

A phone-home IP can be discovered from the metadata service. A simple JSON needs to be posted there. We are interested in reporting a "state":"succeeded". This is documented at https://support.packet.com/kb/articles/user-state

Azure

The wire server is provided as a custom DHCP option number 245 (a known/fallback one is at 168.63.129.16). The /machine?comp=health endpoint there expects an XML to be posted with some specific custom headers. The format of that has been reverse-engineered: https://github.com/larsks/azure-tools/blob/master/docs/api.md. We are interested in reporting <Health><State>Ready</State></Health>. The corresponding WALinuxAgent logic is https://github.com/Azure/WALinuxAgent/blob/242278735745483ff63f5001d58ba0889c978936/azurelinuxagent/common/protocol/wire.py#L222

from afterburn.

bgilbert avatar bgilbert commented on May 30, 2024

The Azure DHCP option is needed for AzureStack and for ASM instances; ARM instances should use a consistent IP.

from afterburn.

arithx avatar arithx commented on May 30, 2024

@lucab: I've posted some relevant info about the Azure check-in along with a simplified bash script + systemd service to perform it in coreos/fedora-coreos-tracker#65

from afterburn.

arithx avatar arithx commented on May 30, 2024

For Azure specifically we might also need to bounce networking.

Ubuntu is cycling networking inside of cloud-init on Azure to DHCP to Azure with the correct hostname so the DDNS is updated for private network communications (which they note mimics what the agent is doing).

from afterburn.

dustymabe avatar dustymabe commented on May 30, 2024

copying this from coreos/fedora-coreos-tracker#102 (comment)

@dustymabe
I would say so unless it's a much larger work item than I'm currently assuming. You know much more about it than I do so maybe you can clue me in.

@arithx
Overall an initial implementation that doesn't tackle the DHCP option parsing is very straightforward and still covers most use cases of Azure (only missing ASM [legacy] & AzureStack machines).

So we may be able to break out the azure work into two parts. One that does DHCP option parsing and one that does not.

from afterburn.

dustymabe avatar dustymabe commented on May 30, 2024

was this fixed in #147 ?

from afterburn.

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.