Comment 47 for bug 1874453

Revision history for this message
John Chittum (jchittum) wrote :

SRU for Focal testing.

Created 2 Vagrant boxes to cover the 2 main build cases of CPC (produced of the Vagrant image and user of the hook changed)

box A: Created via ubuntu-bartender(https://github.com/chrisglass/ubuntu-old-fashioned/tree/master/scripts/ubuntu-bartender) utilizing the source download of the proposed package (found here in the web UI). ran bartender using multipass as a provider with the following command

./ubuntu-bartender --livecd-rootfs-dir /home/jchittum/dev01/troubleshooting/vagrant-testing/1874453/livecd-rootfs --build-provider multipass -- --series focal --project ubuntu-cpc --image-target vagrant

box B: Created via a Launchpad build utilizing a recipe pointed to ~livecd-rootfs ubuntu/focal. This created a livecd-rootfs package in a personal PPA which was then used to run the build.

boxes were then added to the vagrant inventory

vagrant box add <downloaded box> --name focal-sru-test-from-(bartender || lp)

2 directories were then created from-bartender & from-lp

Ran the following 2 test cases:

[Test Case 1]

-- vagrant up with minimal configuration --

1. made minimal Vagrantfiles in each directory
```
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
    config.vm.box = "focal-sru-test-from-bartender" # Or from-lp
end
```
2. ran `time vagrant up`
3. observed that boxes successfully booted
4. observed that boxes booted in a reasonable amount of time (on my machine ~30s)
5. ensured the ability to SSH into the box
6. checked the guest system has mounted the default guest directory (./ on host mounted to /vagrant on guest)
7. exited host and destroyed boxes (vagrant halt && vagrant destroy)

Both boxes worked.

[Test Case 2]
1. Update Vagrantfiles to override default serial connection and write file

```
Vagrant.configure("2") do |config|
    NOW = Time.now.strftime("%d.%m.%Y.%H:%M:%S")
    FILENAME = "serial-debug-%s.log" % NOW
    config.vm.box = "focal-sru-test-from-bartender" # Or from-lp
    config.vm.provider "virtualbox" do |vb|
       vb.customize [ "modifyvm", :id, "--uart1", "0x3F8", "4" ]
       vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, FILENAME) ]
    end
end
```
2. ran `time vagrant up`
3. Observed that boxes successfully booted
4. observed the log file was created
5. observed that boxes booted in a reasonable amount of time (on my machine ~30s)
6. ensured the ability to SSH into the box
7. checked the guest system has mounted the default guest directory (./ on host mounted to /vagrant on guest)