Log into sriov vmis *after* cloud-init is executed
Unless we wait for cloud-init script to complete (by waiting for agent
status report back to kube api), we can't be sure that the fedora
account has the correct password set, so login expecter may fail
because it can't log in.
@@ -635,10 +635,10 @@ var _ = Describe("SRIOV", func() {
_, err = virtClient.VirtualMachineInstance(tests.NamespaceTestDefault).Create(vmi)
Expect(err).ToNot(HaveOccurred())
- tests.WaitUntilVMIReady(vmi, tests.LoggedInFedoraExpecter)
// Need to wait for cloud init to finish and start the agent inside the vmi.
tests.WaitAgentConnected(virtClient, vmi)
+ tests.WaitUntilVMIReady(vmi, tests.LoggedInFedoraExpecter)
return
}
