Issue #1072
closedweird behaviour of content source refresh
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
+----------------------------------------------------------------------+
Updated by bmbouter almost 9 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
Updated by dkliban@redhat.com over 7 years ago
- Status changed from ASSIGNED to NEW
Updated by dkliban@redhat.com over 7 years ago
- Assignee deleted (
dkliban@redhat.com)
Updated by bmbouter almost 5 years ago
- Status changed from NEW to CLOSED - WONTFIX
Updated by bmbouter almost 5 years 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.