[Satellite 6]Upgrading from 6.2.14 to 6.3 failing on Upgrade Step: migrate_pulp
Environment
- Red Hat Satellite v 6.3
Issue
- Satellite 6.2 to 6.3 upgrade failing on
pulp-manage-dbstep:
Upgrade Step: migrate_pulp...
grep -qe '7.[[:digit:]]' /etc/redhat-release finished successfully!
sed -i -e 's?/var/run/mongodb/mongodb.pid?/var/run/mongodb/mongod.pid?g' /etc/mongod.conf finished successfully!
pgrep mongod finished successfully!
Traceback (most recent call last):
File "/bin/pulp-manage-db", line 9, in <module>
load_entry_point('pulp-server==2.13.4.6',
raise TypeError("option values must be strings")
TypeError: option values must be strings
su - apache -s /bin/bash -c pulp-manage-db failed! Check the output for error!
Upgrade step migrate_pulp failed. Check logs for more information.
Exit with status code: 1 (signal was 1)
Errors encountered during run:
su - apache -s /bin/bash -c pulp-manage-db failed! Check the output for error!
Upgrade step migrate_pulp failed. Check logs for more information.
Resolution
- Check the permission of directories and files under
/etc/pki/:
# tree -puf /etc/pki/
- Example:
# ls -ald /etc/pki/ca-trust/
drwx------. 4 root root 73 Aug 14 2017 /etc/pki/ca-trust/
# chmod 755 /etc/pki/ca-trust
# ls -ald /etc/pki/ca-trust/
drwxr-xr-x. 4 root root 73 Aug 14 2017 /etc/pki/ca-trust/
Root Cause
- Insufficient permissions on
/etc/pki/directory.
Diagnostic Steps
- Error message:
# su - apache -s /bin/bash -c pulp-manage-db
Traceback (most recent call last):
File "/bin/pulp-manage-db", line 9, in <module>
load_entry_point('pulp-server==2.13.4.6', 'console_scripts', 'pulp-manage-db')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 16, in <module>
from pulp.server import logs
File "/usr/lib/python2.7/site-packages/pulp/server/logs.py", line 14, in <module>
from pulp.server.async.tasks import get_current_task_id
File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 22, in <module>
from pulp.server.async.celery_instance import celery, RESOURCE_MANAGER_QUEUE, \
File "/usr/lib/python2.7/site-packages/pulp/server/async/celery_instance.py", line 19, in <module>
broker_url = config.get('tasks', 'broker_url')
File "/usr/lib64/python2.7/ConfigParser.py", line 604, in get
sectiondict = self._sections[section]
File "/usr/lib/python2.7/site-packages/pulp/server/config.py", line 25, in _sections
self._load_config()
File "/usr/lib/python2.7/site-packages/pulp/server/config.py", line 40, in _load_config
self.set(section, option, value)
File "/usr/lib64/python2.7/ConfigParser.py", line 743, in set
raise TypeError("option values must be strings")
TypeError: option values must be strings
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
