GoogleCloudPlatform / GoogleCloudPlatform/osconfig

OSConfigAgent Error policies.go line 74; and inventory.go line 55

Open
#443 0 comments 7 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
99
Forks
113
Avg merge
2d 10h
Merged PRs (30d)
5

Description

I am having the following errors in rhel-8

![image](https://user-images.githubusercontent.com/87899535/191460213-a1b7f3df-6683-46bb-a4a1-042fca369bb6.png)

![image](https://user-images.githubusercontent.com/87899535/191460409-ab9c8cf7-43a5-4b1c-9564-8c7575beda7d.png)

There are a total of 3 errors in logs.

**Error message 1:**
```Error installing recipe: error running step 0 (RunScript): exit status 1```
![image](https://user-images.githubusercontent.com/87899535/191460625-816b9079-ea60-40db-9bef-876768505d66.png)

**Error message 2:**
```packages.GetPackageUpdates() error: error getting yum updates: error running /usr/bin/yum with args ["check-update" "--assumeyes"]: exit status 1, stdout: "Red Hat Enterprise Linux 8 for x86_64 - BaseOS 0.0 B/s | 0 B 00:01 \n", stderr: "Errors during downloading metadata for repository 'rhui-rhel-8-for-x86_64-baseos-rhui-source-rpms':\n - Curl error (35): SSL connect error for https://rhui.googlecloud.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/baseos/source/SRPMS [OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to rhui.googlecloud.com:443 ]\nError: Failed to download metadata for repo 'rhui-rhel-8-for-x86_64-baseos-rhui-source-rpms': Cannot prepare internal mirrorlist: Curl error (35): SSL connect error for https://rhui.googlecloud.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/baseos/source/SRPMS [OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to rhui.googlecloud.com:443 ]\n"```
![image](https://user-images.githubusercontent.com/87899535/191461220-49e1c6ca-533d-42a0-8a6d-725966cae7a6.png)

**Error message 3**:
``` packages.GetPackageUpdates() error: error getting yum updates: error running /usr/bin/yum with args ["check-update" "--assumeyes"]: exit status 1, stdout: "Red Hat Enterprise Linux 8 for x86_64 - BaseOS 0.0 B/s | 0 B 00:01 \n", stderr: "Errors during downloading metadata for repository 'rhui-rhel-8-for-x86_64-baseos-rhui-source-rpms':\n - Curl error (35): SSL connect error for https://rhui.googlecloud.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/baseos/source/SRPMS [OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to rhui.googlecloud.com:443 ]\nError: Failed to download metadata for repo 'rhui-rhel-8-for-x86_64-baseos-rhui-source-rpms': Cannot prepare internal mirrorlist: Curl error (35): SSL connect error for https://rhui.googlecloud.com/pulp/mirror/content/dist/rhel8/rhui/8/x86_64/baseos/source/SRPMS [OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to rhui.googlecloud.com:443 ]\n" ```
![image](https://user-images.githubusercontent.com/87899535/191461501-27a95d3a-7e1b-4c9e-9a09-fa943db7ddf2.png)

Contributor guide

Open the contributing guide

Research direction

Start by reading policies.go around line 74 and inventory.go around line 55, then trace the recipe-install and package-update paths associated with the reported logs. Reproduce the three errors on RHEL 8 using the shown yum output; done means identifying the cause and confirming whether the agent or the repository connection requires a change.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.