Giter Club home page Giter Club logo

Comments (15)

trydis avatar trydis commented on August 29, 2024

Contents of the zip file, from a CentOS 6.6 VM, no chef-client-latest.rpm:

Archive:  Chef.Bootstrap.WindowsAzure__LinuxChefClient__11.18.6.1.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  03-30-2015 13:15   bin/
      484  03-30-2015 13:15   bin/chef-disable.rb
      477  03-30-2015 13:15   bin/chef-enable.rb
     1836  03-30-2015 13:15   bin/chef-install.sh
     2544  03-30-2015 13:15   bin/chef-uninstall.sh
     1230  03-30-2015 13:15   bin/chef-update.sh
      190  03-30-2015 13:15   disable.sh
      188  03-30-2015 13:15   enable.sh
        0  03-30-2015 13:15   gems/
    29696  03-30-2015 13:15   gems/azure-chef-extension-0.0.1.gem
      293  03-30-2015 13:15   HandlerManifest.json
      136  03-30-2015 13:15   install.sh
        0  03-30-2015 13:15   installer/
 32482204  03-30-2015 13:15   installer/chef-client-latest.deb
      132  03-30-2015 13:15   uninstall.sh
      129  03-30-2015 13:15   update.sh
        0  03-30-2015 13:15   version_11.18.6.1_20150330_ubuntu
---------                     -------
 32519539                     17 files

from azure-chef-extension.

trydis avatar trydis commented on August 29, 2024

Looking at the source code and CommandExecution.log it seems to get off on the wrong foot.

2015/03/31 21:30:47 Downloading plugin manifest: Chef.Bootstrap.WindowsAzure.LinuxChefClient from http://rdfepirv2db3prdstr02.blob.core.windows.net/0fa68ca509a643f49117169ef78baf70/Chef.Bootstrap.WindowsAzure_LinuxChefClient_europenorth_manifest.xml

It shouldn't download Chef.Bootstrap.WindowsAzure_LinuxChefClient_europenorth_manifest.xml but rather Chef.Bootstrap.WindowsAzure_CentosChefClient_europenorth_manifest.xml.

The full URL would be http://rdfepirv2db3prdstr02.blob.core.windows.net/0fa68ca509a643f49117169ef78baf70/Chef.Bootstrap.WindowsAzure_CentosChefClient_europenorth_manifest.xml.

from azure-chef-extension.

Vasu1105 avatar Vasu1105 commented on August 29, 2024

@trydis azure-chef-extension is not supported for CentOS on azure portal right now.

from azure-chef-extension.

trydis avatar trydis commented on August 29, 2024

Any time frame on when it will be supported? Looks like most (all?) of the code is already in the scripts. Not a big deal, since I can use knife to bootstrap the nodes, just curious 😄

from azure-chef-extension.

NimishaS avatar NimishaS commented on August 29, 2024

No plans to support CentOS as of now. But we'll consider this in future.

from azure-chef-extension.

adamedx avatar adamedx commented on August 29, 2024

We do need to address this as soon as the Azure portal can handle two different Linux distros.

from azure-chef-extension.

 avatar commented on August 29, 2024

The chef-install.sh already supports CentOS. The only thing missing is the file installer/chef-client-latest.rpm in the package.

from azure-chef-extension.

 avatar commented on August 29, 2024

@adamedx, can you please add the RPM file to the zip file http://rdfepirv2am2prdstr02.blob.core.windows.net/0fa68ca509a643f49117169ef78baf70/Chef.Bootstrap.WindowsAzure__LinuxChefClient__11.18.6.1

Thank you!

from azure-chef-extension.

vlibertucci avatar vlibertucci commented on August 29, 2024

Hi , I'm Vittorio from Azure support - we are currently discussing this with the respective Microsoft and Chef development teams
Thanks
Vittorio

from azure-chef-extension.

NimishaS avatar NimishaS commented on August 29, 2024

We have started work on this issue. Instead of keeping installers for both ubuntu and centos in same LinuxChefClient package, we are going to use yum repo for installing centos package.

from azure-chef-extension.

adamedx avatar adamedx commented on August 29, 2024

@tmaierACN as @NimishaS states, this is being worked on. For transparency, the key problem here is mismatch in UX assumptions in Azure Resource manager which assumes that one extension works on all Linux distributions vs. the extension which was originally intended to be published for each distribution.

The initial fix will use Chef's public (Internet-based) yum repos to avoid the need to package binaries. We are finalizing a plan to use yum repos internal to Azure to retain the Ubuntu case's performance, reliability, and security benefits of requiring no Internet access to the guest VM.

Here is a much longer explanation of the situation:

The original motivation for one extension per distro was that the while the extension's code contains installation code that should work an multiple Linux distributions, it also contains chef-client binaries.

  • When the extension was first implemented, there was no Internet-based yum repository from which to obtain the packages, so including the binaries was the best option.
  • The extension contains binaries for only one OS distro to avoid large package sizes and attendant speed reliability issues that go along with large package, and this leads to an extension that is specific to OS distribution.
  • The guest agent with which the extension integrates happened to stabilize first for Ubuntu, so that platform was implemented first.
  • The Azure Resource Manager however only distinguishes between Windows and Linux, and UX-focused tools like the Azure portal are thus not able to use the ARM API to identify an extension specific to CentOS -- there can only be one extension for all Linux distros as far as ARM is concerned.
  • To avoid regressing UX scenarios for users of the existing Ubuntu extension, we focused on getting a yum repo from which we could publish the package. That repository is fairly extensive and contains many products, so that was a non-trivial undertaking and has taken longer than we'd like from the standpoint of the extension.

Now that we have the yum repository, we can move forward with adding CentOS support without including CentOS binaries and adhere to the design requirement for a generic Linux extension.

from azure-chef-extension.

 avatar commented on August 29, 2024

Cool. Thank you for this detailed update, @adamedx.

from azure-chef-extension.

hough01 avatar hough01 commented on August 29, 2024

So how can I install Chef on Centos using 'CentosChefClient extension' or 'LinuxChefClient extension'?

from azure-chef-extension.

adamedx avatar adamedx commented on August 29, 2024

@hough01, due to this bug, there isn't a way to do this using the Azure resource manager commands, but we hope to have a fix soon.

However, if you have a workstation (Linux or Windows) where you've installed Chef-DK, you can gem install knife-azure to use the knife-azure plugin to configure an Azure node with Chef.

from azure-chef-extension.

NimishaS avatar NimishaS commented on August 29, 2024

azure-chef-extension 1210.12.4.1001 has been published for linux with centos support.

from azure-chef-extension.

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.