Project

Profile

Help

Issue #3769

Python packages dosen't have content units in FIPS enabled environment

Added by ragbalak 10 months ago. Updated 5 days ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Severity:
2. Medium
Version - Python:
Platform Release:
Blocks Release:
Target Release - Python:
OS:
RHEL 7
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

When Python repo is created and is synced, the downloaded contents in the FIPS environment fails to contain:

"*Content Unit Count*"

Environment Details :
RHEL 7.5
Pulp 2.17
FIPS Enabled
SELinux : Enforcing

RPMS Installed :

pulp-admin-client-2.17.0-0.1.alpha.201806181011gitd048023.el7.noarch
pulp-deb-admin-extensions-1.8.0-0.1.alpha.201806181017git5409969.el7.noarch
pulp-deb-plugins-1.8.0-0.1.alpha.201806181017git5409969.el7.noarch
pulp-docker-admin-extensions-3.2.0-0.1.alpha.201806181003git1e0493c.el7.noarch
pulp-docker-plugins-3.2.0-0.1.alpha.201806181003git1e0493c.el7.noarch
pulp-ostree-admin-extensions-1.4.0-0.1.alpha.201806181005git1d18a59.el7.noarch
pulp-ostree-plugins-1.4.0-0.1.alpha.201806181005git1d18a59.el7.noarch
pulp-puppet-admin-extensions-2.17.0-0.1.alpha.201806181007git44a02f8.el7.noarch
pulp-puppet-plugins-2.17.0-0.1.alpha.201806181007git44a02f8.el7.noarch
pulp-puppet-tools-2.17.0-0.1.alpha.201806181007git44a02f8.el7.noarch
pulp-python-admin-extensions-2.1.0-0.1.alpha.201806181001gitfabd48c.el7.noarch
pulp-python-plugins-2.1.0-0.1.alpha.201806181001gitfabd48c.el7.noarch
pulp-rpm-admin-extensions-2.17.0-0.1.alpha.201806181009git635260e.el7.noarch
pulp-rpm-plugins-2.17.0-0.1.alpha.201806181009git635260e.el7.noarch
pulp-selinux-2.17.0-0.1.alpha.201806181011gitd048023.el7.noarch
pulp-server-2.17.0-0.1.alpha.201806181011gitd048023.el7.noarch
python-isodate-0.5.0-4.pulp.el7.noarch
python-pulp-bindings-2.17.0-0.1.alpha.201806181011gitd048023.el7.noarch
python-pulp-client-lib-2.17.0-0.1.alpha.201806181011gitd048023.el7.noarch
python-pulp-common-2.17.0-0.1.alpha.201806181011gitd048023.el7.noarch
python-pulp-deb-common-1.8.0-0.1.alpha.201806181017git5409969.el7.noarch
python-pulp-docker-common-3.2.0-0.1.alpha.201806181003git1e0493c.el7.noarch
python-pulp-oid_validation-2.17.0-0.1.alpha.201806181011gitd048023.el7.noarch
python-pulp-ostree-common-1.4.0-0.1.alpha.201806181005git1d18a59.el7.noarch
python-pulp-puppet-common-2.17.0-0.1.alpha.201806181007git44a02f8.el7.noarch
python-pulp-python-common-2.1.0-0.1.alpha.201806181001gitfabd48c.el7.noarch
python-pulp-repoauth-2.17.0-0.1.alpha.201806181011gitd048023.el7.noarch
python-pulp-rpm-common-2.17.0-0.1.alpha.201806181009git635260e.el7.noarch
python-pulp-streamer-2.17.0-0.1.alpha.201806181011gitd048023.el7.noarch

The same procedure was reproduced in a non-FIPS RHEL 7.5 machine with PULP 2.17, and this time the content unit counts were seen

In FIPS enabled RHEL 7.5 Machine

Steps for reproducing the issue :

# Create a Python Repo
pulp-admin python repo create --feed=https://repos.fedorapeople.org/pulp/pulp/fixtures/python-pypi/ --repo-id=test_fips --package-names=shelf-reader 

# Sync and download the Repo
pulp-admin python repo sync run --repo-id=test-fips

# Finally check the repositories that are created 
pulp-admin python repo list

It can be seen that the Content Unit Count is blank in this output.

Have Attached the following Images

The Content Unit Count is not displayed after the contents are synced in the Fips environment. This is shown in both pulp-admin and in the python debugger(in pulp-smash) in the following images
fips_unit_count_missing
fips_unit_types_missing

Output of python repo list :


fips$ pulp-admin python repo list
+----------------------------------------------------------------------+
                          Python Repositories
+----------------------------------------------------------------------+

Id:                  b0ec7518-0ff5-45c7-8267-f0e52fb40263
Display Name:        b0ec7518-0ff5-45c7-8267-f0e52fb40263
Description:         None
Content Unit Counts: 

Output of the Content Units seen in the python debugger

ipdb> n
> /root/pulp-smash/pulp_smash/tests/pulp2/python/api_v2/test_sync_publish.py(116)verify_package_types()
    115         unit_types = {unit['metadata']['packagetype'] for unit in units}
--> 116         self.assertEqual(unit_types, {'sdist', 'bdist_wheel'})
    117 

ipdb> unit_types 
set()
ipdb> len(unit_types)
0
ipdb> 

Non Fips Environment :

Do the same step as done in the FIPS environment for creating a python repo.

Once created, it can be seen that the content unit count, in this case, is seen.

Content Unit Count are seen in "non_fips_unit_count" attachment

I also ran the ipdb debugger in the pulp_smash to look at the contents types of the synced content, and two content types are to be seen.

This is shown in "non_fips_unit_type_content" attachment

Output of python repo list :

non-fips$ pulp-admin python repo list
+----------------------------------------------------------------------+                                                      
                          Python Repositories
+----------------------------------------------------------------------+                                                      

Id:                  ce477c9f-b32c-43a3-a463-b611332a688a
Display Name:        ce477c9f-b32c-43a3-a463-b611332a688a
Description:         None
Content Unit Counts:
  Python Package: 2

Output of the Content Units seen in the python debugger

ipdb> n
> /root/pulp-smash/pulp_smash/tests/pulp2/python/api_v2/test_sync_publish.py(116)verify_package_types()                       
    115         unit_types = {unit['metadata']['packagetype'] for unit in units}                                              
--> 116         self.assertEqual(unit_types, {'sdist', 'bdist_wheel'})                                                        
    117 

ipdb> unit_types
{'sdist', 'bdist_wheel'}
ipdb> len(unit_types)
2

fips_unit_count_missing.png (27.5 KB) ragbalak, 06/15/2018 11:31 PM fips_unit_count_missing.png
fips_unit_types_missing.png (38.7 KB) fips_unit_type_missing ragbalak, 06/15/2018 11:31 PM fips_unit_types_missing.png
non_fips_unit_type_content.png (36.2 KB) ragbalak, 06/15/2018 11:35 PM non_fips_unit_type_content.png
non_fips_unit_counts.png (40.3 KB) ragbalak, 06/15/2018 11:35 PM non_fips_unit_counts.png
250
250
250
250

History

#2 Updated by ragbalak 10 months ago

Have Attached the following Images

Non Fips Environment :

Content Unit Count are seen in "non_fips_unit_count" attachment

I also ran the ipdb debugger in the pulp_smash to look at the contents types of the synced content, and two content types are to be seen.
This is shown in "non_fips_unit_type_content" attachment

FIPS Environment :

The Content Unit Count is not displayed after the contents are synced in the Fiis environment. This is shown in both pulp-admin and in the python debugger in the following images
fips_unit_count_missing
fips_unit_types_missing

#3 Updated by ragbalak 10 months ago

  • Description updated (diff)
  • OS set to RHEL 7

#4 Updated by ragbalak 10 months ago

  • Description updated (diff)

#5 Updated by ragbalak 10 months ago

  • Description updated (diff)

#6 Updated by ragbalak 10 months ago

  • Description updated (diff)

#7 Updated by ragbalak 10 months ago

  • Description updated (diff)

#8 Updated by ragbalak 10 months ago

  • Description updated (diff)

#9 Updated by amacdona@redhat.com 10 months ago

  • Project changed from Pulp to Python Support

#10 Updated by CodeHeeler 10 months ago

  • Triaged changed from No to Yes

#11 Updated by bmbouter 8 days ago

  • Status changed from NEW to CLOSED - WONTFIX

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

#12 Updated by bmbouter 5 days ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF