Friday, 2024-09-20

opendevreviewRajat Dhasmana proposed openstack/cinder stable/2023.1: Add cinder-manage command to update service_uuid  https://review.opendev.org/c/openstack/cinder/+/92999305:15
kpdevhi core-folks,, I need review on https://review.opendev.org/c/openstack/cinder/+/847536, expecting to land in rc106:31
*** geguileo is now known as Guest400508:05
razoffHi everyone ! I have a question for the cinder community. I am developping a homemade cinder backup driver (extends from chunkeddriver.ChunkedBackupDriver) and I cannot figure out how to know if from the CLI the --incremental parameter is set. Can anybody help me ?08:49
opendevreviewRajat Dhasmana proposed openstack/cinder master: Fix: Unset default type for non-existent project  https://review.opendev.org/c/openstack/cinder/+/93000909:43
opendevreviewLuigi Toscano proposed openstack/cinder-tempest-plugin master: DNM Test ceph deps  https://review.opendev.org/c/openstack/cinder-tempest-plugin/+/93001711:45
toskyhello! This change should significantly cut the running time of one of the gate jobs: https://review.opendev.org/c/openstack/cinder-tempest-plugin/+/92931611:57
rosmaitarazoff: the CLI calls the cinder REST API, which processes the flag here:12:35
rosmaitahttps://github.com/openstack/cinder/blob/master/cinder/api/contrib/backups.py#L16712:35
rosmaitaand then passes it to the backup api here:12:35
rosmaitahttps://github.com/openstack/cinder/blob/master/cinder/api/contrib/backups.py#L19012:35
rosmaitawhich receives it here:12:35
rosmaitahttps://github.com/openstack/cinder/blob/master/cinder/backup/api.py#L22412:35
rosmaitaand processes it here to get the 'parent' and 'parent_id':12:35
rosmaitahttps://github.com/openstack/cinder/blob/master/cinder/backup/api.py#L26912:35
rosmaitaand then creates a backup object that gets handed off to the rpc api12:35
rosmaitaso by the time the driver sees the backup object, there is no 'incremental' flag12:35
rosmaitawhether it's incremental is based on having a non-None parent or parent_id, for example:12:35
rosmaitahttps://github.com/openstack/cinder/blob/master/cinder/backup/chunkeddriver.py#L52912:35
rosmaitarazoff: ^^12:35
opendevreviewMerged openstack/cinder stable/2023.1: Add cinder-manage command to update service_uuid  https://review.opendev.org/c/openstack/cinder/+/92999313:57
razoffThanks rosmaita. I am facing an issue where --incremental seems to be ignored. 14:02
razoffAny advice on how to debug cinder when it is called from the cli ?14:03
rosmaitarazoff: which CLI are you using? cinderclient or openstackclient?14:03
razoffopenstack client I think I usually do openstack volume backup create --incremental ...14:03
rosmaitarazoff: if you make your call start with 'openstack --debug ...' i think it will print out the API requests it is making, and you can at least verify that the flag is being passed to the cinder API14:07
razoffWith debug activated I find that run(Namespace(formatter='json', columns=[], noindent=False, variables=[], prefix='', max_width=0, fit_width=False, print_empty=False, volume='7fd5ec3b-6eef-48b5-aa86-6afb51e3aec7', name='fb1a0304-8ec5-42ec-8b08-e9f9a8f8d128_1726838355', description='description', container=None, snapshot='<snapshotid>, force=True, incremental=True, no_incremental=True, ..14:12
razoffThere is a incremental=true and no_incremental=true might that be an issue ?14:12
razoffopenstack volume backup create --force --incremental --format json --name fb1a0304-8ec5-42ec-8b08-e9f9a8f8d128_1726838355 --description "description" --snapshot 067ae403-dc56-49e1-9668-9ae536165296 --debug 7fd5ec3b-6eef-48b5-aa86-6afb51e3aec714:14
razoffThis is the command I ran to get this output in the debug14:14
rosmaitarazoff: that looks weird (the no_incremental flag)14:18
rosmaitaalso, i wonder whether that's the formatting for the response or something14:19
opendevreviewTakashi Kajinami proposed openstack/cinder master: Record the original size when creating an image from a volume  https://review.opendev.org/c/openstack/cinder/+/80458414:57
opendevreviewEric Harney proposed openstack/cinder stable/2024.1: Optimize rbd upload volume to image  https://review.opendev.org/c/openstack/cinder/+/93007115:05
*** geguileo is now known as Guest403615:16
opendevreviewRajat Dhasmana proposed openstack/cinder stable/2024.2: Add cinder-manage command to update service_uuid  https://review.opendev.org/c/openstack/cinder/+/93007215:42
opendevreviewEric Harney proposed openstack/cinder master: Huawei hypermetro: RECOVERYPOLICY typo  https://review.opendev.org/c/openstack/cinder/+/92550115:49
opendevreviewLuigi Toscano proposed openstack/cinder-tempest-plugin master: Port to the tempest stable plugin interface (clients)  https://review.opendev.org/c/openstack/cinder-tempest-plugin/+/92962015:54
opendevreviewMerged openstack/cinder stable/2024.2: Add cinder-manage command to update service_uuid  https://review.opendev.org/c/openstack/cinder/+/93007216:43
opendevreviewLuigi Toscano proposed openstack/cinder-tempest-plugin master: Use the proper condition for volume encryption transfer tests  https://review.opendev.org/c/openstack/cinder-tempest-plugin/+/93008520:14

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!