Code Monkey home page Code Monkey logo

Comments (9)

dillaman avatar dillaman commented on August 17, 2024

Any chance you have your pre-upgrade config available?

from ceph-iscsi.

mikechristie avatar mikechristie commented on August 17, 2024

It looks like the gw fqdn updater could not figure out the domain name so it did not update the gateways. The lun owner value is stuck as the host name only.

Is your networking/dns/hostname setup so that the nodes can have a fully qualified domain name or do you by any chance just have a local only setup and instead of doing something like myhost.something.local you just have myhost?

from ceph-iscsi.

mikechristie avatar mikechristie commented on August 17, 2024

Or do you maybe just have myhost.local?

from ceph-iscsi.

emmericp avatar emmericp commented on August 17, 2024

Running a local test , i.e. hostname -s and -f return the same short hostname.

Nothing special in the old config, but I didn‘t save it

from ceph-iscsi.

mikechristie avatar mikechristie commented on August 17, 2024

It’s just a local setup with no domain name setup, correct? Or is hostname -f incorrectly retuning only the host name? The Ceph iscsi tools/daemon perform the same syscalls so that is why I am asking if the system is just not setup with a domain or if hostname -f is reporting the wrong info.

@ricardoasmarques,

It looks like we have to have a fqdn (it can just be a local one like bogus.local) or the code will fail. This was intentional right?

from ceph-iscsi.

emmericp avatar emmericp commented on August 17, 2024
$ python
>>> import socket
>>> print(socket.getfqdn())
server-1

(this seems to be the code used to get the fqdn, right?)

/etc/hosts:

127.0.0.1 localhost
10.0.0.101 server-1

from ceph-iscsi.

dillaman avatar dillaman commented on August 17, 2024

I opened PR #118 to hopefully prevent this issue in the future. There is a WIP build that includes this fix located here [1] if you are able to test it.

[1] https://shaman.ceph.com/repos/ceph-iscsi/wip-fqdn-upgrade-fix/826f788dcacf27a437f64b0d79d1394bacf8a68f/default/131333/

from ceph-iscsi.

mikechristie avatar mikechristie commented on August 17, 2024

Jason, I replicated the bug here, tested your patch, merged it and made a new release 3.2 hoping other people will see 3.2 and not get their setups hosed.

@emmericp

[edit - fix formatting]

To start up your system again you are going to to have to do the following:

  1. Stop the rbd-target-api daemons on all gateways.

systemctl stop rbd-target-api

  1. Install ceph-iscsi-3.2 on all the gateways.

  2. Delete the gateway.conf. From one of the gateways do:

rados -p rbd rm gateway.conf

  1. Restart all the systems/daemon with ceph-iscsi-3.2. Either reboot the system with your normal reboot command or start the daemon

systemctl start tbd-target-api

  1. Re-add gateways, targets, images, etc with gwcli.

For the images since they are already created, you just need to add them by not passing in the size argument. Instead of doing:

/disks> create rbd test1 100G

do

/disks> create rbd test1

from ceph-iscsi.

emmericp avatar emmericp commented on August 17, 2024

thanks for the quick fix!

from ceph-iscsi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.