-
Notifications
You must be signed in to change notification settings - Fork 7
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
Relate to keystone to get credentials for exporter #4
Conversation
7adaf4a
to
686fd8b
Compare
3c33551
to
6aa7c31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small issues and some questions
@chanchiwai-ray thanks for your review! I responded to your comments; please see latest commits. :) |
Thanks @jneo8 and @chanchiwai-ray , I responded to your comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But overall it looks good to me. I don't want to be picky right now and block the PR here
8a6a474
f7e62f3
to
2ce3eb7
Compare
Save these credentials to the clouds.yaml file, so they can be used by openstack-exporter.
2ce3eb7
to
42f21d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, overall looks good, I left a comment about snap_service.restart()
.
(optional and opinionated) Can we make the non-event function without the _
prefix? It just looks nicer to me, and make me easier to visually distinguish the event callbacks and normal functions
So ideally all the other methods should have the |
Yes, I understand that, so it's optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM.
Did some basic testing with keystone:
- installed with resource -> Blocked: missing keystone relation
- relate to keystone -> Active
- curl the endpoint -> Blocked: snap service is not running (after update-status) (note this is expected with only keystone)
- changing config ssl_ca render the
clouds.yaml
Save these credentials to a clouds.yaml file,
so they can be used by openstack-exporter.
If keystone in your test environment uses https, you may need to manually set the
ssl_ca
config.internal ticket: BSENG-2172