Commit Graph

15 Commits (master)

Author SHA1 Message Date
Siraj Yasin 907070454f Allow pulling from a private airshipctl repo
* Added the logic to support pulling airshipctl from a
  private github repo with basic http authentication.

* Added Username, Password in secrets

Relates-To: #632
Relates-To: #636
Change-Id: If1a1bbfaf9ce543cf35377d367b70676f9e3e9ef
2021-09-23 18:40:17 +00:00
Zuul eb9ac97ce2 Merge "AIAP - check if docker server is ready" 2021-09-22 01:18:25 +00:00
Siraj Yasin 76849d28ae AIAP - check if docker server is ready
* docker version returns both client and server version
  So even if server is not running, the client version will be returned
  and docker build will fail.
* So checking for containerd in docker version output. This will be true
  only if the server is also ready

Change-Id: Idd4355b4f8d3617a339df67ac9820e33311b7d79
2021-09-20 19:56:25 +00:00
Ian Howell 0a09ba491b AIAP: Fix artifact-setup bug
This fixes the artifact-setup container to use the new `signal_status`
script created in b77f9e2910

Change-Id: Ia0958f9d1e7050d8d8f37b9d66f471fd35156e13
2021-09-20 14:04:10 -05:00
Ian Howell b77f9e2910 AIAP: Cleanup completion statuses
This adds the `status-checker` container, which aggregates the statuses
of the task containers. This is useful for quickly checking whether AIAP
is in a failed or successful state, allowing for early exit during
gating or testing. This also prevents the containers from stopping for
any reason, allowing for easy debugging.

Change-Id: I1571d006fb3c856e4d2bedee0befdccae6082a66
2021-09-16 16:06:52 -05:00
Zuul 4f42338019 Merge "Removed the hardcoded wait logic" 2021-09-15 23:28:17 +00:00
Siraj Yasin c7be426de3 Removed the hardcoded wait logic
* Removed the hardcoded wait condition ( 30s delay )
  for docker and libvirtd service
* Added logic to wait until docker is available for artifact-setup.
* Added logic to wait until libvritd is available for infra-builder.
* Added "imagePullPolicy: IfNotPresent" to make use of local changes.

Closes: #629
Change-Id: I8956cf5927be6142fcc0a3b1a112ea82511fd9bb
2021-09-15 15:12:53 +00:00
Ian Howell fc20c79e47 AIAP: Keep containers alive in successful runs
Currently the task containers will reach a conclusive state (success or
failure), and will promptly stop running. This creates the following
  1. In the case of failure, a user doesn't have the ability to exec into
     the container for debugging purposes.
  2. In the case a success, the readiness probe for each task container
     will begin to fail. This happens because readiness is defined by
     the existence of a file; if the container stops running, the file
     no longer exists.

This change provides a solution to the 2nd bullet, keeping the container
alive in case of success.

Change-Id: Iae432caada3d2a338493b1534da72957808185d2
2021-09-10 11:21:42 -05:00
Ian Howell e241430712 AIAP: Update documentation
This updates the documentation for working with AIAP. This includes
changes to the README as well as adding all configurable values to the
examples (having their default values).

Change-Id: I7c1b92d6a324b0fbd07f27ec0607fc62765c4fa2
2021-09-09 00:10:17 +00:00
Ian Howell cde9648718 AIAP: Cause AIAP to fail faster
Currently, when a container in AIAP fails, the container continues to
run in the backgroud. This causes the container to be marked as failed
so that the deployment will fail faster.

Closes: #626

Change-Id: I34de366390b6ddc0ef434f7e642e73797a790edf
2021-09-07 17:02:52 -05:00
Ian Howell b32e9b669b AIAP: Utilize document pull
Closes: #623

Change-Id: I559c160eb33710c3e3105e5454d035a833ce4abf
2021-09-07 16:54:14 -05:00
Ian Howell 0cb8e0f5f4 AIAP: Parameterize base image
This parameterizes the base image location used for the libvirt,
artifact-setup, infra-builder, and runner images.

Closes: #628

Change-Id: Idca33b5571017700fead0eb758af1900b4a4fcf4
2021-09-03 12:32:38 -05:00
Ian Howell 1dd84a5af9 AIAP: Prevent sushy from starting prereqs are met
The metal3-io sushy-tools container no longer includes the ping utility,
which was being used to test that the VMs were available. This changes
the container to use the shared drive to perform this check instead,
relieving the need for ping.

Change-Id: I0f697d1a7afac84f04fd27dc9b808857c9f64a7c
2021-08-19 12:59:48 -05:00
Ian Howell d302d97771 AIAP: Remove personal docker images
Change-Id: I1a86c4d0e89ce8b8905eb5358dd58e9bd2416858
2021-07-15 13:56:08 -05:00
ma257n 418c64ba44 Support for specifying site manifest location in AIAP
- Addded new container artifact-setup in lieu of
- Added examples for airshipctl/treasuremap as kustomize files.

Relates-To: #477

Closes: #477

Depends-On: I98b605d16940fab2a728e4646e52c7d1ad992c2d

Change-Id: I6759c765c1aa9eaef8a989fcefe300679513a1be
2021-06-25 03:04:04 +00:00