Bug 1670418
| Summary: | inventory variable which points out to IP address of NFS server is not being expanded, so that the installer creates the PVC with wrongs data. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Roberto <rdiazgav> | ||||
| Component: | Installer | Assignee: | Jeremiah Stuever <jstuever> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Gaoyun Pei <gpei> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 3.11.0 | CC: | aos-bugs, gpei, jokerman, mmccomas, rsandu, smunilla | ||||
| Target Milestone: | --- | ||||||
| Target Release: | 3.11.z | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | openshift-ansible-3.11.103-1.git.0.cc184bd.el7 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2019-06-06 02:00:28 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Created attachment 1546094 [details]
deploy_cluster.yml verbose output
Could reproduce this issue with openshift-ansible-3.11.82-1.
Set the following parameters in ansible inventory file:
netapp='10.0.77.1'
openshift_hosted_registry_storage_host={{netapp}}
After installation, check registry pv
[root@qe-gpei-311master-etcd-1 ~]# oc describe pv default-pv-volume
Name: default-pv-volume
Labels: <none>
Annotations: <none>
Finalizers: [kubernetes.io/pv-protection]
StorageClass:
Status: Bound
Claim: default/default-pv-claim
Reclaim Policy: Retain
Access Modes: RWX
Capacity: 11500M
Node Affinity: <none>
Message:
Source:
Type: NFS (an NFS mount that lasts the lifetime of a pod)
Server: {{netapp}}
Path: /opt/osev3-registry/default-pv
ReadOnly: false
Events: <none>
The proposed PR is not in openshift-ansible-3.11.102-1 which was attached in advisory/40770, it's merged from 3.11.103-1.
Tried again with openshift-ansible-3.11.103-1, the issue is fixed.
[root@qe-gpei-3112master-etcd-1 ~]# oc describe pv default-pv-volume
Name: default-pv-volume
Labels: <none>
Annotations: <none>
Finalizers: [kubernetes.io/pv-protection]
StorageClass:
Status: Bound
Claim: default/default-pv-claim
Reclaim Policy: Retain
Access Modes: RWX
Capacity: 11500M
Node Affinity: <none>
Message:
Source:
Type: NFS (an NFS mount that lasts the lifetime of a pod)
Server: 10.0.77.1
Path: /opt/osev3-registry/default-pv
ReadOnly: false
Events: <none>
openshift-ansible-3.11.104-1.git.0.379a011.el7 is attached in advisory/40770, the proposed PR already merged in, move this bug to verified per Comment 15. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:0794 |
Description of problem: I have issues with the NFS server for "registry-volume" & "metrics-volume" not being set correctly. To quote the relevant parts of my inventory file: ``` ... [all:vars] netapp='10.23.89.139' ... openshift_hosted_registry_storage_host={{netapp}} ... openshift_metrics_storage_host="{{netapp}}" ... ``` The server for the pvs will be set to: ``` server: '{{netapp}}' ``` And not the content of the variable (in this case 10.23.89.139). This logic, however works with other settings like: ``` ... cust='spc' env='ocpl3simeny' domain='p1.lab.basefarm.net' ... openshift_master_cluster_hostname="{{cust}}-{{env}}-master.{{domain}}" openshift_master_cluster_public_hostname="{{cust}}-{{env}}-api.{{domain}}" openshift_master_default_subdomain="{{cust}}-{{env}}-ops.{{domain}}" openshift_console_hostname="{{cust}}-{{env}}-console.{{domain}}" openshift_metrics_hawkular_hostname="{{cust}}-{{env}}-metrics.{{domain}}" ... Version-Release number of selected component (if applicable): OCP 3.11 How reproducible: The NFS has been reproduced in a test environment: $ grep -B2 netapp /etc/ansible/hosts #openshift_metrics_install_metrics=true openshift_metrics_storage_kind=nfs openshift_metrics_storage_host={{netapp}} -- [OSEv3:vars] ## storage options netapp='ipa.local.lab' ### $ oc describe pv metrics-volume Name: metrics-volume Labels: storage=metrics Annotations: <none> Finalizers: [kubernetes.io/pv-protection] StorageClass: Status: Available Claim: Reclaim Policy: Retain Access Modes: RWO Capacity: 10Gi Node Affinity: <none> Message: Source: Type: NFS (an NFS mount that lasts the lifetime of a pod) Server: {{netapp}} Path: /exports/metrics ReadOnly: false Events: <none> Actual results: The variable is not being expanded so that the PVC is not created properly during the install