ceph rgw zone create fails EINVAL

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

 



Hi,

I'm running cephadm/reef 18.2.2. I'm trying to set up multisite.

I created realm/zonegroup/master zone OK (I think!), edited the zonegroup json to include hostnames. I have this spec file for the secondary zone:

rgw_zone: codfw
rgw_realm_token: "SECRET"
placement:
  label: "rgw"

[I get "SECRET" by doing ceph rgw realm tokens on the master, and C&Ping the field labelled "token"]

If I then try and apply this with:
ceph rgw zone create -i /root/rgw_secondary.yaml

It doesn't work, and I get an unhelpful backtrace:
Error EINVAL: Traceback (most recent call last):
  File "/usr/share/ceph/mgr/mgr_module.py", line 1811, in _handle_command
    return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/ceph/mgr/mgr_module.py", line 474, in call
    return self.func(mgr, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/ceph/mgr/rgw/module.py", line 96, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/ceph/mgr/rgw/module.py", line 304, in _cmd_rgw_zone_create return HandleCommandResult(retval=0, stdout=f"Zones {', '.join(created_zones)} created successfully")

^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 0: expected str instance, int found

I assume I've messed up the spec file, but it looks like the one in the docs[0]. Can anyone point me in the right direction, please?

[if the underlying command emits anything useful, I can't find it in the logs]

Thanks,

Matthew

[0] https://docs.ceph.com/en/reef/mgr/rgw/#realm-credentials-token
_______________________________________________
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