39 Commits

Author SHA1 Message Date
Matt McEuen
ef33f672a3 Fix airshipctl image publish
Resolve the following error when logging into the remote docker registry.

Failed to import the required Python library (Docker SDK for Python:
docker (Python >= 2.7) or docker-py (Python 2.6)) on
ubuntu-bionic-rax-dfw-0015461365's Python /usr/bin/python3.
Please read module documentation and install in the appropriate
location, for example via `pip install docker` or `pip install docker-py`
(Python 2.6). The error was: No module named 'docker'

Change-Id: I0df7e58aae886dfa3901815a60853e47c98b5e90
2020-03-25 16:21:16 -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
Zuul
8785d15836 Merge "[#106] Add Gather logs role" 2020-03-17 13:50:55 +00:00
Drew Walters
5293ebcc2a [#33] Fix secret name
Change-Id: I61e52834892bf01cc96ab6d5a886112b375ce253
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-03-16 13:41:03 -05: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
Zuul
fc71531bc3 Merge "Fix network and cloud data for ephemeral host" 2020-03-16 13:39:26 +00:00
Ruslan Aliev
0e9cd303cb Fix network and cloud data for ephemeral host
Change-Id: I954971d52e708ae5e89d99dfc926f6570570f94a
2020-03-13 16:32:52 -05:00
Kostiantyn Kalynovskyi
4c85c696e8 Resolve gather-libvirt-logs role failures
This commit adds small fix, a missing 'path' parameter to synchronize
module call

Relates-To: #111
Closes: #111

Change-Id: I5208a0b327ddc75941f82dec671e6869352ed2ad
2020-03-13 11:27:11 -05:00
Zuul
6fbcc26323 Merge "Split document model, add entrypoints for repos" 2020-03-12 21:10:27 +00:00
Zuul
267a1b0bfb Merge "Add repository to airship config template, ansible" 2020-03-12 20:23:19 +00:00
Sreejith Punnapuzha
7f3a2991dd [#106] Add Gather logs role
This PS adds role which does the log collection

Change-Id: Id249d87be4e95568659bdd5c6b1a20d279bc5e9f
Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
2020-03-12 14:44:58 -05:00
Zuul
187771bb80 Merge "Correct ansible task name for kubectl version" 2020-03-12 16:25:59 +00:00
Kostiantyn Kalynovskyi
147b97048b Split document model, add entrypoints for repos
Add NewBundleByPath function, that would return bundle built from
the specified path argument

Add CurrentContextEntryPoint method of the config
object, that would allow easily get kustomize root path based on
clusterType and phase. You can also leave phase arg empty string,
which would try to return bundle for all phases

Introduce changes to config pakage objects:

- Manifest:
  SubPath: this is relative path to the root of the repository that
contains directories with sites (SiteNames)
    PrimaryRepositoryName: this is a string that must correspond to a key
of the Repositories map of manifest object, which is used to derive
primary repository
    Repositories object is a map, map keys correspond to names of the
directories where `document pull` command will download repositories
defined in manifest prepended by manifest.TargetPath.

Introduce new config method CurrentContextEntryPoint(), method takes
TargetPath, PrimaryRepo.URL, SubPath, and clusterType and phase
constructs a path to the entry point out of which the DocumentBundle
should be build, and returns it to the caller. After that caller can
build a bundle out of it, the bundle will contain documents relevant to
particular cluster-type and phase.

All objects that depend on bundle interface are updated to use the
CurrentContextEntryPoint() method of the config object

Relates-To: #99

Closes: #99

Change-Id: I99320c4cb626841d46f4c298b583e9af90b1dce4
2020-03-12 09:55:05 -05:00
Kostiantyn Kalynovskyi
73e2c12aea Add repository to airship config template, ansible
Change-Id: Iaa951f990c4b7ec603645b9329d4753782c24b09
2020-03-12 09:12:33 -05:00
Zuul
45fd654078 Merge "[#70] Resolve kubectl gate errors" 2020-03-11 17:00:50 +00:00
Zuul
9f89b4ee27 Merge "Switch from shell to make module" 2020-03-11 15:50:54 +00:00
James Gu
36d6d64a2e Correct ansible task name for kubectl version
Airshipctl no longers supports kubectl subcommand. Updated the Ansible
task name to reflect the change.

Change-Id: Ie6dd02c296ef20e2a491c6f3357d7bc89aa40e88
Signed-off-by: James Gu <james.gu@att.com>
2020-03-10 12:38:01 -07: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
Venkata, Krishna (kv988c)
de87f8a5a4 Switch from shell to make module
Change-Id: I2df87d78ef2f71f79bb28e8c46ff99ccebad589d
2020-03-06 21:10:07 +00:00
Zuul
8c6ef23228 Merge "Add proxy to systemwide-executable roles" 2020-03-06 20:25:51 +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
sai battina
7d9d765fbc Add proxy to systemwide-executable roles
Change-Id: I656b4222ebcc8c8a222c5fdc366d73fd56b2dfba
2020-03-04 00:17:18 +00:00
Stanislav Egorov
f681c373e2 Gather container runtime logs
Change-Id: I9d3bedd668a384c3baecb6ae1bd8404cd10baf1e
2020-03-02 15:27:42 +00:00
Alexander Hughes
07a0040c8c [#70] Update k8s gates to use kubectl
Gates previously used airshipctl kubectl version, but the kubectl
subcommand is being removed.

Change-Id: Ie2caf03da3f49346eef95bb6d5d61df43a6a82eb
2020-02-28 13:10:46 +00: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
b8101051b1 [#62] Rename missing vars file
A change recently changed .yml file extensions to .yaml. This change
updates an ansible vars file that was missed during the refactor in
order to restore CI functionality.

Change-Id: Id832f71d2073ad1b3a552ad67a0a1617e80ea32a
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-02-24 13:32:30 -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
Zuul
b1b4ff6bc7 Merge "Moving roles from zuul-airship-roles." 2020-02-13 21:11:29 +00: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
Kostiantyn Kalynovskyi
44267cbae9 add role to collect airship config directory
Change-Id: Iafab45d09682007919229aab94d970b550f6635d
2020-02-10 21:08:14 +00: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