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

Add Keepalive command #471

Merged
merged 12 commits into from
Feb 8, 2022
Merged

Add Keepalive command #471

merged 12 commits into from
Feb 8, 2022

Conversation

ngetahun
Copy link
Contributor

@ngetahun ngetahun commented Jan 31, 2022

How to review

# build the sle15sp3 docker image
> docker build -t connect.15sp3 -f Dockerfile.15sp3 .

# Run the container
>docker run --privileged --network=host --rm -it connect.15sp3 bash

# Run the glue server in another terminal
> cd happy-customer/glue && bin/rails s

# Scenario 1: Un-registered system
# in the container, run
> bin/SUSEConnect --keepalive
# You should see an error message, directing you to register the container

# Scenario 2: Register system from regcodes in scc/glue
> bin/SUSEConnect -r xxxxx --url http://localhost....

> bin/SUSEConnect --keepalive

# Visit the glue web ui. Under the org > systems view, you should see the last_seen_at attribute updated

# Scenario 3: Simulate a pub-cloud machine
# On a registered system
> touch /usr/sbin/registercloudguest
> bin/SUSEConnect --keepalive

# You should see a success message.

Related trello card: https://trello.com/c/NFqpY5Vt/2272-uras-suseconnect-keepalive-subcommand

@SUSE SUSE deleted a comment from suse-tests-fail Feb 4, 2022
@ngetahun
Copy link
Contributor Author

ngetahun commented Feb 4, 2022

@SUSE SUSE deleted a comment from suse-tests-fail Feb 7, 2022
@SUSE SUSE deleted a comment from suse-tests-fail Feb 7, 2022
lib/suse/connect/client.rb Outdated Show resolved Hide resolved
@SUSE SUSE deleted a comment from suse-tests-fail Feb 8, 2022
@SUSE SUSE deleted a comment from suse-tests-fail Feb 8, 2022
@SUSE SUSE deleted a comment from suse-tests-fail Feb 8, 2022
@suse-tests-pass
Copy link
Collaborator

Well Done! Your tests are still passing.
https://ci.suse.de/job/SCC-Connect-Prophet/479985/console
If the given link has expired,you can force a Prophet rerun by just deleting this comment. (Merged 02d62af into fbad4c6)

@ngetahun ngetahun merged commit bbc4de2 into master Feb 8, 2022
@ngetahun ngetahun deleted the add_keep_alive_command branch February 8, 2022 14:34
djoreilly pushed a commit to SUSE/connect-ng that referenced this pull request Jul 14, 2022
Running with this option updates the system information
and the last_seen_at time stamp on SCC.

First implemented in the Ruby SUSEConnect:
SUSE/connect#471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants