Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image size

2019-10-15 Thread Mike Christie
On 10/14/2019 09:01 AM, Kilian Ries wrote:
> 
> @Mike
> 
> 
> Did you have the chance to update download.ceph.com repositories for the
> new version?

No. I have updated the upstream repos with the needed patches and made
new releases there. I appear to be hitting a bug with jenkins and can't
even make devel builds on shaman.

I am working with lab person right now.

> 
> 
> I just tested the packages from shaman in our DEV environment and it
> seems to fix the work - after updating the packages i was not able to
> reproduce the error again and tcmu-runner starts up without any errors ;)
> 
> 
> 
> *Von:* Mike Christie 
> *Gesendet:* Donnerstag, 3. Oktober 2019 00:20:51
> *An:* Kilian Ries; dilla...@redhat.com
> *Cc:* ceph-users@lists.ceph.com
> *Betreff:* Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image
> size
>  
> On 10/02/2019 02:15 PM, Kilian Ries wrote:
>> Ok i just compared my local python files and the git commit you sent me
>> - it really looks like i have the old files installed. All the changes
>> are missing in my local files.
>> 
>> 
>> 
>> Where can i get a new ceph-iscsi-config package that has the fixe
>> included? I have installed version:
> 
> They are on shaman only right now:
> 
> https://4.chacra.ceph.com/r/ceph-iscsi-config/master/24deeb206ed2354d44b0f33d7d26d475e1014f76/centos/7/flavors/default/noarch/
> 
> https://4.chacra.ceph.com/r/ceph-iscsi-cli/master/4802654a6963df6bf5f4a968782cfabfae835067/centos/7/flavors/default/noarch/
> 
> The shaman rpms above have one bug we just fixed in ceph-iscsi-config
> where if DNS is not setup correctly gwcli commands can take minutes.
> 
> I am going to try and get download.ceph.com updated.
> 
>> 
>> ceph-iscsi-config-2.6-2.6.el7.noarch
>> 
>> *Von:* ceph-users  im Auftrag von
>> Kilian Ries 
>> *Gesendet:* Mittwoch, 2. Oktober 2019 21:04:45
>> *An:* dilla...@redhat.com
>> *Cc:* ceph-users@lists.ceph.com
>> *Betreff:* Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image
>> size
>>  
>> 
>> Yes, i created all four luns with these sizes:
>> 
>> 
>> lun0 - 5120G
>> 
>> lun1 - 5121G
>> 
>> lun2 - 5122G
>> 
>> lun3 - 5123G
>> 
>> 
>> Its always one GB more per LUN... Is there any newer ceph-iscsi-config
>> package than i have installed?
>> 
>> 
>> ceph-iscsi-config-2.6-2.6.el7.noarch
>> 
>> 
>> Then i could try to update the package and see if the error is fixed ...
>> 
>> 
>> *Von:* Jason Dillaman 
>> *Gesendet:* Mittwoch, 2. Oktober 2019 16:00:03
>> *An:* Kilian Ries
>> *Cc:* ceph-users@lists.ceph.com
>> *Betreff:* Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image
>> size
>>  
>> On Wed, Oct 2, 2019 at 9:50 AM Kilian Ries  wrote:
>>>
>>> Hi,
>>>
>>>
>>> i'm running a ceph mimic cluster with 4x ISCSI gateway nodes. Cluster was 
>>> setup via ceph-ansible v3.2-stable. I just checked my nodes and saw that 
>>> only two of the four configured iscsi gw nodes are working correct. I first 
>>> noticed via gwcli:
>>>
>>>
>>> ###
>>>
>>>
>>> $gwcli -d ls
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "/usr/bin/gwcli", line 191, in 
>>>
>>> main()
>>>
>>>   File "/usr/bin/gwcli", line 103, in main
>>>
>>> root_node.refresh()
>>>
>>>   File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 87, in 
>>> refresh
>>>
>>> raise GatewayError
>>>
>>> gwcli.utils.GatewayError
>>>
>>>
>>> ###
>>>
>>>
>>> I investigated and noticed that both "rbd-target-api" and "rbd-target-gw" 
>>> are not running. I were not able to restart them via systemd. I then found 
>>> that even tcmu-runner is not running and it exits with the following error:
>>>
>>>
>>>
>>> ###
>>>
>>>
>>> tcmu_rbd_check_image_size:827 rbd/production.lun1: Mismatched sizes. RBD 
>>> image size 5498631880704. Requested new size 5497558138880.
>>>
>>>
>>> ###
>>>
>>>
>>> Now i have the situation that two nodes are

Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image size

2019-10-14 Thread Kilian Ries

@Mike


Did you have the chance to update download.ceph.com repositories for the new 
version?


I just tested the packages from shaman in our DEV environment and it seems to 
fix the work - after updating the packages i was not able to reproduce the 
error again and tcmu-runner starts up without any errors ;)



Von: Mike Christie 
Gesendet: Donnerstag, 3. Oktober 2019 00:20:51
An: Kilian Ries; dilla...@redhat.com
Cc: ceph-users@lists.ceph.com
Betreff: Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image size

On 10/02/2019 02:15 PM, Kilian Ries wrote:
> Ok i just compared my local python files and the git commit you sent me
> - it really looks like i have the old files installed. All the changes
> are missing in my local files.
>
>
>
> Where can i get a new ceph-iscsi-config package that has the fixe
> included? I have installed version:

They are on shaman only right now:

https://4.chacra.ceph.com/r/ceph-iscsi-config/master/24deeb206ed2354d44b0f33d7d26d475e1014f76/centos/7/flavors/default/noarch/

https://4.chacra.ceph.com/r/ceph-iscsi-cli/master/4802654a6963df6bf5f4a968782cfabfae835067/centos/7/flavors/default/noarch/

The shaman rpms above have one bug we just fixed in ceph-iscsi-config
where if DNS is not setup correctly gwcli commands can take minutes.

I am going to try and get download.ceph.com updated.

>
> ceph-iscsi-config-2.6-2.6.el7.noarch
> 
> *Von:* ceph-users  im Auftrag von
> Kilian Ries 
> *Gesendet:* Mittwoch, 2. Oktober 2019 21:04:45
> *An:* dilla...@redhat.com
> *Cc:* ceph-users@lists.ceph.com
> *Betreff:* Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image
> size
>
>
> Yes, i created all four luns with these sizes:
>
>
> lun0 - 5120G
>
> lun1 - 5121G
>
> lun2 - 5122G
>
> lun3 - 5123G
>
>
> Its always one GB more per LUN... Is there any newer ceph-iscsi-config
> package than i have installed?
>
>
> ceph-iscsi-config-2.6-2.6.el7.noarch
>
>
> Then i could try to update the package and see if the error is fixed ...
>
> 
> *Von:* Jason Dillaman 
> *Gesendet:* Mittwoch, 2. Oktober 2019 16:00:03
> *An:* Kilian Ries
> *Cc:* ceph-users@lists.ceph.com
> *Betreff:* Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image
> size
>
> On Wed, Oct 2, 2019 at 9:50 AM Kilian Ries  wrote:
>>
>> Hi,
>>
>>
>> i'm running a ceph mimic cluster with 4x ISCSI gateway nodes. Cluster was 
>> setup via ceph-ansible v3.2-stable. I just checked my nodes and saw that 
>> only two of the four configured iscsi gw nodes are working correct. I first 
>> noticed via gwcli:
>>
>>
>> ###
>>
>>
>> $gwcli -d ls
>>
>> Traceback (most recent call last):
>>
>>   File "/usr/bin/gwcli", line 191, in 
>>
>> main()
>>
>>   File "/usr/bin/gwcli", line 103, in main
>>
>> root_node.refresh()
>>
>>   File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 87, in 
>> refresh
>>
>> raise GatewayError
>>
>> gwcli.utils.GatewayError
>>
>>
>> ###
>>
>>
>> I investigated and noticed that both "rbd-target-api" and "rbd-target-gw" 
>> are not running. I were not able to restart them via systemd. I then found 
>> that even tcmu-runner is not running and it exits with the following error:
>>
>>
>>
>> ###
>>
>>
>> tcmu_rbd_check_image_size:827 rbd/production.lun1: Mismatched sizes. RBD 
>> image size 5498631880704. Requested new size 5497558138880.
>>
>>
>> ###
>>
>>
>> Now i have the situation that two nodes are running correct and two cant 
>> start tcmu-runner. I don't know where the image size mismatches are coming 
>> from - i haven't configured or resized any of the images.
>>
>>
>> Is there any chance to get my two iscsi gw nodes back working?
>
> It sounds like you are potentially hitting [1]. The ceph-iscsi-config
> library thinks your image size is 5TiB but you actually have a 5121GiB
> (~5.001TiB) RBD image. Any clue how your RBD image got to be 1GiB
> larger than an even 5TiB?
>
>>
>>
>>
>> The following packets are installed:
>>
>>
>> rpm -qa |egrep "ceph|iscsi|tcmu|rst|kernel"
>>
>>
>> libtcmu-1.4.0-106.gd17d24e.el7.x86_64
>>
>> ceph-iscsi-cli-2.7-2.7.el7.noarch
>>
>> kernel-3.10.0-957.5.1.el7.x86_64
>>
>> ceph-base-13.2.5-0.el7.x86_64

Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image size

2019-10-02 Thread Mike Christie
On 10/02/2019 02:15 PM, Kilian Ries wrote:
> Ok i just compared my local python files and the git commit you sent me
> - it really looks like i have the old files installed. All the changes
> are missing in my local files.
> 
> 
> 
> Where can i get a new ceph-iscsi-config package that has the fixe
> included? I have installed version:

They are on shaman only right now:

https://4.chacra.ceph.com/r/ceph-iscsi-config/master/24deeb206ed2354d44b0f33d7d26d475e1014f76/centos/7/flavors/default/noarch/

https://4.chacra.ceph.com/r/ceph-iscsi-cli/master/4802654a6963df6bf5f4a968782cfabfae835067/centos/7/flavors/default/noarch/

The shaman rpms above have one bug we just fixed in ceph-iscsi-config
where if DNS is not setup correctly gwcli commands can take minutes.

I am going to try and get download.ceph.com updated.

> 
> ceph-iscsi-config-2.6-2.6.el7.noarch
> 
> *Von:* ceph-users  im Auftrag von
> Kilian Ries 
> *Gesendet:* Mittwoch, 2. Oktober 2019 21:04:45
> *An:* dilla...@redhat.com
> *Cc:* ceph-users@lists.ceph.com
> *Betreff:* Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image
> size
>  
> 
> Yes, i created all four luns with these sizes:
> 
> 
> lun0 - 5120G
> 
> lun1 - 5121G
> 
> lun2 - 5122G
> 
> lun3 - 5123G
> 
> 
> Its always one GB more per LUN... Is there any newer ceph-iscsi-config
> package than i have installed?
> 
> 
> ceph-iscsi-config-2.6-2.6.el7.noarch
> 
> 
> Then i could try to update the package and see if the error is fixed ...
> 
> 
> *Von:* Jason Dillaman 
> *Gesendet:* Mittwoch, 2. Oktober 2019 16:00:03
> *An:* Kilian Ries
> *Cc:* ceph-users@lists.ceph.com
> *Betreff:* Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image
> size
>  
> On Wed, Oct 2, 2019 at 9:50 AM Kilian Ries  wrote:
>>
>> Hi,
>>
>>
>> i'm running a ceph mimic cluster with 4x ISCSI gateway nodes. Cluster was 
>> setup via ceph-ansible v3.2-stable. I just checked my nodes and saw that 
>> only two of the four configured iscsi gw nodes are working correct. I first 
>> noticed via gwcli:
>>
>>
>> ###
>>
>>
>> $gwcli -d ls
>>
>> Traceback (most recent call last):
>>
>>   File "/usr/bin/gwcli", line 191, in 
>>
>> main()
>>
>>   File "/usr/bin/gwcli", line 103, in main
>>
>> root_node.refresh()
>>
>>   File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 87, in 
>> refresh
>>
>> raise GatewayError
>>
>> gwcli.utils.GatewayError
>>
>>
>> ###
>>
>>
>> I investigated and noticed that both "rbd-target-api" and "rbd-target-gw" 
>> are not running. I were not able to restart them via systemd. I then found 
>> that even tcmu-runner is not running and it exits with the following error:
>>
>>
>>
>> ###
>>
>>
>> tcmu_rbd_check_image_size:827 rbd/production.lun1: Mismatched sizes. RBD 
>> image size 5498631880704. Requested new size 5497558138880.
>>
>>
>> ###
>>
>>
>> Now i have the situation that two nodes are running correct and two cant 
>> start tcmu-runner. I don't know where the image size mismatches are coming 
>> from - i haven't configured or resized any of the images.
>>
>>
>> Is there any chance to get my two iscsi gw nodes back working?
> 
> It sounds like you are potentially hitting [1]. The ceph-iscsi-config
> library thinks your image size is 5TiB but you actually have a 5121GiB
> (~5.001TiB) RBD image. Any clue how your RBD image got to be 1GiB
> larger than an even 5TiB?
> 
>>
>>
>>
>> The following packets are installed:
>>
>>
>> rpm -qa |egrep "ceph|iscsi|tcmu|rst|kernel"
>>
>>
>> libtcmu-1.4.0-106.gd17d24e.el7.x86_64
>>
>> ceph-iscsi-cli-2.7-2.7.el7.noarch
>>
>> kernel-3.10.0-957.5.1.el7.x86_64
>>
>> ceph-base-13.2.5-0.el7.x86_64
>>
>> ceph-iscsi-config-2.6-2.6.el7.noarch
>>
>> ceph-common-13.2.5-0.el7.x86_64
>>
>> ceph-selinux-13.2.5-0.el7.x86_64
>>
>> kernel-tools-libs-3.10.0-957.5.1.el7.x86_64
>>
>> python-cephfs-13.2.5-0.el7.x86_64
>>
>> ceph-osd-13.2.5-0.el7.x86_64
>>
>> kernel-headers-3.10.0-957.5.1.el7.x86_64
>>
>> kernel-tools-3.10.0-957.5.1.el7.x86_64
>>
>> kernel-3.10.0-957.1.3.el7.x86_64
>>
>> libcephfs2-13.2.5-0.el7.x86_64
>>
>> kernel-3.10.0-862.14.4.el7.x86_64
>>
>> tcmu-runner-1.4.0-106.gd17d24e.el7.x86_64
>>
>>
>>
>> Thanks,
>>
>> Greets
>>
>>
>> Kilian
>>
>>
>> ___
>> ceph-users mailing list
>> ceph-users@lists.ceph.com
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> 
> [1] https://github.com/ceph/ceph-iscsi-config/pull/68
> 
> -- 
> Jason
> 
> 
> 
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> 

___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image size

2019-10-02 Thread Kilian Ries
Ok i just compared my local python files and the git commit you sent me - it 
really looks like i have the old files installed. All the changes are missing 
in my local files.



Where can i get a new ceph-iscsi-config package that has the fixe included? I 
have installed version:

ceph-iscsi-config-2.6-2.6.el7.noarch

Von: ceph-users  im Auftrag von Kilian Ries 

Gesendet: Mittwoch, 2. Oktober 2019 21:04:45
An: dilla...@redhat.com
Cc: ceph-users@lists.ceph.com
Betreff: Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image size


Yes, i created all four luns with these sizes:


lun0 - 5120G

lun1 - 5121G

lun2 - 5122G

lun3 - 5123G


Its always one GB more per LUN... Is there any newer ceph-iscsi-config package 
than i have installed?


ceph-iscsi-config-2.6-2.6.el7.noarch


Then i could try to update the package and see if the error is fixed ...


Von: Jason Dillaman 
Gesendet: Mittwoch, 2. Oktober 2019 16:00:03
An: Kilian Ries
Cc: ceph-users@lists.ceph.com
Betreff: Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image size

On Wed, Oct 2, 2019 at 9:50 AM Kilian Ries  wrote:
>
> Hi,
>
>
> i'm running a ceph mimic cluster with 4x ISCSI gateway nodes. Cluster was 
> setup via ceph-ansible v3.2-stable. I just checked my nodes and saw that only 
> two of the four configured iscsi gw nodes are working correct. I first 
> noticed via gwcli:
>
>
> ###
>
>
> $gwcli -d ls
>
> Traceback (most recent call last):
>
>   File "/usr/bin/gwcli", line 191, in 
>
> main()
>
>   File "/usr/bin/gwcli", line 103, in main
>
> root_node.refresh()
>
>   File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 87, in 
> refresh
>
> raise GatewayError
>
> gwcli.utils.GatewayError
>
>
> ###
>
>
> I investigated and noticed that both "rbd-target-api" and "rbd-target-gw" are 
> not running. I were not able to restart them via systemd. I then found that 
> even tcmu-runner is not running and it exits with the following error:
>
>
>
> ###
>
>
> tcmu_rbd_check_image_size:827 rbd/production.lun1: Mismatched sizes. RBD 
> image size 5498631880704. Requested new size 5497558138880.
>
>
> ###
>
>
> Now i have the situation that two nodes are running correct and two cant 
> start tcmu-runner. I don't know where the image size mismatches are coming 
> from - i haven't configured or resized any of the images.
>
>
> Is there any chance to get my two iscsi gw nodes back working?

It sounds like you are potentially hitting [1]. The ceph-iscsi-config
library thinks your image size is 5TiB but you actually have a 5121GiB
(~5.001TiB) RBD image. Any clue how your RBD image got to be 1GiB
larger than an even 5TiB?

>
>
>
> The following packets are installed:
>
>
> rpm -qa |egrep "ceph|iscsi|tcmu|rst|kernel"
>
>
> libtcmu-1.4.0-106.gd17d24e.el7.x86_64
>
> ceph-iscsi-cli-2.7-2.7.el7.noarch
>
> kernel-3.10.0-957.5.1.el7.x86_64
>
> ceph-base-13.2.5-0.el7.x86_64
>
> ceph-iscsi-config-2.6-2.6.el7.noarch
>
> ceph-common-13.2.5-0.el7.x86_64
>
> ceph-selinux-13.2.5-0.el7.x86_64
>
> kernel-tools-libs-3.10.0-957.5.1.el7.x86_64
>
> python-cephfs-13.2.5-0.el7.x86_64
>
> ceph-osd-13.2.5-0.el7.x86_64
>
> kernel-headers-3.10.0-957.5.1.el7.x86_64
>
> kernel-tools-3.10.0-957.5.1.el7.x86_64
>
> kernel-3.10.0-957.1.3.el7.x86_64
>
> libcephfs2-13.2.5-0.el7.x86_64
>
> kernel-3.10.0-862.14.4.el7.x86_64
>
> tcmu-runner-1.4.0-106.gd17d24e.el7.x86_64
>
>
>
> Thanks,
>
> Greets
>
>
> Kilian
>
>
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[1] https://github.com/ceph/ceph-iscsi-config/pull/68

--
Jason

___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image size

2019-10-02 Thread Kilian Ries
Yes, i created all four luns with these sizes:


lun0 - 5120G

lun1 - 5121G

lun2 - 5122G

lun3 - 5123G


Its always one GB more per LUN... Is there any newer ceph-iscsi-config package 
than i have installed?


ceph-iscsi-config-2.6-2.6.el7.noarch


Then i could try to update the package and see if the error is fixed ...


Von: Jason Dillaman 
Gesendet: Mittwoch, 2. Oktober 2019 16:00:03
An: Kilian Ries
Cc: ceph-users@lists.ceph.com
Betreff: Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image size

On Wed, Oct 2, 2019 at 9:50 AM Kilian Ries  wrote:
>
> Hi,
>
>
> i'm running a ceph mimic cluster with 4x ISCSI gateway nodes. Cluster was 
> setup via ceph-ansible v3.2-stable. I just checked my nodes and saw that only 
> two of the four configured iscsi gw nodes are working correct. I first 
> noticed via gwcli:
>
>
> ###
>
>
> $gwcli -d ls
>
> Traceback (most recent call last):
>
>   File "/usr/bin/gwcli", line 191, in 
>
> main()
>
>   File "/usr/bin/gwcli", line 103, in main
>
> root_node.refresh()
>
>   File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 87, in 
> refresh
>
> raise GatewayError
>
> gwcli.utils.GatewayError
>
>
> ###
>
>
> I investigated and noticed that both "rbd-target-api" and "rbd-target-gw" are 
> not running. I were not able to restart them via systemd. I then found that 
> even tcmu-runner is not running and it exits with the following error:
>
>
>
> ###
>
>
> tcmu_rbd_check_image_size:827 rbd/production.lun1: Mismatched sizes. RBD 
> image size 5498631880704. Requested new size 5497558138880.
>
>
> ###
>
>
> Now i have the situation that two nodes are running correct and two cant 
> start tcmu-runner. I don't know where the image size mismatches are coming 
> from - i haven't configured or resized any of the images.
>
>
> Is there any chance to get my two iscsi gw nodes back working?

It sounds like you are potentially hitting [1]. The ceph-iscsi-config
library thinks your image size is 5TiB but you actually have a 5121GiB
(~5.001TiB) RBD image. Any clue how your RBD image got to be 1GiB
larger than an even 5TiB?

>
>
>
> The following packets are installed:
>
>
> rpm -qa |egrep "ceph|iscsi|tcmu|rst|kernel"
>
>
> libtcmu-1.4.0-106.gd17d24e.el7.x86_64
>
> ceph-iscsi-cli-2.7-2.7.el7.noarch
>
> kernel-3.10.0-957.5.1.el7.x86_64
>
> ceph-base-13.2.5-0.el7.x86_64
>
> ceph-iscsi-config-2.6-2.6.el7.noarch
>
> ceph-common-13.2.5-0.el7.x86_64
>
> ceph-selinux-13.2.5-0.el7.x86_64
>
> kernel-tools-libs-3.10.0-957.5.1.el7.x86_64
>
> python-cephfs-13.2.5-0.el7.x86_64
>
> ceph-osd-13.2.5-0.el7.x86_64
>
> kernel-headers-3.10.0-957.5.1.el7.x86_64
>
> kernel-tools-3.10.0-957.5.1.el7.x86_64
>
> kernel-3.10.0-957.1.3.el7.x86_64
>
> libcephfs2-13.2.5-0.el7.x86_64
>
> kernel-3.10.0-862.14.4.el7.x86_64
>
> tcmu-runner-1.4.0-106.gd17d24e.el7.x86_64
>
>
>
> Thanks,
>
> Greets
>
>
> Kilian
>
>
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[1] https://github.com/ceph/ceph-iscsi-config/pull/68

--
Jason

___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] tcmu-runner: mismatched sizes for rbd image size

2019-10-02 Thread Jason Dillaman
On Wed, Oct 2, 2019 at 9:50 AM Kilian Ries  wrote:
>
> Hi,
>
>
> i'm running a ceph mimic cluster with 4x ISCSI gateway nodes. Cluster was 
> setup via ceph-ansible v3.2-stable. I just checked my nodes and saw that only 
> two of the four configured iscsi gw nodes are working correct. I first 
> noticed via gwcli:
>
>
> ###
>
>
> $gwcli -d ls
>
> Traceback (most recent call last):
>
>   File "/usr/bin/gwcli", line 191, in 
>
> main()
>
>   File "/usr/bin/gwcli", line 103, in main
>
> root_node.refresh()
>
>   File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 87, in 
> refresh
>
> raise GatewayError
>
> gwcli.utils.GatewayError
>
>
> ###
>
>
> I investigated and noticed that both "rbd-target-api" and "rbd-target-gw" are 
> not running. I were not able to restart them via systemd. I then found that 
> even tcmu-runner is not running and it exits with the following error:
>
>
>
> ###
>
>
> tcmu_rbd_check_image_size:827 rbd/production.lun1: Mismatched sizes. RBD 
> image size 5498631880704. Requested new size 5497558138880.
>
>
> ###
>
>
> Now i have the situation that two nodes are running correct and two cant 
> start tcmu-runner. I don't know where the image size mismatches are coming 
> from - i haven't configured or resized any of the images.
>
>
> Is there any chance to get my two iscsi gw nodes back working?

