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

BZ #1247684 Puppet Errors with cinder Dell SC multibackend #554

Merged
merged 1 commit into from
Jul 30, 2015

Conversation

rajinir
Copy link

@rajinir rajinir commented Jul 29, 2015

https://bugzilla.redhat.com/show_bug.cgi?id=1247684

The directory structure of dellsc::volume did not match the name of the define,
causing puppet to be unable to find the requested define.

And there was typo in evaluating the last index when defining types.

@@ -1,4 +1,4 @@
define quickstack::dell_sc_iscsi::volume (
define quickstack::dellsc::volume (

Choose a reason for hiding this comment

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

Why are we dropping iscsi?
I think we just need to have consistent name. dell_sc_iscsi does make sense to me. We use that for documentation for kilo.

Copy link
Author

Choose a reason for hiding this comment

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

It is just a directory name. We will use dellfc for fiber channel

Choose a reason for hiding this comment

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

we expect that in longer term we will have both eql and sc under dell. Thus, I want correct naming conversion to handle it. Leave particular to you.

Copy link
Member

Choose a reason for hiding this comment

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

perhaps then this should be changed to be:
(directory structure) manifests/dell/sc_iscsi/volume.pp
resulting in a define with the name:
quickstack::dell::sc_iscsi::volume
Would that be clearer and allow you to fold the eql code into the quickstack::dell namespace as desired?

Choose a reason for hiding this comment

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

fine with me

Copy link
Author

Choose a reason for hiding this comment

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

Updated the patch with new dir structure

@rajinir rajinir force-pushed the master branch 2 times, most recently from 5ed971b to 536c278 Compare July 29, 2015 19:36
@jguiditta
Copy link
Member

@rajinir these changes look reasonable to me. As I have no way to properly test them, do they resolve the issues you saw previously?

@rajinir
Copy link
Author

rajinir commented Jul 29, 2015

These changes are good to go. But got an error further
Error: Could not retrieve catalog from remote server: Could not intern from text/pson: Could not intern from data: Could not find relationship target "Cinder::Type[]"
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

@jguiditta
Copy link
Member

Repeating what I said in BZ in case you see this first:

Ok, got it. In quickstack::cinder_volume_types, on line 39, it has:
$dell_sc_last_index = size($backend_dell_sc) - 1

If I change that to:
$dell_sc_last_index = size($backend_dell_sc_name) - 1

(which matches other types) then the error goes away for me.

@jguiditta
Copy link
Member

Also, could you update the commit message on your next push? We have a format that makes it easier for me to generate a list of changes between releases:

BZ #12345 - Short title.

<link to bug>

Any additional detail desired.

Thanks!

https://bugzilla.redhat.com/show_bug.cgi?id=1247684

The directory structure of dellsc::volume did not match the name of the define,
causing puppet to be unable to find the requested define.

And there was typo in evaluating the last index when defining types.
@rajinir rajinir changed the title Fixed Bug 1247684 Puppet Error 400 for cinder dell_sc multibackend BZ #1247684 Puppet Errors with cinder Dell SC multibackend Jul 30, 2015
@rajinir
Copy link
Author

rajinir commented Jul 30, 2015

Puppet run finished with success. Tested that it generates the cinder.conf file correctly

@jguiditta
Copy link
Member

Excellent, then unless @arkadykanevsky has any other concerns, I think this is ready to merge

@arkadykanevsky
Copy link

+1

jguiditta added a commit that referenced this pull request Jul 30, 2015
BZ #1247684 Puppet Errors with cinder Dell SC multibackend
@jguiditta jguiditta merged commit deed18e into redhat-openstack:master Jul 30, 2015
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