A repo can't be deleted if it's still associated with a CDS. A repo can't be unassociated from a CDS if the CDS is down. So you're stuck. I talked about this with Jeff and the idea is to move the unassociate functionality into the repo delete and do a best try. Repo delete will now return a list of which CDS instances were successfully unassociated and which weren't; regardless, the repo will still be deleted from the Pulp server.
Implemented as described.
build: 0.168
[root@preethi ~]# rpm -q pulp pulp-0.0.174-1.fc14.noarch [root@preethi ~]# pulp-admin repo delete --id=errata-repo Successful deleted repository [ errata-repo ] Unassociated with CDS(s): 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 repos-pulp-pulp-fedora-14-x86_64 Last Sync 2011-05-12 14:27:23 Status: Responding No Last Heartbeat 2011-05-12 15:07:51
Closing with Community Release 15 pulp-0.0.223-4.