openstack overcloud image upload fails 503 service unavailable: no server is available to handle this request. (http 503)

asked 2018-10-16 02:34:47 -0600

$ openstack overcloud image upload --image-path /home/stack/images/ 503 Service Unavailable: No server is available to handle this request. (HTTP 503) $ (undercloud) [stack@director ~]$ sudo systemctl restart openstack-glance-api.service (undercloud) [stack@director ~]$ sudo systemctl status openstack-glance-api.service ● openstack-glance-api.service - OpenStack Image Service (code-named Glance) API server Loaded: loaded (/usr/lib/systemd/system/openstack-glance-api.service; enabled; vendor preset: disabled) Active: failed (Result: start-limit) since Tue 2018-10-16 06:30:00 GMT; 5s ago Process: 8126 ExecStart=/usr/bin/glance-api (code=exited, status=1/FAILURE) Main PID: 8126 (code=exited, status=1/FAILURE)

Oct 16 06:30:00 http://director.example.com systemd[1]: Unit openstack-glance-api.service entered failed state. Oct 16 06:30:00 http://director.example.com systemd[1]: openstack-glance-api.service failed. Oct 16 06:30:00 http://director.example.com systemd[1]: openstack-glance-api.service holdoff time over, scheduling restart. Oct 16 06:30:00 http://director.example.com systemd[1]: start request repeated too quickly for openstack-glance-api.service Oct 16 06:30:00 http://director.example.com systemd[1]: Failed to start OpenStack Image Service (code-named Glance) API server. Oct 16 06:30:00 http://director.example.com systemd[1]: Unit openstack-glance-api.service entered failed state. Oct 16 06:30:00 http://director.example.com systemd[1]: openstack-glance-api.service failed. (undercloud) [stack@director ~]$

(undercloud) [stack@director ~]$ sudo more /var/log/glance/api.log|grep -iE "Error" 2018-10-15 03:30:57.793 29068 DEBUG oslo_db.sqlalchemy.engines [req-9527d85c-a4b1-4f13-9454-3237ffed763e 22e847feaf0f41cba1ad00b6503c605f bbe3c3a0e86044f994d41e6411747f02 - default default] MySQL server mode set to 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 _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py:290 2018-10-15 05:44:24.890 12310 DEBUG oslo_db.sqlalchemy.engines [-] MySQL server mode set to 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 _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py:290 2018-10-15 05:44:25.972 12325 DEBUG oslo_db.sqlalchemy.engines [-] MySQL server mode set to 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 _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py:290 2018-10-15 05:44:26.112 12325 ERROR glance.db.sqlalchemy.metadata [-] Failed to parse json file /etc/glance/metadefs/cim-processor-allocation-setting-data.json while populating metadata due to: [Errno 13] Permission denied: '/etc/glance/metadefs/cim-processor-allocation-setting-data.json': IOError: [Errno 13] Permission denied: '/etc/glance/metadefs/cim-processor-allocation-setting-data.json' 2018-10-15 05:44:26.113 12325 ERROR glance.db.sqlalchemy.metadata [-] Failed to parse json file /etc/glance/metadefs/cim-resource-allocation-setting-data.json while populating metadata due to: [Errno 13] Permission denied: '/etc/glance/metadefs/cim-resource-allocation-setting-data.json': IOError: [Errno 13] Permission denied: '/etc/glance/metadefs/cim-resource-allocation-setting-data.json' 2018-10-15 05:44:26.113 12325 ERROR glance.db.sqlalchemy.metadata [-] Failed to parse json file /etc/glance/metadefs/cim-storage-allocation-setting-data.json while populating metadata due to: [Errno 13] Permission denied: '/etc/glance/metadefs/cim-storage-allocation-setting-data.json': IOError: [Errno 13] Permission denied: '/etc/glance/metadefs/cim-storage-allocation-setting-data.json' 2018-10-15 05:44:26.113 12325 ERROR glance.db.sqlalchemy.metadata [-] Failed to parse json file /etc/glance/metadefs/cim-virtual-system-setting-data.json while populating metadata due to: [Errno 13] Permission denied: '/etc/glance ... (more)

edit retag flag offensive close merge delete