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
Update to kubernetes 1.12.4 #1882
Conversation
Hello contributor, thanks for submitting a PR for this project! I am the bot who triggers "standard-CI" builds for this project. In order to allow automated tests to run, please ask one of the project maintainers to review the code and then do one of the following:
|
@gonzolino Hi can you please check why Travis unhappy?
|
59f104a
to
e836e3f
Compare
@cynepco3hahue thanks for the hint! I should have re-run |
ci test please |
1 similar comment
ci test please |
@gonzolino can you please rebase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rmohr, no, the ds builds use the latest available golang version which is 1.10.3. |
@rmohr although from the k8s changelog I see they upgraded to version 1.10.4, https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.12.md#external-dependencies |
@mfranczy could you give it a try and report back? |
@rmohr sure. |
e836e3f
to
1b8dc28
Compare
@gonzolino why does it downgrade ginkgo O_O? Do you run make commands to update dependencies? |
@cynepco3hahue Turns out I'm just not smart enough to use glide correctly 😛 I was indeed using I will update the PR in a moment. |
1b8dc28
to
62895e4
Compare
ci test please |
62895e4
to
6f74d7a
Compare
ci test please |
1 similar comment
ci test please |
@@ -116,7 +116,8 @@ func Convert_v1_Disk_To_api_Disk(diskDevice *v1.Disk, disk *Disk, devicePerBus m | |||
func checkDirectIOFlag(path string) bool { | |||
// check if fs where disk.img file is located or block device | |||
// support direct i/o | |||
f, err := os.OpenFile(path, syscall.O_RDONLY|syscall.O_DIRECT, 0) | |||
f, err := os.OpenFile(path, syscall.O_RDONLY, 0) | |||
//f, err := os.OpenFile(path, syscall.O_RDONLY|syscall.O_DIRECT, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you change it?
I also think some CI failures can be related to this change
Configurations with driver cache settings [It] should set appropriate cache modes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cynepco3hahue good catch, the O_DIRECT flag must be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh thank you! What a stupid mistake on my side.
It seems like there is no syscall.O_DIRECT on macOS. I therefore removed the line to prevent an error on my laptop and then I forgot to put it back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So at least this needs to be fixed.
@rmohr I was able to compile KubeVirt with golang 1.10.3 (locally and ds scratch build), functional tests passed as well (locally). From the compiler version perspective we are not blocked. When it's possible I will switch to golang 1.11.2 (I will create a PR for upstream as well). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The O_DIRECT issue needs to be fixed.
6f74d7a
to
dd4bb6c
Compare
ci test please |
ci test please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small change please. Other than that LGTM 👍
@@ -14,6 +14,7 @@ spec: | |||
pvc: | |||
accessModes: | |||
- ReadWriteOnce | |||
dataSource: null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand this new field is not required, right? If so, I would like to get rid of these null fields in the example manifests. Can you please remove it? See https://github.com/kubevirt/kubevirt/blob/master/tools/util/marshaller.go#L46
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The three null fields should now be gone. I hope to code to remove them is ok!
3a698bc
to
7753561
Compare
Remove required attribute from openAPI and remove empty dataSource fields in marshaller See kubevirt#1882 (comment) for more details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks! Will trigger a final CI run
for _, tmpl := range templates { | ||
template := tmpl.(map[string]interface{}) | ||
_, exists, err = unstructured.NestedString(template, "spec", "pvc", "dataSource") | ||
if !exists { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice that you check if it's empty, makes it future proof 👍
ci test please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test failures look unrelated
lgtm now, but I'd like to have a final review of @davidvossel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. I just noticed a few minor things.
7753561
to
2b1ccc3
Compare
Remove required attribute from openAPI and remove empty dataSource fields in marshaller See kubevirt#1882 (comment) for more details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
ci test please |
This patch is good to go. #1952 Is about to collide with these vendoring changes though. That CDI change is unfortunately pretty high priority, so we should let that in before merging this PR. I'm suspecting there will be merge conflicts then. I'll try and help out next week to resolve the conflicts and merge this pr. |
Remove required attribute from openAPI and remove empty dataSource fields in marshaller See kubevirt#1882 (comment) for more details.
Signed-off-by: David Vossel <davidvossel@gmail.com>
2b1ccc3
to
97bae30
Compare
i fixed the merge conflicts. we're just waiting for CI to pass again. |
ci test please |
ct test please |
ci test please |
3 similar comments
ci test please |
ci test please |
ci test please |
I think this PR is ready to go 👍 |
What this PR does / why we need it:
This PR updates dependencies from k8s 1.11.2 to 1.12.4. Additionally code and resources were regenerated with
make generate
.Special notes for your reviewer:
Please have a look at the changes in pkg/virt-controller. Changes in the new client-go version made it necessary to replace the 'stop' channel with a context.
Release note: