Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to apply config without 'mon_ip' on deployed cluster #410

Open
ricardoasmarques opened this issue Sep 23, 2020 · 1 comment
Open
Labels
bug Something isn't working

Comments

@ricardoasmarques
Copy link
Contributor

The /cephadm_bootstrap/mon_ip option is only used for initial deployment, and after that is no longer needed.

But I'm getting an error when trying to execute ceph-salt apply without /cephadm_bootstrap/mon_ip:

master:~ # ceph-salt config ls /cephadm_bootstrap/mon_ip
o- mon_ip .................................................................................................. [not set]

master:~ # ceph-salt status
cluster: 4 minions, 4 hosts managed by cephadm
config:  OK

master:~ # ceph-salt apply 
Syncing minions with the master...
Checking if minions respond to ping...
Pinging 4 minions...
Checking if ceph-salt formula is available...
Formula not found. Do you want to restart 'salt-master' to load 'ceph-salt' formula?  (y/n): [n]: n
Aborted!

master:~ # salt node1.pacific.test state.show_sls ceph-salt
node1.pacific.test:
    - Rendering SLS 'base:ceph-salt.apply.cephbootstrap' failed: Jinja variable 'dict object' has no attribute 'bootstrap_mon_ip'
ERROR: Minions returned with non-zero exit code

master:~ # ceph-salt config ls /
o- / ........................................................................................................... [...]
  o- ceph_cluster .............................................................................................. [...]
  | o- minions .......................................................................................... [Minions: 4]
  | | o- master.pacific.test ........................................................................ [cephadm, admin]
  | | o- node1.pacific.test ..................................................................... [cephadm, bootstrap]
  | | o- node2.pacific.test ................................................................................ [cephadm]
  | | o- node3.pacific.test ................................................................................ [cephadm]
  | o- roles ................................................................................................... [...]
  |   o- admin .......................................................................................... [Minions: 1]
  |   | o- master.pacific.test ................................................................ [Other roles: cephadm]
  |   o- bootstrap .............................................................................. [node1.pacific.test]
  |   o- cephadm ........................................................................................ [Minions: 4]
  |   | o- master.pacific.test .................................................................. [Other roles: admin]
  |   | o- node1.pacific.test ............................................................... [Other roles: bootstrap]
  |   | o- node2.pacific.test ....................................................................... [No other roles]
  |   | o- node3.pacific.test ....................................................................... [No other roles]
  |   o- tuned ................................................................................................. [...]
  |     o- latency ...................................................................................... [no minions]
  |     o- throughput ................................................................................... [no minions]
  o- cephadm_bootstrap ......................................................................................... [...]
  | o- advanced ................................................................................................ [...]
  | o- ceph_conf ............................................................................................... [...]
  | o- ceph_image_path ............................. [registry.opensuse.org/filesystems/ceph/pacific/images/ceph/ceph]
  | o- dashboard ............................................................................................... [...]
  | | o- force_password_update ............................................................................ [disabled]
  | | o- password ............................................................................................ [admin]
  | | o- ssl_certificate ................................................................................... [not set]
  | | o- ssl_certificate_key ............................................................................... [not set]
  | | o- username ............................................................................................ [admin]
  | o- mon_ip .............................................................................................. [not set]
  o- containers ................................................................................................ [...]
  | o- registries_conf ..................................................................................... [enabled]
  | | o- registries .......................................................................................... [empty]
  | o- registry_auth ........................................................................................... [...]
  |   o- password .......................................................................................... [not set]
  |   o- registry .......................................................................................... [not set]
  |   o- username .......................................................................................... [not set]
  o- ssh .............................................................................................. [Key Pair set]
  | o- private_key ................................................. [32:70:09:c8:eb:2c:93:40:bf:95:45:2c:8c:47:82:b8]
  | o- public_key .................................................. [32:70:09:c8:eb:2c:93:40:bf:95:45:2c:8c:47:82:b8]
  o- time_server ........................................................................................... [enabled]
    o- external_servers .......................................................................................... [1]
    | o- pool.ntp.org .......................................................................................... [...]
    o- server_hostname ......................................................................... [master.pacific.test]
    o- subnet ........................................................................................ [10.20.94.0/24]

Workaround: Set mon_ip or remove the bootstrap minion

@ricardoasmarques ricardoasmarques added the bug Something isn't working label Sep 23, 2020
@ricardoasmarques ricardoasmarques changed the title Unable to apply config withou 'mon_ip' on deployed cluster Unable to apply config without 'mon_ip' on deployed cluster Sep 23, 2020
@smithfarm
Copy link
Contributor

I guess ceph-salt apply should determine whether a cluster has been deployed or not, and if yes, then avoid running the cephbootstrap.sls at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants