Project

Profile

Help

Task #2908

closed

Build a plugin writer's Vagrant VM and publish on Vagrant cloud on a Pulp account

Added by bmbouter over 7 years ago. Updated over 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 32
Quarter:

Description

Vagrant cloud is where Vagrant machines can be published. This task is to have the ability to build a Vagrant box that does the following:

1. A clean Vagrant F26 box
2. A non-source checkout of pulpcore installed on it. This will be installed using the published playbooks on galaxy
3. Add a nice welcome screen with motd indicating that they should install a plugin, run its migrations, or consider making a plugin with the Pulp dev guide.

Once done building the box, if it was built successfully, the build code will upload the box to Vagrant.

The user account name on vagrant cloud should be 'pulp' and the name of this Vagrantbox should be 'pulpcore'. This task includes registering the account on Vagrant cloud and responsibly storing the credentials.

We should produce both virtualbox and libvirtd images.

This needs to come with docs on how to use it which should be roughly:

1. install vagrant w/ either virtualbox or libvirtd backends
2. vagrant init pulp
3. vagrant up pulp

Build steps:

1) Add Virtualbox repo file[0] to a fedora 25/26 machine

2) # Install Virtualbox and make sure all of it's kernel modules are compiled and installed.
dnf install kernel-devel, dkms
dnf install VirtualBox-5.1

3) Install Packer[1]

4) Install vagrant

5) # add the f26 virtualbox
vagrant box add fedora/26-cloud-base --provider virtualbox

6) Create a Packer template that uses the image downloaded by vagrant in ~/.vagrant.d/boxes/ and uses an ansible provisioner to provision the box. This[2] ansible playbook from should be used.

7) Run packer with the template from 6

[0] http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
[1] https://www.packer.io/downloads.html
[2] https://raw.githubusercontent.com/pulp/devel/3.0-dev/ansible/deploy-pulp3.yml

Actions #1

Updated by bmbouter over 7 years ago

  • Description updated (diff)
Actions #2

Updated by bmbouter over 7 years ago

  • Sprint Candidate changed from No to Yes
Actions #3

Updated by dkliban@redhat.com over 7 years ago

  • Groomed changed from No to Yes
Actions #4

Updated by dkliban@redhat.com over 7 years ago

There is a chance that Jenkins does not support nested virtualization which is required for building Vagrant box images.

Actions #5

Updated by dkliban@redhat.com over 7 years ago

  • Blocks Task #2909: Document the plugin development Vagrant file in the plugin writer's guide added
Actions #6

Updated by amacdona@redhat.com over 7 years ago

  • Blocked by Story #2840: Publish ansible roles to install pulp3 added
Actions #7

Updated by mhrivnak over 7 years ago

  • Priority changed from Normal to Low
Actions #8

Updated by mhrivnak over 7 years ago

  • Sprint/Milestone set to 42
Actions #9

Updated by mhrivnak over 7 years ago

  • Sprint/Milestone changed from 42 to 43
Actions #10

Updated by jortel@redhat.com about 7 years ago

  • Sprint/Milestone changed from 43 to 44
Actions #11

Updated by dalley about 7 years ago

I spent some time researching this and haven't found any information about Jenkins supporting (or not supporting) nested virtualization. I don't think that's the level at which it needs to be supported, though. If it's supported by the CPU and the kernel flags, then it should work... if not we might be out of luck.

https://fedoraproject.org/wiki/How_to_enable_nested_virtualization_in_KVM

(I don't know if Jenkins is on top of KVM or Xen, etc. so maybe the details will differ)

Actions #12

Updated by bmbouter about 7 years ago

  • Subject changed from Add Jenkins job to build a plugin writer's Vagrant VM and publish on Vagrant cloud on a Pulp account to Build a plugin writer's Vagrant VM and publish on Vagrant cloud on a Pulp account
Actions #13

Updated by bmbouter about 7 years ago

  • Description updated (diff)
Actions #14

Updated by dkliban@redhat.com about 7 years ago

  • Description updated (diff)
Actions #15

Updated by dkliban@redhat.com about 7 years ago

  • Description updated (diff)
Actions #16

Updated by mansari about 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to mansari
Actions #17

Updated by dkliban@redhat.com about 7 years ago

  • Description updated (diff)
Actions #18

Updated by mhrivnak about 7 years ago

  • Sprint/Milestone changed from 44 to 45
Actions #19

Updated by dkliban@redhat.com about 7 years ago

  • Description updated (diff)
Actions #20

Updated by dkliban@redhat.com about 7 years ago

  • Description updated (diff)
Actions #21

Updated by jortel@redhat.com about 7 years ago

  • Sprint/Milestone changed from 45 to 46
Actions #22

Updated by mhrivnak about 7 years ago

  • Sprint/Milestone changed from 46 to 47
Actions #23

Updated by dalley almost 7 years ago

  • Project changed from Pulp to Infrastructure
Actions #24

Updated by dalley almost 7 years ago

  • Project changed from Infrastructure to Pulp
Actions #25

Updated by rchan almost 7 years ago

  • Sprint/Milestone changed from 47 to 48
Actions #26

Updated by bmbouter almost 7 years ago

  • Tags deleted (Pulp 3 Plugin Writer Alpha)

Cleaning up Redmine tags

Actions #27

Updated by rchan almost 7 years ago

  • Sprint/Milestone changed from 48 to 52
Actions #28

Updated by rchan almost 7 years ago

  • Sprint/Milestone changed from 52 to 53
Actions #29

Updated by mansari almost 7 years ago

  • Status changed from ASSIGNED to POST
Actions #30

Updated by jortel@redhat.com almost 7 years ago

  • Sprint/Milestone changed from 53 to 54
Actions #31

Updated by bmbouter over 6 years ago

  • Sprint set to Sprint 32
Actions #32

Updated by bmbouter over 6 years ago

  • Sprint/Milestone deleted (54)
Actions #33

Updated by dkliban@redhat.com over 6 years ago

  • Status changed from POST to NEW
Actions #34

Updated by dkliban@redhat.com over 6 years ago

  • Blocks deleted (Task #2909: Document the plugin development Vagrant file in the plugin writer's guide)
Actions #35

Updated by dkliban@redhat.com over 6 years ago

  • Blocked by deleted (Story #2840: Publish ansible roles to install pulp3)
Actions #36

Updated by dkliban@redhat.com over 6 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #37

Updated by daviddavis over 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #38

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)

Also available in: Atom PDF