Bug 730358
Summary: | Product create with --url fails | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Tomas Strachota <tstrachota> |
Component: | katello-agent | Assignee: | Tomas Strachota <tstrachota> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Garik Khachikyan <gkhachik> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.0 | CC: | gkhachik, mkoci, sghai |
Target Milestone: | Unspecified | ||
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-08-22 17:52:08 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 747354 |
Description
Tomas Strachota
2011-08-12 15:18:58 UTC
should be fixed in commit f4e92e04b4d69a409fdbce906d3577c3c74cbba6 Author: Dmitri Dolguikh <dmitri> Date: Fri Aug 12 12:17:17 2011 -0300 I tried to verify this in following build: root@dhcp201-207 katello]# rpm -qa | grep katello katello-cli-0.1.4-1.git.63.54683c2.fc15.noarch katello-0.1.64-1.git.0.0b431ff.fc15.noarch I tried to create a new product with --url and found following error: [root@dhcp201-207 katello]# katello -u admin -p admin product create --org=ACME_Corporation --prov=test_provider --name=fedora15 --url=http://download.eng.pnq.redhat.com/pub/fedora/linux/releases/15/Fedora/x86_64/os Successfully created product [ fedora15 ] Discovering repository urls, this could take some time... error: operation failed: RestClient::ResourceNotFound: 404 Resource Not Found if I create product with --url then its created successfully [root@dhcp201-207 katello]# katello -u admin -p admin product create --org=ACME_Corporation --prov=test_provider --name=fedora15 Successfully created product [ fedora15 ] [root@dhcp201-207 katello]# Tomas, could you please have a look as its still failing for me on the new build. Typo in comment2, Please read the following statement > if I create product with --url then its created successfully as > if I create product without --url then its created successfully I tested this on 3bd6e1 (build 0.1.66-1): katello -u admin -p admin product create --org=ACME_Corporation --prov=test_provider --name=fedora15 --url=http://download.eng.pnq.redhat.com/pub/fedora/linux/releases/15/Fedora/x86_64/ Repo discovery starts and finds one repo. After I select it, the new product and repo are created. Didn't find any issues. Is katello ping returning ok status for you on that machine? Note: You have to pass the url without the "os/". It's an issue in the latest pulp release. It's been reported and should be fixed in a recent test version. Thanks Tomas for your quick response.. > Is katello ping returning ok status for you on that machine? [root@dhcp201-207 katello]# katello -u admin -p admin ping ------------------------------------------------------------------------------------------------------------------------------------------------------------- Katello Status ------------------------------------------------------------------------------------------------------------------------------------------------------------- Status: ok Service: candlepin Result: ok Duration: 22ms Service: pulp_auth Result: ok Duration: 35ms Service: pulp Result: ok Duration: 94ms Service: candlepin_auth Result: ok Duration: 10ms > Note: You have to pass the url without the "os/". It's an issue in the latest > pulp release. It's been reported and should be fixed in a recent test version. Yes, I was trying with "os/". But even without "os/" I'm getting same message. [root@dhcp201-207 katello]# katello -u admin -p admin product create --org=ACME_Corporation --prov=test_provider --name=fedora15 --url=http://download.eng.pnq.redhat.com/pub/fedora/linux/releases/15/Fedora/x86_64/ Successfully created product [ fedora15 ] Discovering repository urls, this could take some time... error: operation failed: RestClient::ResourceNotFound: 404 Resource Not Found Not sure if I need to test this with latest build "0.1.65-1.git.0.9c951aa.fc15". No changes in this area since 0.1.65-1. And your Pulp and CP version, please?
> And your Pulp and CP version, please?
[root@dhcp201-207 ~]# rpm -qa | grep pulp
pulp-0.0.225-1.fc15.noarch
pulp-common-0.0.225-1.fc15.noarch
pulp-consumer-0.0.225-1.fc15.noarch
pulp-client-lib-0.0.225-1.fc15.noarch
pulp-admin-0.0.225-1.fc15.noarch
[root@dhcp201-207 ~]# rpm -qa | grep candlepin
candlepin-0.4.10-1.fc15.noarch
candlepin-tomcat6-0.4.10-1.fc15.noarch
[root@dhcp201-207 ~]# rpm -qa | grep katello
katello-cli-0.1.4-1.git.63.54683c2.fc15.noarch
katello-0.1.64-1.git.0.0b431ff.fc15.noarch
[root@dhcp201-207 ~]#
There's problem in retrieving status of the repo discovery from pulp. Route for getting the status has been removed and they now use unified api /task/ for checking statuses (pulp commit 3cf4a69b). I'm working on a fix. We should also use our asynchronous tasks and not call pulp directly for getting statuses. I'll change that too. Fixed in commit de542da45ba0eaaf56ab4691a22cca019c113f78 Author: Tomas Strachota <tstrachota> Date: Fri Sep 2 21:00:14 2011 +0200 730358 - repo discovery now uses asynchronous tasks - the route has been changed to /organizations/ID/repositories/discovery/ |