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

Added LBaaSv2 volume-based Amphora test #637

Conversation

nicholasnjihian
Copy link

Added test for volume-based Amphora.

Copy link
Collaborator

@ajkavanagh ajkavanagh left a comment

Choose a reason for hiding this comment

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

Thanks for the patch. Please see my review comments. Thanks!

"""
if (openstack_utils.get_os_release() <
openstack_utils.get_os_release('bionic_train')):
return
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would probably be better to use unittest.skip("reason here") to indicate that the class is being skipped.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for reviewing this and for pointing out the corrections I needed to make.

if 'compute_id' in amphora and server.id == amphora[
'compute_id']:
server_id = amphora['compute_id']
attached_volumes.append(json.dumps(vars(self.nova_client.volumes.get_server_volumes(server_id))))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this line over >79 chars (I can't tell from the github review page)?

Comment on lines 487 to 562
def test_create_loadbalancer(self):
super().test_create_loadbalancer()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm guessing we need the super() call to make the test actually run (due to inheritance). However, it needs a line above it otherwise I think that the pep8 check should fail. Did you run tox -e pep8?

Copy link
Author

Choose a reason for hiding this comment

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

Thanks. I'd made a rookie mistake not running the lint tests. The CI caught this

@nicholasnjihian nicholasnjihian force-pushed the test-volume-based-amphora branch 2 times, most recently from a30d4e6 to b107325 Compare April 27, 2022 23:13


@unittest.skipIf(openstack_utils.get_os_release() <
openstack_utils.get_os_release('bionic_train'),
Copy link
Contributor

Choose a reason for hiding this comment

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

The charm option is introduced from Ussuri https://review.opendev.org/c/openstack/charm-octavia/+/810567.
Is this check supposed to be bionic_ussuri?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, the feature should be introduced at Ussuri. Not sure why I had this as bionic_train.

Made corrections to PR.

Corrected test check to be bionic_ussuri onwards
@nicholasnjihian nicholasnjihian force-pushed the test-volume-based-amphora branch from 6d4e6bc to ab7c28c Compare April 28, 2022 11:19
@ajkavanagh ajkavanagh dismissed their stale review June 29, 2022 13:50

Changes made to address points.

@ajkavanagh ajkavanagh added the stale Review is stale; needs action from contributor; may be deleted in the near future. label Jun 29, 2022
@ajkavanagh
Copy link
Collaborator

@hemanthnakkina-zz @nicholasnjihian Please could you revisit this when you get a moment and update whether it is ready for merge? Please remove the stale label if it's still current. Thanks.

@josephillips85
Copy link

any idea of why is not merged yet?

@freyes
Copy link
Member

freyes commented Dec 5, 2023

Closing this PR that's being superseded by #1173

@freyes freyes closed this Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Review is stale; needs action from contributor; may be deleted in the near future.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants