1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00
Commit Graph

12922 Commits

Author SHA1 Message Date
OpenShift Merge Robot
108f4ab77e Merge pull request #6523 from pawanpinjarkar/ignore-and-warn-unused-install-config-info-for-agent-installer
AGENT-348: Warn when information in install-config is ignored
v1.4.12
2022-10-28 11:10:29 -04:00
Pawan Pinjarkar
d309788d4b Correct logging level and minor fixes
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2022-10-28 07:29:28 -05:00
Pawan Pinjarkar
77b08a46c6 ignore vsphere and other fields
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2022-10-27 14:08:30 -05:00
OpenShift Merge Robot
28e3c1c571 Merge pull request #6520 from zaneb/reduce-debug-logs
OCPBUGS-2837: Reduce debug logs in agent wait-for commands
2022-10-27 14:14:30 -04:00
Zane Bitter
f9f31d3574 Standardise API names in debug/info logs
Consistently use the following terms:

- Agent Rest API
- Bootstrap Kube API

We don't use the term "Node Zero" in any user-facing places, and the
kube API that we're waiting for is generally the bootkube API on the
bootstrap, not the actual cluster API.
2022-10-27 11:10:42 -04:00
Zane Bitter
f84c19fa44 Don't attempt to read validations before they are ready
If we get an empty string, don't try to parse it as JSON. Avoids this
message:

level=info msg=cluster host validations failed: unable to verify validations: unexpected end of JSON input
2022-10-27 11:08:40 -04:00
Zane Bitter
1559376060 Reduce duplicate "Still waiting for cluster to initialize" logs
The IPI wait-for install-complete command uses a watch on the
clusterversion object to log the status when it changes. While the agent
wait-for install-complete command uses similar logging code, it gets the
status by polling rather than using a watch. This results in many more
identical debug messages. To emulate the behaviour of IPI, only print a
debug message when the clusterversion object has changed.
2022-10-27 11:08:40 -04:00
OpenShift Merge Robot
15b1759271 Merge pull request #6526 from lranjbar/fix-merge-errors-2022-10-26
Fix unexpected behavior from merging #6470 and #6500
2022-10-27 02:02:59 -04:00
OpenShift Merge Robot
7270c11971 Merge pull request #6485 from zaneb/agent-iso-arch
AGENT-390: Include CPU Architecture in ISO filename
2022-10-26 19:12:23 -04:00
Lisa Rashidi-Ranjbar
00c306809a Fix unexpected behavior from merging #6470 and #6500 2022-10-26 10:33:51 -07:00
OpenShift Merge Robot
2d173d3fe4 Merge pull request #6506 from patrickdillon/feature-gate-docs
docs: feature sets
2022-10-26 12:35:27 -04:00
OpenShift Merge Robot
1c95e1af7b Merge pull request #6500 from lranjbar/agent-331-validation-rework
Agent-321: Cluster and Host validations rework
2022-10-26 12:35:20 -04:00
OpenShift Merge Robot
dd9047c4c1 Merge pull request #6423 from pawanpinjarkar/release-image-validation
OCPBUGS-2327: Add validation for releaseImage and registry.conf
2022-10-26 01:23:17 -04:00
Lisa Rashidi-Ranjbar
508a2640ff Agent-321: Cluster and Host validations rework 2022-10-25 17:17:06 -07:00
Pawan Pinjarkar
f05e0778b6 AGENT-348: Warn when information in install-config is ignored
Log warnings for the irrelevant config data provided in
install-config.yaml for the agent-based installer.

Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2022-10-25 18:03:30 -05:00
OpenShift Merge Robot
a2c4d48c41 Merge pull request #6470 from bfournie/detect-ready-transition-fail
OCPBUGS-2086: Detect failure in wait-for on transition back to ready
2022-10-25 18:34:13 -04:00
OpenShift Merge Robot
550227bafa Merge pull request #6495 from celebdor/fix-ic-plus-ac-lack-of-ntp-sources
OCPBUGS-2627: agent-config: Generate missing AdditionalNTPSources in InfraEnv
2022-10-25 15:26:02 -04:00
OpenShift Merge Robot
3d80765f18 Merge pull request #6486 from zaneb/vip-error-msgs
OCPBUGS-2338: Don't use error messages as default values
2022-10-25 12:31:46 -04:00
Pawan Pinjarkar
64a5ca3f42 Remove unwanted finish()
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2022-10-25 10:16:40 -05:00
OpenShift Merge Robot
14d496fdae Merge pull request #6408 from minatoaquaMK2/master
OCPBUGS-1824: enhance agent systemd service dependency
2022-10-24 21:43:02 -04:00
Antoni Segura Puimedon
ac18141fe4 agent-config: Add missing AdditionalNTPSources
In Agent based installation ZTP input, one can provide
AdditionalNTPSources in InfraEnv. The sources configured there are
merged by assisted-service with those that are provided by DHCP option
42 (According to RFC 2132) and provided to the openshift-install that
assisted-service runs as MachineConfigs for the different roles defined
for the cluster nodes.

This commit closes the gap we had when installing from install-config +
agent-config.

Signed-off-by: Antoni Segura Puimedon <antoni@redhat.com>
2022-10-21 00:01:55 +02:00
OpenShift Merge Robot
b1a8fbf247 Merge pull request #6504 from r4f4/gcp-service-usage-required
OCPBUGS-1704: Service Usage API is required, not optional
2022-10-20 17:41:53 -04:00
OpenShift Merge Robot
014fde8696 Merge pull request #6503 from xueqzhan/revert-6124-settle-operators
Revert "create: add check for cluster operator stability"
2022-10-20 13:59:30 -04:00
patrickdillon
25160524a1 docs: feature sets
Add install config docs for feature sets.
2022-10-20 12:32:58 -04:00
OpenShift Merge Robot
19f2885552 Merge pull request #6499 from barbacbd/OCPBUGS-2301
OCPBUGS-2301: Search Network Project For resources
2022-10-20 12:09:12 -04:00
Rafael Fonseca
02081c1572 OCPBUGS-1704: Service Usage API is required, not optional
Without this, the installation wil lfail without any worker machines
launched.
2022-10-20 16:02:36 +02:00
Ken Zhang
63cb85b99e Revert "create: add check for cluster operator stability" 2022-10-20 08:54:40 -04:00
Brent Barbachem
c59d1a621b OCPBUGS-2301: Search Network Project For resources
** Adding NetworkProjectID to the Metadata so that it can be used to find resources on destroy.
** Added project name to the cloud resources so that the project where the resource was discovered is tracked
** Use the cloud resource project field to find all firewall rules when a network project ID was specified.
2022-10-19 15:24:42 -04:00
OpenShift Merge Robot
5a9ad4c024 Merge pull request #6491 from Miciah/revert-revert-6478-nlb-field-and-fix-OCPBUGS-2436
OCPBUGS-2436: Revert "Revert "[AWS] Add LB Type in the infrastructure cluster object via install-config yaml"" and fix OCPBUGS-2436
2022-10-18 23:29:51 -04:00
OpenShift Merge Robot
19d917c37f Merge pull request #6475 from r4f4/aws-c2s-tagmeta
OCPBUGS-2174: fix metadata tags not supported in certain regions
2022-10-18 23:29:43 -04:00
OpenShift Merge Robot
9748805716 Merge pull request #6443 from LorbusChris/scos
Add initial support for OKD/SCOS
2022-10-18 23:29:37 -04:00
OpenShift Merge Robot
d853fa57f4 Merge pull request #6484 from sadasu/fix-gofmt-issues
Updating golang version to fix gofmt issues
2022-10-18 19:28:38 -04:00
Bob Fournier
9d4fbc0dd3 add check for command run after failure happens 2022-10-18 11:32:27 -04:00
OpenShift Merge Robot
53766dbc95 Merge pull request #6474 from andfasano/agent-fix-rendezvousIP
Bug 2117537: validation rule for invalid rendezvousIP in AgentConfig
2022-10-18 10:11:11 -04:00
OpenShift Merge Robot
927dd43363 Merge pull request #6124 from patrickdillon/settle-operators
create: add check for cluster operator stability
2022-10-18 03:46:52 -04:00
Miciah Masters
1a71334177 Fix ingress config with empty lbType on AWS
When generating the ingresses.config.openshift.io/cluster manifest on AWS,
always set spec.loadBalancer.platform.aws.type even if the install-config
lbType is nonempty.

Before this commit, if lbType was empty, the installer generated a manifest
with the following:

  loadBalancer:
    platform:
      aws: {}
      type: AWS

Whereas loadBalancer, platform, and aws are optional fields, the type
subfield of the aws field is required.  As a consequence, the cluster
bootstrap would fail with the following error:

    "cluster-ingress-02-config.yml": failed to create ingresses.v1.config.openshift.io/cluster -n : Ingress.config.openshift.io "cluster" is invalid: spec.loadBalancer.platform.aws.type: Required value

This commit ensures that the installer doesn't generate an invalid ingress
manifest when lbType is empty.

Follow-up to commit 5d12adcf30.

This commit fixes bug OCPBUGS-2436.

https://issues.redhat.com/browse/OCPBUGS-2436

* pkg/asset/manifests/ingress.go (generateClusterConfig): Always set
spec.loadBalancer.platform.aws.type when the platform is AWS.
* pkg/asset/manifests/ingress_test.go
(TestGenerateIngerssDefaultPlacement): Update test cases to expect
spec.loadBalancer.platform.aws.type to default to "Classic" on AWS.
* pkg/types/aws/platform.go (Platform): Update godoc to make it clear that
LBType is optional and defaults to "Classic".
* pkg/explain/printer_test.go (Test_PrintFields): Update.
* data/data/install.openshift.io_installconfigs.yaml: Regenerate.
2022-10-17 16:06:59 -04:00
OpenShift Merge Robot
045b9520a6 Merge pull request #6490 from xueqzhan/revert-6478-nlb-field
Revert "[AWS] Add LB Type in the infrastructure cluster object via install-config yaml"
2022-10-17 12:43:46 -04:00
Miciah Masters
1aded88cd3 Revert "Revert "[AWS] Add LB Type in the infrastructure cluster object via install-config yaml""
This reverts commit 98beea11ef.
2022-10-17 10:04:00 -04:00
Ken Zhang
98beea11ef Revert "[AWS] Add LB Type in the infrastructure cluster object via install-config yaml" 2022-10-17 09:27:54 -04:00
OpenShift Merge Robot
85c8d56157 Merge pull request #6478 from gcs278/nlb-field
[AWS] Add LB Type in the infrastructure cluster object via install-config yaml
2022-10-15 04:22:14 -04:00
OpenShift Merge Robot
c5d7528d75 Merge pull request #5668 from dongchen126/fix-manifests
Bug 2059491: [Alibaba] fix the format of Name
2022-10-14 22:33:50 -04:00
OpenShift Merge Robot
d444363a6a Merge pull request #6438 from pawanpinjarkar/allow-user-to-choose-platform-type
AGENT-284: Allow user to choose platform type
2022-10-14 17:37:36 -04:00
Pawan Pinjarkar
7506ada102 Do specific validations in Generate() and Load(). Restructured by removing unwanted struct fields
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2022-10-14 12:28:33 -05:00
Pawan Pinjarkar
c8d0cc7d73 Fix error message, validate file in its own func
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2022-10-14 12:28:32 -05:00
Pawan Pinjarkar
e40db31b06 Throw warnings no errors
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2022-10-14 12:28:32 -05:00
Pawan Pinjarkar
d3856aa7c6 Code restructure
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2022-10-14 12:28:32 -05:00
Pawan Pinjarkar
f0cd03f90d linting
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2022-10-14 12:28:32 -05:00
Pawan Pinjarkar
beb3debe98 A nicer error message
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2022-10-14 12:28:32 -05:00
Pawan Pinjarkar
9443021563 Add the source (Generated/Loaded) for mirror/registries.conf file
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2022-10-14 12:28:32 -05:00
Pawan Pinjarkar
b3d5837bd0 AGENT-332: Add validation for releaseImage and registry.conf
Signed-off-by: Pawan Pinjarkar <ppinjark@redhat.com>
2022-10-14 12:28:32 -05:00