[
https://issues.apache.org/jira/browse/HDDS-8255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17703983#comment-17703983
]
Attila Doroszlai commented on HDDS-8255:
----------------------------------------
This happens if the {{ozone admin safemode check}} command is executed before
{{/etc/hadoop/ozone-site.xml}} is generated in the container (based on
{{docker-config}}).
{code}
$ cd hadoop-ozone/dist/target/ozone-1.4.0-SNAPSHOT/compose/ozonesecure-ha
$ SCM=scm1.org
$ docker-compose up -d ${SCM}; for i in {1..5}; do docker-compose exec ${SCM}
grep scm.service /etc/hadoop/ozone-site.xml; sleep 1; done
Creating network "ozonesecure-ha_ozone_net" with the default driver
Creating ozonesecure-ha_scm1.org_1 ... done
grep: /etc/hadoop/ozone-site.xml: No such file or directory
grep: /etc/hadoop/ozone-site.xml: No such file or directory
grep: /etc/hadoop/ozone-site.xml: No such file or directory
grep: /etc/hadoop/ozone-site.xml: No such file or directory
<property><name>ozone.scm.service.ids</name><value>scmservice</value></property>
{code}
Due to:
{code}
$ docker-compose logs scm1.org
Attaching to ozonesecure-ha_scm1.org_1
scm1.org_1 | Sleeping for 5 seconds
...
{code}
Config is generated only after this sleep.
This sleep was needed before HDDS-5123 to give some time for {{kdc}} container
to get up and running, because other containers downloaded keytabs from {{kdc}}
during the startup. HDDS-5123 changed to use pre-generated keytabs, and
removed the sleep from {{ozonesecure}}, but not from {{ozonesecure-ha}} and
{{ozonesecure-mr}}.
Let's try removing the sleep.
> CI: ozone.scm.client.address should be set in ozone-site.xml or with the
> --scm option
> -------------------------------------------------------------------------------------
>
> Key: HDDS-8255
> URL: https://issues.apache.org/jira/browse/HDDS-8255
> Project: Apache Ozone
> Issue Type: Bug
> Components: CI
> Reporter: Siyao Meng
> Assignee: Attila Doroszlai
> Priority: Minor
>
> acceptance (HA-secure) warns about {{ozone.scm.client.address}} config (since
> HDDS-7975):
> Post-commit CI:
> {code:title=https://github.com/apache/ozone/actions/runs/4488003545/jobs/7892314162}
> Creating ozonesecure-ha_s3g_1 ... done
> ozone.scm.client.address should be set in ozone-site.xml or with the --scm
> option
> SECONDS: 3
> SECONDS: 45
> {code}
> Probably want to set that in ozone-site
> cc [~adoroszlai]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]