Azure / Azure/WALinuxAgent

[BUG][RHEL 7.9] WALinuxAgent - STR_COPY:variable has no value

Open
#2,684 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
581
Forks
397
Avg merge
2d 15h
Merged PRs (30d)
9

Description

**Describe the bug: A clear and concise description of what the bug is.**
The WALinux agent is stuck in a reboot loop and won't connect to Azure.

Note: Please add some context which would help us understand the problem better
1. Section of the log where the error occurs:

```
2022-10-14T06:45:56.287522Z ERROR Daemon Daemon Failed to decrypt /var/lib/waagent/Certificates.p7m (return code: 1)
[stdout]

[stderr]
139912400996240:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:584:line 23
139937194788752:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:584:line 23

2022-10-14T06:45:56.299770Z ERROR Daemon Daemon Command: [/usr/bin/openssl rsa -in /var/lib/waagent/0.prv -pubout], return code: [1], stdout: [] stderr: [140382020544400:error:0E065068:configuration file routines:STR_COPY:variable has no value:conf_def.c:584:line 23
]
```

2. Serial console output:
**No console output**

3. Steps to reproduce the behavior:
**The VM was restored from a snapshot from earlier state (the snapshot was converted to managed disk and the OS disk was swapped), since then the VM agent is stuck in a start loop.**

**Distro and WALinuxAgent details (please complete the following information):**
- Distro and Version: **Red Hat Enterprise Linux Server release 7.9 (Maipo)**
- WALinuxAgent version:

```
WALinuxAgent-2.7.3.0 running on redhat 7.9
Python: 2.7.5
Goal state agent: 2.8.0.11
```

**Additional context**
Add any other context about the problem here.
**The server WALinux agent runs on has the role of LDAP server.**

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reboot loop on RHEL 7.9 with the restored OS disk and inspect the WALinuxAgent log around certificate decryption and the `/usr/bin/openssl rsa -in /var/lib/waagent/0.prv -pubout` command. Done means the agent starts normally and connects to Azure without the OpenSSL error or reboot loop.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.