Actions
Issue #6910
closedCannot use a source-checkout of a plugin without also having a source checkout of pulpcore
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
Installer - Moved to GitHub issues
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 75
Quarter:
Description
Goal¶
I would like to develop a plugin but not pulpcore. To do that I would likely have my local.dev-config.yml
be:
# Options
pulp_devel_supplement_bashrc: true
pulp_default_admin_password: password
pulp_install_plugins:
# pulp-ansible:
# source_dir: "/home/vagrant/devel/pulp_ansible"
# galaxy-ng:
# source_dir: "/home/vagrant/devel/galaxy_ng"
# pulp-certguard:
# source_dir: "/home/vagrant/devel/pulp-certguard"
# pulp-cookbook:
# source_dir: "/home/vagrant/devel/pulp_cookbook"
# pulp-deb:
# source_dir: "/home/vagrant/devel/pulp_deb"
# pulp-container:
# source_dir: "/home/vagrant/devel/pulp_container"
# pulp-gem:
# source_dir: "/home/vagrant/devel/pulp_gem"
# pulp-maven:
# source_dir: "/home/vagrant/devel/pulp_maven"
# pulp-python:
# source_dir: "/home/vagrant/devel/pulp_python"
# pulp-rpm:
# source_dir: "/home/vagrant/devel/pulp_rpm"
# # You can specify a folderpath to pulp.pulp_rpm_prerequisites instead of
# # just uncommenting this role name, but note that it is a path on the
# # pulplift host, not the guest VM like all the other paths.
# prereq_role: "pulp.pulp_rpm_prerequisites"
pulp-file:
source_dir: "/home/vagrant/devel/pulp_file"
# Vagrant source install Required
# pulp_webserver_server: "apache"
pulp_user: "vagrant"
developer_user: "vagrant"
developer_user_home: "/home/vagrant"
# pulp_source_dir: "/home/vagrant/devel/pulpcore"
pulp_settings:
secret_key: "unsafe_default"
content_origin: "http://{{ ansible_fqdn }}"
Notice especially that I've commented out pulp_settings
.
Error¶
If you use ^ playbook, you'll get an error like:
TASK [pulp_devel : Install requirements for building docs] *********************
fatal: [pulp3-source-fedora30]: FAILED! => {}
MSG:
The task includes an option with an undefined variable. The error was: 'pulp_source_dir' is undefined
The error appears to be in '/home/bmbouter/devel/pulp3/pulplift/pulp_installer/roles/pulp_devel/tasks/install_docs_requirements.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
---
- name: Install requirements for building docs
^ here
What's strange is that the "installing pulpcore from pypi" seems to work but fails at a later step.
Actions
Devel role not requiring to set pulp_source_dir
https://pulp.plan.io/issues/6910 closes #6910