Difference between revisions of "Bright:Troubleshoot-CaaS"

From Define Wiki
Jump to navigation Jump to search
Line 13: Line 13:
  
 
== Can't create snapshots ==
 
== Can't create snapshots ==
 +
 +
The problem was due to timeout uploading the image on glance, so we increase this timeout to 120s and change also the defaults from 4s to 20s.
 +
 +
<syntaxhighlight>
 +
cmsh
 +
[shadow-head]% device use master
 +
[shadow-head->device[shadow-head]]% roles
 +
[shadow-head->device[shadow-head]->roles]% use haproxy
 +
[shadow-head->device[shadow-head]->roles[haproxy]]% entries
 +
[shadow-head->device[shadow-head]->roles[haproxy]->entries]% use imagestorageapi-glance
 +
[shadow-head->device[shadow-head]->roles[haproxy]->entries[imageStorageAPI-glance]]% set usecustomentrysettings  1
 +
[shadow-head->device[shadow-head]->roles[haproxy]->entries[imageStorageAPI-glance]->settings]% set timeoutforclient 120s   
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[imageStorageAPI-glance*]->settings*]% set timeoutforconnection 120s
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[imageStorageAPI-glance*]->settings*]% set timeoutforserver 120s
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[imageStorageAPI-glance*]->settings*]%
 +
 +
 +
[shadow-head]% device use master
 +
[shadow-head->device[shadow-head]]% roles
 +
[shadow-head->device[shadow-head]->roles]% use haproxy
 +
[shadow-head->device[shadow-head]->roles[haproxy]]% settings
 +
[shadow-head->device[shadow-head]->roles[haproxy]->settings]% set timeoutforclient 20s
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->settings*]% set timeoutforconnection 20s
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->settings*]% set timeoutforserver 20s
 +
</syntaxhighlight>

Revision as of 14:15, 8 December 2015

Can't upload image larger than 32GB

By default the max image size that could be uploaded to glance should be 32GB, so you can update this limit with the following command:

cmsh
[shadow-head]% openstack
[shadow-head->openstack[default]]% settingsquota                                              
[shadow-head->openstack[default]->settings:quota]% set maxsingleimagesize 100GB
[shadow-head->openstack*[default*]->settings:quota*]% commit


Can't create snapshots

The problem was due to timeout uploading the image on glance, so we increase this timeout to 120s and change also the defaults from 4s to 20s.

cmsh
[shadow-head]% device use master 
[shadow-head->device[shadow-head]]% roles 
[shadow-head->device[shadow-head]->roles]% use haproxy 
[shadow-head->device[shadow-head]->roles[haproxy]]% entries 
[shadow-head->device[shadow-head]->roles[haproxy]->entries]% use imagestorageapi-glance
[shadow-head->device[shadow-head]->roles[haproxy]->entries[imageStorageAPI-glance]]% set usecustomentrysettings  1
[shadow-head->device[shadow-head]->roles[haproxy]->entries[imageStorageAPI-glance]->settings]% set timeoutforclient 120s     
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[imageStorageAPI-glance*]->settings*]% set timeoutforconnection 120s
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[imageStorageAPI-glance*]->settings*]% set timeoutforserver 120s
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[imageStorageAPI-glance*]->settings*]% 


[shadow-head]% device use master 
[shadow-head->device[shadow-head]]% roles 
[shadow-head->device[shadow-head]->roles]% use haproxy 
[shadow-head->device[shadow-head]->roles[haproxy]]% settings 
[shadow-head->device[shadow-head]->roles[haproxy]->settings]% set timeoutforclient 20s
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->settings*]% set timeoutforconnection 20s
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->settings*]% set timeoutforserver 20s