Reply to Message

View discussion in a popup

Replying to:
A_Shahoff
Contributor
Contributor

There is a bug / inconsistency  in nfsValidate.py

In order to fix it you have to change nfs username in script .

 

Here is  problematic area:

===========cut============

# verify that chmod'ed file has correct ownership and permissions
perms_test(TEST_FILE, 'root', 'root', response, '750')

# check that chown works
chown_test(TEST_FILE, response)
# verify that chown'ed file has correct ownership
perms_test(TEST_FILE, 'vcloud', 'vcloud', response) # don't check mode in this test

=======end of cut=============

 

As you can see script calling sub "perms_test" with different username twice. So unless if your NFS server do not care about username this part will never pass the test. So I changed script to :

===========cut============

# verify that chmod'ed file has correct ownership and permissions

#perms_test(TEST_FILE, 'root', 'root', response, '750')

perms_test(TEST_FILE, 'vcloud', 'vcloud', response, '750')

# check that chown works
chown_test(TEST_FILE, response)
# verify that chown'ed file has correct ownership
perms_test(TEST_FILE, 'vcloud', 'vcloud', response) # don't check mode in this test

=======end of cut=============

and successfully deployed the nodes.

You will ask why than primary node get deployed ? Answer is very simple , this subroutine never get called from primary node deployment routine. 

So I recommend vMware to test the code better to avoid such confusion.

Reply
0 Kudos