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

[bug:1676892] ctdb tries to delete files in RO filesystem (var-lib-nfs-rpc_pipefs.mount) #1117

Closed
gluster-ant opened this issue Mar 17, 2020 · 4 comments
Labels
Migrated Type:Bug wontfix Managed by stale[bot]

Comments

@gluster-ant
Copy link
Collaborator

URL: https://bugzilla.redhat.com/1676892
Creator: hunter86_bg at yahoo
Time: 20190213T14:14:08

Description of problem:
ctdb tries to delete files in /var/lib/nfs/rpc_pipefs/. It dies with error - permission denied and fails to start.

Version-Release number of selected component (if applicable):
ctdb-4.8.3-4.el7.x86_64

How reproducible:
Always (tried on 3 gluster nodes)

Steps to Reproduce:
1.Install storhaug , ctdb & nfs-ganesha
2.Deploy via storhaug (https://github.com/gluster/storhaug/wiki):

  • yum -y install storhaug-nfs
  • ssh-keygen -f /etc/sysconfig/storhaug.d/secret.pem
  • ssh-copy-id -i /etc/sysconfig/storhaug.d/secret.pem.pub root@nodeX
    Repeat for all nodes
  • populate /etc/ctdb/nodes and /etc/ctdb/public_addresses
  • Configure /etc/ctdb/ctdbd.conf:
    grep -Ev "^#|^$" /etc/ctdb/ctdbd.conf
    CTDB_RECOVERY_LOCK="/run/gluster/shared_storage/lock"
    CTDB_NODES=/etc/ctdb/nodes
    CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses
    CTDB_MANAGES_NFS=yes
    CTDB_NFS_CALLOUT=/etc/ctdb/nfs-ganesha-callout
    CTDB_NFS_STATE_FS_TYPE=glusterfs
    CTDB_NFS_STATE_MNT=/run/gluster/shared_storage
    CTDB_NFS_SKIP_SHARE_CHECK=yes
    NFS_HOSTNAME=localhost
    CTDB_DEBUG_LEVEL=DEBUG

-touch /etc/ganesha/ganesha.conf
-gluster volume set all cluster.enable-shared-storage enable
-storhaug setup

3.Start the ctdb.service (if not running)

Actual results:
CTDB defines in the log that it tries to cleanup /var/lib/nfs/rpc_pipefs and fails.

Expected results:
CTDB service file should contain:
[Unit]
Conflicts=var-lib-nfs-rpc_pipefs.mount

Additional info:
If the var-lib-nfs-rpc_pipefs.mount is not running - the ctdb.service starts properly.
My current ctdb service is:
[root@ovirt1 ~s]# systemctl cat ctdb.service

/etc/systemd/system/ctdb.service

[Unit]
Description=CTDB
Documentation=man:ctdbd(1) man:ctdb(7)
After=network-online.target time-sync.target
Conflicts=var-lib-nfs-rpc_pipefs.mount

[Service]
Type=forking
LimitCORE=infinity
PIDFile=/run/ctdb/ctdbd.pid
ExecStartPre=/bin/bash -c "sleep 2; if [ -f /sys/fs/cgroup/cpu/system.slice/cpu.rt_runtime_us ]; then echo 10000 > /sys/fs/cgroup/cpu/system.slice/cpu.rt_runtime_us; fi"
ExecStart=/usr/sbin/ctdbd_wrapper /run/ctdb/ctdbd.pid start
ExecStop=/usr/sbin/ctdbd_wrapper /run/ctdb/ctdbd.pid stop
KillMode=control-group
Restart=no

[Install]
WantedBy=multi-user.target

@gluster-ant
Copy link
Collaborator Author

Time: 20190213T17:25:36
sbose at redhat commented:
ctdb is now build as part of the samba package.

@gluster-ant
Copy link
Collaborator Author

Time: 20200219T14:04:25
sheggodu at redhat commented:
Moving the BZ to upstream

@stale
Copy link

stale bot commented Oct 13, 2020

Thank you for your contributions.
Noticed that this issue is not having any activity in last ~6 months! We are marking this issue as stale because it has not had recent activity.
It will be closed in 2 weeks if no one responds with a comment here.

@stale stale bot added the wontfix Managed by stale[bot] label Oct 13, 2020
@stale
Copy link

stale bot commented Oct 28, 2020

Closing this issue as there was no update since my last update on issue. If this is an issue which is still valid, feel free to open it.

@stale stale bot closed this as completed Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Migrated Type:Bug wontfix Managed by stale[bot]
Projects
None yet
Development

No branches or pull requests

1 participant