keystone::endpoint::version set to empty has no effect

Bug #1529374 reported by Emilien Macchi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-keystone
Invalid
High
Sofer Athlan-Guyot

Bug Description

How to reproduce it:
Setting keystone::endpoint::version to '' (empty)
Run Puppet

Result:

[centos@jenkins ~]$ openstack endpoint list
+----------------------------------+-----------+--------------+--------------+
| ID | Region | Service Name | Service Type |
+----------------------------------+-----------+--------------+--------------+
| 83d1bea522fd49cdb854e26d8c346468 | RegionOne | cinder | volume |
| 15b6de37626d405190a272d81192bf39 | RegionOne | novav3 | computev3 |
| 36348b09bad04d4b9cade94072cdb74c | RegionOne | keystone | identity |
| b3534196257c481eafa247183ebbcb4b | RegionOne | nova_ec2 | ec2 |
| e196d2eec23d4378bf58c86018dcc363 | RegionOne | glance | image |
| 09b9e8afd38e420092c431d5120c5264 | RegionOne | neutron | network |
| dde1555e38c045f9b7d57891d5741fb6 | RegionOne | nova | compute |
| 0bd5083f8c91475ebb82e8cb457d8070 | RegionOne | cinderv2 | volumev2 |
+----------------------------------+-----------+--------------+--------------+
[centos@jenkins ~]$ openstack endpoint show 36348b09bad04d4b9cade94072cdb74c
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| adminurl | http://127.0.0.1:35357/v2.0 |
| enabled | True |
| id | 36348b09bad04d4b9cade94072cdb74c |
| internalurl | http://127.0.0.1:5000/v2.0 |
| publicurl | http://127.0.0.1:5000/v2.0 |
| region | RegionOne |
| service_id | f9c5936bbf3349fb85c619c8f08cdb66 |
| service_name | keystone |
| service_type | identity |
+--------------+----------------------------------+

Expected result:
having endpoints without versions.

Changed in puppet-keystone:
importance: Undecided → High
Changed in puppet-keystone:
assignee: nobody → Sofer Athlan-Guyot (sofer-athlan-guyot)
Changed in puppet-keystone:
status: New → Confirmed
Revision history for this message
Sofer Athlan-Guyot (sofer-athlan-guyot) wrote :
Download full text (3.5 KiB)

Cannot reproduce the bug.

I deployed openstack using puppet-openstack-integratrion, scenario003. After a
successful installation I made this diff:

    --- /etc/puppet/modules/openstack_integration/manifests/keystone.pp.orig 2016-01-04 14:42:43.652000000 -0500
    +++ /etc/puppet/modules/openstack_integration/manifests/keystone.pp 2016-01-04 14:37:14.726000000 -0500
    @@ -24,6 +24,7 @@
       }
       class { '::keystone::endpoint':
         default_domain => 'admin',
    + version => '',
       }
     }

And then re-run:

    puppet apply -d /etc/puppet/modules/openstack_integration/fixtures/scenario003.pp

Got this is the log:

    Notice: /Stage[main]/Keystone::Endpoint/Keystone::Resource::Service_identity[keystone]/Keystone_endpoint[RegionOne/keystone::identity]/public_url: public_url changed 'http://127.0.0.1:5000/v2.0' to 'http://127.0.
    0.1:5000'
    Notice: /Stage[main]/Keystone::Endpoint/Keystone::Resource::Service_identity[keystone]/Keystone_endpoint[RegionOne/keystone::identity]/internal_url: internal_url changed 'http://127.0.0.1:5000/v2.0' to 'http://12
    7.0.0.1:5000'
    Notice: /Stage[main]/Keystone::Endpoint/Keystone::Resource::Service_identity[keystone]/Keystone_endpoint[RegionOne/keystone::identity]/admin_url: admin_url changed 'http://127.0.0.1:35357/v2.0' to 'http://127.0.0
    .1:35357'

And then:

    openstack --os-username admin --os-password a_big_secret --os-tenant-name openstack --os-auth-url http://127.0.0.1:5000/v2.0 endpoint list
    +----------------------------------+-----------+--------------+--------------+
    | ID | Region | Service Name | Service Type |
    +----------------------------------+-----------+--------------+--------------+
    | 5c1233e713e04b169b844476e095fdce | RegionOne | keystone | identity |
    | c14d35a32b4048acb5e3e032e7d02a75 | RegionOne | cinderv2 | volumev2 |
    | 249754f6d457487a8f18f3c36ed9e1c7 | RegionOne | glance | image |
    | 8599334857854ca08dd09cdeb70a4438 | RegionOne | novav3 | computev3 |
    | 83bb1d5f2c0243a9a4961cb85481a060 | RegionOne | cinder | volume |
    | d103d19fc2584a5ab4a53af212a988ed | RegionOne | neutron | network |
    | b1b4f9b3fd844503b5354e3d379ff34f | RegionOne | nova | compute |
    | 54cf345b9d24424eb6ec0c8fcce4d7b0 | RegionOne | nova_ec2 | ec2 |
    +----------------------------------+-----------+--------------+--------------+

followed by:

    openstack --os-username admin --os-password a_big_secret --os-tenant-name openstack --os-auth-url http://127.0.0.1:5000/v2.0 endpoint show 5c1233e713e04b169b844476e095fdce
    +--------------+----------------------------------+
    | Field | Value |
    +--------------+----------------------------------+
    | adminurl | http://127.0.0.1:35357 |
    | enabled | True |
    | id | 5c1233e713e04b169b844476e095fdce |
    | internalurl | http://127.0.0.1:5000 |
    | publicurl | http://127.0.0.1:5000 |
    | region | RegionOne ...

Read more...

Revision history for this message
Sofer Athlan-Guyot (sofer-athlan-guyot) wrote :

The real problem is on the tempest side: check this bug https://bugs.launchpad.net/tempest/+bug/1531917

No problem whatsoever with the puppet module except that it is ahead of its time :)

Changed in puppet-keystone:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers