Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1894654

Summary: hcn-init.service fails on unsupported hardware
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: powerpc-utilsAssignee: Vasant Hegde <hegdevasant>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 34CC: bugproxy, dan, dwmw2, fkocina, hegdevasant, jaromir.capik, jcajka, karsten, ksinny, rdossant, tony, vebil96253
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1071880    

Description Adam Williamson 2020-11-04 17:17:00 UTC
hcn-init.service is installed and enabled by default on all Power installs, it seems, as part of powerpc-utils. But it doesn't actually work on all Power systems. On the openQA worker hosts and guests, it fails immediately on startup:

===

Oct 29 17:10:04 openqa-p09-worker01.iad2.fedoraproject.org systemd[1]: Starting hybrid virtual network scan and config...
Oct 29 17:10:04 openqa-p09-worker01.iad2.fedoraproject.org hcnmgr[21385]: [DEBUG]:hcnscan enter
Oct 29 17:10:04 openqa-p09-worker01.iad2.fedoraproject.org hcnmgr[21385]: =======================10-29-2020 17:10:04============================
Oct 29 17:10:04 openqa-p09-worker01.iad2.fedoraproject.org hcnmgr[21385]: [ERROR]:hcnscan:error code 1, platform is not supported
Oct 29 17:10:04 openqa-p09-worker01.iad2.fedoraproject.org systemd[1]: hcn-init.service: Main process exited, code=exited, status=1/FAILURE
Oct 29 17:10:04 openqa-p09-worker01.iad2.fedoraproject.org systemd[1]: hcn-init.service: Failed with result 'exit-code'.
Oct 29 17:10:04 openqa-p09-worker01.iad2.fedoraproject.org systemd[1]: Failed to start hybrid virtual network scan and config.

===

meaning you have a failed service right out of the box, which isn't ideal. It might be good if this could be treated as a non-error case, somehow; perhaps hcnmgr could get a custom exit code for "platform is not supported" (it's not clear if 1 is used for anything else) and the systemd service could treat that as a normal exit, for instance.

Comment 1 Vasant Hegde 2020-11-06 05:02:15 UTC
Thanks for the bug report. I have asked `hcnmgr` command developer to look into this issue. We will keep you updated.

-Vasant

Comment 2 Dan HorĂ¡k 2020-11-06 10:16:13 UTC
(In reply to Vasant Hegde from comment #1)
> Thanks for the bug report. I have asked `hcnmgr` command developer to look
> into this issue. We will keep you updated.

I believe this could be solved by using existing systemd mechanism - "conditional activation" based on detected hw

Comment 3 IBM Bug Proxy 2020-11-06 16:31:06 UTC
------- Comment From Mingming.Cao 2020-11-06 11:28 EDT-------
(In reply to comment #4)
> (In reply to Vasant Hegde from comment #1)
> > Thanks for the bug report. I have asked `hcnmgr` command developer to look
> > into this issue. We will keep you updated.
>
> I believe this could be solved by using existing systemd mechanism -
> "conditional activation" based on detected hw

Right, looking into this path now

yes, for hcn-init service , it should just print out platform is not supported, or, even better, not scheduled to run.

Comment 4 Ben Cotton 2021-02-09 16:17:03 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 5 Marionowers 2021-03-19 07:01:40 UTC
It is totally new for all of you and also for me because I just don't have time to make https://budgiebasics.com/when-do-budgie-chicks-leave-the-nest/, It is really mean to always start to finding and telling us all those ways which are be important for us to start it with a totally new pattern.