UPWORK/ODESK guru: Tips and Tricks for clients

skype: odesk.by / upwork.link , email: [email protected]/upwork.link

Archive for the ‘Openstack’ Category

pip – to show all versions of package

without comments

(.venv) [[email protected] ~]$ pip install python-novaclient==
Collecting python-novaclient==
  Could not find a version that satisfies the requirement python-novaclient== (from versions: 2.6.0, 2.6.0.1, 2.6.10, 2.7.0, 2.8.0, 2.9.0, 2.10.0, 2.11.0, 2.11.1, 2.12.0, 2.13.0, 2.14.0, 2.14.1, 2.15.0, 2.16.0, 2.17.0, 2.18.0, 2.18.1, 2.19.0, 2.20.0, 2.21.0, 2.22.0, 2.23.0, 2.23.1, 2.23.2, 2.23.3, 2.24.0, 2.24.1, 2.25.0, 2.26.0, 2.27.0, 2.28.0, 2.28.1, 2.29.0, 2.30.0, 2.30.1, 2.30.2, 2.30.3, 2.31.0, 2.32.0, 2.33.0, 2.34.0, 2.35.0, 3.0.0, 3.1.0, 3.2.0, 3.3.0, 3.3.1, 3.3.2, 3.4.0, 4.0.0, 4.1.0, 5.0.0, 5.1.0, 6.0.0, 6.0.1, 7.0.0, 7.1.0, 7.1.1, 8.0.0)
No matching distribution found for python-novaclient==
(.venv) [[email protected] ~]$

Written by spectre

May 15th, 2017 at 9:25 pm

5 – five-minute introduction to the module logging Python

without comments

The use of pirnt is suitable for those programmers who have enough time. But it’s better to use logging. In addition, learn to use the Python debugger for debugging errors and Pylint to prevent errors and to make the code more readable.
In order to display the log messages on the screen, use the following code:

Read the rest of this entry »

Written by spectre

May 7th, 2017 at 2:35 pm

Flush Expired Openstack Keystone Tokens

without comments

After a while of running Openstack and performing a lot of testing (especially Tempest) you may find that your database seems to get pretty full … and this is partly down to expired keystone token’s that remain in the DB table.

To resolve this simply setup a periodic Cron job to execute

1
# /usr/bin/keystone-manage token_flush

This will remove all expired tokens to help clean-up the DB a bit

Of course, this action better to insert as cron task:

1
2
3
4
# cat keystone_token_flush
#!/bin/bash

10 * * * * root /usr/bin/keystone-manage token_flush

Written by spectre

April 24th, 2017 at 2:11 am

OpenStack : Glance 11.0.1 on OpenSuse 13.2 – ‘cannot import name _uuid_generate_random’

without comments

Если вы получили этот питоньячий костыль при попытке запуска glance

ERROR: Unable to load glance-api-keystone from configuration file /etc/glance/glance-api-paste.ini.
Got: ImportError('cannot import name _uuid_generate_random',)

Read the rest of this entry »

Written by spectre

February 14th, 2017 at 5:35 pm

Posted in Openstack

OpenStack : по следам костыльного сообщения – No handlers could be found for logger “oslo_config.cfg”

without comments

Отслеживания питоньячего кода привело к удивительном открытию. В процессы установки glance чуда по мануалам мы получили, в частности два питоньячих модуля в основной системе:

Read the rest of this entry »

Written by spectre

February 13th, 2017 at 6:06 pm

Posted in Openstack

OpenStack : Что такое нафиг OSLO, читаем о исходе

without comments

http://docs.openstack.org/project-team-guide/oslo.html

Written by spectre

February 13th, 2017 at 3:48 pm

Posted in Openstack

OpenStack : Glance питоньячий костыль командной строки

without comments

В отличии от консольного ‘opestack’, который может что-то сказать членораздельно о не нужных параметрах вызова, это поделка путает места параметров и типы ошибок.

Так при наличии параметров:

--os-identity-api-version 
или
--os-auth-type password

Она будет уперто выплевывать

#glance: error: argument : invalid choice: u'password' (choose from 'explain', 'image-create', 'image-delete', 'image-download', 'image-list', 'image-show', 'image-tag-delete', 'image-tag-update', 'image-update', 'image-upload', 'location-add', 'location-delete', 'location-update', 'md-namespace-create', 'md-namespace-delete', 'md-namespace-import', 'md-namespace-list', 'md-namespace-objects-delete', 'md-namespace-properties-delete', 'md-namespace-resource-type-list', 'md-namespace-show', 'md-namespace-tags-delete', 'md-namespace-update', 'md-object-create', 'md-object-delete', 'md-object-list', 'md-object-property-show', 'md-object-show', 'md-object-update', 'md-property-create', 'md-property-delete', 'md-property-list', 'md-property-show', 'md-property-update', 'md-resource-type-associate', 'md-resource-type-deassociate', 'md-resource-type-list', 'md-tag-create', 'md-tag-create-multiple', 'md-tag-delete', 'md-tag-list', 'md-tag-show', 'md-tag-update', 'member-create', 'member-delete', 'member-list', 'member-update', 'task-create', 'task-list', 'task-show', 'bash-completion', 'help', 'bash_completion')

Дайте студентам фламастеры и гоните горе кодеров из ПТУ …

Written by spectre

February 13th, 2017 at 2:10 pm

Posted in Openstack

OpenStack : OpenStackClient (python-openstackclient) общий клиент коммандной строки

without comments

питонячий костыль в студии:

OpenStackClient (aka OSC) is a command-line client for OpenStack that brings the command set for Compute, Identity, Image, Object Store and Volume APIs together in a single shell with a uniform command structure. The primary goal is to provide a unified shell command structure and a common language to describe operations in OpenStack.

Где и что искать об этом костыле:

Read the rest of this entry »

Written by spectre

February 12th, 2017 at 3:07 pm

Posted in Openstack

OpenStack : компоненты хранилищ – Swift и Cinder

without comments

https://www.ibm.com/developerworks/ru/library/cl-openstack-swift-cinder/#N10108

Written by spectre

February 8th, 2017 at 2:41 pm

Posted in Openstack