It sounds like you are potentially hitting [1]. The ceph-iscsi-config
library thinks your image size is 5TiB but you actually have a 5121GiB
(~5.001TiB) RBD image. Any clue how your RBD image got to be 1GiB
larger than an even 5TiB?

>
>
>
> The following packets are installed:
>
>
> rpm -qa |egrep "ceph|iscsi|tcmu|rst|kernel"
>
>
> libtcmu-1.4.0-106.gd17d24e.el7.x86_64
>
> ceph-iscsi-cli-2.7-2.7.el7.noarch
>
> kernel-3.10.0-957.5.1.el7.x86_64
>
> ceph-base-13.2.5-0.el7.x86_64
>
> ceph-iscsi-config-2.6-2.6.el7.noarch
>
> ceph-common-13.2.5-0.el7.x86_64
>
> ceph-selinux-13.2.5-0.el7.x86_64
>
> kernel-tools-libs-3.10.0-957.5.1.el7.x86_64
>
> python-cephfs-13.2.5-0.el7.x86_64
>
> ceph-osd-13.2.5-0.el7.x86_64
>
> kernel-headers-3.10.0-957.5.1.el7.x86_64
>
> kernel-tools-3.10.0-957.5.1.el7.x86_64
>
> kernel-3.10.0-957.1.3.el7.x86_64
>
> libcephfs2-13.2.5-0.el7.x86_64
>
> kernel-3.10.0-862.14.4.el7.x86_64
>
> tcmu-runner-1.4.0-106.gd17d24e.el7.x86_64
>
>
>
> Thanks,
>
> Greets
>
>
> Kilian
>
>
> ___
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[1] https://github.com/ceph/ceph-iscsi-config/pull/68

-- 
Jason

___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[ceph-users] tcmu-runner: mismatched sizes for rbd image size

2019-10-02 Thread Kilian Ries
Hi,


i'm running a ceph mimic cluster with 4x ISCSI gateway nodes. Cluster was setup 
via ceph-ansible v3.2-stable. I just checked my nodes and saw that only two of 
the four configured iscsi gw nodes are working correct. I first noticed via 
gwcli:


###


$gwcli -d ls

Traceback (most recent call last):

  File "/usr/bin/gwcli", line 191, in 

main()

  File "/usr/bin/gwcli", line 103, in main

root_node.refresh()

  File "/usr/lib/python2.7/site-packages/gwcli/gateway.py", line 87, in refresh

raise GatewayError

gwcli.utils.GatewayError


###


I investigated and noticed that both "rbd-target-api" and "rbd-target-gw" are 
not running. I were not able to restart them via systemd. I then found that 
even tcmu-runner is not running and it exits with the following error:



###


tcmu_rbd_check_image_size:827 rbd/production.lun1: Mismatched sizes. RBD image 
size 5498631880704. Requested new size 5497558138880.


###


Now i have the situation that two nodes are running correct and two cant start 
tcmu-runner. I don't know where the image size mismatches are coming from - i 
haven't configured or resized any of the images.


Is there any chance to get my two iscsi gw nodes back working?



The following packets are installed:


rpm -qa |egrep "ceph|iscsi|tcmu|rst|kernel"


libtcmu-1.4.0-106.gd17d24e.el7.x86_64

ceph-iscsi-cli-2.7-2.7.el7.noarch

kernel-3.10.0-957.5.1.el7.x86_64

ceph-base-13.2.5-0.el7.x86_64

ceph-iscsi-config-2.6-2.6.el7.noarch

ceph-common-13.2.5-0.el7.x86_64

ceph-selinux-13.2.5-0.el7.x86_64

kernel-tools-libs-3.10.0-957.5.1.el7.x86_64

python-cephfs-13.2.5-0.el7.x86_64

ceph-osd-13.2.5-0.el7.x86_64

kernel-headers-3.10.0-957.5.1.el7.x86_64

kernel-tools-3.10.0-957.5.1.el7.x86_64

kernel-3.10.0-957.1.3.el7.x86_64

libcephfs2-13.2.5-0.el7.x86_64

kernel-3.10.0-862.14.4.el7.x86_64

tcmu-runner-1.4.0-106.gd17d24e.el7.x86_64



Thanks,

Greets


Kilian

___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com