← Back to team overview

cloud-init team mailing list archive

Re: I need help on adding a new bistro to cloud-init

 

Thanks James. I will go through the given links and try to understand things better.

--
Shedi
 

On 21/05/21, 7:10 PM, "James Falcon" <james.falcon@xxxxxxxxxxxxx> wrote:

    Shedi,

    It looks like you've already done the hardest work, which is
    overriding the Distro class for your needs. For everything else, the
    easiest way to get started would be to take a look at a previous PR
    that added a new distro. For example, support for AlmaLinux (a rhel
    based distro) was recently added in this PR:
    https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcanonical%2Fcloud-init%2Fpull%2F872%2Ffiles&amp;data=04%7C01%7Csshedi%40vmware.com%7C29767143338f45181cdd08d91c5e0a2c%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637572012497413175%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=6Dz1%2FQsVmwS5scKjyEVkZdsdLbIlgx336sDJoAmWyWs%3D&amp;reserved=0

    You'll see some various distro lists, setup files, and systemd units
    that you may need to add your distro to.

    For testing locally, you'll see where unit tests were added in that
    AlmaLinux PR. Generally, you'll want to ensure that your distro is
    correctly identified and that any new behavior you add works as
    expected. Unit tests can be run by calling "pytest" with the filename
    you wish to test (they'll also run on our CI when you submit a PR).
    Guidelines for unit tests can be found here:
    https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcloudinit.readthedocs.io%2Fen%2Flatest%2Ftopics%2Ftesting.html&amp;data=04%7C01%7Csshedi%40vmware.com%7C29767143338f45181cdd08d91c5e0a2c%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637572012497423168%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=aNzxa8t5sHB6eqs7awwS7aNf9k7A8AD%2B0wZ1%2BKBdIQU%3D&amp;reserved=0

    For running/debugging your distro locally, KVM is probably your best
    bet. See the documentation here (using your image instead of the one
    referenced):
    https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcloudinit.readthedocs.io%2Fen%2Flatest%2Ftopics%2Fdebugging.html%23analyze-quickstart-kvm&amp;data=04%7C01%7Csshedi%40vmware.com%7C29767143338f45181cdd08d91c5e0a2c%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637572012497423168%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=WaumWSWijVLQ5dk8ppbzpSfLMuFWwdDph1%2BHhaykkLY%3D&amp;reserved=0

    For the actual process of creating and submitting a PR, we have
    documentation here:
    https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcloudinit.readthedocs.io%2Fen%2Flatest%2Ftopics%2Fhacking.html%23submitting-your-first-pull-request&amp;data=04%7C01%7Csshedi%40vmware.com%7C29767143338f45181cdd08d91c5e0a2c%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637572012497423168%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=UotxrJnMigQ9mYUntVs%2FA63of5a3bO4xOk9B3caOK%2FA%3D&amp;reserved=0

    Hope that helps!

    - James

    On Thu, May 20, 2021 at 1:51 PM Shreenidhi Shedi <sshedi@xxxxxxxxxx> wrote:
    >
    > Hi All,
    >
    >
    >
    > Hope you all are doing well.
    >
    > I am interested in contributing to cloud-init and I submitted one minor documentation fix to cloud-init sometime back.
    >
    > I work on VMware’s open source OS Photon - https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvmware.github.io%2Fphoton%2Fassets%2Ffiles%2Fhtml%2F3.0%2FIntroduction.html&amp;data=04%7C01%7Csshedi%40vmware.com%7C29767143338f45181cdd08d91c5e0a2c%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637572012497423168%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=1BTukEpVGvJLRhxkTdHkxba1XqIxDzEJU3VozLhUbTI%3D&amp;reserved=0
    >
    > We have our own distro specific things and we have https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fvmware%2Fphoton%2Fblob%2Fdev%2FSPECS%2Fcloud-init%2Fphoton-distro.patch&amp;data=04%7C01%7Csshedi%40vmware.com%7C29767143338f45181cdd08d91c5e0a2c%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637572012497423168%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=kdzp4MpBpgoBgfonldxIGrgf9C3%2BZoZsLKjvCUKJ5TU%3D&amp;reserved=0
    >
    > And using this patch in our spec file.
    >
    >
    >
    > I want to make it a part of upstream cloud-init and would like to know how can I get started in this regard.
    >
    > What are the tests I need to add, how can I test my changes in my local build machine and so on.
    >
    >
    >
    > Appreciate any kind of help in this regard.
    >
    >
    >
    > --
    >
    > Shedi
    >
    >
    >
    > --
    > Mailing list: https://nam04.safelinks.protection.outlook.com/?url=https:%2F%2Flaunchpad.net%2F~cloud-init&amp;data=04%7C01%7Csshedi%40vmware.com%7C29767143338f45181cdd08d91c5e0a2c%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637572012497423168%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=VRIddzNFCW0%2BTRzXTOjnLLK815llAicvFnz%2BEq1D9XE%3D&amp;reserved=0
    > Post to     : cloud-init@xxxxxxxxxxxxxxxxxxx
    > Unsubscribe : https://nam04.safelinks.protection.outlook.com/?url=https:%2F%2Flaunchpad.net%2F~cloud-init&amp;data=04%7C01%7Csshedi%40vmware.com%7C29767143338f45181cdd08d91c5e0a2c%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637572012497423168%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=VRIddzNFCW0%2BTRzXTOjnLLK815llAicvFnz%2BEq1D9XE%3D&amp;reserved=0
    > More help   : https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhelp.launchpad.net%2FListHelp&amp;data=04%7C01%7Csshedi%40vmware.com%7C29767143338f45181cdd08d91c5e0a2c%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637572012497423168%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=9pBqjd0dtETcE4BefdCa92Zb4I6d3Im0XkUu8TPmTpU%3D&amp;reserved=0


Follow ups

References