_determine_version can't parse endpoint with trailing slash

Bug #1964544 reported by Brian Holmes
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Openstack Integrator Charm
Fix Released
Medium
Adam Dyess

Bug Description

When openstack-integrator attempts to parse the Keystone API endpoint URL within the _determine_version function, the regular expression (lib/charms/layer/openstack.py:323) fails to match if the URL happens to include a trailing slash character. If the other strategies for detecting the Keystone version are unsuccessful as well, the "install" hook aborts.

The trivial patch I used to allow matching with a trailing slash is attached.

Revision history for this message
Brian Holmes (holmesb5) wrote :
Revision history for this message
Adam Dyess (addyess) wrote :
Changed in charm-openstack-integrator:
importance: Undecided → Medium
milestone: none → 1.28
status: New → Triaged
Adam Dyess (addyess)
Changed in charm-openstack-integrator:
assignee: nobody → Adam Dyess (addyess)
status: Triaged → Fix Committed
Adam Dyess (addyess)
Changed in charm-openstack-integrator:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.