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

Fix up name prefix messiness #58

Closed
wants to merge 5 commits into from

Conversation

j-griffith
Copy link
Contributor

One of the things added to the ndvp driver in it's initial release was a
name-prefix default that would prepend all resource names with a default
of netappdvp-. We would perform all look ups using the volume name and
this prefix.

Due to some incompatabilities between products and the use of - vs _,
we modified the SolidFire driver to use attributes as the mapping method
instead of the volume-name and juggling the prefix. This broke access to
legacy installs that upgraded, becuase they wouldn't have the attribute
and thus never find the volumes.

The name prefixes are actually just troublesome, between upgrade issues like
the one described, and errors in deployments (other ndvp nodes not matching
their configs) it's just better to not use prefixes.

This change does away with prefixes for the SolidFire driver by checking at the
main ndvp interface and NOT munging the name. We then leave it up to the
driver to do any name munging if neeeded.

To address the issue of legacy volumes after an upgrade, I implemented a
wrapper method to getVolumes that will use the old method of looking by name
with prefix if the search by attributes fails.

One of the things added to the ndvp driver in it's initial release was a
name-prefix default that would prepend all resource names with a default
of `netappdvp-`.  We would perform all look ups using the volume name and
this prefix.

Due to some incompatabilities between products and the use of `-` vs `_`,
we modified the SolidFire driver to use attributes as the mapping method
instead of the volume-name and juggling the prefix. This broke access to
legacy installs that upgraded, becuase they wouldn't have the attribute
and thus never find the volumes.

The name prefixes are actually just troublesome, between upgrade issues like
the one described, and errors in deployments (other ndvp nodes not matching
their configs) it's just better to not use prefixes.

This change does away with prefixes for the SolidFire driver by checking at the
main ndvp interface and NOT munging the name.  We then leave it up to the
driver to do any name munging if neeeded.

To address the issue of legacy volumes after an upgrade, I implemented a
wrapper method to getVolumes that will use the old method of looking by name
with prefix if the search by attributes fails.
One of the things added to the ndvp driver in it's initial release was a
name-prefix default that would prepend all resource names with a default
of `netappdvp-`.  We would perform all look ups using the volume name and
this prefix.

Due to some incompatabilities between products and the use of `-` vs `_`,
we modified the SolidFire driver to use attributes as the mapping method
instead of the volume-name and juggling the prefix. This broke access to
legacy installs that upgraded, becuase they wouldn't have the attribute
and thus never find the volumes.

The name prefixes are actually just troublesome, between upgrade issues like
the one described, and errors in deployments (other ndvp nodes not matching
their configs) it's just better to not use prefixes.

This change does away with prefixes for the SolidFire driver by checking at the
main ndvp interface and NOT munging the name.  We then leave it up to the
driver to do any name munging if neeeded.

To address the issue of legacy volumes after an upgrade, I implemented a
wrapper method to getVolumes that will use the old method of looking by name
with prefix if the search by attributes fails.
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.

1 participant