Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1273945

Summary: System information services table doesn't respect region
Product: Red Hat OpenStack Reporter: Martin Pavlásek <mpavlase>
Component: python-django-horizonAssignee: Itxaka <iserrano>
Status: CLOSED NOTABUG QA Contact: Ido Ovadia <iovadia>
Severity: low Docs Contact:
Priority: low    
Version: 7.0 (Kilo)CC: aortega, athomas, iserrano, mpavlase, mrunge, obaranov, srevivo
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-02 10:55:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot, not modified
none
keystone endpoint-list
none
keystone service-list
none
keystone service-get 1d219df84e8f47f6a531856996e612c7
none
extra endpoints
none
Endpoints missing, expected output none

Description Martin Pavlásek 2015-10-21 14:38:33 UTC
Description of problem:
Together with Oleksii Baranov <obaranov> we discovered inconsistency in Horizon list of services:
Admin - System - System Information - Services table.

Version-Release number of selected component (if applicable):
openstack-dashboard-2015.1.0-11.el7ost.noarch
openstack-dashboard-theme-2015.1.0-11.el7ost.noarch

How reproducible:
10/10 (on one deployment)

Steps to Reproduce:
1. log in as "admin" user, that belongs to "RegionOne"
2. Admin - System - System Information - Services
3. from CLI, sourced env. vars for "admin" user
There is this output as separate attachment.
$ keystone endpoint-list
+----------------------------------+-----------+------------------------------------------------+------------------------------------------------+-------------------------------------------+----------------------------------+
|                id                |   region  |                   publicurl                    |                  internalurl                   |                  adminurl                 |            service_id            |
+----------------------------------+-----------+------------------------------------------------+------------------------------------------------+-------------------------------------------+----------------------------------+
| 0e554b1e1ed64a2aa45e676dea821acc | RegionOne |            http://127.0.0.1:8774/v3            |            http://127.0.0.1:8774/v3            |          http://127.0.0.1:8774/v3         | a24afeebb23b4958ad0d77193a37bc42 |
| 162730bddcdd49e481f233b37b0c5184 | RegionOne |   http://172.16.32.11:8776/v2/%(tenant_id)s    |   http://172.16.32.11:8776/v2/%(tenant_id)s    | http://172.16.32.11:8776/v2/%(tenant_id)s | a70b3115e9ee4593871b339c7c0c927c |
| 2fc1ddfe42944f5ba088f9b9e8a832fb | RegionOne |            http://172.16.32.11:9292            |            http://172.16.32.11:9292            |          http://172.16.32.11:9292         | ec94b7e15349490285d8ac736068a41b |
| 31bdc27e00a44b719f983e45b4102e8f | RegionOne |          http://172.16.32.11:8000/v1           |          http://172.16.32.11:8000/v1           |        http://172.16.32.11:8000/v1        | 598fb6c8cc9a47cf9e33af9257d231c6 |
| 393629d4188f4a94be054b0887aa577a | RegionOne |    http://172.16.32.11:8773/services/Cloud     |    http://172.16.32.11:8773/services/Cloud     |  http://172.16.32.11:8773/services/Admin  | c7136ce160a24d36b1e3e14803d92029 |
| 5a2f0f57da7f408e876d75b826b6576f | RegionOne |         http://172.16.32.11:5000/v2.0          |         http://172.16.32.11:5000/v2.0          |       http://172.16.32.11:35357/v2.0      | d7bf0ad168e7477bb0ba46847ec281b9 |
| 7fddfabcfa214bbba72ebe33f1bfd046 | RegionOne |   http://172.16.32.11:8004/v1/%(tenant_id)s    |   http://172.16.32.11:8004/v1/%(tenant_id)s    | http://172.16.32.11:8004/v1/%(tenant_id)s | dc9afa797d1a4b9da6171b4ccd663519 |
| 9a3fd94111f0458da96ac4a29cd4e49e | RegionOne |            http://172.16.32.11:9696            |            http://172.16.32.11:9696            |          http://172.16.32.11:9696         | 50962d65ce754d03b6aa4c1e5100e56e |
| a0f47771a9b94cc19c6cb96aa2d1f672 | RegionOne | http://172.16.32.11:8080/v1/AUTH_%(tenant_id)s | http://172.16.32.11:8080/v1/AUTH_%(tenant_id)s |          http://172.16.32.11:8080         | 1246824559b341778741f552fabd1a62 |
| a5b193d4d5704e62b86b0e21077521a5 | RegionOne |   http://172.16.32.11:8776/v1/%(tenant_id)s    |   http://172.16.32.11:8776/v1/%(tenant_id)s    | http://172.16.32.11:8776/v1/%(tenant_id)s | 60d384caa3aa41b4b339406f329e054d |
| b5f0dc8e99964299bb7963f55a68e8cf | regionOne |            http://172.16.32.11:3333            |            http://172.16.32.11:3333            |          http://172.16.32.11:3333         | 1d219df84e8f47f6a531856996e612c7 |
| dd4a8d5fc55845859eea9136e1c9984b | RegionOne |            http://172.16.32.11:8777            |            http://172.16.32.11:8777            |          http://172.16.32.11:8777         | 8158641e318e4c6b8fd31540426050f7 |
| df7dd4ced36640fe8b8919e2e61bb8a3 | RegionOne |   http://172.16.32.11:8774/v2/%(tenant_id)s    |   http://172.16.32.11:8774/v2/%(tenant_id)s    | http://172.16.32.11:8774/v2/%(tenant_id)s | 13a10340859c4e52a22398b180ed7cb3 |
+----------------------------------+-----------+------------------------------------------------+------------------------------------------------+-------------------------------------------+----------------------------------+

$ keystone service-list
+----------------------------------+------------+----------------+----------------------------------+
|                id                |    name    |      type      |           description            |
+----------------------------------+------------+----------------+----------------------------------+
| 8158641e318e4c6b8fd31540426050f7 | ceilometer |    metering    |    Openstack Metering Service    |
| 60d384caa3aa41b4b339406f329e054d |   cinder   |     volume     |          Cinder Service          |
| a70b3115e9ee4593871b339c7c0c927c |  cinderv2  |    volumev2    |        Cinder Service v2         |
| ec94b7e15349490285d8ac736068a41b |   glance   |     image      |     OpenStack Image Service      |
| dc9afa797d1a4b9da6171b4ccd663519 |    heat    | orchestration  | Openstack Orchestration Service  |
| 598fb6c8cc9a47cf9e33af9257d231c6 |  heat-cfn  | cloudformation | Openstack Cloudformation Service |
| d7bf0ad168e7477bb0ba46847ec281b9 |  keystone  |    identity    |    OpenStack Identity Service    |
| 50962d65ce754d03b6aa4c1e5100e56e |  neutron   |    network     |    Neutron Networking Service    |
| 13a10340859c4e52a22398b180ed7cb3 |    nova    |    compute     |    Openstack Compute Service     |
| c7136ce160a24d36b1e3e14803d92029 |  nova_ec2  |      ec2       |           EC2 Service            |
| a24afeebb23b4958ad0d77193a37bc42 |   novav3   |   computev3    |   Openstack Compute Service v3   |
| 1246824559b341778741f552fabd1a62 |   swift    |  object-store  |  Openstack Object-Store Service  |
| 1d219df84e8f47f6a531856996e612c7 |  swift_s3  |       s3       |       Openstack S3 Service       |
+----------------------------------+------------+----------------+----------------------------------+


4. list of services/endpoints in Horizon contains also items from different region, "regionOne" (lower/uppper letter "r") - check "swift_s3" service on screenshot

Actual results:
swift_s3 service belong to "regionOne", but it is listed in "RegionOne" also - it shouldn't.

Expected results:
only services belonging to selected region would be showed up.

Additional info:

Comment 2 Martin Pavlásek 2015-10-21 14:40:50 UTC
Created attachment 1085180 [details]
screenshot, not modified

Comment 3 Martin Pavlásek 2015-10-21 14:42:47 UTC
Created attachment 1085181 [details]
keystone endpoint-list

Comment 4 Martin Pavlásek 2015-10-21 14:43:38 UTC
Created attachment 1085182 [details]
keystone service-list

Comment 5 Martin Pavlásek 2015-10-21 14:44:21 UTC
Created attachment 1085183 [details]
keystone service-get 1d219df84e8f47f6a531856996e612c7

Comment 6 Itxaka 2016-04-25 11:17:27 UTC
Martin,

I am unable to reproduce this on rhos7.

I created several endpoints:

keystone endpoint-create --region Regionone --service swift_s3 --publicurl http://google.com --adminurl http://google.com --internalurl http://google.com

keystone endpoint-create --region waaaa --service swift_s3 --publicurl http://google.com --adminurl http://google.com --internalurl http://google.com

keystone endpoint-create --region regionone --service swift_s3 --publicurl http://google.com --adminurl http://google.com --internalurl http://google.com



keystone endpoint-list

+----------------------------------+-----------+-------------------------------------------------+-------------------------------------------------+----------------------------------------------+----------------------------------+
|                id                |   region  |                    publicurl                    |                   internalurl                   |                   adminurl                   |            service_id            |
+----------------------------------+-----------+-------------------------------------------------+-------------------------------------------------+----------------------------------------------+----------------------------------+
| 24d43b0a25304ffaab1c275b1b4f0847 | RegionOne |    http://192.168.1.150:8776/v1/%(tenant_id)s   |    http://192.168.1.150:8776/v1/%(tenant_id)s   |  http://192.168.1.150:8776/v1/%(tenant_id)s  | 10b89225067f4cb6be14565bbfeab089 |
| 37d070410e3d44e38ead1c9e0bc87f33 | RegionOne |   http://192.168.1.150:8779/v1.0/%(tenant_id)s  |   http://192.168.1.150:8779/v1.0/%(tenant_id)s  | http://192.168.1.150:8779/v1.0/%(tenant_id)s | 40efc8fffaa547e3be0b19d494c76b62 |
| 423733b63f3c4c6d89dceeb29ba1c618 | RegionOne |                  192.168.1.150                  |                  192.168.1.150                  |                192.168.1.150                 | e792f93904cd4711812fd0198ed79e82 |
| 51b808927a8b4eb4990873d5673e81c7 | RegionOne |             http://127.0.0.1:8774/v3            |             http://127.0.0.1:8774/v3            |           http://127.0.0.1:8774/v3           | 18e50425443941c8a412c07638b8eb90 |
| 5a1d5cd55670407fb55ae81a8220b099 | RegionOne |            http://192.168.1.150:9292            |            http://192.168.1.150:9292            |          http://192.168.1.150:9292           | 75ec1b6cba0a4dbaa5fc53631fd80554 |
| 5b4fe8673f4e48d8bfe9ff1a1ab159b5 | RegionOne |     http://192.168.1.150:8773/services/Cloud    |     http://192.168.1.150:8773/services/Cloud    |   http://192.168.1.150:8773/services/Admin   | 28736c9703304030b69649c32be6c473 |
| 65a57a77ad6244e4838f2e37e3e702a9 | RegionOne |            http://192.168.1.150:8777            |            http://192.168.1.150:8777            |          http://192.168.1.150:8777           | 6c27c312e50d41f181ee3ad62a3cea0c |
| 6bb1e5e1985e4842a4acc8a181c89301 | Regionone |                http://google.com                |                http://google.com                |              http://google.com               | e31d04d5729e4cb985f48d411f441f62 |
| 6e8b4cb8f3cf4061b6a6a6ed23320e31 |   waaaa   |                http://google.com                |                http://google.com                |              http://google.com               | e31d04d5729e4cb985f48d411f441f62 |
| 75ff5798b77f435bac5c7f7d09f5153e | RegionOne |    http://192.168.1.150:8776/v2/%(tenant_id)s   |    http://192.168.1.150:8776/v2/%(tenant_id)s   |  http://192.168.1.150:8776/v2/%(tenant_id)s  | 314ee09dafc7476aaf552d4839b4265e |
| 8988a16ecf234138bf4e83f7e31de06a | RegionOne | http://192.168.1.150:8080/v1/AUTH_%(tenant_id)s | http://192.168.1.150:8080/v1/AUTH_%(tenant_id)s |          http://192.168.1.150:8080           | 077fd0fca9d64d1cba7e5a533aee9ff4 |
| 99ef8e8dfcd24a1a8a1621b52af7b345 | RegionOne |          http://192.168.1.150:5000/v2.0         |          http://192.168.1.150:5000/v2.0         |       http://192.168.1.150:35357/v2.0        | 434cb662e86c431385ac827f941cb1d7 |
| b81692b11eb446a98ac14f7282c7ace8 | RegionOne |    http://192.168.1.150:8004/v1/%(tenant_id)s   |    http://192.168.1.150:8004/v1/%(tenant_id)s   |  http://192.168.1.150:8004/v1/%(tenant_id)s  | 4959f332483f4d6aa2ee22992f047b4e |
| bbd7bb0a2c3f490599f97c391d7a2376 | RegionOne |            http://192.168.1.150:8080            |            http://192.168.1.150:8080            |          http://192.168.1.150:8080           | e31d04d5729e4cb985f48d411f441f62 |
| d51733c28f844d9eb9c2b8eb64496e1b | RegionOne |    http://192.168.1.150:8774/v2/%(tenant_id)s   |    http://192.168.1.150:8774/v2/%(tenant_id)s   |  http://192.168.1.150:8774/v2/%(tenant_id)s  | 2d505451cc8c4582b082e0cd1ff55cd5 |
| dcafdafa943145e989bb9e85747638d5 | regionone |                http://google.com                |                http://google.com                |              http://google.com               | e31d04d5729e4cb985f48d411f441f62 |
| fc31e644691c4b218db8e5843fa866aa | Regionone |                http://google.com                |                http://google.com                |              http://google.com               | 2d505451cc8c4582b082e0cd1ff55cd5 |
| fe89106221c14eecb170d85585cce05a | RegionOne |            http://192.168.1.150:9696            |            http://192.168.1.150:9696            |          http://192.168.1.150:9696           | 76df182f77c74fc0a993a6df1e478389 |
+----------------------------------+-----------+-------------------------------------------------+-------------------------------------------------+----------------------------------------------+----------------------------------+



But instead of getting the modified ones in my list, I just get the proper ones and get extra regions for the other ones created. See attached image.


Can you tell me how did you changed the name to the endpoint? Did you modify it in the database directly?

Comment 7 Itxaka 2016-04-25 11:17:54 UTC
Created attachment 1150405 [details]
extra endpoints

Comment 8 Itxaka 2016-04-25 11:22:12 UTC
Im just thinking that if you modified from database directly then this is the expected output.

What it shows on your attachements seems to be that there is a service on the services table called s3 (swift_s3) but it could not find an endpoint for that service in the current region.

I can reproduce it if I change to one of the fake regions that I created which only have one endpoint, see attachement.

From my pòint of view, this is not a bug, its the expected result, but I'll await Martin's comments on this before closing it.

Comment 9 Itxaka 2016-04-25 11:22:37 UTC
Created attachment 1150406 [details]
Endpoints missing, expected output

Comment 10 Martin Pavlásek 2016-04-26 15:40:57 UTC
I didn't change name of service even touch database directly. The service was created by packstack.

Comment 12 Itxaka 2016-04-29 09:49:06 UTC
Martin,

to me this seems the correct output.

What it shows on your attachements seems to be that there is a service on the services table called s3 (swift_s3) but it could not find an endpoint for that service in the current region, thus it shows it as yellow and with no address.

That it appears on the tables doesn't mean that it mistakenly used the wrongly named endpoint. It means that there is a service on the database for swift but on the current region there is no endpoint. The separation is so clear that it even allows you to change regions to the mistakenly named region in the region selector. 


Now, if the issue here is why that service was called differently then we should move that to packstack, but this is not a bug, is behaving properly.


Please let me know if Im missing the point of the issue before I close it.

Thanks!

Comment 13 Martin Pavlásek 2016-04-29 14:11:30 UTC
Hi Itxaka,

thank you for your comment, now I understand it properly. I agree, this behavior from Horizon side is correct.

Actually I think there is bug in packstack, because all services should belongs to same region (and not RegionOne/regionOne). What do you think, file a new bug, or just update this one?

Comment 14 Itxaka 2016-04-29 14:36:24 UTC
Martin,

I think a new bug would be the proper way as to not have extra comments on it that have nothing to do with it, but I dont mind if you reuse this one.

Cheers,
Itxaka

Comment 15 Martin Pavlásek 2016-05-02 10:55:57 UTC
Sounds reasonable, I'll fill a new bug about it. Closing as not-a-bug.

Thank you for cooperation,
Martin