Re: airgap install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kai,
yes, it looks so. Thanks for the suggestion.
I am experimenting in an environment with /etc/hosts file on each server, without DNS.
The /etc/hosts file is correct and complete. I can resolve the hostname correctly, but on the host server(s) only.
I was not aware of the fact that docker container does not use this file. This is where the error is comming from. It looks like I need DNS or some other way to be able to resolve hostname within a container.

But this raises a new question: Does ceph operation depend on DNS or is it only some cephadm commands?

Zoran

----- Original Message -----
From: "Kai Stian Olstad" <ceph+list@xxxxxxxxxx>
To: "Zoran Bošnjak" <zoran.bosnjak@xxxxxx>
Cc: "ceph-users" <ceph-users@xxxxxxx>
Sent: Tuesday, December 21, 2021 8:51:30 AM
Subject: Re:  airgap install

On 17.12.2021 11:06, Zoran Bošnjak wrote:
> Kai, thank you for your answer. It looks like the "ceph config set
> mgr..." commands are the key part, to specify my local registry.
> However, I haven't got that far with the installation. I have tried
> various options, but I have problems already with the bootstrap step.
> 
> I have documented the procedure (and the errors) here:
> https://github.com/zoranbosnjak/ceph-install#readme
> 
> Would you please have a look and suggest corrections.

I have looked it over and checked the cephadm source code.


> Ideally, I would like to run administrative commands from a dedicated
> (admin) node... or alternatively to setup mon nodes to be able to run
> administrative commands...

The bootstrap command you need to run on one of the nodes and/or the 
node you want the monitor to run on.
After that you can install cephadm or ceph-common to use you admin node 
for the rest.

So the error you get is this
   Non-zero exit code 22 from /usr/bin/docker run --rm --ipc=host 
--net=host --entrypoint /usr/bin/ceph -e 
CONTAINER_IMAGE=admin:5000/ceph/ceph:v16 -e NODE_NAME=node01 -v 
/var/log/ceph/da017daa-5f18-11ec-a05c-37b574681fc7:/var/log/ceph:z -v 
/tmp/ceph-tmph9jxliaz:/etc/ceph/ceph.client.admin.keyring:z -v 
/tmp/ceph-tmpsecch5kc:/etc/ceph/ceph.conf:z admin:5000/ceph/ceph:v16 
orch host add node01
   /usr/bin/ceph: stderr Error EINVAL: Can not automatically resolve ip 
address of host where active mgr is running. Please explicitly provide 
the address.

It is trying to find the IP address for the node01 but fails to do so.
So you need to look into you DNS settings so it possible to determine 
the IP for a hostname.

Checking for the IP is a reason change(16.2.6 or .7) 
https://github.com/ceph/ceph/pull/42772 to close this issue 
https://tracker.ceph.com/issues/51667


-- 
Kai Stian Olstad
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux