36 Commits

Author SHA1 Message Date
Zuul
a356e90aa1 Merge "Rename gating test site" 2020-04-30 05:25:57 +00:00
Drew Walters
31fe88a744 Promote docs to docs.airshipit.org/airshipctl
This change removes the failing Read the Docs webhook in favor of
publishing to docs.airshipit.org/airshipctl. As post jobs cannot be
verified until merge, this may require more attempts in future commits.

Change-Id: I3b2b2a01fbfc144861d58289adbd1e6ee382f014
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-04-29 14:32:19 +00:00
Dmitry Ukov
25e7d92d48 Rename gating test site
* New name for gating site is 'test-site'
* Renamed 'test-bootstrap' type. New name is 'gating'.
* Moved BareMetalHost and its settings from ephemeral function to
  shared directory within the site

Change-Id: I510e74c1a553bb2b1f84e66f8e4a7796640b59cc
2020-04-29 17:32:40 +04:00
Vamsi Savaram
e40b5ffec5 Add initinfra gating tests
Relates-To: #180

Change-Id: Ie7a8daa532596f2d1d0fb2059ef4630607511711
2020-04-23 14:41:45 +00:00
Roman Gorshunov
dc67ba62f2 Add test 32GB node gate
Change-Id: I9342054f272335d6256dc6384e242e1f35050b98
2020-04-22 15:22:58 +02:00
Zuul
ad8c87611b Merge "Use 16GB flavor for gate job and let it vote" 2020-04-03 17:09:27 +00:00
Stanislav Egorov
3063e207b3 Use 16GB flavor for gate job and let it vote
Gate job can be run on a 16GB flavor as well as 32GB.
It's better to use less resources if this works for tests.

Depends-On: https://review.opendev.org/#/c/715055/

Change-Id: I198d640584e80dc6ca3626a6b23855c2aba6bf60
2020-04-02 21:28:34 +00:00
Sreejith Punnapuzha
6fea813dba Remove external role dependency from gate job
This ps removes docker-install role import from openstack-helm-infra
in airship-airshipctl-gate-test. This will enable the gate to use
docker role defined in airshipctl repo

Depends-On: https://review.opendev.org/#/c/715055

Change-Id: Ia01aa8f58a2e0bcfcdd611f6a76c82acfda101c7
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
2020-03-30 16:15:35 -05:00
Stanislav Egorov
2933dfdc51 Moved last role to airshipctl
All roles should be developed in airshipctl roles dir

Change-Id: Ide949c95889746595d41c4db913619f7140daf35
2020-03-25 13:16:38 -07:00
Sreejith Punnapuzha
d39e490f06 [#106] Add docker install role
This PS adds role which installs docker

Depends-On: https://review.opendev.org/#/c/714109/

Change-Id: I2d114fbb8bd93f88bd9526529e985f92125dc428
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
2020-03-23 15:25:15 -05:00
Zuul
b2a602fa07 Merge "Revert "[#89] Gather container logs in check pipeline"" 2020-03-19 21:36:30 +00:00
Roman Gorshunov
a8c91a7c40 Revert "[#89] Gather container logs in check pipeline"
This reverts commit 5c5ff8b46f254c5004bbf20b9b7da4933d476b58.

Logs are not being collected under artifacts section of Zuul.
Container logs collector patch set 712555 needs further work.

Change-Id: If8703812cf101506de2808365dfee6c032a0f35f
2020-03-19 15:26:58 +00:00
Zuul
906c2b2ec2 Merge "[#89] Gather container logs in check pipeline" 2020-03-19 11:54:05 +00:00
Vamsi Savaram
5c5ff8b46f [#89] Gather container logs in check pipeline
Change-Id: I043e7bf1cbb4cf67e3b811df1c0e84ecfc137988
Signed-off-by: Vamsi Savaram <vamsi.savaram@gmail.com>
2020-03-17 16:27:17 +01:00
Drew Walters
6aeeaaa1ec [#33] Convert secret names to underscores
Currently, the image publish job is not functioning. This appears to be
due to an invalid secret name. Hyphens cause problems in Ansible
variable names [0]. This change converts the secrets in this repository
to use underscores.

[0] https://github.com/ansible/ansible/issues/3907

Closes #33

Change-Id: I2b1db9ba01a425788541afd8938afef92ef539d6
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-03-16 12:19:13 -05:00
Alexander Hughes
ea0dd64935 [#70] Resolve kubectl gate errors
In [0] the kubectl subcommand was removed from airshipctl, which is
now causing gates [1] and [2] to fail. This change addresses these
failures by ensuring kubectl is installed via curl, and that kubectl
commands are run in place of the original airshipctl kubectl commands.

[0] https://review.opendev.org/#/c/710094/
[1] https://zuul.opendev.org/t/openstack/job/airship-airshipctl-functional-existing-k8s
[2] https://zuul.opendev.org/t/openstack/job/airship-airshipctl-gate-test

Relates-To: #70

Change-Id: I03b3420588a4abb5cd24fdc62a07019783a40557
Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
2020-03-10 19:15:07 +00:00
Zuul
d852d2db1a Merge "[#75] functionality to set libvirt sec driver" 2020-03-06 21:43:23 +00:00
Kostiantyn Kalynovskyi
d254771350 [#75] functionality to set libvirt sec driver
With this change libvirt securty driver will be set to none,
also small fix to ignore errors during connection reset, this will
allow to run roles with connection_local

Change-Id: I0cbe7a465ce2e21aa23bde2aa7c1adb9f5f09cda
2020-03-03 21:08:05 -06:00
Stanislav Egorov
3d52bbb2ed Added job for testing roles
Change-Id: I99b781989aa68e73c49ad49a3c54f4c028acb2d9
2020-03-02 20:25:50 -08:00
Zuul
517cf775c9 Merge "[#39] Add Zuul job for GitHub Issues integration" 2020-03-02 22:38:53 +00:00
Ian H. Pittwood
25691da17a [#39] Add Zuul job for GitHub Issues integration
Adds a post job to update related issues in Github on change merges. If
a change contains a "Closes: #X" tag, issue X will be closed on merge.
If a change contains a "Relates-To: #X" or "[#X]" tag, a comment will be
made on the associated issue to indicate the change was merged and that
the issue may be closeable.

Closes: #39

Change-Id: Ide9a4d53de7be0e467422938e4e8067fb41ce036
2020-03-02 09:49:27 -06:00
Clark Boylan
417abc581e Fix read the docs post job
The previous setup here was rejected by zuul as an invalid
configureation because trigger-readthedocs-webhook is defined as a final
job. Final jobs cannot be modified or parented (which is what the old
config was doing). Unfortunately, this prevented Zuul from running any
post jobs as it has to read the configuration for all jobs in a pipeline
as a whole.

We can fix this by feeding the trigger-readthedocs-webhook job the
necessary vars to run from project level vars. This doesn't modify the
job itself and only serves to add inputs to it.

Change-Id: Ibc3a62db4277aaf31956783aaef52be6f7a247b5
2020-02-28 14:42:27 -08:00
Drew Walters
bcfcd6f9a0 [#33] Publish airshipctl image on Quay
This change introduces a job that publishes the latest airshipctl image
to quay.io/airshipit/airshipctl each time a new change is merged.

Closes #33

Change-Id: I8468b10a8064333d1749015960151e98adb2be97
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-02-26 10:49:22 -06:00
Kostiantyn Kalynovskyi
23c9d7f33a Add role to deploy ephemeral node
With the role comes libvirt gate that is used as base infra to
deliver ephemeral node to

Change-Id: Idd3f1c867af46118e3af16f8aa746288d282bbfc
2020-02-25 19:27:48 -06:00
Kostiantyn Kalynovskyi
eedeef4958 Add role to build ephemeral iso image
This role uses config files from default directories to generate
iso for ephemeral node. Unfortunately docker image to build iso is
not yet available in upstream, hence we are currently using private
repository of the developer

Change-Id: I475fefe38a89466f782ece0a7ceb9952980f98c4
2020-02-25 15:47:51 -06:00
Drew Walters
2c0ff2be2e [#59] Fix docs publish job
This is a fix of [0]. The publication job expects secrets that are
included in another Openstack job. This change updates the airshipctl
publish job to use that job [1] as a parent.

[0] https://review.opendev.org/708941
[1] https://opendev.org/openstack/project-config/src/branch/master/zuul.d/jobs.yaml#L1054

Change-Id: Ibfd739bf761b3cb14ce96b754b808dc4570a737e
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-02-25 14:28:06 -06:00
Drew Walters
5c63b5ce5a [#59] Publish airshipctl docs to RTD
This change adds a CI job to publish airshipctl documentation changes to
Read the Docs.

Closes #59

Change-Id: Ie958eb242189b5168d1fd43dce005b883695be0e
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-02-25 13:34:42 -06:00
Alexander Hughes
d5e28362f2 [#62] Standardize yaml file extensions
Currently we have mixed extensions of .yml and .yaml, this patch is
an effort to standardize all yaml documents as .yaml

Change-Id: I7eb815584de5856bbdac9a828ccad8518e8c1729
2020-02-24 14:50:32 +00:00
Drew Walters
86ae398e20 [#59] Add documentation build gate
This change introduces a job to build airshipctl documentation and
publish a preview for each new PS.

Related #59

Change-Id: I741c59f2c1dc50e66bf3cacfc8cb385ec9ec223d
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-02-20 11:21:26 -06:00
Drew Walters
5aebf87fc2 [#33] Add image build gate
This change adds a voting job that builds the airshipctl docker image on
each patch set. The same job will be updated in a later commit to
publish the image to the quay.io/airshipit/airshipctl repository.

Related #33

Change-Id: I202da62c77ec277312518fead09f0f3ef32ccde8
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-02-14 10:17:15 -06:00
Kostiantyn Kalynovskyi
d7df2fb571 Moving roles from zuul-airship-roles.
Changes is needed because we can not make dependencies on PRs from
other repositories such as zuul-airship-roles, this would allow more
robust development in the stage we currently are in. When there will
be less activity on gating roles will be moved back to separate repo.

Change-Id: I85c9bdd47b5aaba90df5458b20c90ff5c912c05f
2020-02-12 22:52:17 +00:00
Roman Gorshunov
d6eba660f5 Add new nodesets to the gates configuration
Change-Id: Iaee19752fe99cc7f048f72ca2912714e2b7f1146
2020-02-10 17:43:52 +01:00
Kostiantyn Kalynovskyi
16af49c265 Roles to genreate base config and build airshipctl
These roles will allow to generate base airship and kubeconfigs

Change-Id: I8e93dbeaf1aef2f51db5ed9e807f58999ebe97f7
2020-02-05 20:59:20 +00:00
Kaspars Skels
acdedaafe3 Add Zull job for mirroring to GitHub
Change-Id: Ifb343826b96fbbf83b960d8eafdb70c7701f0867
2019-07-16 16:50:49 -05:00
Pete Birley
5cf0b2327c CI: Add a functional test for interacting with a existing k8s cluster
This adds Ansible playbooks to install kubernetes using minikube and
then assert that airshipctl is able to communicate with the cluster.

Change-Id: Ice5cf3de8d9192d508c79c68caf8f5a61896da9c
Signed-off-by: Pete Birley <pete@port.direct>
2019-07-09 21:04:15 +00:00
Ian Howell
d6b06a8787 Zuul: Switch from travis to zuul
This PS adds the skeleton for a set of zuul checks and gates for
airshipctl and removes the travis config.

This PS also removes some dead code from the util package. This change
is required to get unit tests passing.

Change-Id: Ifb1be49cb1bb82c62a0085b6da9b8ff1b261a95b
2019-07-01 11:00:26 -05:00