Hi:
   I am new to openstack installing on one VM. The environment includes
Win10,virtualbox,Ubuntu 18.04; The version of  devstack and openstack  is  Train;  the VM  includes 2vCPU,4G ram, 60G disk .
   The process was interrupted by cinder error.[internal server error]
     
 The stack.log shows as stack.log;
the c-api log shows as c-api log.

stack.log
+[38;5;242mlib/cinder:create_volume_types:531       (B[m openstack --os-region-name=RegionOne volume type create --property volume_backend_name=lvmdriver-1 lvmdriver-1
2020-10-29 07:57:11.863 | Internal Server Error (HTTP 500)
2020-10-29 07:57:12.182 | +[38;5;242mlib/cinder:create_volume_types:1         (B[m exit_trap
2020-10-29 07:57:12.232 | +[38;5;242m./stack.sh:exit_trap:536                 (B[m local r=1
2020-10-29 07:57:12.259 | ++[38;5;242m./stack.sh:exit_trap:537                 (B[m jobs -p
2020-10-29 07:57:12.316 | +[38;5;242m./stack.sh:exit_trap:537                 (B[m jobs=
2020-10-29 07:57:12.353 | +[38;5;242m./stack.sh:exit_trap:540                 (B[m [[ -n '' ]]
2020-10-29 07:57:12.385 | +[38;5;242m./stack.sh:exit_trap:546                 (B[m '[' -f /tmp/tmp.8Y7a6hpwLX ']'
2020-10-29 07:57:12.408 | +[38;5;242m./stack.sh:exit_trap:547                 (B[m rm /tmp/tmp.8Y7a6hpwLX
2020-10-29 07:57:12.468 | +[38;5;242m./stack.sh:exit_trap:551                 (B[m kill_spinner
2020-10-29 07:57:12.499 | +[38;5;242m./stack.sh:kill_spinner:446              (B[m '[' '!' -z '' ']'
2020-10-29 07:57:12.536 | +[38;5;242m./stack.sh:exit_trap:553                 (B[m [[ 1 -ne 0 ]]
2020-10-29 07:57:12.581 | +[38;5;242m./stack.sh:exit_trap:554                 (B[m echo 'Error on exit'
2020-10-29 07:57:12.581 | Error on exit
2020-10-29 07:57:12.615 | +[38;5;242m./stack.sh:exit_trap:556                 (B[m type -p generate-subunit
2020-10-29 07:57:12.635 | +[38;5;242m./stack.sh:exit_trap:557                 (B[m generate-subunit 1603957090 1142 fail
2020-10-29 07:57:14.084 | +[38;5;242m./stack.sh:exit_trap:559                 (B[m [[ -z /opt/stack/logs ]]
2020-10-29 07:57:14.110 | +[38;5;242m./stack.sh:exit_trap:562                 (B[m /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2020-10-29 07:57:17.223 | nova-compute: no process found
2020-10-29 07:57:17.264 | neutron-dhcp-agent: no process found
2020-10-29 07:57:17.338 | neutron-l3-agent: no process found
2020-10-29 07:57:17.409 | neutron-linuxbridge-agent: no process found
2020-10-29 07:57:17.471 | neutron-metadata-agent: no process found
2020-10-29 07:57:17.603 | +[38;5;242m./stack.sh:exit_trap:571                 
C-api log
STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION {{(pid=12249) _check_effective_sql_mode /usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/engines.py:307}}
10月 29 10:56:07 controller devstack@c-api.service[12246]: ERROR cinder.api.middleware.fault [req-7d67a008-3478-4da0-8b29-259571c1fb94 req-d823c701-e76a-489b-8ec9-fad9f9504c7b admin admin] Caught error: <class 'oslo_db.exception.DBConnectionError'> (pymysql.err.OperationalError) (2013, 'Lost connection to MySQL server during query')
10月 29 10:56:07 controller devstack@c-api.service[12246]: (Background on this error at: http://sqlalche.me/e/e3q8): DBConnectionError: (pymysql.err.OperationalError) (2013, 'Lost connection to MySQL server during query')
10月 29 10:56:07 controller devstack@c-api.service[12246]: (Background on this error at: http://sqlalche.me/e/e3q8)
10月 29 10:56:07 controller devstack@c-api.service[12246]: ERROR cinder.api.middleware.fault Traceback (most recent call last):
10月 29 10:56:07 controller devstack@c-api.service[12246]: ERROR cinder.api.middleware.fault   File "/opt/stack/cinder/cinder/api/middleware/fault.py", line 85, in __call__
10月 29 10:56:07 controller devstack@c-api.service[12246]: ERROR cinder.api.middleware.fault     return req.get_response(self.application)
Thanks for your help,firtly.