Skip to content
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

[FVT] Failed to find the directory: /.statelite/persistent after statelite installation #1873

Closed
caomengmeng opened this issue Sep 21, 2016 · 10 comments · Fixed by #2185
Closed

Comments

@caomengmeng
Copy link
Contributor

For rh7.2, rh7.3 ppc64 and x86 platform, failed to find the /.statelite/persistent folder after the statelite installation.
Please help to resolve this problem

@daniceexi
Copy link
Contributor

@penguhyang Could you take a look of this problem?

@daniceexi daniceexi assigned ghost Sep 23, 2016
@tingtli
Copy link
Contributor

tingtli commented Sep 26, 2016

@penguhyang I think it is a very important bug. This will cause our persistent feature for statelite provision.

@ghost ghost modified the milestones: 2.12.4, 2.12.3 Sep 27, 2016
@ghost
Copy link

ghost commented Sep 27, 2016

This bug will fixed on 2.12.4

@ghost ghost assigned bybai Oct 17, 2016
@immarvin immarvin unassigned immarvin and ghost Oct 25, 2016
@bybai bybai modified the milestones: 2.13, 2.12.4 Nov 7, 2016
@bybai
Copy link
Contributor

bybai commented Nov 11, 2016

The persistent directory does not mounted from NFS server; In the code, it did that, should investigate why the following mount command does not take effect:
mount $SNAPSHOTSERVER:/$SNAPSHOTROOT/$ME $NEWROOT/$RWDIR/persistent -o $MNT_OPTIONS

If this line is failed, there is sleep and retry in booting, but I do not see sleep.

@tingtli
Copy link
Contributor

tingtli commented Nov 30, 2016

@bybai There fix does not work on hierarchy statelite. Please take a look at it.

@tingtli tingtli reopened this Nov 30, 2016
@bybai
Copy link
Contributor

bybai commented Nov 30, 2016

hi @tingtli ,
The fix can work well in hierarchy statelite, the autotest case should be modified.

1, [root@c910f03fsp03v02 ~]# lsdef c910f03fsp03v04 -i status,servicenode
Object name: c910f03fsp03v04
servicenode=c910f03fsp03v03
status=booted
2, After CN is booted in statelite:
[root@c910f03fsp03v04 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
c910f03fsp03v03:/install/netboot/rhels7.3/ppc64le/compute/rootimg 18327552 7862272 10465280 43% /
tmpfs 2086080 20928 2065152 2% /run
rw 2086080 238464 1847616 12% /tmp
c910f03fsp03v03:/nodedata/c910f03fsp03v04.pok.stglabs.ibm.com 18327552 7862272 10465280 43% /.statelite/persistent
rw 2086080 64 2086016 1% /.sllocal/log
c910f03fsp03v03:/nodedata/c910f03fsp03v04.pok.stglabs.ibm.com/test 18327552 7862272 10465280 43% /test
devtmpfs 2033728 0 2033728 0% /dev
tmpfs 2086080 0 2086080 0% /dev/shm
tmpfs 2086080 0 2086080 0% /sys/fs/cgroup
tmpfs 417216 0 417216 0% /run/user/0

3, test if the directory is persistent or not:
In CN:
[root@c910f03fsp03v04 ~]# cd /test
[root@c910f03fsp03v04 test]# ls
123
[root@c910f03fsp03v04 test]# touch 345
[root@c910f03fsp03v04 test]# ls
123 345

In service node:
[root@c910f03fsp03v03 /]# cd nodedata/
[root@c910f03fsp03v03 nodedata]# ls
c910f03fsp03v04.pok.stglabs.ibm.com
[root@c910f03fsp03v03 nodedata]# cd c910f03fsp03v04.pok.stglabs.ibm.com/
[root@c910f03fsp03v03 c910f03fsp03v04.pok.stglabs.ibm.com]# ls
test
[root@c910f03fsp03v03 c910f03fsp03v04.pok.stglabs.ibm.com]# cd test/
[root@c910f03fsp03v03 test]# ls
123 345

@bybai
Copy link
Contributor

bybai commented Nov 30, 2016

Hi @tingtli and @caomengmeng ,
The autotest case should be enhanced
1, In SN, umount -l /install is better;
2, After /install dir is added into /etc/exports, it is better to restart nfs service;
3, Added a test dir in litefile:
"ALL","/test/","persistent",,
4, after liteimg, rsync /install:
rsync -auv --exclude 'autoinst' /install c910f03fsp03v03:/
5, check the result:
In CN:
touch a file in /test such as 345
In SN:
check if there is /nodedata/c910f03fsp03v04.pok.stglabs.ibm.com/test/345

@tingtli
Copy link
Contributor

tingtli commented Nov 30, 2016

@bybai
It seems that hierarchy ramdisk statelite have issue. NFS based hierarchy statelite has no issue.

@whowutwut
Copy link
Member

@caomengmeng please verify and close out this issue asap.

@caomengmeng
Copy link
Contributor Author

@whowutwut Works well now and close it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment