Bug 1042092

Summary: systemd-nspawn --version exits with 1
Product: [openSUSE] openSUSE Tumbleweed Reporter: Mitch G <mitchellgayner>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: All   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Mitch G 2017-06-01 01:02:36 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
Build Identifier: 

Hi,

Running the command:

systemd-nspawn --version

is returning with a value of 1 instead of 0.

This results in a failure to start containers using the "rkt" container runtime (which leverages systemd)

My version of systemd:

Information for package systemd:
--------------------------------
Repository     : repo-oss                    
Name           : systemd                     
Version        : 232-10.1                    
Arch           : x86_64                      
Vendor         : openSUSE                    
Installed Size : 9.4 MiB                     
Installed      : Yes                         
Status         : up-to-date                  
Source package : systemd-232-10.1.src        
Summary        : A System and Session Manager

This bug has been corrected upstream in this patch https://github.com/systemd/systemd/pull/4609

Can we get it pulled into the TW build?

Reproducible: Always

Steps to Reproduce:
1. systemd-nspawn --version
2. echo $?
Actual Results:  
Returned value is 1

Expected Results:  
Returned value should be 0

Another user has also experienced this problem, as described here: https://forums.opensuse.org/showthread.php/524013-Systemd-nspawn-version-exits-with-1
Comment 1 Mitch G 2017-06-03 03:49:26 UTC
Hi,

It seems that the systemd version has slightly updated.

zypper info systemd

Information for package systemd:
--------------------------------
Repository     : repo-oss                    
Name           : systemd                     
Version        : 232-10.2                    
Arch           : x86_64                      
Vendor         : openSUSE                    
Installed Size : 9.3 MiB                     
Installed      : Yes                         
Status         : up-to-date                  
Source package : systemd-232-10.2.src

The same result still occurs when running the command:

mitch@mitch:/> systemd-nspawn --version
systemd 232
+PAM -AUDIT +SELINUX -IMA +APPARMOR -SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN
mitch@mitch:/> echo $?
1
Comment 2 Mitch G 2017-06-23 01:13:24 UTC
This bug has been fixed since systemd-233 made it into TW repos.