-
Notifications
You must be signed in to change notification settings - Fork 115
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
Errata with swidtags setup and modular update #14494
Conversation
b43b3b7
to
dea50d9
Compare
trigger: test-robottelo |
PRT Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few questions pending.
dea50d9
to
146a3c9
Compare
146a3c9
to
53c7b83
Compare
trigger: test-robottelo |
PRT Result
|
53c7b83
to
3b2f1b9
Compare
trigger: test-robottelo |
PRT Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking
3b2f1b9
to
3c0ec28
Compare
3c0ec28
to
be5f7a5
Compare
trigger: test-robottelo |
1487341
to
89e8bcc
Compare
89e8bcc
to
4845dea
Compare
trigger: test-robottelo |
4845dea
to
fe90fe1
Compare
PRT Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Request to update doc string for the function fetch_cv_by_name_and_cvv
.
tests/foreman/api/test_errata.py
Outdated
return target_sat.api.LifecycleEnvironment(organization=module_sca_manifest_org).create() | ||
|
||
|
||
def fetch_cv_by_name_and_cvv(sat, org, name=DEFAULT_CV, ver=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which test is calling this function?
Also could you please add :param:
section which explain meaning of each parameter?
def fetch_cv_by_name_and_cvv(sat, org, name=DEFAULT_CV, ver=None): | |
def fetch_cv_by_name_and_cvv(sat, org, name=DEFAULT_CV, ver=None): | |
""" Doc string | |
:param: <type> sat: | |
:param: <type> org: | |
:param: <type> name: | |
:param: <type> ver: | |
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Planned for next PR of a few enhancements, but is unneeded for now.
Will remove from here, and put up w/ requested changes once fully implemented
fe90fe1
to
faa3216
Compare
tests/foreman/api/test_errata.py
Outdated
_set_prerequisites_for_swid_repos(rhel8_contenthost) | ||
_run_remote_command_on_content_host( | ||
f'dnf -y module install {module_name}:0:{version}', rhel8_contenthost | ||
_repos = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's no need to use a leading underscore within a test
_repos = { | |
repos = { |
tests/foreman/api/test_errata.py
Outdated
'swid_tags': settings.repos.swid_tag.url, # module stream pkgs and errata | ||
} | ||
# associate repos with sat, org, lce, cv, and sync | ||
for _r_ in _repos: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment about leading underscores, but this also has a tailing underscore.
for _r_ in _repos: | |
for r in repos: |
_run_remote_command_on_content_host('mv *swid*.repo /etc/yum.repos.d', vm) | ||
_run_remote_command_on_content_host(r'subscription-manager repos --enable \*', vm) | ||
_run_remote_command_on_content_host('yum install -y swid-tools', vm) | ||
_run_remote_command_on_content_host('yum install -y dnf-plugin-swidtags', vm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not within the scope of this PR (and not blocking), but this function needs to go away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, can get this done for the next errata maintenance pr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, plus-one to get rid of _
s (pending)
faa3216
to
c9b7921
Compare
trigger: test-robottelo |
PRT Result
|
tests/foreman/api/test_errata.py
Outdated
_ak = target_sat.api.ActivationKey( | ||
organization=org, | ||
environment=lce, | ||
content_view=cv, | ||
).create() | ||
# register host with ak, succeeds | ||
result = rhel_contenthost.register( | ||
activation_keys=_ak.name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very close! Just one more that I see.
_ak = target_sat.api.ActivationKey( | |
organization=org, | |
environment=lce, | |
content_view=cv, | |
).create() | |
# register host with ak, succeeds | |
result = rhel_contenthost.register( | |
activation_keys=_ak.name, | |
ak = target_sat.api.ActivationKey( | |
organization=org, | |
environment=lce, | |
content_view=cv, | |
).create() | |
# register host with ak, succeeds | |
result = rhel_contenthost.register( | |
activation_keys=ak.name, |
c9b7921
to
187bff9
Compare
Repair setup for package w/ swidtag, install and modular update (cherry picked from commit 9fc762a)
Repair setup for package w/ swidtag, install and modular update
Problem Statement
Setup for contenthost of
api::test_errata_installation_with_swidtags
uses some outdated repositories and makes use of deprecated methodrepo_collection.setup_virtual_machine()
. Has failed in most recent automation runs for 6.15, 6.14.3Solution
Setup host with global registration to published CV and AK, with synced repos containing prereqs and module stream with swidtag attached, promoted CVV with all content. Also using SCA-only org fixture
Related Issues
these fixes have been included in an open CP forThis is now merged into 6.14.z ([6.14.z] CP of API-Errata modifications #13832)API::Errata-Management
, which is not merged due to this failing test.^ We should CP to 6.14.z still, because review comments have brought enhancements to these fixes.
PRT case