Closed JeffreyDevloo closed 8 years ago
To be added here: the actual cause of the message was that the ovs
user was created with a wrong home directory, that caused the package installation scripts to not created the key pairs in the expected location.
However, this problem will cause that the setup doesn't validate other files (e.g. root's keypair).
@khenderick how can it be that the ovs user was created with the wrong home directory. Is it a bug in the code or should we tackle this with documentation?
nevermind, the ovs user was created before (waffle didn't show the referenced issue).
@wimpers, In this case @JeffreyDevloo just installed a fresh Ubuntu and when the Ubuntu setup asks for a non-privileged user, Jeffrey just entered "ovs" as it's username. The Ubuntu installation then creates a user with that username which will gets it home directory created under /home/ovs.
I remember that back in the days the documentation mentioned this since back then the Ubuntu installation itself was also documented.
@wimpers, there's still an issue in the code reported here that must be fixed.
Set to won't fix as if the ovs user isn't previously created, you don't run into the issue.
Not having an ovs user before starting the install will be covered by documentation.
Re-opening as fixed so put into state verification for QA.
If there's already an (unexpected) ovs user on the system (with an "incorrect home directory" -- whatever that may be); shouldn't the setup warn about it?
@dejonghb makes a very good point, @wimpers.
@dejonghb, @kinvaris, it basically does this already by complaining the expected files could not be found. But maybe the message could be enhanced a bit more.
Reproduction of the issue gave me the expected output this time:
Exchanging SSH keys and updating hosts files
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++ An unexpected error occurred: +++
+++ Missing files: +++
+++ - Could not find file /opt/OpenvStorage/.ssh/id_rsa.pub on node with IP +++
+++ 10.100.199.153 +++
+++ - Could not find file /opt/OpenvStorage/.ssh/known_hosts on node with IP +++
+++ 10.100.199.153 +++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Test passed. The missing files are now reported correctly. Closing
Problem description
Received the following message when only /opt/OpenvStorage/.ssh/ files were missing.
Possible root of the problem
The check is only happening on one file instead of the file in the loop. Framework.ovs.lib.setup.py
Possible solution
Change the if condition: