Ask Your Question
0

cp: preserving times for '/etc/nova/policy.json': Operation not permitted

asked 2015-04-27 12:11:19 -0600

wolfsharad24 gravatar image

Hi all,

When installing Devstack, In Nova installlation part the following error occurs : Pls help me out !

cp: preserving times for '/etc/nova/policy.json': Operation not permitted`

Successfully installed nova-2015.2.dev194 
+ local 'test_req=-e /opt/stack/nova/test-requirements.txt'
+ [[ -e -e /opt/stack/nova/test-requirements.txt ]]
+ [[ -e == \-\e ]]
+ safe_chown -R stack /opt/stack/nova/nova.egg-info
+ _safe_permission_operation chown -R stack /opt/stack/nova/nova.egg-info
++ set +o
++ grep xtrace
+ local 'xtrace=set -o xtrace'
+ set +o xtrace
+ sudo chown -R stack /opt/stack/nova/nova.egg-info
+ '[' True = True ']'
+ [[ changed != \c\h\a\n\g\e\d ]]
+ sudo install -D -m 0644 -o stack /opt/stack/nova/tools/nova-manage.bash_completion /etc/bash_completion.d/nova-manage.bash_completion
+ [[ False = True ]]
+ cleanup_nova
+ is_service_enabled n-cpu
++ set +o
++ grep xtrace
+ local 'xtrace=set -o xtrace'
+ set +o xtrace
+ return 0
+ clean_iptables
+ sudo iptables -S -v
+ sed 's/-c [0-9]* [0-9]* //g'
+ grep nova
+ bash
+ awk '{print "sudo iptables",$0}'
+ sed s/-A/-D/g
+ grep '\-A'
+ sudo iptables -S -v -t nat
+ sed 's/-c [0-9]* [0-9]* //g'
+ grep nova
+ sed s/-A/-D/g
+ awk '{print "sudo iptables -t nat",$0}'
+ bash
+ grep '\-A'
+ sed 's/-c [0-9]* [0-9]* //g'
+ grep '\-N'
+ sed s/-N/-X/g
+ sudo iptables -S -v
+ grep nova
+ awk '{print "sudo iptables",$0}'
+ bash
+ sudo iptables -S -v -t nat
+ grep '\-N'
+ sed s/-N/-X/g
+ grep nova
+ bash
+ sed 's/-c [0-9]* [0-9]* //g'
+ awk '{print "sudo iptables -t nat",$0}'
++ sudo virsh list --all
++ grep instance-
++ sed 's/.*\(instance-[0-9a-fA-F]*\).*/\1/g'
+ local instances=
+ '[' '!' '' = '' ']'
++ sudo iscsiadm --mode node
++ grep volume-
++ cut -d ' ' -f2
iscsiadm: No records found
+ local tgts=
+ local target
+ sudo iscsiadm --mode node --op delete
iscsiadm: No records found
+ true
+ sudo rm -rf '/opt/stack/data/nova/instances/*'
+ sudo rm -rf /opt/stack/data/nova /var/cache/nova
+ configure_nova
+ sudo install -d -o stack /etc/nova
+ install_default_policy nova
+ local project=nova
++ echo nova
++ tr a-z A-Z
+ local project_uc=NOVA
+ local conf_dir=NOVA_CONF_DIR
+ conf_dir=/etc/nova
+ local project_dir=NOVA_DIR
+ project_dir=/opt/stack/nova
+ local sample_conf_dir=/opt/stack/nova/etc/nova
+ local sample_policy_dir=/opt/stack/nova/etc/nova/policy.d
+ cp -p /opt/stack/nova/etc/nova/policy.json /etc/nova
cp: preserving times for '/etc/nova/policy.json': Operation not permitted
+ exit_trap
+ local r=1
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 1 -ne 0 ]]
+ echo 'Error on exit'
Error on exit
+ [[ -z /opt/stack/logs ]]
+ /home/stack/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2015-04-27-165953.txt for details
+ exit 1

Thanks in advance !!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-09-28 23:48:25 -0600

Bharath Kumar gravatar image

change cp /opt/stack/nova/etc/nova/policy.json /etc/nova/policy.json
command in function-common file in devstack folder to
sudo cp /opt/stack/nova/etc/nova/policy.json /etc/nova/policy.json
as you are not running this with su , you need to put sudo there..
hope it will work for you also . Thank you

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-04-27 12:11:19 -0600

Seen: 1,252 times

Last updated: Apr 27 '15