Debian: automated build crashes on num_users 0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Scott Little |
Bug Description
Brief Description
-----------------
The Debian build stx import command can crash during a build when there are no logged in users on the system.
Severity
--------
Critical: Causes build failure on empty build machine
Steps to Reproduce
------------------
Start a Debian build while there are no logged in users
Expected Behavior
------------------
stx import command should check for logged in users while calculating cpu but
should never use 0 in that determination
Actual Behavior
----------------
0 logged in users causes divide by zero error
02:09:06 ++ NUM_USERS=0
02:09:06 +++ number_of_cpus
02:09:06 +++ /usr/bin/nproc
02:09:06 ./import-stx: line 57: 64/0: division by 0 (error token is "0")
Code
------
Issue located in
https:/
Reproducibility
---------------
Reproducible
summary: |
- Debian build crashes on num_users 0 + Debian: build crashes on num_users 0 |
summary: |
- Debian: build crashes on num_users 0 + Debian: automated build crashes on num_users 0 |
Changed in starlingx: | |
assignee: | nobody → Scott Little (slittle1) |
Changed in starlingx: | |
importance: | Undecided → High |
tags: | added: stx.7.0 stx.build |
Fix proposed to branch: master /review. opendev. org/c/starlingx /tools/ +/827162
Review: https:/