Created
January 7, 2015 18:46
-
-
Save jlsherrill/26eeca53f66879a3dc66 to your computer and use it in GitHub Desktop.
Removing a distribution for a repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install pulp-admin-client pulp-rpm-admin-extensions | |
# edit /etc/pulp/admin/admin.conf and change: | |
host = localhost.localdomain | |
# to | |
host = myhost.domain.com | |
# and change | |
verify_ssl = true | |
# to | |
verify_ssl = false | |
# next find the pulp-admin password: | |
grep default_password /etc/pulp/server.conf | |
# you should see something like: | |
# | |
# default_password: asdfkjsdkfjdkjfd | |
# now list all your repositories (using the password that you just found): | |
pulp-admin -u admin -p PASSWORD repo list | |
# this will list all the repos on your satellite. You need to find the ids for the repos we care about, in this case it will likely be something like: | |
ShoreTel-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5_8 | |
# To confirm that pulp sees a distribution in the repo run: | |
pulp-admin -u admin -p PASSWORD rpm repo content distribution --repo-id=ShoreTel-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5_8 | |
# you should see something like: | |
Id: ks-Red Hat Enterprise Linux-Server-5.6-x86_64 | |
Family: Red Hat Enterprise Linux | |
Architecture: x86_64 | |
Variant: Server | |
Storage Path: /var/lib/pulp/content/distribution/ks-Red Hat Enterprise | |
Linux-Server-5.8-x86_64 | |
Files: | |
Filename: efiboot.img | |
Relative Path: images/efiboot.img | |
<MORE FILES LISTED> | |
# Now to remove the distribution: | |
pulp-admin -u admin -p PASSWORD rpm repo remove distribution --repo-id=ShoreTel-Red_Hat_Enterprise_Linux_Server-Red_Hat_Enterprise_Linux_5_Server_RPMs_x86_64_5_8 --not="id=NotARealId" | |
# Repeat the process for all repos having this issue. Make sure to NOT do this for any Kickstart repo | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment