Ask Your Question

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 ./ and ./ and I change a bit my localrc (host_ip, some stuff like this).

Now when I launch ./ 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.


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

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

GLaupre gravatar image


I went at ( 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


edit flag offensive delete link more

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/ 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 ( -b stable/icehouse

now you should proceed with stack installation.

Have Fun :)

edit flag offensive delete link more


Yes thanks :)

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 929 times

Last updated: Oct 22 '14