Bug 1670418 - 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.
Summary: inventory variable which points out to IP address of NFS server is not being ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.11.0
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
: 3.11.z
Assignee: Jeremiah Stuever
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-29 13:57 UTC by Roberto
Modified: 2019-06-06 02:00 UTC (History)
6 users (show)

Fixed In Version: openshift-ansible-3.11.103-1.git.0.cc184bd.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-06 02:00:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
deploy_cluster.yml verbose output (7.87 MB, text/plain)
2019-03-20 14:56 UTC, Roberto
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0794 0 None None None 2019-06-06 02:00:41 UTC

Description Roberto 2019-01-29 13:57:35 UTC
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

Comment 8 Roberto 2019-03-20 14:56:27 UTC
Created attachment 1546094 [details]
deploy_cluster.yml verbose output

Comment 15 Gaoyun Pei 2019-04-08 08:19:35 UTC
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>

Comment 16 Gaoyun Pei 2019-04-11 02:13:14 UTC
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.

Comment 18 errata-xmlrpc 2019-06-06 02:00:28 UTC
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


Note You need to log in before you can comment on or make changes to this bug.