Bug 1956667 - OSP16.1 Overcloud installation fails while installing freipa client on controller
Summary: OSP16.1 Overcloud installation fails while installing freipa client on contro...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: ansible-tripleo-ipa
Version: 16.1 (Train)
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Ade Lee
QA Contact: Jeremy Agee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-04 08:07 UTC by tkorol@redhat.com
Modified: 2022-08-23 10:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-21 08:46:59 UTC
Target Upstream Version:
Embargoed:
tkorol: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-3581 0 None None None 2022-08-23 10:40:15 UTC

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.


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