Note that the g-api of devstack cannot be started. a script for restarting devstack (restart. sh), download and execute again, and then report the error g-api failed to start, it hurts !! The specific point is as follows: Execute first. /stack. sh again. /unstack. sh again. /restart. sh. This script can restart devstack. Now, it is shut down and restarted directly. /restack. sh: the error g-api failed to start. It took two days to read the stack. sh and restart. after comparing the code of the sh script, we found that restart. sh command to start glance is not completely correct, screen_it g-api "cd $ GLANCE_DIR; bin/glance-api -- config-file = $ GLANCE_CONF_DIR/glance-api.conf", from here we can see, start glance and call $ NOVA_DIR/bin/nova-api, that is,/opt/stack/glance/bin/glance-api, I went to the glance directory and checked that there was no bin/glance-api at all. So there must be a problem here. Finally, in the/usr/ The glance-api is found in local/bin, and then the above is changed to screen_it g-api "cd/usr/local; bin/glance-api -- config-file = $ GLANCE_CONF_DIR/glance-api.conf "to solve this problem temporarily.