1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00
Commit Graph

5086 Commits

Author SHA1 Message Date
OpenShift Merge Robot
2bb181efd5 Merge pull request #501 from abhinavdahiya/multi_az_workers
manifests: stripe workers across machinesets in each AZ for aws.
2018-10-22 13:55:24 -07:00
OpenShift Merge Robot
e1a71ff810 Merge pull request #511 from cgwalters/yum-on-fedora
dev-dependencies: Just use `yum` on Fedora too
2018-10-22 13:10:54 -07:00
OpenShift Merge Robot
0f628c5b85 Merge pull request #508 from wking/rebuild-asset-graph
docs/design/resource_dep: Rebuild after kube-core removal
2018-10-22 09:56:07 -07:00
Colin Walters
e34a20dac0 docs: Just use yum on Fedora too
This is what I do.  `dnf` no longer complains if invoked as `yum`;
there's no point to having two separate sets of instructions.

Also use `systemctl enable --now` for further brevity.
2018-10-22 12:36:06 -04:00
W. Trevor King
a59f0c69b4 docs/design/resource_dep: Rebuild after kube-core removal
Adds ClusterK8sIO from e2dc9550 (pkg/asset: add ClusterK8sIO,
machines.Worker assets, 2018-10-15, #468) and Master from 586ad45c
(pkg/asset: Add asset for Master machines, 2018-10-18, #491).  Removes
KubeCoreOperator from c9b0e2ff (manifests: stop using kube core
operator, 2018-10-08, #420).

Generated with:

  $ openshift-install graph | dot -Tsvg >docs/design/resource_dep.svg

using:

  $ dot -V
  dot - graphviz version 2.30.1 (20170916.1124)
2018-10-20 14:55:58 -07:00
OpenShift Merge Robot
9a73030755 Merge pull request #507 from wking/drop-tectonic-version
pkg/asset/manifests: Drop TectonicVersion
2018-10-20 06:22:46 -07:00
OpenShift Merge Robot
2a11534b51 Merge pull request #506 from wking/drop-kube-core
vendor: Drop kube-core
2018-10-20 06:22:41 -07:00
OpenShift Merge Robot
974a95f15c Merge pull request #505 from wking/build-bazel-purge
*/BUILD.bazel: Remove leftover Bazel files
2018-10-20 05:51:02 -07:00
W. Trevor King
d1b485de6e pkg/asset/manifests: Drop TectonicVersion
Catching up with e2d9fd30 (manifests: make tectonic/ flat dir,
2018-09-25, #330).
2018-10-19 23:41:52 -07:00
W. Trevor King
1b0d0f6a00 pkg/asset/manifests/tectonic: Drop KubeCoreOperatorImage
Catching up with c9b0e2ff (manifests: stop using kube core operator,
2018-10-08, #420).
2018-10-19 23:06:32 -07:00
W. Trevor King
8f40137c72 vendor: Drop kube-core
Catching up with c9b0e2ff (manifests: stop using kube core operator,
2018-10-08, #420).

Generated with:

  $ dep ensure

using:

  $ dep version
  dep:
   version     : v0.5.0
   build date  :
   git hash    : 22125cf
   go version  : go1.10.3
   go compiler : gc
   platform    : linux/amd64
   features    : ImportDuringSolve=false
2018-10-19 22:46:30 -07:00
W. Trevor King
e76b2ab2e2 */BUILD.bazel: Remove leftover Bazel files
These escaped the great purge of 0c6d53b7 (*: remove bazel,
2018-09-24, #342).  kubernetes/BUILD.bazel snuck in with 70ea0e81
(tests/smoke/vendor: switch from glide to dep, 2018-09-28, #380), and
tectonic/BUILD.bazel snuck in with e2d9fd30 (manifests: make tectonic/
flat dir, 2018-09-25, #330).  I'd guess both were due to rebases from
commits originally made before #342 landed.
2018-10-19 22:29:28 -07:00
OpenShift Merge Robot
f35a4c750d Merge pull request #503 from crawford/docs
docs: add initial documentation for end users
2018-10-19 20:46:14 -07:00
Alex Crawford
19da4df8a4 docs: add initial documentation for end users
This just covers the installer at a high level.
2018-10-19 17:08:00 -07:00
OpenShift Merge Robot
e7d9f498e0 Merge pull request #493 from wking/bootstrap-destroy
cmd/openshift-install: Add 'destroy bootstrap' command
2018-10-19 16:41:30 -07:00
W. Trevor King
3f4fe57414 cmd/openshift-install: Add 'destroy bootstrap' command
Using Terraform to remove all resources created by the bootstrap
modules.  For this to work, all platforms must define a bootstrap
module (and they all currently do).

This command moves the previous destroy-cluster into a new 'destroy
cluster' subcommand, because grouping different destroy flavors into
sub-commands makes the base command easier to understand.  We expect
both destroy flavors to be long-running, because it's hard to write
generic logic for "is the cluster sufficiently live for us to remove
the bootstrap".  We don't want to hang forever if the cluster dies
before coming up, but there's no solid rules for how long to wait
before deciding that it's never going to come up.  When we start
destroying the bootstrap resources automatically in the future, will
pick reasonable timeouts, but will want to still provide callers with
the ability to manually remove the bootstrap resources if we happen to
fall out of that timeout on a cluster that does eventually come up.

I've also created a LoadMetadata helper to share the "retrieve the
metadata from the asset directory" logic between the destroy-cluster
and destroy-bootstrap logic.  The new helper lives in the cluster
asset plackage close to the code that determines that file's location.

I've pushed the Terraform module unpacking and 'terraform init' call
down into a helper used by the Apply and Destroy functions to make
life easier on the callers.

I've also fixed a path.Join -> filepath.Join typo in Apply, which
dates back to ff5a57b0 (pkg/terraform: Modify some helper functions
for the new binary layout, 2018-09-19, #289).  These aren't network
paths ;).
2018-10-19 16:12:05 -07:00
W. Trevor King
fdaeb59a1d pkg/terraform: Make StateFileName public
So it's easier for consumers like the cluster asset to use the
conventional name.
2018-10-19 16:11:13 -07:00
Abhinav Dahiya
e1d018809d manifests: stripe workers across machinesets in each AZ for aws. 2018-10-19 15:56:02 -07:00
OpenShift Merge Robot
c9e93cf892 Merge pull request #500 from kikisdeliveryservice/fix-dependenciesmd-link
Docfix: fix libvirt destroy link
2018-10-19 15:37:36 -07:00
Kirsten G
fffee62b89 fix libvirt destroy link 2018-10-19 15:05:20 -07:00
OpenShift Merge Robot
dfa3481d90 Merge pull request #497 from wking/load-assets-on-demand
pkg/asset/filefetcher: Only load files on demand
2018-10-19 14:31:54 -07:00
OpenShift Merge Robot
a397200eb5 Merge pull request #499 from csrwng/fix_libvirt_master
pkg/asset: Fix name of libvirt master machine
2018-10-19 13:31:05 -07:00
Cesar Wong
63b0ffb28b pkg/asset: Fix name of libvirt master machine 2018-10-19 15:57:37 -04:00
OpenShift Merge Robot
f6477cc73c Merge pull request #491 from csrwng/master_machines
pkg/asset: Add asset for Master machines
2018-10-19 12:01:32 -07:00
OpenShift Merge Robot
19a29772b6 Merge pull request #474 from russellb/gopath-check
hack/build.sh: Check that source is in GOPATH.
2018-10-19 12:01:23 -07:00
OpenShift Merge Robot
cae81a9ef6 Merge pull request #498 from sjenning/disable-pod-checkpointer
assets: disable pod-checkpointer-operator during bringup phase
2018-10-19 11:28:14 -07:00
W. Trevor King
edcd705e46 pkg/asset/filefetcher: Only load files on demand
Avoid:

  $ bin/openshift-install cluster
  FATAL Error executing openshift-install: open tests/smoke/vendor/github.com/prometheus/procfs/fixtures/26231/fd/0: no such file or directory

as the old implementation attempts to walk the whole directory and
hits:

  $ ls -l tests/smoke/vendor/github.com/prometheus/procfs/fixtures/26231/fd/
  total 0
  lrwxrwxrwx. 1 trking trking 24 Oct  5 01:26 0 -> ../../symlinktargets/abc
  lrwxrwxrwx. 1 trking trking 24 Oct  5 01:26 1 -> ../../symlinktargets/def
  lrwxrwxrwx. 1 trking trking 24 Oct  5 01:26 10 -> ../../symlinktargets/xyz
  lrwxrwxrwx. 1 trking trking 24 Oct  5 01:26 2 -> ../../symlinktargets/ghi
  lrwxrwxrwx. 1 trking trking 24 Oct  5 01:26 3 -> ../../symlinktargets/uvw

With this commit, we only load files from the disk when someone asks
for them.

I've adjusted the unit tests a bit because:

* ioutil.ReadFile returns errors like:

    read /: is a directory

  for directories.  There does not appear to be an analog to
  os.IsNotExist() for this condition, so instead of checking for it in
  the tests, I've just dropped the empty-string input cases.  If we
  break something and call FetchByName on an empty string, we want to
  error out, and that error message is appropriately descriptive
  already.

* Globs are not as precise as regular expressions, so our glob would
  match master-1x.ign and similar which the previous regexp excluded.
  But loading a few extra files doesn't seem like that big a deal, and
  folks adding files with names like that seems unlikely.
2018-10-19 11:27:07 -07:00
Seth Jennings
94ef53601a assets: disable pod-checkpointer-operator during bringup phase 2018-10-19 12:57:21 -05:00
OpenShift Merge Robot
d50325798d Merge pull request #490 from wking/worker-subnet-zones
data/aws/vpc/vpc-private: Set worker subnet availability_zone
2018-10-19 09:52:45 -07:00
Cesar Wong
586ad45c26 pkg/asset: Add asset for Master machines 2018-10-19 12:52:01 -04:00
OpenShift Merge Robot
e49c6a5c4a Merge pull request #496 from ironcladlou/re-disable-ingress-operator
Re-disable the cluster-ingress-operator
2018-10-19 09:19:05 -07:00
Dan Mace
006929a25d Re-disable the cluster-ingress-operator
Fix the cluster-ingress-operator override to match the
cluster-ingress-operator's new namespace and deployment name[1].

[1] https://github.com/openshift/cluster-ingress-operator/pull/52
2018-10-19 11:47:29 -04:00
Russell Bryant
a961d3ea22 hack/build.sh: Check that source is in GOPATH.
This seems to be a very common mistake when people try building the
installer.  Do a sanity check to catch this and make the error more
clear.

Co-authored-by: W. Trevor King <wking@tremily.us>
2018-10-19 09:46:30 -04:00
OpenShift Merge Robot
38fb38ec9c Merge pull request #374 from yifan-gu/load_assets
pkg/asset: Introduce Load() into the Asset interface that loads assets (from disk)
2018-10-19 04:01:36 -07:00
OpenShift Merge Robot
bf0fa6d909 Merge pull request #492 from wking/redundant-tempdir
pkg/asset/cluster: Drop redundant os.TempDir()
2018-10-19 01:40:18 -07:00
OpenShift Merge Robot
61bc533481 Merge pull request #479 from csrwng/master_machines_tag
Tag master machines for adoption by machine controller
2018-10-19 00:06:52 -07:00
OpenShift Merge Robot
538ad207f2 Merge pull request #489 from wking/drop-s3-bucket-name
data/aws: Drop the bucket name
2018-10-18 23:32:35 -07:00
W. Trevor King
cfecad84c5 pkg/asset/cluster: Drop redundant os.TempDir()
From [1]:

  If dir is the empty string, TempDir uses the default directory for
  temporary files (see os.TempDir).

so there's no point in us calling TempDir() directly.

The explicit call is from 408c0663 (asset/cluster: Invoke terraform in
a temp dir, 2018-09-24, #319).

[1]: https://golang.org/pkg/io/ioutil/#TempDir
2018-10-18 21:58:28 -07:00
Yifan Gu
2920650eac pkg/asset: Implement Load() for all loadable assets.
Implement Load() for all loadable assets to read files from disk
and generate the in-memory asset.
2018-10-18 16:52:31 -07:00
Yifan Gu
116dd649ec pkg/asset: Load on-disk files in Fetch()
- Add Loadable interface to load assets from disk.
- Load on-disk assets in Fetch() and use it to overwrite the state
  file.
- Add FileFetcher interface to help reading the files from disk.
2018-10-18 16:52:31 -07:00
Yifan Gu
91324cae43 docs: Document asset load semantics.
- On-disk file will overwrite the state file.
- On-disk file will cause all children to regenerate.
2018-10-18 15:33:37 -07:00
W. Trevor King
05cd774b37 data/aws: Drop the bucket name
Alex gave the history behind our previous bucket name [1]:

  We should probably just fix the creation of the S3 bucket since we
  no longer rely on CNAMEs (which required the S3 bucket to match the
  domain name).

But now we can just let AWS pick a random bucket name for us.

I've also dropped the no-longer-used S3Bucket validator.

[1]: https://github.com/openshift/installer/pull/359#issuecomment-426051251
2018-10-18 12:59:31 -07:00
W. Trevor King
b648dd8211 data/aws/vpc/vpc-private: Set worker subnet availability_zone
It looks like this was (accidentally?) removed in f8286662
(modules/vpc: support re-apply of terraform when AZ number changes,
2018-03-12, coreos/tectonic-installer#3092).  We need to set it to
spread worker subnets over the available zones.
2018-10-18 11:41:48 -07:00
OpenShift Merge Robot
ace571b041 Merge pull request #420 from mfojtik/remove-kco-render
replace kube-core rendering with openshift operators render
2018-10-18 02:56:38 -07:00
Michal Fojtik
54e2880aae Merge pull request #9 from sttts/sttts-installer-overrides
bootkube: override control-plane configs – fix kubectl logs
2018-10-18 11:27:41 +02:00
Dr. Stefan Schimanski
6a1b896681 bootkube: add installer config overrides for the control plane 2018-10-18 10:54:43 +02:00
OpenShift Merge Robot
26a130685c Merge pull request #481 from russellb/openstack-drop-vpcid
Drop unused vpcID from OpenStack install config.
2018-10-17 18:27:14 -07:00
Russell Bryant
35f023b9e3 Drop unused vpcID from OpenStack install config.
While analyzing the generated cluster-config.yaml for an OpenStack
deployment, I noticed vpcID under the OpenStack platform config.  This
is not used anywhere and should just be removed.
2018-10-17 20:03:39 +00:00
OpenShift Merge Robot
dd8f2b1cfa Merge pull request #480 from tomassedovic/openstack-worker-asset
pkg/asset: add OpenStack machines.Worker assets
2018-10-17 11:12:18 -07:00
Tomas Sedovic
2c25ddcd6c pkg/asset: add OpenStack machines.Worker assets
The libvirt and AWS assets were added in commit
e2dc955003. This fills the gap for
OpenStack.
2018-10-17 19:33:18 +02:00