Project

Profile

Help

Issue #6910

closed

Cannot use a source-checkout of a plugin without also having a source checkout of pulpcore

Added by bmbouter over 4 years ago. Updated over 4 years ago.

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 #1

Updated by dkliban@redhat.com over 4 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 74
Actions #2

Updated by mdepaulo@redhat.com over 4 years ago

This should be quick & easy to implement:

pulp_devel/defaults/main.yml has:

pulp_requirements_dir: "{{ pulp_source_dir }}"

And then pulp_requirements_dir is used for 3 tasks, including the one listed above.

Those tasks should only be called when pulp_source_dir is defined, or if pulp_requirements_dir is non-zero-length. (Perhaps even eliminate pulp_requirements_dir and use pulp_source_dir directly.)

Actions #3

Updated by rchan over 4 years ago

  • Sprint changed from Sprint 74 to Sprint 75
Actions #4

Updated by fao89 over 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89
Actions #5

Updated by pulpbot over 4 years ago

  • Status changed from ASSIGNED to POST

Added by Fabricio Aguiar over 4 years ago

Revision 4aee9fc6 | View on GitHub

Devel role not requiring to set pulp_source_dir

https://pulp.plan.io/issues/6910 closes #6910

Added by Fabricio Aguiar over 4 years ago

Revision 4aee9fc6 | View on GitHub

Devel role not requiring to set pulp_source_dir

https://pulp.plan.io/issues/6910 closes #6910

Actions #6

Updated by Anonymous over 4 years ago

  • Status changed from POST to MODIFIED
Actions #7

Updated by Anonymous over 4 years ago

Actions #8

Updated by fao89 over 4 years ago

  • Sprint/Milestone set to 3.5.0
Actions #9

Updated by fao89 over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF