Comments (7)
from distribution.
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.
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.
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);
- Create a resource, search "Clear linux", select Clear Linux OS Basic, click create.
- 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.
- Accept defaults on the settings blade (configuration pane). I recommend selecting an auto shutdown time unless electing to let the VM run.
- Click create.
After ~5min the VM will be available in the Azure portal.
- Click Virtual Machines, select the created VM.
- 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.
- 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.
Wow, thanks for the incredibly detailed notes, that will really help.
from distribution.
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.
@nesiusra could you take a look?
from distribution.
Related Issues (20)
- "File that should be deleted: /root" when updating to 41340 ? HOT 8
- SDDM Breeze Theme Shows Errors HOT 4
- Polkit update patch to v124
- missing Qt5 qmake binary HOT 3
- mono 5.12.0.226 to 6.12.0.206
- Many "Error: Curl - Failure receiving data from server" when updating from 41370 to 41400. HOT 12
- Remote Login settings grayed out HOT 5
- Live Desktop on USB stick boots so slowly that I gave up HOT 6
- Current kernels don't boot any longer on bare metal installations. HOT 6
- GNOME devs fixed mutter 46.0 sync issue for NVIDIA graphics HOT 12
- Revert Blender, OBS-Studio, Krita, sshfs removal HOT 1
- bemenu: empty package HOT 1
- Need to update BUG_REPORT_URL in /etc/os-release HOT 1
- `tecla` can't show Arabic keyboard layout
- SDDM does not work, CL version 41540 HOT 1
- CL 41570, 41580 performance regression HOT 6
- Recent system update to version 41580 breaks theme and designated desktop icons for mounted volumes not displayed HOT 8
- Silent boot
- Bundle request for dkms and init-rdahead-extras HOT 3
- Solaar to 1.1.12 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distribution.