Skip to content
This repository was archived by the owner on Jul 25, 2020. It is now read-only.

Adding missing "hosts" field to OpenStack Nova AvailabilityZone#806

Closed
arvindn05 wants to merge 1 commit intojclouds:1.9.xfrom
arvindn05:1.9.x
Closed

Adding missing "hosts" field to OpenStack Nova AvailabilityZone#806
arvindn05 wants to merge 1 commit intojclouds:1.9.xfrom
arvindn05:1.9.x

Conversation

@arvindn05
Copy link
Copy Markdown
Contributor

Adding missing "hosts" field to OpenStack Nova AvailabilityZone.

Fixes bug https://issues.apache.org/jira/browse/JCLOUDS-700

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.

Make a new test and keep the original test until the deprecated code is removed.

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.

Same for the other tests

@arvindn05
Copy link
Copy Markdown
Contributor Author

i am creating tests named DeprecatedAvailabilityZoneApiExpectTest and DeprecatedAvailabilityZonesApiLiveTest to test the deprecated code.

If you guys have a better naming pattern, i can use that.

@arvindn05
Copy link
Copy Markdown
Contributor Author

@zack-shoylev I added the the tests for deprecated code as well.

@zack-shoylev
Copy link
Copy Markdown
Contributor

Ok. Thanks, ran it and looks good, but I have some questions:

It seems you need to deprecate, because you are using a new AvailabilityZone class. Why not just update the old availability zone so you don't have to deprecate it? It seems the new one is just adding stuff, so it should be backwards compatible.

Also, while the rest of nova might not use AutoValue yet, maybe it makes sense to start using it here.

Let me know if I missed something!

@arvindn05
Copy link
Copy Markdown
Contributor Author

everything under the zone scoped package is being deprecated. If you look at the original bug request, it has the bullet point below

Move AvailabilityZone and ZoneState from the deprecated org.jclouds.openstack.nova.v2_0.domain.zonescoped package to the correct org.jclouds.openstack.nova.v2_0.domain package.

I am not too familiar with autovalue. Since this is just adding stuff to fix a bug i would prefer to keep using the existing mechanism for now instead of moving to auto value.

@zack-shoylev
Copy link
Copy Markdown
Contributor

Thanks for explaining! In this case, this should be good to merge - rebase to a single commit.

@arvindn05
Copy link
Copy Markdown
Contributor Author

@zack-shoylev did i get the rebase to single commit right this time? Or else i can create a new pull request with just the single commit.

Also, the bugs which i fixed are tracked as part of JIRA. Do i need to do anything to update their status?

@zack-shoylev
Copy link
Copy Markdown
Contributor

Hm, no, that seems to have messed it up again.

What I do: In my PR branch, I rebase the last 2 (or more) commits:

git rebase -i HEAD~2

Then I force push to the github branch I used for the pull request:

git push -f

When you go to the PR page on github, you should only see 1 commit in the commits tab.

@arvindn05
Copy link
Copy Markdown
Contributor Author

@zack-shoylev Thanks for the tip. It looks like its fixed now. I see only one commit in PR page.

@zack-shoylev
Copy link
Copy Markdown
Contributor

merged, backported. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants