Skip to content

Improve rbd keyring tests for cinder and glance#71

Open
cedlecomte wants to merge 2 commits intoredhat-cip:masterfrom
cedlecomte:master
Open

Improve rbd keyring tests for cinder and glance#71
cedlecomte wants to merge 2 commits intoredhat-cip:masterfrom
cedlecomte:master

Conversation

@cedlecomte
Copy link
Copy Markdown
Member

We had a check on the file's permissions and the way we manage the rbd
detection.

Co-Authored-By: Dimitri Savineau dimitri.savineau@enovance.com

@fcharlier
Copy link
Copy Markdown
Member

👍 looks good !

Didn't look, but are there the same tests for the glance keyring and for the keyrings on the compute nodes ?

@EmilienM
Copy link
Copy Markdown
Contributor

before merging, I'm waiting for the same in hypervisor ;-)

We had a check on the file's permissions and the way we manage the rbd
detection.

Co-Authored-By: Dimitri Savineau <dimitri.savineau@enovance.com>
@cedlecomte cedlecomte changed the title Improve rbd keyring tests for cinder Improve rbd keyring tests for cinder and glance Apr 24, 2015
@cedlecomte
Copy link
Copy Markdown
Member Author

I added the glance tests like @fcharlier asked. Tell me if it's not enough.

@fcharlier
Copy link
Copy Markdown
Member

👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this REGEX is dangerous. I deployed SpinalStack on the CI and I have:

default_store=rbd

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Something like that : "^default_store *= *rbd" will be convenient for you ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Prophidys more like default_store\s*=\s*rbd\s*$ to allow other kinds of spaces for space-ish 🚀 people 👾

@cedlecomte cedlecomte force-pushed the master branch 2 times, most recently from fb9d444 to 8f159db Compare May 12, 2015 13:45
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just to be sure the parameter isn't empty, could you use ^rbd_user\s*=\s*\S+

@fcharlier
Copy link
Copy Markdown
Member

👍 @EmilienM 's query seems to have been implemented

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.

3 participants