Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 850628 - app-emulation/cloud-init-22.2-r1: stabilisation (was: no longer installs init scripts for OpenRC)
Summary: app-emulation/cloud-init-22.2-r1: stabilisation (was: no longer installs init...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords: CC-ARCHES
Depends on:
Blocks:
 
Reported: 2022-06-08 14:00 UTC by FineBeetle
Modified: 2022-06-11 05:19 UTC (History)
2 users (show)

See Also:
Package list:
app-emulation/cloud-init-22.2-r1 *
Runtime testing required: ---


Attachments
app-emulation/cloud-init-22.2 emerge log (app-emulation_cloud-init-22.2.log,64.00 KB, text/plain)
2022-06-08 14:01 UTC, FineBeetle
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description FineBeetle 2022-06-08 14:00:08 UTC
After installation app-emulation/cloud-init-22.2 did not install init.d scripts. While app-emulation/cloud-init-21.2 did install all scripts.

Reproducible: Always

Actual Results:  
Package is successfully installed, but no scripts are present in /etc/init.d

Expected Results:  
Expected init scripts like app-emulation/cloud-init-21.2:
/etc/init.d/cloud-config
/etc/init.d/cloud-final
/etc/init.d/cloud-init
/etc/init.d/cloud-init-local

On an OpenRC system this rendenrs cloud-init non functional.

It also breaks diskimage-builder with the element "cloud-init" which fails with the error `rc-update: service `cloud-config' does not exist`.
Comment 1 FineBeetle 2022-06-08 14:01:19 UTC
Created attachment 783635 [details]
app-emulation/cloud-init-22.2 emerge log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-10 02:36:23 UTC
Oh, this is interesting. I think it's a regression with PEP517 support. I don't think the option handling method used (https://github.com/canonical/cloud-init/blob/main/setup.py#L222) is compatible with it.

I'm going to drop back to legacy (non-PEP517) for now.
Comment 3 Larry the Git Cow gentoo-dev 2022-06-10 02:45:17 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44cfdb3c49f7ebce1e66324ad5ac68285d8d08bb

commit 44cfdb3c49f7ebce1e66324ad5ac68285d8d08bb
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-10 02:44:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-10 02:44:59 +0000

    app-emulation/cloud-init: restore OpenRC files
    
    broken w/ PEP517 for now
    
    Bug: https://bugs.gentoo.org/850628
    Signed-off-by: Sam James <sam@gentoo.org>

 app-emulation/cloud-init/cloud-init-22.2-r1.ebuild | 93 ++++++++++++++++++++++
 app-emulation/cloud-init/cloud-init-9999.ebuild    | 23 ++++--
 2 files changed, 109 insertions(+), 7 deletions(-)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-10 02:51:04 UTC
Ended up just pushing as stable.
Comment 5 Larry the Git Cow gentoo-dev 2022-06-11 05:19:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adda29b617e2c0c8b0283860bce3302e20e19918

commit adda29b617e2c0c8b0283860bce3302e20e19918
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-11 05:18:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-11 05:18:54 +0000

    app-emulation/cloud-init: add link to upstream bug re PEP517
    
    Bug: https://bugs.gentoo.org/850628
    Signed-off-by: Sam James <sam@gentoo.org>

 app-emulation/cloud-init/cloud-init-22.2-r1.ebuild | 1 +
 app-emulation/cloud-init/cloud-init-9999.ebuild    | 1 +
 2 files changed, 2 insertions(+)