Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration tests of installation manager failed because of lack of RHEL subscription #575

Closed
dmytro-ndp opened this issue Aug 15, 2016 · 0 comments
Assignees
Milestone

Comments

@dmytro-ndp
Copy link
Contributor

dmytro-ndp commented Aug 15, 2016

Integration tests of working Installation manager inside the RHEL 7 OS failed because of system hadn't unregistered properly in time of the previous test execution:

==> master: Registering to: subscription.rhn.redhat.com:443/subscription
==> master: The system has been registered with ID: bcd49bff-4cee-4790-a31f-45fe144d7866
==> master:
==> master: Installed Product Current Status:
==> master: Product Name: Red Hat Enterprise Linux Server
==> master: Status: Not Subscribed
==> master:
==> master: Unable to find available subscriptions for all your installed products.
==> master: Error: rhel-7-server-optional-rpms is not a valid repository ID. Use --list option to see valid repositories.
==> master: Error: rhel-7-server-extras-rpms is not a valid repository ID. Use --list option to see valid repositories.

The problem is: error in lib.sh library of integration tests where system unregister commands don't execute for the additional node.

Solution: unregister system by using special vagrant trigger which will be called on destroy event:

  # run some script before the guest is destroyed;
  # execute next command to install 'vagrant-trigger' plugin to be able to trigger event: "vagrant plugin install vagrant-triggers"
  config.trigger.before :destroy do
    run_remote  "bash -c 'sudo subscription-manager unregister'"
  end

Is needed for issue #479 to unblock testing in RHEL OS.

dmytro-ndp pushed a commit that referenced this issue Aug 15, 2016
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
dmytro-ndp pushed a commit that referenced this issue Aug 15, 2016
(#575) fix unregistering the RHEL system in IM integration tests
@dmytro-ndp dmytro-ndp added this to the 4.7.0 milestone Aug 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants