Ask Your Question
1

Juno - Glance initialisation: /metadefs/ No such file or directory

asked 2014-10-21 21:50:18 -0500

GLaupre gravatar image

updated 2014-10-22 10:43:27 -0500

Hello everyone,

I installed devstack stable/juno this afternoon with neutron and it worked. (I had to disable some services because I had some errors).

I ran ./unstack.sh and ./clean.sh and I change a bit my localrc (host_ip, some stuff like this).

Now when I launch ./stack.sh I have this error : [...] cp -p /opt/stack/glance/etc/policy.json /etc/glance/policy.json

cp -p /opt/stack/glance/etc/schema-image.json /etc/glance/schema-image.json

cp -p '/opt/stack/glance/etc/metadefs/.json' /etc/glance/metadefs*

cp: cannot stat '/opt/stack/glance/etc/metadefs/*.json': No such file or directory [...] Error on exit

Those lines are in lib/glance

I mean, I just change the local.conf file, and now I have a missing directory, strange..

I saw that someone else had the same error but no fix is given. I tried to find the directory on git and make a copy by hand to the missing one /etc/metadefs/ but I did't find anything related to that in git, so I am a bit lost..

I looked for the same question but I did not find a thread about that error.

thank you very much.

Gaby

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-10-22 11:12:02 -0500

GLaupre gravatar image

Well,

I went at https://github.com/openstack/glance/tree/stable/juno (https://github.com/openstack/glance/t...) I just cloned glance and I copied /glance/etc/metadefs/* on the directory /opt/stack/glance/etc/ metadefs that I just created and which was absent. It seems to work like this..

Plz try to fix this. It is a bit strange that devstack doesn't provide all directories at the first place. Or maybe I did something wrong, most likely.

See ya

Gabriel

edit flag offensive delete link more
0

answered 2014-11-06 04:19:51 -0500

you should get the correct git repository for the setup.

first cleanup the setup that you did as: ./devstack/clean.sh then delete the devstack folder: cd \ rm -r -f devstack

now get the proper repository (for this example using the stable Icehouse release)

git clone https://github.com/openstack-dev/devstack.git (https://github.com/openstack-dev/devs...) -b stable/icehouse

now you should proceed with stack installation.

Have Fun :)

edit flag offensive delete link more

Comments

Yes thanks :)

GLaupre gravatar imageGLaupre ( 2014-11-12 17:52:00 -0500 )edit

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: 2014-10-21 21:50:18 -0500

Seen: 857 times

Last updated: Oct 22 '14