Code Monkey home page Code Monkey logo

Comments (7)

fenrus75 avatar fenrus75 commented on July 4, 2024

from distribution.

bryteise avatar bryteise commented on July 4, 2024

Uh I'm not sure what the OMS agent is. Looking at https://github.com/Microsoft/OMS-Agent-for-Linux I see it doesn't have support for Clear Linux so probably that's what is wrong. I'm not sure if the agent is supposed to be replacing functionality in the other agent we have working for Clear Linux.

from distribution.

ahkok avatar ahkok commented on July 4, 2024

It would help a lot if @kamsalisbury could include a copy of the commands and download urls in the bug report so the folks in the clearlinux team could get a better idea of how to reproduce.

From a first glance at the project this is specifically only packaged for various other distros.

from distribution.

kamsalisbury avatar kamsalisbury commented on July 4, 2024

Sure! (Sorry)
I also intend on filing a support case directly in Azure my next work day. From a use case context, it does not help (me, others) if a really slimmed down linux OS choice is available in Azure for deployment as a compute image and Azure wants to allow their product "OMS" https://azure.microsoft.com/en-us/services/log-analytics/ (a log aggregation GUI that does analytics and overlaps collection of performance counters, controls for alerting and other tools for security and management) but not provide a way to use OMS in non RPM based distributions. I also apologize that I did not realize the OMS agent expected an RPM based distribution because nothing is labeled that way.

Here are the steps to reproduce the same errors.

From https://portal.azure.com using your Azure account (signing up for a free account is free, however, filing a support case requires a paid support subscription);

  1. Create a resource, search "Clear linux", select Clear Linux OS Basic, click create.
  2. Complete the creation prompts (Provide a unique computer name, username, SSH key or password, the subscription, new or existing resource group, and region closest to you). The username you provide will be able to sudo, the subscription was setup when you created an Azure account, the region you choose can limit the size/cost of the VMs available. I selected B1S1, the lowest size but enough for my needs.
  3. Accept defaults on the settings blade (configuration pane). I recommend selecting an auto shutdown time unless electing to let the VM run.
  4. Click create.

After ~5min the VM will be available in the Azure portal.

  1. Click Virtual Machines, select the created VM.
  2. The overview of the VM will show its assigned Public IP. By default, TCP port 22 is already allowed through the Network Security Group (Azure virtual network cloud level firewall). Connect to the VM.
  3. After login on the Clear Linux Basic VM;

a. sudo swupd check-update
Password:
swupd-client software update checker 3.14.4
Copyright (C) 2012-2017 Intel Corporation

Attempting to download version string to memory
Current OS version: 20450
There is a new OS version available: 21070

b. I "know" swupdate is already updating the OS because,
sudo swupd update
swupd-client software update 3.14.4
Copyright (C) 2012-2017 Intel Corporation

Error: cannot acquire lock file. Another swupd process is already running.
Updater failed to initialize, exiting now.

*While the VM completes updates, if you have not already done so, revisit portal.azure.com and configure the OMS Log Analytics resource. https://azure.microsoft.com/en-us/trial/log-analytics-get-started/

c. I also install two bundles. Python extras because I need it for what I am using the VM for. The Azure OMS agent requires gpg, which is part of the cryptography bundle.
sudo swupd bundle-add python-extra
(omitted installation success output)
sudo swupd bundle-add cryptography
(omitted installation success output)

d. sudo reboot

e. From the Azure portal, OMS work space, Advanced settings, I can download the OMS agent: https://github.com/Microsoft/OMS-Agent-for-Linux/releases
but I use,
wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts/onboard_agent.sh && sh onboard_agent.sh -w long-workspace-guid -s super-long-oms-workspace-key -d opinsights.azure.com

Connecting to github-production-release-asset-2e65be.s3.amazonaws.com|52.216.131.107|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 114996853 (110M) [application/octet-stream]
Saving to: âomsagent-1.4.4-210.universal.x64.shâ

omsagent-1.4.4-210. 100%[===================>] 109.67M 8.08MB/s in 14s

2018-03-23 23:00:23 (8.08 MB/s) - âomsagent-1.4.4-210.universal.x64.shâ saved [114996853/114996853]

Checking host architecture ...
Extracting...
Updating OMS agent ...
----- Checking package: omsagent (omsagent-1.4.4-210.universal.x64) -----
----- Checking package: omsconfig (omsconfig-1.1.1-681.x64) -----
Extracting...
Updating cross-platform agent ...
----- Upgrading package: omi (omi-1.4.2-1.ulinux.x64) -----
./bundles/scx-1.6.3-527.universal.x64.sh: line 303: rpm: command not found
----- Upgrading package: scx (scx-1.6.3-527.universal.x64) -----
./bundles/scx-1.6.3-527.universal.x64.sh: line 303: rpm: command not found
----- Removing package: scx -----
./bundles/scx-1.6.3-527.universal.x64.sh: line 269: rpm: command not found
----- Removing package: omi -----
./bundles/scx-1.6.3-527.universal.x64.sh: line 269: rpm: command not found
----- Installing package: omi (omi-1.4.2-1.ulinux.x64) -----
./bundles/scx-1.6.3-527.universal.x64.sh: line 249: rpm: command not found
Upgrade failed

A brief look through omsagent-1.4.4-210.universal.x64.sh revealed to me that it test for a dpkg or rpm environment but does not error trap when neither package manager is available.

Please let me know if I can or how I can help more? I will post what I find from the Azure support case.

from distribution.

ahkok avatar ahkok commented on July 4, 2024

Wow, thanks for the incredibly detailed notes, that will really help.

from distribution.

kamsalisbury avatar kamsalisbury commented on July 4, 2024

Update: I received a response from MS that the support case I submitted is probably not a support case and should be feedback instead.

I posted similar issues/feedback/etc at;
https://feedback.azure.com/forums/34192--general-feedback/suggestions/33771262-improve-oms-linux-agent-install
microsoft/OMS-Agent-for-Linux#679

from distribution.

iphutch avatar iphutch commented on July 4, 2024

@nesiusra could you take a look?

from distribution.

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.