Difference between revisions of "Bright:Troubleshoot-CaaS"

From Define Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
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>
 +
 +
== Cannot Create new CaaS nodes ==
 +
 +
Again a timeout issue:
 +
 +
<syntaxhighlight>
 +
[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 240s
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->settings*]% set timeoutforconnection 240s
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->settings*]% set timeoutforserver 240s
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->settings*]% commit
 +
[shadow-head->device[shadow-head]->roles[haproxy]->settings]% ..
 +
[shadow-head->device[shadow-head]->roles[haproxy]]% entries
 +
[shadow-head->device[shadow-head]->roles[haproxy]->entries]% use orchestrationapi-heat
 +
[shadow-head->device[shadow-head]->roles[haproxy]->entries[orchestrationAPI-heat]]% set usecustomentrysettings 1
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[orchestrationAPI-heat*]]% settings
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[orchestrationAPI-heat*]->settings]% set timeoutforclient 240s
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[orchestrationAPI-heat*]->settings*]% set timeoutforconnection 240s
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[orchestrationAPI-heat*]->settings*]% set timeoutforserver 240s
 +
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[orchestrationAPI-heat*]->settings*]% commit
 +
</syntaxhighlight>
 +
 +
== Cannot find external network ==
 +
 +
This is a case when you renamed Bright's external network.
 +
 +
Bright's external network's name is hard coded. In order to change it edit the following file:
 +
<syntaxhighlight>
 +
/cm/shared/apps/cm-openstack-caas/bin/ExternalNet.py
 +
</syntaxhighlight>
 +
 +
Search and replace "bright-external-flat-externalnet" with the name of the network you just created.
 +
 +
You can retrieve the openstack network name with the command (Update <NETWORK_NAME> accordingly):
 +
<syntaxhighlight>
 +
cmsh -c "network; use <NETWORK_NAME>; get openstackphysicalnetworkname"
 +
</syntaxhighlight>

Latest revision as of 17:21, 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

Cannot Create new CaaS nodes

Again a timeout issue:

[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 240s
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->settings*]% set timeoutforconnection 240s
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->settings*]% set timeoutforserver 240s
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->settings*]% commit
[shadow-head->device[shadow-head]->roles[haproxy]->settings]% ..
[shadow-head->device[shadow-head]->roles[haproxy]]% entries 
[shadow-head->device[shadow-head]->roles[haproxy]->entries]% use orchestrationapi-heat 
[shadow-head->device[shadow-head]->roles[haproxy]->entries[orchestrationAPI-heat]]% set usecustomentrysettings 1
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[orchestrationAPI-heat*]]% settings
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[orchestrationAPI-heat*]->settings]% set timeoutforclient 240s
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[orchestrationAPI-heat*]->settings*]% set timeoutforconnection 240s
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[orchestrationAPI-heat*]->settings*]% set timeoutforserver 240s
[shadow-head->device*[shadow-head*]->roles*[haproxy*]->entries*[orchestrationAPI-heat*]->settings*]% commit

Cannot find external network

This is a case when you renamed Bright's external network.

Bright's external network's name is hard coded. In order to change it edit the following file:

/cm/shared/apps/cm-openstack-caas/bin/ExternalNet.py

Search and replace "bright-external-flat-externalnet" with the name of the network you just created.

You can retrieve the openstack network name with the command (Update <NETWORK_NAME> accordingly):

cmsh -c "network; use <NETWORK_NAME>; get openstackphysicalnetworkname"