Project

General

Profile

Pulp 3 Integration » History » Version 41

Justin Sherrill, 02/21/2020 03:30 PM

1 1 Justin Sherrill
h1. Pulp 3 Integration
2
3
This page is meant to capture links to various resources around pulp3 integration
4
5
* Initial Integration Document: https://docs.google.com/document/d/1eFM4H9BteA_nTDbUkRJgEiqSttXfAtB9-51a_OuwVJw/edit?usp=sharing
6
* Initial Community Post: https://community.theforeman.org/t/pulp-3-migration/10474
7
* Youtube Videos: https://www.youtube.com/playlist?list=PL59WSIBtIpv7tbjnsEAWNcdiOKAmjjgqE
8
* Tasks List: https://docs.google.com/spreadsheets/d/1PFx-VAEXlivlqDYR9INMW26AUWtuMS_XtEnwhFVP5Rc/edit?usp=sharing
9 17 John Mitsch
* Main Tracker: https://projects.theforeman.org/issues/26987
10 2 Justin Sherrill
11 41 Justin Sherrill
h2. Katello Dev box with pulp3:
12 40 Samir Jha
13
+*Install and enable pulp_rpm plugin*+ 
14
15
* vagrant up katello-dev-box
16 1 Justin Sherrill
* vagrant ssh katello-dev-box
17 41 Justin Sherrill
18
19
h2. adding the yum plugin:
20 40 Samir Jha
<pre>
21
sudo yum install -y gcc make cmake bzip2-devel expat-devel file-devel glib2-devel libcurl-devel libmodulemd2-devel ninja-build libxml2-devel python36-devel python36-gobject rpm-devel openssl-devel sqlite-devel xz-devel zchunk-devel zlib-devel
22
sudo pip3 install scikit-build nose
23
sudo pip3 install pulp-rpm==3.0.0
24
sudo -u pulp PULP_SETTINGS='/etc/pulp/settings.py' DJANGO_SETTINGS_MODULE='pulpcore.app.settings' python3-django-admin migrate --no-input
25
sudo systemctl restart pulpcore-resource-manager pulpcore-content pulpcore-api pulpcore-worker@1 pulpcore-worker@2
26
</pre>
27
28
* Refresh the smart proxy 
29
# login to katello/foreman
30
# navigate to infrastructure > smart proxies
31
# click 'refresh' in the list of actions beside your smart proxy
32
33
You should now see file, docker and yum as supported content type under pulpcore in the *Services tab*  
34
35 1 Justin Sherrill
36 40 Samir Jha
37
38 41 Justin Sherrill
h2. Old (ansible-based) way to deploy pulp3:
39 2 Justin Sherrill
40 15 Justin Sherrill
* Install a katello dev environment with forklift
41 32 Ian Ballou
* Install the following packages in your dev box: 
42 34 Ian Ballou
<pre>sudo yum -y install https://people.redhat.com/iballou/libcomps-0.1.12-1.git.0.937a666.el7.x86_64.rpm</pre>
43
<pre>sudo yum -y install https://people.redhat.com/iballou/python3-libcomps-0.1.12-1.git.0.937a666.el7.x86_64.rpm</pre>
44 15 Justin Sherrill
* checkout this forklift pr if its not merged: https://github.com/theforeman/forklift/pull/980
45
* setup ansible-pulp:
46
<pre>
47
cd forklift
48
git clone https://github.com/pulp/ansible-pulp.git
49 1 Justin Sherrill
cd ansible-pulp
50 15 Justin Sherrill
ansible-galaxy install -r requirements.yml -p ./roles
51 29 Justin Sherrill
ansible-galaxy install pulp.pulp_rpm_prerequisites -p ./roles
52 15 Justin Sherrill
</pre>
53 24 Samir Jha
54
55 15 Justin Sherrill
* within forkflift run:
56
<pre>
57
ansible-playbook ./playbooks/katello_pulp3.yml -l centos7-katello-devel
58
</pre>
59 1 Justin Sherrill
60 15 Justin Sherrill
* Refresh the smart proxy: 
61
62
  1. login to katello/foreman
63
  2. navigate to infrastructure > smart proxies
64
  3. click 'refresh' in the list of actions beside your smart proxy
65
You're now rockin' Pulp3
66 18 Partha Aji
67
68 22 Samir Jha
* *Known Issue:* Can't seem to use pulp3 on the box since pulp-api.service fails to start.
69
<pre>
70
sudo chmod -R 777 /etc/pki/pulp/
71 30 John Mitsch
sudo systemctl restart pulpcore-api.service
72 22 Samir Jha
</pre>
73 18 Partha Aji
74 33 Chris Roberts
* Reset the Katello Pulp 3 Dev Environment
75
From within the Foreman directory:
76
<pre>bundle exec rake katello:reset</pre>
77
78 23 Samir Jha
h2. Smart Proxy Setup:
79
80
* Install a smart proxy to point to your pulp3_dev box
81
* ssh into the smart proxy
82
* sudo mkdir /etc/httpd/conf.d/05-foreman-ssl.d
83
* sudo vi /etc/httpd/conf/httpd.conf
84
* Add IncludeOptional "/etc/httpd/conf.d/05-foreman-ssl.d/*.conf to the end of the file and save
85
* In forklift > Run ansible-playbook ./playbooks/katello_pulp3.yml -l centos7-proxy-devel
86
87 25 Justin Sherrill
h3. Other Resources
88
89
* pulp3 gap analysis wiki https://projects.theforeman.org/projects/katello/wiki/PulpV3GapAnalysis
90
* pulp3 gap analysis etherpad https://etherpad.net/p/pulp3_container
91
* pulp3 docker roadmap https://pulp.plan.io/projects/pulp/wiki/Pulp_Docker_Roadmap