Skip to content

[BUG]: almalinux-deploy.sh fails to unregister on RHEL10 #257

@natenasby

Description

@natenasby

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

almalinux-deploy.sh fails to unregister subscription on RHEL10. I have found the same issue on two separate bare-metal systems with different hardware, along with one non-VirtualBox virtual machine.

after running sudo bash almalinux-deploy.sh, the script stops with this:

Verify almalinux-release package OK
Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help]

Primary Modules:

list List subscription and product information for this system
refresh Pull the latest subscription data from the server
register Register this system to the Customer Portal or another subscription management service
release Configure which operating system release to use
status Show status information for this system
unregister Unregister this system from the Customer Portal or another subscription management service

Other Modules:

clean Remove all local system and subscription data without affecting the server
config List, set, or remove the configuration parameters in use by this system
environments Display the environments available for a user
facts View or update the detected system information
identity Display the identity certificate for this system or request a new one
orgs Display the organizations against which a user can register a system
plugins View and configure with 'subscription-manager plugins'
repo-override Manage custom content repository settings
repos List the repositories which this system is entitled to use
syspurpose Convenient module for managing all system purpose settings
version Print version information

So to get the script to work, I did the following:

  1. Check status of RHEL10 subscription with sudo subscription-manager status

  2. Unregister RHEL10 with sudo subscription-manager unregister

  3. sudo subscription-manager clean

  4. Disable subscription-manager with sudo sed -i 's/^enabled=.*/enabled=0/' /etc/dnf/plugins/subscription-manager.conf

  5. Verified that it's disabled with grep enabled /etc/dnf/plugins/subscription-manager.conf to get enabled=0

  6. Removed subscription-manager packages with sudo dnf remove -y subscription-manager subscription-manager-rhsm-certificates

  7. sudo dnf clean all

  8. Remove cache with sudo rm -rf /var/cache/dnf

After following these steps, sudo bash almalinux-deploy.sh works as intended with the end output being Migration to AlmaLinux is completed

Expected Behavior

No response

Steps To Reproduce

  1. Install RHEL10 from Red Hat
  2. curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh
  3. sudo bash almalinux-deploy.sh

Anything else?

almalinux-deployerror1.txt
almalinux-rhel10-successproof.txt

Search terms

EL10, RHEL10, AlmaLinux10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions