Project

Profile

Help

Issue #1072

weird behaviour of content source refresh

Added by igulina@redhat.com over 5 years ago. Updated over 1 year ago.

Status:
CLOSED - WONTFIX
Priority:
High
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.7.0 Beta
Platform Release:
OS:
RHEL 7
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

404 was not received when attempting to reach the URL with the bad path appended to it

In vi /etc/pulp/content/sources/conf.d/my_source.conf

[content-world]
enabled: 1
priority: 0
expires: 3d
name: Content World
type: yum
base_url: https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/
paths: f18/x86_64/os/ \
       f18/i386/os/ \
       f19/x86_64/os \
       f19/i386/os
max_concurrent: 10
max_speed: 1000
ssl_ca_cert: /etc/pki/tls/certs/content-world.ca
ssl_client_key: /etc/pki/tls/private/content-world.key
ssl_client_cert: /etc/pki/tls/certs/content-world.crt

Now refresh content, it will retun 202 and list nothing

>> pulp-admin content sources refresh
+----------------------------------------------------------------------+
                        Refresh Content Sources
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.


Refreshing content sources
[-]
... completed


Task Succeeded

>> pulp-admin content sources list
+----------------------------------------------------------------------+
                            Content Sources
+----------------------------------------------------------------------+

>>

Now comment lines with paths and ssl certificates:

[content-world]
enabled: 1
priority: 0
expires: 3d
name: Content World
type: yum
base_url: https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/
#paths: f18/x86_64/os/ \
#       f18/i386/os/ \
#       f19/x86_64/os \
#       f19/i386/os
max_concurrent: 10
max_speed: 1000
#ssl_ca_cert: /etc/pki/tls/certs/content-world.ca
#ssl_client_key: /etc/pki/tls/private/content-world.key
#ssl_client_cert: /etc/pki/tls/certs/content-world.crt

Run refresh and list

>> pulp-admin content sources refresh
+----------------------------------------------------------------------+
                        Refresh Content Sources
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.

Refreshing content sources
[|]
... completed

Task Succeeded

>> pulp-admin content sources list
+----------------------------------------------------------------------+
                            Content Sources
+----------------------------------------------------------------------+

Base URL:       https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/
Enabled:        1
Expires:        3d
Max Concurrent: 10
Max Speed:      1000
Name:           Content World
Priority:       0
Source Id:      content-world
SSL Validation: true
Type:           yum

Now uncomment line with paths, but keep ssl commented:

>> pulp-admin content sources refresh
+----------------------------------------------------------------------+
                        Refresh Content Sources
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.

Refreshing content sources
[/]
Content World
... failed
Content source content-world could not be found at
https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/f18/x86_64/os/

Task Failed

Task 145be71f-32ac-45f8-ad12-6f6078109a6a encountered one or more failures
during execution.

>> pulp-admin content sources list
+----------------------------------------------------------------------+
                            Content Sources
+----------------------------------------------------------------------+

Base URL:       https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/
Enabled:        1
Expires:        3d
Max Concurrent: 10
Max Speed:      1000
Name:           Content World
Paths:          f18/x86_64/os/ \ f18/i386/os/ \ f19/x86_64/os \ f19/i386/os
Priority:       0
Source Id:      content-world
SSL Validation: true
Type:           yum

And now uncomment ssl lines:

pulp-admin content sources refresh
+----------------------------------------------------------------------+
                        Refresh Content Sources
+----------------------------------------------------------------------+

This command may be exited via ctrl+c without affecting the request.

Refreshing content sources
[-]
... completed

Task Succeeded

[root@ip-10-96-12-3 ~]# pulp-admin content sources list
+----------------------------------------------------------------------+
                            Content Sources
+----------------------------------------------------------------------+

History

#1 Updated by bmbouter over 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
  • Priority changed from Normal to High
  • Triaged changed from No to Yes

#2 Updated by dkliban@redhat.com about 4 years ago

  • Status changed from ASSIGNED to NEW

#3 Updated by dkliban@redhat.com about 4 years ago

  • Assignee deleted (dkliban@redhat.com)

#4 Updated by bmbouter over 1 year ago

  • Status changed from NEW to CLOSED - WONTFIX

#5 Updated by bmbouter over 1 year ago

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.

#6 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF