Skip to content

🏃 migrate conformance test to Prow #759

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

Merged

Conversation

sbueringer
Copy link
Member

test-infra PR has to be approved first: kubernetes/test-infra#21069

Also includes the v1alpha4 PR until it's merged

With this PR we have a Prow-based e2e test which creates a devstack in GCP instead of OpenLab (conformance test is almost the same)

/hold

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 28, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Feb 28, 2021
@jichenjc
Copy link
Contributor

jichenjc commented Mar 1, 2021

recheck

@sbueringer
Copy link
Member Author

/test ?

@k8s-ci-robot
Copy link
Contributor

@sbueringer: The following commands are available to trigger jobs:

  • /test pull-cluster-api-provider-openstack-build
  • /test pull-cluster-api-provider-openstack-test
  • /test pull-cluster-api-provider-openstack-e2e-test
  • /test pull-cluster-api-provider-openstack-make-conformance

Use /test all to run the following jobs:

  • pull-cluster-api-provider-openstack-build
  • pull-cluster-api-provider-openstack-test

In response to this:

/test ?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

2 similar comments
@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer sbueringer changed the title 🏃 migrate conformance test to Prow [WIP] 🏃 migrate conformance test to Prow Mar 1, 2021
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 1, 2021
@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

9 similar comments
@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer sbueringer force-pushed the caas/sbuerin/capi-prow-e2e branch from ee960cb to 28d062b Compare March 2, 2021 04:55
@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

1 similar comment
@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer sbueringer force-pushed the caas/sbuerin/capi-prow-e2e branch from f67ddf3 to 662f4d8 Compare March 11, 2021 14:50
@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@hidekazuna @jichenjc This PR is now ready for review. Finally we will get stable e2e/conformance tests... :)

@jichenjc
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 12, 2021
@@ -84,6 +84,14 @@ spec:
echo "kubelet version: " $(kubelet --version)

echo "$LINE_SEPARATOR"
users:
Copy link
Contributor

Choose a reason for hiding this comment

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

We moved to use OpenStack key pair, why do we need this?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think some discussion has been previously
at least from my test, seems only this user can logon .. I might be wrong

Copy link
Member Author

Choose a reason for hiding this comment

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

I wasnt able to log in with the root user during testing, so I thought I make it easier by adding an additional user with pw which works in any case (also via vnc and password Login)

Copy link
Member Author

Choose a reason for hiding this comment

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

(because the root user ssh login is disabled)

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you are not able to login to nodes due to dropbear in cirros 0.5.1.
After I copied openssh private key into bastion, I had to convert it to dropbear format by dropbearconvert command.

Copy link
Contributor

Choose a reason for hiding this comment

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

A set of PRs blocked (waiting) for this , it's not blocking issue, can we merge this and open a follow up issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

Should be possible. I started working on: #782
There I add e2e tests and rewrite our conformance test to be executed with ClusterAPI test framework (like e.g. in CAPA)

I try to use the OpenStack SSH KeyPair mechanism there. Let's how it goes this time.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it shouldn't block this PR but I'm really wondering how the OpenStack ssh key solution works:
When I try to jump to a regular node (e.g. a control plane node):

  • root has the ssh key but blocks ssh
  • ubuntu does not have the ssh key in authorized keys

Anything special I have to consider when using the OpenStack keypair? (I'm just creating it in OpenStack and then trying to jump, but it cannot work if it's just added for the root user and the root user is blocked)

Copy link
Contributor

Choose a reason for hiding this comment

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

It is OK to add an user to use VNC when running test.
I think we can not login as root user. cirros user for cirros image, ubuntu user for ubuntu image.

Copy link
Member Author

Choose a reason for hiding this comment

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

But how do you do that with the openstack keypair feature? Cirros works for me but ubuntu does not

openstack domain list

openstack flavor delete m1.tiny
openstack flavor create --ram 512 --disk 1 --vcpus 1 --public --id 1 m1.tiny --property hw_rng:allowed='True'
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still need --property hw_rng:allowed='True'?

Copy link
Member Author

Choose a reason for hiding this comment

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

As I'm still using devstack, I assume yes

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 12, 2021
@sbueringer
Copy link
Member Author

/test pull-cluster-api-provider-openstack-make-conformance

@sbueringer
Copy link
Member Author

@jichenjc @hidekazuna review comments addressed - please take another look :)

@sbueringer
Copy link
Member Author

sbueringer commented Mar 12, 2021

/test pull-cluster-api-provider-openstack-make-conformance
(5 didn't work, 4 should)

@sbueringer
Copy link
Member Author

@hidekazuna @jichenjc can we merge this pr? It would unblock a lot. We can continue the ssh discussion elsewhere

@hidekazuna
Copy link
Contributor

@hidekazuna @jichenjc can we merge this pr? It would unblock a lot. We can continue the ssh discussion elsewhere

Sure

/hold cancel

/lgtm

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 15, 2021
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 15, 2021
@sbueringer
Copy link
Member Author

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 15, 2021
@sbueringer sbueringer force-pushed the caas/sbuerin/capi-prow-e2e branch from 250d2bb to c7aec80 Compare March 15, 2021 12:47
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 15, 2021
@sbueringer
Copy link
Member Author

@hidekazuna I forgot to squash (I didn't want to have 12 commits on master :)). Can you give me another /lgtm? Thx :)

@hidekazuna
Copy link
Contributor

/lgtm

/hold cancel

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Mar 15, 2021
@k8s-ci-robot k8s-ci-robot merged commit 784bccb into kubernetes-sigs:master Mar 15, 2021
@sbueringer sbueringer deleted the caas/sbuerin/capi-prow-e2e branch March 15, 2021 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants