Hey there

We recently released OSS Scalr 5.1, where those jobs have been thoroughly 
refactored, you might want to check whether they work properly in the 
updated version!

Cheers, 

On Friday, December 26, 2014 5:26:53 AM UTC+1, Hee-Sung Kim wrote:
>
>
> i have found out a work around...
>
> 1. install 5.1
> 2. change analytics_poller.py
>
> ### /opt/scalr/current/app/python/scalrpy/analytics_poller.py
>
>     for region_data in cloud_data:
>         cloud_location = region_data['region']
>         instances_ids = list(set(
>             str(node['instance_id'])
>             for node in region_data['nodes'] if node['instance_id'] or 
> node['instance_id'] == 0))
>         if not instances_ids:
>             continue
>         results = tuple()
>         i, chunk_size = 0, 200
>         while True:
>             chunk_ids = instances_ids[i*chunk_size:(i+1)*chunk_size]
>             #LOG.info(chunk_ids)
>             if not chunk_ids:
>                 break
>             if url:
>                 url = app.custom_url  *# <-- add*
> .
> .
> .
>     def do_iteration(self):
>         for envs in self.analytics.load_envs(limit=500):
>             creds = self.analytics.load_creds(envs, platforms)
>             unique_creds = self.analytics.filter_creds(creds)
>             for _ in unique_creds:
>                 envs_ids = _['env_id']
>                 cred = _['cred']
>                 self.custom_url = creds[0]['keystone_url']  *# <-- add*
>                 while len(self.pool) > self.config['pool_size'] * 5 / 10:
>                     gevent.sleep(0.1)
>                 self.pool.apply_async(
>                     process_credential,
>                     args=(cred,), kwds={'envs_ids': envs_ids})
>                 gevent.sleep(0) # force switch
>         self.pool.join()
>
>
> 2014년 12월 11일 목요일 오후 8시 59분 50초 UTC+9, Hee-Sung Kim 님의 말:
>>
>>
>> I came across error after install "scalr v5.0.1" on centos 6.5.
>>
>> "cost analytics" doesn't work.. 
>>
>> - error message.
>>
>> /var/log/scalr/analytics-poller.log
>>
>> platform: openstack  environments : 1  reason: TypeError: list indices 
>> must be integers, not str  file : analytics_poller.py 541 line
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to