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 9pfs hostPath mounts and add 9pfs tests #862

Merged
merged 6 commits into from
Feb 11, 2019
Merged

Conversation

ivan4th
Copy link
Contributor

@ivan4th ivan4th commented Feb 9, 2019

  • refactor filesystem-related code (mounts etc.)
  • fix 9pfs hostPath problem (was unable to mount host paths not visible in the virtlet container)
  • add 9pfs "unit" tests
  • add 9pfs e2e test (ubuntu-only, CirrOS can't do 9p atm)

This change is Reviewable

@ivan4th ivan4th changed the title [WiP] Add 9pfs tests Fix 9pfs hostPath mounts and add 9pfs tests Feb 11, 2019
Copy link
Contributor

@jellonek jellonek left a comment

Choose a reason for hiding this comment

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

One question and rest lgtm.

Reviewed 52 of 52 files at r1.
Reviewable status: 1 change requests, 0 of 1 approvals obtained (waiting on @ivan4th)


tests/e2e/framework/controller.go, line 395 at r1 (raw file):

	}
	pod := generatePodSpec(name, image, opts)
	fmt.Printf("POD:\n%s\n", utils.ToJSON(pod))

That's the only place where Printf is used in whole file. Are you sure that it should be always printed there, or this was only needed during development time?

It doesn't support CirrOS at this moment because of lack of 9p
filesystem support there.
Copy link
Contributor Author

@ivan4th ivan4th left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 change requests, 0 of 1 approvals obtained (waiting on @jellonek)


tests/e2e/framework/controller.go, line 395 at r1 (raw file):

Previously, jellonek (Piotr Skamruk) wrote…

That's the only place where Printf is used in whole file. Are you sure that it should be always printed there, or this was only needed during development time?

Thanks, fixed!

Copy link
Contributor

@jellonek jellonek left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@jellonek jellonek merged commit e128049 into master Feb 11, 2019
@jellonek jellonek deleted the ivan4th/9pfs-tests branch February 11, 2019 18:46
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.

2 participants