| Summary: | Running CDS register a second time gives a misleading error | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | nodes | Assignee: | Jay Dobies <jason.dobies> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 1.0.0 | CC: | skarmark |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-24 20:12:34 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
commit 38b91fb13dd6d6cad769576bc8bdd8880f6e3811
Author: Jay Dobies <jason.dobies>
Date: Tue Oct 25 15:02:27 2011 -0400
688288 - For a conflict, give the user a custom error message
src/pulp/client/admin/plugins/cds.py
build 0.242-2 verified
[root@preethi pulp]# pulp-admin cds register --hostname=f16-cds.usersys.redhat.com
Successfully registered CDS [f16-cds.usersys.redhat.com]
[root@preethi pulp]#
[root@preethi pulp]#
[root@preethi pulp]# pulp-admin cds list
+------------------------------------------+
CDS Instances
+------------------------------------------+
Name f16-cds.usersys.redhat.com
Hostname f16-cds.usersys.redhat.com
Description None
Cluster None
Sync Schedule None
Repos None
Last Sync Never
Status:
Responding Yes
Last Heartbeat 2011-11-11 21:02:36.646875+00:00
[root@preethi pulp]# pulp-admin cds register --hostname=f16-cds.usersys.redhat.com
error: error: operation failed: A CDS with the hostname [f16-cds.usersys.redhat.com] already exists
Pulp v1.0 is released Closed Current Release. |
Description of problem: If you run CDS register a second time on the same host, the error message is misleading. [root@preethi ~]# rpm -q pulp pulp-0.0.151-1.fc14.noarch [root@preethi ~]# pulp-admin cds list +------------------------------------------+ CDS Instances +------------------------------------------+ [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# [root@preethi ~]# pulp-admin cds register --hostname=pulp-cds.usersys.redhat.com Successfully registered CDS [pulp-cds.usersys.redhat.com] [root@preethi ~]# pulp-admin cds list +------------------------------------------+ CDS Instances +------------------------------------------+ Name pulp-cds.usersys.redhat.com Hostname pulp-cds.usersys.redhat.com Description None Repos None Last Sync Never [root@preethi ~]# pulp-admin cds register --hostname=pulp-cds.usersys.redhat.com Error attempting to register CDS [pulp-cds.usersys.redhat.com] Check that the CDS packages have been installed on the CDS and have been started