nova-compute can not run when use ceph

Bug #1659198 reported by franklin798
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla-kubernetes
Confirmed
Undecided
Unassigned

Bug Description

when I use ceph as back_end for nova,nova-computer can not run,the log as follow:
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Copying service configuration files
INFO:__main__:Copying /var/lib/kolla/config_files/nova.conf to /etc/nova/nova.conf
INFO:__main__:Setting permissions for /etc/nova/nova.conf
INFO:__main__:Removing existing destination: /etc/ceph/
ERROR:__main__:Unexpected error:
Traceback (most recent call last):
  File "/usr/local/bin/kolla_set_configs", line 304, in <module>
    exit_code = main()
  File "/usr/local/bin/kolla_set_configs", line 298, in main
    execute_config_strategy()
  File "/usr/local/bin/kolla_set_configs", line 234, in execute_config_strategy
    copy_config(config)
  File "/usr/local/bin/kolla_set_configs", line 186, in copy_config
    copy_files(data)
  File "/usr/local/bin/kolla_set_configs", line 75, in copy_files
    shutil.rmtree(dest)
  File "/usr/lib64/python2.7/shutil.py", line 256, in rmtree
    onerror(os.rmdir, path, sys.exc_info())
  File "/usr/lib64/python2.7/shutil.py", line 254, in rmtree
    os.rmdir(path)
OSError: [Errno 39] Directory not empty: '/etc/ceph/'

  I find the file: rbdmap in the directory /etc/ceph,and I use command rm -f rbdmap to delete rbdmap,but i can't delete the file as "cannot remove 'rbdmap': Permission denied".
  Anyone can help me to resolve this problem? thanks!

Revision history for this message
franklin798 (franklin798) wrote :

I check the file rbdmap, it's owner is root,but the current user is nova,so shutil.rmtree() could not execute as Permission denied.

Revision history for this message
franklin798 (franklin798) wrote :

i resolve this problem by modified method copy_files in file set_configs.py in kolla project.

Mohammed Naser (mnaser)
Changed in kolla-kubernetes:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.