Bug 1934989 - [RFE][Deployment] Add TripleO support for configuring glance distributed image import
Summary: [RFE][Deployment] Add TripleO support for configuring glance distributed imag...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: z3
: 17.1
Assignee: Pranali Deore
QA Contact: msava
URL:
Whiteboard:
: 2174876 (view as bug list)
Depends On: 1712001 2174885
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-04 07:12 UTC by Pranali Deore
Modified: 2024-04-12 09:32 UTC (History)
16 users (show)

Fixed In Version: openstack-tripleo-heat-templates-14.3.1-1.20230519151015.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-10 09:53:21 UTC
Target Upstream Version: Xena
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 780810 0 None MERGED Add new conf parameter required for distribute image import 2021-03-24 06:54:11 UTC
OpenStack gerrit 782636 0 None MERGED Allow configuring distributed image import 2023-04-04 13:05:16 UTC
OpenStack gerrit 814257 0 None MERGED Allow configuring distributed image import 2023-04-04 13:05:17 UTC
Red Hat Issue Tracker OSP-672 0 None None None 2022-01-05 15:34:15 UTC

Description Pranali Deore 2021-03-04 07:12:06 UTC
Description of problem:

Glance added support of distributed image import and to make it work new configuration parameter 'worker_self_reference_url' has been added.

The parameter needs to be added in puppet-glance, puppet-tripleo & THT.


Ref: 1. https://blueprints.launchpad.net/glance/+spec/distributed-image-import
     2. https://review.opendev.org/c/openstack/glance/+/769976


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 13 msava 2023-03-08 06:57:01 UTC
OOO does not configured corectly parameters. There is two problems here. 

Description of problem 1:
--------------------------
TripleO configure same worker_self_reference_url for all controllers then we deploy with glance-direct parameter

Version-Release number of selected component (if applicable):


How reproducible:
parameters_defaults:
     GlanceEnabledImportMethods: web-download,glance-direct

Steps to Reproduce:
1.Deploy with glance-direct parameter
2.Check worker_self_reference_url on each controller
3.

Actual results:
Same worker_self_reference_url for all controllers

Expected results:
Should be individual reference directly to the controller node itself


Description of problem 2:
--------------------------
TripleO does not configure os_glance_staging_store correctly but uses the single store config notation of setting staging uri instead

Version-Release number of selected component (if applicable):


How reproducible:
parameters_defaults:
     GlanceEnabledImportMethods: web-download,glance-direct

Steps to Reproduce:
1.Deploy with glance-direct parameter
2.Check if this parameter setted in glance configuration
[os_glance_staging_store]
filesystem_store_datadir = /var/lib/glance/staging
3.

Actual results:
node_staging_uri=file:///var/lib/glance/staging/

Expected results:
[os_glance_staging_store]
filesystem_store_datadir = /var/lib/glance/staging

Comment 14 msava 2023-03-08 07:16:45 UTC
*** Bug 2174885 has been marked as a duplicate of this bug. ***

Comment 15 msava 2023-03-08 07:17:17 UTC
*** Bug 2174876 has been marked as a duplicate of this bug. ***

Comment 16 Abhishek Kekane 2023-03-09 05:37:30 UTC
(In reply to msava from comment #13)
> OOO does not configured corectly parameters. There is two problems here. 
> 
> Description of problem 1:
> --------------------------
> TripleO configure same worker_self_reference_url for all controllers then we
> deploy with glance-direct parameter
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> parameters_defaults:
>      GlanceEnabledImportMethods: web-download,glance-direct
> 
> Steps to Reproduce:
> 1.Deploy with glance-direct parameter
> 2.Check worker_self_reference_url on each controller
> 3.
> 
> Actual results:
> Same worker_self_reference_url for all controllers
> 
> Expected results:
> Should be individual reference directly to the controller node itself
> 
> 
> Description of problem 2:
> --------------------------
> TripleO does not configure os_glance_staging_store correctly but uses the
> single store config notation of setting staging uri instead
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> parameters_defaults:
>      GlanceEnabledImportMethods: web-download,glance-direct
> 
> Steps to Reproduce:
> 1.Deploy with glance-direct parameter
> 2.Check if this parameter setted in glance configuration
> [os_glance_staging_store]
> filesystem_store_datadir = /var/lib/glance/staging
> 3.
> 
> Actual results:
> node_staging_uri=file:///var/lib/glance/staging/
> 
> Expected results:
> [os_glance_staging_store]
> filesystem_store_datadir = /var/lib/glance/staging

Hey Maxim,

Could you please add generated glance-api.conf here for reference?

Abhishek

Comment 28 msava 2023-06-09 11:46:54 UTC
Verified
--------
Setup:
1.Environment with 3 controllers
2.openstack-tripleo-heat-templates-14.3.1-1.20230519151010.el9ost.noarch
3.Red Hat OpenStack Platform release 17.1.0 Beta (Wallaby)
4.glance-api.conf file

[DEFAULT]
image_member_quota=128
show_image_direct_url=False
show_multiple_locations=False
node_staging_uri=file:///var/lib/glance/staging
enabled_import_methods=[web-download,glance-direct]
worker_self_reference_url=http://172.17.1.30:9293
bind_host=172.17.1.30
bind_port=9292
workers=4
enabled_backends=default_backend:rbd
image_cache_dir=/var/lib/glance/image-cache
debug=True
log_file=/var/log/glance/api.log
log_dir=/var/log/glance
transport_url=rabbit://guest:VCHwHgIfeutk0K5WC88kCAD1B.redhat.local:5672,guest:VCHwHgIfeutk0K5WC88kCAD1B.redhat.local:5672,guest:VCHwHgIfeutk0K5WC88kCAD1B.redhat.local:5672/?ssl=0
[cinder]
[cors]
[database]
connection=mysql+pymysql://glance:k5Oy5ixYoWwnqzBjvDYqtyBf6.1.140/glance?read_default_file=/etc/my.cnf.d/tripleo.cnf&read_default_group=tripleo
[file]
[glance.store.http.store]
[glance.store.rbd.store]
[glance.store.s3.store]
[glance.store.swift.store]
[glance.store.vmware_datastore.store]
[glance_store]
default_backend=default_backend
[image_format]
[keystone_authtoken]
www_authenticate_uri=http://10.0.0.118:5000
interface=internal
region_name=regionOne
memcached_servers=controller-0.internalapi.redhat.local:11211,controller-1.internalapi.redhat.local:11211,controller-2.internalapi.redhat.local:11211
memcache_use_advanced_pool=True
auth_type=password
auth_url=http://172.17.1.140:5000
username=glance
password=k5Oy5ixYoWwnqzBjvDYqtyBf6
user_domain_name=Default
project_name=service
project_domain_name=Default
[oslo_concurrency]
lock_path=/var/lib/glance/tmp
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
driver=noop
transport_url=rabbit://guest:VCHwHgIfeutk0K5WC88kCAD1B.redhat.local:5672,guest:VCHwHgIfeutk0K5WC88kCAD1B.redhat.local:5672,guest:VCHwHgIfeutk0K5WC88kCAD1B.redhat.local:5672/?ssl=0
[oslo_messaging_rabbit]
heartbeat_in_pthread=False
[oslo_middleware]
enable_proxy_headers_parsing=True
[oslo_policy]
policy_file=/etc/glance/policy.yaml
[paste_deploy]
flavor=keystone
[profiler]
[store_type_location_strategy]
[task]
[taskflow_executor]
[wsgi]
[key_manager]
backend=barbican
[barbican]
barbican_endpoint=http://172.17.1.140:9311
auth_endpoint=http://172.17.1.140:5000
[default_backend]
rbd_store_ceph_conf=/etc/ceph/ceph.conf
rbd_store_user=openstack
rbd_store_pool=images
rbd_thin_provisioning=False
store_description=Default glance store backend.

Test:
-----
As we see different worker_self_reference_url parameters on 3 controllers. 
List of worker_self_url parameters:

Warning: Permanently added 'controller-0.ctlplane' (ED25519) to the list of known hosts.
http://172.17.1.30:9293

Warning: Permanently added 'controller-1.ctlplane' (ED25519) to the list of known hosts.
http://172.17.1.133:9293

Warning: Permanently added 'controller-2.ctlplane' (ED25519) to the list of known hosts.
http://172.17.1.36:9293

Comment 43 Lon Hohberger 2023-08-16 10:33:59 UTC
According to our records, this should be resolved by openstack-tripleo-heat-templates-14.3.1-1.20230519151020.el9ost.  This build is available now.

Comment 46 Gregory Charot 2023-10-26 08:48:44 UTC
Moving to Z3 because of QE capacity


Note You need to log in before you can comment on or make changes to this bug.