Skip to content

Fix 404 Error using Nova FlavorsResource.showMetadata() - #164

Open
meirlaker wants to merge 2 commits into
woorea:masterfrom
meirlaker:master
Open

Fix 404 Error using Nova FlavorsResource.showMetadata()#164
meirlaker wants to merge 2 commits into
woorea:masterfrom
meirlaker:master

Conversation

@meirlaker

Copy link
Copy Markdown
Contributor

Problem: FlavorsResource.showMetadata() results in a 404 error because
it is issuing an API call that does not exist since Flavors do not have
metadata. Instead, they have something quite similar, “extra-specs”, key-value pairs that the
Nova scheduler uses to launch Servers on Hosts that can supply the
capabilities described by the flavor's extra-specs.

Solution: Replace showMetaData() with showExtraSpecs(), use the correct
“os-extra_specs” extended API path and add a new ExtraSpecs class to
deserialize the API response to a Map<String, String>.

Problem: FlavorsResource.showMetadata() results in a 404 error because
it is issuing an API call that does not exist since Flavors do not have
metadata.  Instead, they have “extra-specs”, key-value pairs that the
Nova scheduler uses to launch Servers on Hosts that can supply the
capabilities described by the flavor's extra-specs.

Solution: Replace showMetaData() with showExtraSpecs(), use the correct
“os-extra_specs” extended API path and add a new ExtraSpecs class to
deserialize the API response to a Map<String, String>.
Revert accidental previous commit of pom file where I had set
skip.sign=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant