The `analyze-publication` management command shows a warning

Open
#3,174 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

Start by reproducing the warning with the pulpcore-manager analyze-publication command, both with and without --tabular, using the distribution path from the report. Trace the analyze-publication command's startup checks and tabular dependency handling; done means the command produces no unexpected warning messages and both documented modes behave as expected.

Written by the indexing model from the issue text.

Description

Issue satellite

Version
pulpcore 3.18

Describe the bug

Warning messages are printed when using the analyze-publication management command

# PULP_SETTINGS=/etc/pulp/settings.py pulpcore-manager analyze-publication --distribution-base-path 'RedHat/Library/content/dist/rhel/server/7/7.9/x86_64/kickstart' | grep vmlinuz -A2
System check identified some issues:

WARNINGS:
?: (guardian.W001) Guardian authentication backend is not hooked. You can add this in settings as eg: `AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend', 'guardian.backends.ObjectPermissionBackend')`.
images/pxeboot/vmlinuz
└─ Storage path: /var/lib/pulp/media/artifact/9f/67343147f945a5e75f14e9012315d8300d78fb67b1a35db1e561b0b261c06c
└─ Artifact href: /pulp/api/v3/artifacts/6a5c1151-ebd2-485e-a718-66c119f17a10


# PULP_SETTINGS=/etc/pulp/settings.py pulpcore-manager analyze-publication --distribution-base-path 'RedHat/Library/content/dist/rhel/server/7/7.9/x86_64/kickstart' --tabular
System check identified some issues:

WARNINGS:
?: (guardian.W001) Guardian authentication backend is not hooked. You can add this in settings as eg: `AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend', 'guardian.backends.ObjectPermissionBackend')`.
CommandError: 'prettytable' package must be installed.

To Reproduce

  1. Install a Satellite 6.12 with Organization name RedHat

  2. Enable RHEL 7.9 Kickstart repo and sync it with immediate download policy.

  3. Find out it's distribution_path

  4. Run "pulpcore-manager analyze-publication" against the same with and without --tabular option.

Expected behavior
No warning messages

Additional context

https://bugzilla.redhat.com/show_bug.cgi?id=2124637

Dominant language
Python
Stars
598
Forks
168
Avg merge
1d 4h
Merged PRs (30d)
86

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pulp/pulpcore

All issues in pulp/pulpcore

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.