Hide Forgot
Description of problem: Create a rhel-edge-container image with bp that a user is added, then install rhel for edge. Can use that user to login system. Then make an upgrade bp, add additional RPMs, but do not define any user, create an upgrade image. Upgrade rhel for edge, after upgrade, cannot login with that user. Version-Release number of selected component (if applicable): RHEL 8.4 How reproducible: Everytime Steps to Reproduce: 1. Create blueprint like this, define a user named admin. name = "container" description = "A base rhel-edge container image" version = "0.0.1" modules = [] groups = [] [[packages]] name = "python36" version = "*" [customizations] [customizations.kernel] name = "kernel-rt" append = "" [[customizations.user]] name = "admin" description = "Administrator account" password = "$6$GRmb7S0p8vsYmXzH$o0E020S.9JQGaHkszoog4ha4AQVs3sk8q0DvLjSMxoxHBKnB2FBXGQ/OkwZQfW/76ktHd0NX5nls2LPxPuUdl." key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCzxo5dEcS+LDK/OFAfHo6740EyoDM8aYaCkBala0FnWfMMTOq7PQe04ahB0eFLS3IlQtK5bpgzxBdFGVqF6uT5z4hhaPjQec0G3+BD5Pxo6V+SxShKZo+ZNGU3HVrF9p2V7QH0YFQj5B8F6AicA3fYh2BVUFECTPuMpy5A52ufWu0r4xOFmbU7SIhRQRAQz2u4yjXqBsrpYptAvyzzoN4gjUhNnwOHSPsvFpWoBFkWmqn0ytgHg3Vv9DlHW+45P02QH1UFedXR2MqLnwRI30qqtaOkVS+9rE/dhnR+XPpHHG+hv2TgMDAuQ3IK7Ab5m/yCbN73cxFifH4LST0vVG3Jx45xn+GTeHHhfkAfBSCtya6191jixbqyovpRunCBKexI5cfRPtWOitM3m7Mq26r7LpobMM+oOLUm4p0KKNIthWcmK9tYwXWSuGGfUQ+Y8gt7E0G06ZGbCPHOrxJ8lYQqXsif04piONPA/c9Hq43O99KPNGShONCS9oPFdOLRT3U= ostree-image-test" home = "/home/admin/" groups = ["wheel"] 2. Use this blueprint to build image, "composer-cli compose start-ostree container rhel-edge-container --ref rhel/8/x86_64/edge", after build finished, download image and run container, container serves ostree image content at http://192.168.100.1/repo/. 3. Create a Kickstart file, includes the ostree url http://192.168.100.1/repo/. 4. Use kickstart file to install RHEL for Edge, after installation, I can login as user admin. 5. Create a blueprint for upgrade like this, additional pkg added, but no user defined. name = "upgrade-container" description = "An upgrade rhel-edge container image" version = "0.0.2" modules = [] groups = [] [[packages]] name = "python36" version = "*" [[packages]] name = "expect" version = "*" [customizations] [customizations.kernel] name = "kernel-rt" append = "" 6. Use this blueprint to build a rhel-edge-container image, "composer-cli compose start-ostree upgrade-container rhel-edge-container --url http://192.168.100.1/repo/ --ref rhel/8/x86_64/edge", after build finished, download image and run container. 7. Upgrade rhel for edge image, upgrade finished successfully. After reboot, I cannot login with user admin, error message is 'Login incorrect.' vm login: admin Password: Login incorrect Actual results: Cannot login as user admin after upgrade Expected results: Can login as user admin after upgrade Additional info:
That is sadly expected behaviour and why I think we should discourage people from putting users into blueprints.
Verified on: osbuild-53-2.el8.noarch osbuild-composer-46.1-1.el8.x86_64 osbuild-composer-core-46.1-1.el8.x86_64 osbuild-composer-dnf-json-46.1-1.el8.x86_64 osbuild-composer-worker-46.1-1.el8.x86_64 osbuild-luks2-53-2.el8.noarch osbuild-lvm2-53-2.el8.noarch osbuild-ostree-53-2.el8.noarch osbuild-selinux-53-2.el8.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (osbuild-composer bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:1841