Bug 752391 - Fail to import new manifest getting : 403 forbidden
Summary: Fail to import new manifest getting : 403 forbidden
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers katello-drop3-bugs
TreeView+ depends on / blocked
 
Reported: 2011-11-09 11:38 UTC by Sachin Ghai
Modified: 2019-09-25 21:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:05:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sachin Ghai 2011-11-09 11:38:36 UTC
Description of problem:
I tried to import new manifest after db clean and after changing the content URL in /etc/pulp/pulp.conf.

[root@dhcp201-198 pulp]# cat /etc/pulp/pulp.conf | grep content
content_url: http://download.devel.redhat.com/cds/prod/
[root@dhcp201-198 pulp]# 


Also restarted all services but getting following message:

[root@dhcp201-198 pulp]# katello -u admin -p admin shell
katello> provider import_manifest --org=org1 --name="Red Hat" --file=/root/fte2NovemberSamTest2.zip
Importing manifest, please wait... Manifest import for provider [ Red Hat ] failed, 403 Forbidden

Version-Release number of selected component (if applicable):
[root@dhcp201-198 pulp]# rpm -qa | grep katello
katello-common-0.1.98-1.git.33.a663155.fc15.noarch
katello-all-0.1.98-1.git.33.a663155.fc15.x86_64
katello-cli-common-0.1.10-1.git.1133.ea1fcc6.fc15.noarch
katello-glue-foreman-0.1.98-1.git.33.a663155.fc15.x86_64
katello-configure-0.1.10-1.git.0.78fbe70.fc15.noarch
katello-cli-0.1.10-1.git.1133.ea1fcc6.fc15.noarch
katello-glue-pulp-0.1.98-1.git.33.a663155.fc15.x86_64
katello-0.1.99-1.git.89.bc81fa8.fc15.x86_64
katello-glue-candlepin-0.1.98-1.git.33.a663155.fc15.x86_64
katello-repos-0.1.3-1.git.0.db2bd1d.fc15.noarch
[root@dhcp201-198 pulp]# rpm -qa | grep pulp
mod_wsgi-3.2-6.pulp.fc15.x86_64
pulp-0.0.244-5.fc15.noarch
m2crypto-0.21.1.pulp-5.fc15.x86_64
katello-glue-pulp-0.1.98-1.git.33.a663155.fc15.x86_64
pulp-common-0.0.244-5.fc15.noarch
[root@dhcp201-198 pulp]# 


How reproducible:
always

Steps to Reproduce:
1. Change the content url in /etc/pulp/pulp.conf to  http://download.devel.redhat.com/cds/prod/
2. Restart all services ( Katello, pulp-server)
3.
  
Actual results:
Importing manifest, please wait... Manifest import for provider [ Red Hat ] failed, 403 Forbidden

Expected results:
manifest should be imported successfully

Additional info:

Comment 2 Sachin Ghai 2011-11-09 11:56:53 UTC
Yes..true. Earlier I tried with CDN and found same result. thanks !

Comment 3 Sachin Ghai 2011-11-10 08:16:37 UTC
I've successfully imported the same manifests from the webUI and after changing the repository URL "http://download.devel.redhat.com/cds/prod/". 

So this should also work from cli as well.

Comment 4 Lukas Zapletal 2011-11-10 09:51:48 UTC
Cool, putting ON_QA then ;-)

Comment 5 Sachin Ghai 2011-11-10 10:12:33 UTC
This issue is still persists in cli. so assigning back. Thanks

Comment 6 Ivan Necas 2012-01-09 17:04:47 UTC
This is the correct command to change the provider url:

  katello -u admin -p admin provider update --name "Red Hat"  --url https://provider.com/content

After that you can use the manifest issued by another provider. It has nothing to do with /etc/pulp/pulp.conf

Comment 7 Garik Khachikyan 2012-01-13 14:22:48 UTC
# VERIFIED

Changing the "Red Hat" provider url to the one inecas mentioned I succeed to import (and syncing) the stage content.

using the same manifest file as Sachin was using.

Checked against:

katello-0.1.174-2.el6.noarch
katello-cli-0.1.35-1.el6.noarch
pulp-0.0.256-1.el6.noarch
candlepin-0.5.8-1.el6.noarch

Comment 10 Mike McCune 2013-08-16 18:22:49 UTC
getting rid of 6.0.0 version since that doesn't exist


Note You need to log in before you can comment on or make changes to this bug.