Bug 1956667

Summary: OSP16.1 Overcloud installation fails while installing freipa client on controller
Product: Red Hat OpenStack Reporter: tkorol <tkorol>
Component: ansible-tripleo-ipaAssignee: Ade Lee <alee>
Status: CLOSED WORKSFORME QA Contact: Jeremy Agee <jagee>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16.1 (Train)CC: alee, oblaut
Target Milestone: ---Flags: tkorol: needinfo-
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-21 08:46:59 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:

Description tkorol@redhat.com 2021-05-04 08:07:04 UTC
Overcloud installation fails on the setup of the freeipa client on controllers. 
Here is the log of freipa client install script from one of the controllers: 

+ get_metadata_config_drive
+ '[' -f /run/cloud-init/status.json ']'
++ cat /run/cloud-init/status.json
+ data='{
 "v1": {
  "datasource": "DataSourceConfigDrive [net,ver=2][source=/dev/vda1]",
  "init": {
   "errors": [],
   "finished": 1619116559.4529166,
   "start": 1619116557.9795618
  },
  "init-local": {
   "errors": [],
   "finished": 1619116556.4135964,
   "start": 1619116555.6352966
  },
  "modules-config": {
   "errors": [],
   "finished": 1619116571.553534,
   "start": 1619116571.1168885
  },
  "modules-final": {
   "errors": [],
   "finished": 1619116572.5768287,
   "start": 1619116572.1012902
  },
  "modules-init": {
   "errors": [],
   "finished": null,
   "start": null
  },
  "stage": null
 }
}'
++ echo '{' '"v1":' '{' '"datasource":' '"DataSourceConfigDrive' '[net,ver=2][source=/dev/vda1]",' '"init":' '{' '"errors":' '[],' '"finished":' 1619116559.4529166, '"start":' 1619116557.9795618 '},' '"init-local":' '{' '"errors":' '[],' '"finished":' 1619116556.4135964, '"start":' 1619116555.6352966 '},' '"modules-config":' '{' '"errors":' '[],' '"finished":' 1619116571.553534, '"start":' 1619116571.1168885 '},' '"modules-final":' '{' '"errors":' '[],' '"finished":' 1619116572.5768287, '"start":' 1619116572.1012902 '},' '"modules-init":' '{' '"errors":' '[],' '"finished":' null, '"start":' null '},' '"stage":' null '}' '}'
+++ command -v python3
++ /bin/python3 -c 'import json,re,sys;obj=json.load(sys.stdin);ds=obj.get("v1", {}).get("datasource"); print(re.findall(r"source=(.*)]", ds)[0])'
+ config_drive=/dev/vda1
+ [[ -b /dev/vda1 ]]
++ mktemp -d
+ temp_dir=/tmp/tmp.EQRdBhnHin
+ mount /dev/vda1 /tmp/tmp.EQRdBhnHin
mount: /tmp/tmp.EQRdBhnHin: WARNING: device write-protected, mounted read-only.
+ '[' -f /tmp/tmp.EQRdBhnHin/openstack/latest/vendor_data2.json ']'
++ cat /tmp/tmp.EQRdBhnHin/openstack/latest/vendor_data2.json
+ data='{"static": {}}'
+ umount /dev/vda1
+ rmdir /tmp/tmp.EQRdBhnHin
+ return 0
+ get_fqdn
++ echo '{"static":' '{}}'
+++ command -v python3
++ /bin/python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj.get("join", {}).get("hostname", ""))'
+ fqdn=
+ '[' -z ']'
+ echo 'Unable to determine hostname'
Unable to determine hostname
+ return 1
+ get_metadata_network
++ timeout 300 /bin/bash -c 'data=""; while [ -z "$data" ]; do sleep $[ ( $RANDOM % 10 )  + 1 ]s; data=`curl -s http://169.254.169.254/openstack/2016-10-06/vendor_data2.json 2>/dev/null`; done; echo $data'
+ data=
+ [[ 124 != 0 ]]
+ echo 'Unable to retrieve metadata from metadata service.'
Unable to retrieve metadata from metadata service.
+ return 1
+ echo 'FATAL: No metadata available or could not read the hostname from the metadata'
FATAL: No metadata available or could not read the hostname from the metadata
+ exit 1

Version-Release number of selected component (if applicable):
OSP 16.1

It occurs during installation of OSP 16.1 with TLS-E.

Comment 1 Ade Lee 2021-05-06 20:45:38 UTC
Please provide link to job and/or templates and logs.

Comment 4 tkorol@redhat.com 2021-05-25 16:54:39 UTC
@Jajee do you need additional info?

Comment 8 Ade Lee 2021-06-14 14:14:28 UTC
OK  great.  Setting needinfo on @tkorol to update with latest results.  If not using snapshots resolves this issue, please close the BZ.