~fginther/+git/overlay-shiftfs-tests:fginther/lxc-proxy-config

Last commit made on 2023-08-23
Get this branch:
git clone -b fginther/lxc-proxy-config https://git.launchpad.net/~fginther/+git/overlay-shiftfs-tests
Only Francis Ginther can upload to this branch. If you are Francis Ginther please log in for upload directions.

Branch merges

Branch information

Name:
fginther/lxc-proxy-config
Repository:
lp:~fginther/+git/overlay-shiftfs-tests

Recent commits

859a413... by Francis Ginther

install-deps: More proxy fixes

Signed-off-by: Francis Ginther <email address hidden>

a377f2b... by Francis Ginther

install-deps: Set lxc http* proxy config if needed

Force config of the lxc http* proxy values.

Signed-off-by: Francis Ginther <email address hidden>

61d85e2... by Po-Hsu Lin

[install-deps] Only install testing tools for Focal and newer releases

BugLink: https://bugs.launchpad.net/bugs/2032779

We have decided to run just the old ubuntu_overlayfs_smoke_test.sh test
on older release (< Focal), therefore there is no need to install these
packages there.

Also note that snapd is not fully supported on Trusty. That's another
reason why we should skip installing these packages.

Signed-off-by: Po-Hsu Lin <email address hidden>
Acked-by: Francis Ginther <email address hidden>

70eeeb7... by Po-Hsu Lin

Revert "install-deps: install git for trusty"

This reverts commit 3f3e934b8df1c645ce8346bdef542b947b170ff4.

git package must be installed before cloning this repo.
We should install it somewhere else.

Signed-off-by: Po-Hsu Lin <email address hidden>

3f3e934... by Po-Hsu Lin

install-deps: install git for trusty

git was not installed by default on trusty, add it to
the package dependency.

Signed-off-by: Po-Hsu Lin <email address hidden>

a2a4d65... by Po-Hsu Lin

install-deps: make sure snap and bc are available

On Xenial, it's complaining about bc command not found.
And snap command is not available when testing on Jammy ADT.

Ensure these two packages are properly installed.

Signed-off-by: Po-Hsu Lin <email address hidden>

ae6c2a9... by Po-Hsu Lin

ovl-map-files.sh: configure proxy for docker

BugLink: https://bugs.launchpad.net/bugs/2030843

On openstack, we need to configure proxy for docker to access docker.io
Otherwise the test will fail with:
  docker: Error response from daemon: Get "https://registry-1.docker.io/v2/":
  net/http: request canceled while waiting for connection (Client.Timeout
  exceeded while awaiting headers).

Signed-off-by: Po-Hsu Lin <email address hidden>
Acked-by: Francis Ginther <email address hidden>

41000b5... by Po-Hsu Lin

shiftfs-lxd.sh: fix lxc instances launching behind firewall

BugLink: https://bugs.launchpad.net/bugs/2030867

The `lxc launch images:ubuntu/jammy c1 -s zfs` command
will need proxy properly configured for accessing
https://images.linuxcontainers.org on openstack.

This can be achieved by `lxc config set core.proxy_http=$http_proxy`.

Or just launching an instance with `lxc launch ubuntu:jammy c1 -s zfs`,
like we did for other tests. It will use https://cloud-images.ubuntu.com/
instead and can be accessed without proxy configured on openstack.

Signed-off-by: Po-Hsu Lin <email address hidden>
Acked-by: Francis Ginther <email address hidden>

bee9852... by Po-Hsu Lin

ovl-refcnt.sh: only mount /proc when it is not mounted

BugLink: https://bugs.launchpad.net/bugs/2030958

The 'mount -t proc proc /proc' command will cause test failure
when /proc is already mounted.

Add an if statement first to check whether it's mounted or not.

Signed-off-by: Po-Hsu Lin <email address hidden>
Acked-by: Francis Ginther <email address hidden>
Signed-off-by: Po-Hsu Lin <email address hidden>

4c0c0de... by Po-Hsu Lin

Return non-zero value to fail tests properly

BugLink: https://bugs.launchpad.net/bugs/2030837

The following test cases will just print out FAIL without returning a
non-zero return value:
  * ovl-idmapped-mount.sh
  * ovl-mkdir-xattrs.sh
  * ovl-refcnt.sh
  * shiftfs-lxd.sh

This will make autotest think they are good and thus causing
false-negative test result.

Signed-off-by: Po-Hsu Lin <email address hidden>
Acked-by: Francis Ginther <email address hidden>
Signed-off-by: Po-Hsu Lin <email address hidden>