Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Onegate hangs during the boot on Alpine Linux 3.8 #125

Closed
7 tasks
kvaps opened this issue Nov 13, 2018 · 1 comment
Closed
7 tasks

Onegate hangs during the boot on Alpine Linux 3.8 #125

kvaps opened this issue Nov 13, 2018 · 1 comment
Milestone

Comments

@kvaps
Copy link
Contributor

kvaps commented Nov 13, 2018

Description
Onegate working somehow strange with the latest Alpine image.
I've already reported that there is no ruby installed in official alpine images (see: https://github.com/OpenNebula/marketplace/issues/8)
The next problem is that after you install ruby and ruby-json packages, onegate is hangs if it is called during the boot or immediately after the boot.

The situation gets worse: if you use REPORT_READY=yes option, each boot will take more than 2 minutes:

To Reproduce

  • Take Alpine 3.8 image from marketplace
  • Install ruby and ruby-json
  • Add onegate token
  • Boot
  • Run:
localhost:~# time onegate vm show
VM 7235                                                                         
NAME                : Alpine 3.8-7235
STATE               : RUNNING             
IP                  : 89.221.217.64       
real    2m 8.63s
user    0m 0.14s
sys     0m 0.05s

(after it is returned first result, the second calls is always working fine)

Expected behavior
Same like in other images, return the result immediately

Details

  • Affected Component: Onegate Client
  • Hypervisor: KVM
  • Version: 5.6.1

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches
@rsmontero rsmontero transferred this issue from OpenNebula/one Nov 19, 2018
@vholer vholer added this to the v5.8.0 milestone Dec 19, 2018
xorel added a commit to xorel/addon-context-linux that referenced this issue Dec 19, 2018
Put onegate to the last resort to prevent potential failures with
missing ruby or handing due to low entropy.
xorel added a commit to xorel/addon-context-linux that referenced this issue Dec 19, 2018
Put onegate to the last resort to prevent potential failures with
missing ruby or hanging due to low entropy.
xorel added a commit to xorel/addon-context-linux that referenced this issue Dec 19, 2018
Put onegate to the last resort to prevent potential failures with
missing ruby or hanging due to low entropy.
@xorel
Copy link
Member

xorel commented Dec 19, 2018

This seems to be caused by missing entropy while staring ruby (it is waiting in getrandom()). We will include the Haveged in the future release of the Alpine images.

Besides that we will re-order the attempts sending the ready report -- curl/wget will be tried before calling onegate.

vholer pushed a commit that referenced this issue Dec 20, 2018
Put onegate to the last resort to prevent potential failures with
missing ruby or hanging due to low entropy.
@vholer vholer closed this as completed Dec 20, 2018
@vholer vholer mentioned this issue Jun 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants