Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround the URL formatting issue for product streams #745

Conversation

ajkavanagh
Copy link
Contributor

When glance-simplestreams-sync charm registers the 'product-streams'
endpoint it uses a trailing slash. It's not clear whether this is a bug
or not, and the behaviour may have changed in 2021. The impact is that
the test fails, as it attempts to fetch with two '//' in the URL. This
patch works around the test issue. It's not clear whether endpoints
MUST be registered without a trailing slash or not; it would appear that
most are not, but a quick glance at ServerStack show a few with trailing
slashes.

When glance-simplestreams-sync charm registers the 'product-streams'
endpoint it uses a trailing slash.  It's not clear whether this is a bug
or not, and the behaviour may have changed in 2021.  The impact is that
the test fails, as it attempts to fetch with two '//' in the URL.  This
patch works around the test issue.  It's not clear whether endpoints
MUST be registered without a trailing slash or not; it would appear that
most are not, but a quick glance at ServerStack show a few with trailing
slashes.
@ajkavanagh ajkavanagh force-pushed the workaround-product-streams-url branch from ae3cf12 to cccf227 Compare April 11, 2022 10:42
openstack-mirroring pushed a commit to openstack/charm-glance-simplestreams-sync that referenced this pull request Apr 11, 2022
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga

func-test-pr: openstack-charmers/zaza-openstack-tests#745
Change-Id: I118ac221202fb02fc440a21910235fbc645a54c8
openstack-mirroring pushed a commit to openstack/openstack that referenced this pull request Apr 11, 2022
* Update charm-glance-simplestreams-sync from branch 'master'
  to de4f9a6a978e0821d4a7a13507d1e93be5ef7f3d
  - Updates to enable jammy and finalise charmcraft builds
    
    - Add 22.04 to charmcraft.yaml
    - Update metadata to include jammy
    - Remove impish from metadata
    - Update osci.yaml to include py3.10 default job
    - Modify tox.ini to remove py35,py36,py37 tox target and add py310
      target.
    - ensure that the openstack-origin is yoga
    
    func-test-pr: openstack-charmers/zaza-openstack-tests#745
    Change-Id: I118ac221202fb02fc440a21910235fbc645a54c8
Copy link
Contributor

@gnuoy gnuoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ajkavanagh
Copy link
Contributor Author

I'm closing this as I've fixed it in the charm (https://review.opendev.org/c/openstack/charm-glance-simplestreams-sync/+/837396) and thus this isn't needed and would mask an actual bug.

@ajkavanagh ajkavanagh closed this Apr 17, 2022
@ajkavanagh ajkavanagh deleted the workaround-product-streams-url branch April 17, 2022 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants