Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

v2v: Wait for ServiceAccount before creating conversion pod #533

Merged

Conversation

mareklibra
Copy link
Contributor

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1873

  • 5 of 13 (38.46%) changed or added relevant lines in 5 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 82.626%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/k8s/requests/v2v/importVmware.js 1 9 11.11%
Files with Coverage Reduction New Missed Lines %
src/k8s/requests/v2v/importVmware.js 1 9.09%
Totals Coverage Status
Change from base Build 1870: -0.1%
Covered Lines: 4057
Relevant Lines: 4704

💛 - Coveralls

@coveralls
Copy link

coveralls commented Aug 1, 2019

Pull Request Test Coverage Report for Build 2217

  • 5 of 13 (38.46%) changed or added relevant lines in 5 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 82.555%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/k8s/requests/v2v/importVmware.js 1 9 11.11%
Files with Coverage Reduction New Missed Lines %
src/k8s/requests/v2v/importVmware.js 1 9.09%
Totals Coverage Status
Change from base Build 2214: -0.1%
Covered Lines: 4057
Relevant Lines: 4708

💛 - Coveralls

@@ -14,3 +14,5 @@ export const VMWARE_KUBEVIRT_VMWARE_CONFIG_MAP_NAME = 'v2v-vmware';
export const VMWARE_TO_KUBEVIRT_OS_CONFIG_MAP_NAMESPACE = 'kube-public'; // note: common-templates are in the "openshift" namespace
// TODO: make it configurable via VMWARE_KUBEVIRT_VMWARE_CONFIG_MAP
export const VMWARE_TO_KUBEVIRT_OS_CONFIG_MAP_NAME = 'vmware-to-kubevirt-os'; // single configMap per cluster, contains mapping of vmware guestId to common-templates OS ID

export const CONVERSION_SERVICEACCOUNT_DELAY = 5 * 1000; // in ms
Copy link
Contributor

@atiratree atiratree Aug 1, 2019

Choose a reason for hiding this comment

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

IMHO, I would rather do more polls more frequently (the operation is not so expensive). The UI would otherwise stall for 5,10 sec before it gets the secrets.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to up to 15 attempts with 2 secs delay in between.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

@mareklibra mareklibra force-pushed the fix-1721018.v2v.RaceConversionPod branch from 57e6eee to 4455ad6 Compare August 1, 2019 10:00
@atiratree atiratree merged commit acb2be3 into kubevirt:master Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants