About Forum Blogs NOC Docs Downloads KB Issues Code CI Registration

nocproject.org

#nocproject.org at irc.freenode.net log.
Back to nocproject.org Back to IRC log index
Date: 07.10.2011
inoyat_kayumov #
05:50
доброго всем
e_zombie #
05:50
и тебе также
inoyat_kayumov #
05:52
возвращаясь к вопросу про объекты которые будут только гадить трапами в нок...сейчас при заведении объекта в SA нужно обязательно указать repo path даже если галочка Is Configuration Managed? не установлена
zi_rus #
06:12
inoyat_kayumov, http://redmine.nocproject.org/issues/53 - в тему
inoyat_kayumov #
06:19
да
zi_rus #
06:20
собственно старый баг, и о нем все знают
qweasd #
06:32
:D
zi_rus #
06:33
кто-нибудь знает где лежат парматры для веб интерфейса? хочу поиграться шрифтами
qweasd #
06:38
instead of using the hg c lone method i'm trying the gzip file, but when i run python setup.py install i get : error: can't copy 'contrib/src/Sphinx/sphinx/builder.py': doesn't exist or not a regular file
06:39
is there a working install somewhere? =)
lexus-omsk #
06:45
как же всё-таки не хватает корреляции аварий по топологии: была проблемка - более 60 узлов легло, алармов насыпалось столько же, несколько смсок о падении узлов агрегации... а мог бы быть всего один аларм и одна смска :)
inoyat_kayumov #
06:46
вот поэтому нок в продакшен попадет еще очень не скоро
lexus-omsk #
06:47
inoyat_kayumov: я уже давно привык repo_path ставить для любых объектов, как раз из-за этого бага...
06:47
зато когда меняют железку на более управляемую, можно просто поставить галочку, а путь уже прописан
inoyat_kayumov #
06:48
да я тоже его ставлю - просто на днях тут спрашивал - про хосты к которым ничем ходить не надо совсем, они сами будут гадить трапами и все
zi_rus #
06:49
lexus-omsk, у меня сегодня ночью в одном месте питание отключали, с утра 137 оповещений пришло
lexus-omsk #
06:51
вот-вот... то же самое... особенно, когда смс в тестовом режиме ходят через бесплатный публичный сервис типа email2sms, там не пропускает сразу много
06:51
в итоге в очереди может достаточно долго висеть часть оповещений
inoyat_kayumov #
06:52
lexus-omsk: я отказался от всего что ходит через интернет в плане смс - висит тупой юсб-свисток и гадит
lexus-omsk #
06:55
я думал прикрутить поддержку smpp, есть модуль питоновский даже, но смысла нет, пока не дадут доступ на соответсвующий шлюз...
06:55
так что надо тоже посмотреть в сторону усб-модема с корпоративной симкой
zi_rus #
06:57
допилили бы нормально корреляцию алармов
qweasd #
07:01
it would be nice if someone can help me with the install :)
KTO-TO_ #
07:02
qweasd: what OS?
07:03
qweasd: did you read http://redmine.nocproject.org/projects/noc/wiki/Installation?
`kk #
07:04
qweasd, show noc-fcgi.conf
qweasd #
07:06
hehehe for 2 days now :) i combined the centos and deb together, there where some missing parts
07:06
i'm trying centos KTO-TO_
zi_rus #
07:07
кстати по поводу тех инструкций, если из репо тянуть, то настройки вебсервера надо менять, ведь сейчас нок-веб
KTO-TO_ #
07:07
qweasd: did you install from latets source from 'hg clone'?
qweasd #
07:07
yes, the tar files didnt work
07:08
now i'm doing a clean install on a centos and debian installation
07:08
phase; python setup.py install
KTO-TO_ #
07:10
qweasd: And? :) you have errors?
qweasd #
07:10
lol, the post-update doesnt work antymore
07:10
mz
KTO-TO_ #
07:11
qweasd: pgsql and mongo is running? users and db created? etc/noc.conf present and have proper vlaues for db? :)
07:12
qweasd: what error on post-update?
inoyat_kayumov #
07:12
qweasd: do not use setup.py - just try
07:12
su -s /bin/bash - noc; cd /opt/; hg clone http://hg.nocproject.org/noc noc; ./scripts/post-update
07:12
- cp noc.default to noc.conf and correct path in /opt/noc/etc/noc.conf:
07:12
/usr/bin/pg_dump
07:12
/bin/tar
07:12
/bin/gzip
07:12
/usr/bin/hg (in vcs path)
07:12
- correct /etc/sudoers
07:12
noc ALL = NOPASSWD: ALL
07:12
- rerun ./scripts/post-update
qweasd #
07:17
hm
07:17
i give it a try in few secs
07:17
just post the error which i get
07:17
Updating pyRule version_inventory
07:17
Syncronize collections
07:17
Syncing noc.sockets:
07:17
Updating: Container | Freespace
07:17
Updating: Mount | 19" Rack
07:17
Refining: name = 'Container | Freespace'
07:17
Updating: Container | Freespace
07:17
ERROR:root:UNHANDLED EXCEPTION (2011-10-07 13:14:26.073136)
07:17
Working directory: /opt/noc
07:17
<class 'mongoengine.base.ValidationError'>
07:17
Invalid EmbeddedDocumentField item (width_mm)
07:17
START OF TRACEBACK
07:17
------------------------------------------------------------------------
07:17
File: /opt/noc/contrib/lib/mongoengine-0.5-py2.6.egg/mongoengine/base.py (Line: 283)
07:17
Function: validate
07:17
276 try:
07:18
277 if hasattr(value, 'iteritems'):
07:19
the noc.sockets is the same for /tmp/ ?
inoyat_kayumov #
07:20
qweasd: http://dpaste.com/629359/ - my short instruction to install noc on debian6
KTO-TO_ #
07:20
qweasd: no. it's "hole" in equipment :)
inoyat_kayumov #
07:20
do not forget use x64!!!!
07:22
ну вот кстати да - опять вылезает вопрос кто как ставит нок :) по большому счету - два разных пути
07:23
1) получить дистр нока (не важно, тарболл или hg), развернуть в папку и оттуда setup.py
07:23
2) сразу hg clone в рабочую папку нок
07:24
я ставлю вторым
07:24
способом
KTO-TO_ #
07:24
inoyat_kayumov: А некоторые еще и из портов ставят :) (FreeBSD)
07:24
2 - он больше для девелопинга.
inoyat_kayumov #
07:24
нету бсд - не прижилась исторически
KTO-TO_ #
07:24
ИМХо
inoyat_kayumov #
07:26
а по мне - так 1 - лишний шаг :) если можно сразу в рабочую папку
KTO-TO_ #
07:28
inoyat_kayumov: 1 - должно быть в продакшене. С ним люди работают :) 2 - должно быть в тесте. Накатил, посмотрел, если все хорошо - выкатил в продашн.
07:28
если сразу 2 - то легко можно поломать рабочий инструмент
inoyat_kayumov #
07:29
KTO-TO_: я только для новых установок использую
KTO-TO_ #
07:30
А обновлятся ты как будешь?
inoyat_kayumov #
07:31
как и сейчас - hg pull -u из /opt/noc под юзером noc, потом ./scripts/post-update - никаких проблем
qweasd #
07:32
inoyat_kayumov: the cp noc.default need to be done before the post-update? else i do get err :p and in the manual its before too
inoyat_kayumov #
07:32
qweasd: edit noc.conf and rerun post-update
KTO-TO_ #
07:33
inoyat_kayumov: и можешь что-нибудь неожиданно поломать :)
inoyat_kayumov #
07:33
now there is no good documentation for installing the NOC ... there are two ways to install the NOC - 1) Download the archive, unzip it into any directory and execute from there python setup.py install
07:34
2) see my link above
07:35
KTO-TO_: эээ....ломается обычно с приезжающим апдейтом...и как по-твоему - правильно обновляться?
qweasd #
07:35
i changed the paths
07:35
and again:
07:35
Syncing noc.sockets:
07:35
Updating: Container | Freespace
07:35
Updating: Mount | 19" Rack
07:35
Refining: name = 'Container | Freespace'
07:35
Updating: Container | Freespace
07:35
ERROR:root:UNHANDLED EXCEPTION (2011-10-07 13:34:59.386429)
07:35
Working directory: /opt/noc
07:35
<class 'mongoengine.base.ValidationError'>
07:35
Invalid EmbeddedDocumentField item (width_mm)
07:36
START OF TRACEBACK
07:36
------------------------------------------------------------------------
07:36
File: /opt/noc/contrib/lib/mongoengine-0.5-py2.6.egg/mongoengine/base.py (Line: 283)
07:36
Function: validate
07:36
276 try:
07:36
277 if hasattr(value, 'iteritems'):
07:36
278 [self.field.validate(v) for k,v in value.iteritems()]
07:36
279 else:
07:36
280 [self.field.validate(v) for v in value]
07:36
281 except Exception, err:
07:36
282 raise ValidationError('Invalid %s item (%s)' % (
07:36
283 ==> self.field.__class__.__name__, str(v)))
inoyat_kayumov #
07:36
qweasd: use dpaste.com plz...
qweasd #
07:36
284
07:36
etc etc..
07:36
its centos btw
07:38
http://dpaste.com/629370/
07:39
someone need coffee? going to machine :p
inoyat_kayumov #
07:40
qweasd: ask to dvolodin - unfortunately I can not help
qweasd #
07:44
dvolodin, help ! =D
07:45
i'll give it a try on a deb machine
07:45
i think this error above is the problem i get in apache log, FastCGI: failed to connect to server "/opt/noc/noc.fcgi": connect() failed
07:45
?
KTO-TO_ #
07:49
qweasd: In new version used noc-web daemon. Not fcgi. look at share/docs/en/nocbook/installation/webserver.rst. Unfortunally, there are no right 'apache' section. Only nginx and lighttpd.
qweasd #
07:52
the noc web daemon doesnt work either, i get an error of the server with : tryed balbla dirs
07:53
you mean the python manage.py runserver 0.0.0.0:8000 right/
KTO-TO_ #
07:57
qweasd: try set workers=1 in noc-web.conf.
07:59
qweasd: nope ;) But for test you may try it.
qweasd #
08:00
ok set workers, how to run? just for sure =D
zi_rus #
08:01
народ! я тут балуюсь cm.prefix_list_pull. сейчас пришло уведомление на почту, что типа изменился префикс лист, чувствую, где-то меня нае... вводят в заблуждение, но понять не могу где. Вот что пришло:
KTO-TO_ #
08:01
qweasd: for test = './noc runserver'
zi_rus #
08:01
ip prefix-list AS-TTKNN permit 46.52.144.0/21 le 23
08:01
ip prefix-list AS-TTKNN permit 46.52.152.0/23
08:01
-ip prefix-list AS-TTKNN permit 46.52.156.0/22
08:01
ip prefix-list AS-TTKNN permit 46.52.160.0/23
08:01
ip prefix-list AS-TTKNN permit 46.52.164.0/22
08:01
ip prefix-list AS-TTKNN permit 46.52.168.0/23
08:01
-ip prefix-list AS-TTKNN permit 46.52.172.0/22 le 23
08:01
+ip prefix-list AS-TTKNN permit 46.52.172.0/22
qweasd #
08:01
crap, the install on centos seems to be working? i set orkser=1, and run the 0.0.0. thing
zi_rus #
08:01
ip prefix-list AS-TTKNN permit 46.52.184.0/23
08:01
ip prefix-list AS-TTKNN permit 46.52.186.0/24
qweasd #
08:01
get a login thing :p
KTO-TO_ #
08:03
qweasd: for full launch noc - scripts/noc-launch.py start... But first you must have correctly working post-update :(
08:03
zi_rus: а что не так?
zi_rus #
08:04
KTO-TO_, видишь как стоят - и +. я не верю что оно могло ТАК произойти
KTO-TO_ #
08:06
zi_rus: А! Слона то я и не заметил :) Может был route-object на /23 или /24 из этой /22? а теперь его нет...
gnu-linux #
08:07
есть бага в cm/models.py в class Object переменная repo_path в функции def in_repo вылетает если есть русские буквы...
08:07
чинить пробывал, подгрузил модуль:
zi_rus #
08:07
KTO-TO_, если бы что то было и пропало оно бы было в обновлении и там был бы минус, я привел полное сообщение об изменении
gnu-linux #
08:07
from django.utils.encoding import smart_str, smart_unicode
08:08
-repo_path=models.CharField("Repo Path",max_length=128,unique=True)
08:08
+repo_path=smart_str(models.CharField("Repo Path",max_length=128,unique=True))
08:09
но ссылкина объекты оно по адресам в памяти даёт, а не по их именам... Кто починить может???
KTO-TO_ #
08:09
zi_rus: Не. Если была сетка 46.52.172.0/23, то она попадает под 46.52.172.0/22 le 23.
08:15
gnu-linux: может использовать smart_str в самой функции in_repo ?
zi_rus #
08:18
KTO-TO_, все, я осознал что произошло. опять не удалось подловить машину :)
KTO-TO_ #
08:19
zi_rus: ^)
qweasd #
08:20
at the screencast movie the left menu is a drop down menu, i do have a drop down menu but it have yellow folders, is the screncast movie of an old version or is this browser related?
08:20
yellow folder icons
gnu-linux #
08:20
Да, как раз def in_repo и def status вылетают.. но как smart_str в них использовать не знаю..
zi_rus #
08:21
qweasd, last noc has new UI. как-то так
qweasd #
08:22
with the yellow folders?
zi_rus #
08:24
yes.
KTO-TO_ #
08:25
gnu-linux: там где repo_path используется, попробовать обернуть это в smart_str. ХЗ, на сколько это правильно :)
qweasd #
08:26
k
08:27
seems to be sort of working on port 8000, it only sais unconfigured install and some 'add xxxx' buttons doesnt work yet
08:27
looks nice
KTO-TO_ #
08:28
qweasd: "unconfigured install" - it's title from noc.conf :)
zi_rus #
08:28
qweasd, noc.conf [customization]
KTO-TO_ #
08:29
qweasd: And wait for dvoloding for fix post-update
qweasd #
08:30
omfg :)
08:30
what is his nickname? or is he offline?
KTO-TO_ #
08:31
qweasd: nickname = 'dvolodin' :) or 'dvolodin_' . And yes, he's offline now ;(
qweasd #
08:38
ok =)
08:40
what tmie is it in .ru/
zi_rus #
08:42
from GMT+4 to GMT+13
qweasd #
08:42
heh :D
zi_rus #
08:43
и это без Калининграда
KTO-TO_ #
08:43
zi_rus: а +13 бывает? :)
zi_rus #
08:44
по карте часовых поясов смотрю на камчатке +9
08:44
в Магадане - часовой пояс Москвы +8 часов (GMT+11), на Камчатке - часовой пояс Москвы +9 часов (GMT+12)
08:45
но мы же сейчас по +4 живем, так что
KTO-TO_ #
08:45
zi_rus: хех :) нашел таймзону камчатки :)
gnu-linux #
08:48
О у меня CM с русскими буквами кажись задышал, но при обновлении конфига выдаёт трейс: http://pastie.org/2654101
KTO-TO_ #
08:48
gnu-linux: а зачем тебе русский буквы в репозитотрии? :)
gnu-linux #
08:50
У меня в названиях объектов русские буквы.. В именах репозитария их нет.. Последний трейс с русскими буквами врят ли связан..
zi_rus #
08:51
KTO-TO_, я понял что ты имел ввиду про +13. интересный вопрос. видимо бывает
gnu-linux #
08:51
Это ошибка где-то на стыке ОС и нока... Но с правами сё ОК...
KTO-TO_ #
08:52
zi_rus: И в военное время число пи тоже бывает другим :)))
08:52
gnu-linux: Вроде русским язфком написано "No such file or directory" :) ли hg не там ли пути /var/repo/config нет :)
Dmitry1 #
08:53
кстати, про русские буквы. лично у меня проблема рассосалась, когда я postgesql собрал с icu
qweasd #
08:53
is it possible to close all tabs at once?
KTO-TO_ #
08:54
qweasd: not now.
qweasd #
08:55
ok, im lazy clicker ;p
KTO-TO_ #
08:59
Кто-нибудь ведет свою ветку noc'а локально?
qweasd #
09:03
there's a screencast about syslog stuff but i'm not sure if there's a function that a syslogmessage hits and email a user, is this be possible? so trunk goes up down > switch sends trap > noc receives msg and have a fitler on this > email user
lexus-omsk #
09:10
qweasd: i guess you need to create alarm trigger and notification group then
qweasd #
09:12
nice nice
09:20
at the menubar> inventory or service activation both give me page not found 404
09:29
an other error, in the post-update the ssh keys are generated, when running the application the noc-activator.0.log gives me 'cannot find ssh keys. genereate one by ./noc generate-ssh-keys' , as root i do not get errors as noc i do get errors because it tries to write in to /etc/ssh/ where are those files placed?
09:29
ah there's the king
dvolodin #
09:45
qweasd: noc generates own ssh keys for sae-activator communications. they are stored in etc/ssh inside NOC directory
qweasd #
09:47
ye thought so, but still the error in the logfile
09:47
noc:noc 600 are the rsa and rsa.pub
KTO-TO_ #
09:50
qweasd: on dir etc/ssh too?
qweasd #
09:54
dir ssh ; rw-rw-r
09:54
noc:noc
KTO-TO_ #
09:55
qweasd: error in log file the same? about ssh keys?
qweasd #
10:00
in /var/log/noc : noc-activator.0.log: Cannot ind ssh keys. Generate one by './noc generate-ssh-keys' command
10:00
using tail so refresh every time, get thsi error once / 2 secs
KTO-TO_ #
10:19
qweasd: how are you run activator? Try enable debug in noc-activator.conf and see path of ssh keys, that's tring to load
qweasd #
10:21
[ssh]
10:21
etc/ssh/id_rsa
10:26
think found prob, not shure how to fix
10:29
the ssh dir is 664, noc:noc, the user noc cant go into the dir
10:29
whoami > noc
10:29
777 is worknig :|
10:34
missed +x :/
KTO-TO_ #
10:41
qweasd: :)
qweasd #
10:48
:D
10:49
service activation > managed objects >
10:49
UNHANDLED EXCEPTION (2011-10-07 16:35:58.516060) Working directory: /opt/noc Caught DoesNotExist while rendering: AlarmClass matching query does not exist. START OF TRACEBACK ------------------------------------------------------------------------ File: /opt/noc/contrib/lib/mongoengine-0.5-py2.6.egg/mongoengine/queryset.py (Line: 733) Function: get 726 if count == 1: 727 return self[0] 728 elif count > 1: 729 message = u'%d items retu
10:49
:[
KTO-TO_ #
10:57
qweasd: i think it's related to wrong post-update...
qweasd #
10:59
ah
10:59
not sure because the post update does not end at the error, it runs the other processes too
11:00
dvolodin: can you take a look at http://dpaste.com/629370/
dvolodin #
11:03
накатил фикс, вроде noc-web перестал крашить по процессу
qweasd #
11:04
^o)
KTO-TO_ #
11:08
dvolodin: вроде да :) Покрайней мере, как раньше не падает :)
zi_rus #
11:09
KTO-TO_, теперь по-другому падает? :)
KTO-TO_ #
11:09
zi_rus: пока не падает :)
dvolodin #
11:10
в предыдущем варианте основной процесс грузил все приложения noc, затем форковался
11:10
сейчас поменял порядок - сначала плодомся, потом грузимся
KTO-TO_ #
11:14
dvolodin: Тут народ говорил про хранить много файлов с одного МО. Что ты думаешь насчет один МО - один репо? :) А то и сейчас цифирки ревизий в одном конфиге идущие не подряд напрягают :)
dvolodin #
11:15
маньяки
11:15
я вообще хочу залить все в GridFS
KTO-TO_ #
11:18
dvolodin: Пути для хранения все-равно же придумывать. А там все-равно где хранить...
11:18
И как у монго с версионностью?
dvolodin #
11:19
посмотри cm/vcs
11:19
ничего не мешает сделать свой драйвер с репо на файл
KTO-TO_ #
11:20
Хмм... Ну не на файл. На MO :)
zi_rus #
11:32
кто-нибудь встречал такое. линк упал, но циска снпм трап не прислала
11:32
?
11:33
и в сислоге тишина
11:33
вообще никакой информации
qweasd #
11:34
dudes, how to fix this sgizzel :D
KTO-TO_ #
11:39
zi_rus: может линк не упал? :) А очень давно лежит?
zi_rus #
11:40
KTO-TO_, нет, линк был, а вот сейчас смотрю, по сислогу, связь с железкой пропала в прошлую субботу, но от железки куда все включено ни ответа ни привета что что-то случилось
KTO-TO_ #
11:41
zi_rus: могу только подтвердить что это странно :( Не припомню у нас такого.
11:47
dvolodin: Может по умолчанию воткнуть серую тему, а не грузить их профиля? :)
11:47
А синей темой моргает. :)
11:48
Вернее и по умолчанию воткнуть и грузить :) Но это будет незаметно, пока темы не различаются :)
11:49
Было вообще клево грузить css от темы ДО того, как все начнет рисоваться. Но пока я не нашел как это сделать :(
qweasd #
12:09
is it possible to create 192.168.1.0/24 and in this subnet auto create small subnets of /29
zi_rus #
12:10
qweasd, try to use pyRule
qweasd #
12:12
oki
dvolodin #
12:13
KTO-TO_: теоретически можно выставить тему еще до запуска application
12:13
прямо в desktop.html
qweasd #
12:15
is it possible to use pyrule too for adding fqdn to ip addr? i'm using other dns then the noc bind
dvolodin #
12:15
qweasd: NOC can be mated with almost any DNS server :)
qweasd #
12:17
o =)
12:17
watched the video / dns part, tiought only worked with local dns
dvolodin #
12:18
one of known installations feeds 6 nameservers
12:18
balancing zones between them
KTO-TO_ #
12:18
dvolodin: как? вызвать api_user_settings и использовать его в шаблоне?
dvolodin #
12:19
а, ты предлагаешь сразу юзерскую тему выставлять?
KTO-TO_ #
12:19
dvolodin: было бы клево :)
12:20
dvolodin: На самом деле два предложения :) по дефолту - поставить серую тему.
12:20
dvolodin: 2-ое - как-то выставлять юзерскую тему до прорисовки приложения
12:21
dvolodin: А ты на beef получал письмо?
qweasd #
12:22
think i found a bug in the menu structure? i.e. in the left menu bar > address spac management > click on maintainers change then the top mid structure bar goes to > ASM > prefix access > add prefix access , when you press in the left menu bar Assigned Addresses again, nothing happend, need to F5 the page
KTO-TO_ #
12:23
в связи с http://redmine.nocproject.org/issues/295
12:23
qweasd: it's semi-feature :)
12:23
qweasd: click on left menu, now, just open the same tab. Not reload it.
12:25
qweasd: You man close tab and open it again (by click on left menu) or use "breadcrumbs" inside tab for click forward and backward
12:25
man=can :)
qweasd #
12:26
mz
12:26
idd
12:26
need to close tab
12:26
how do this when the tab is open/
KTO-TO_ #
12:27
qweasd: You can click inside tab to 'Assigned Address' or link with previos prefix
12:27
qweasd: for now you can't just reload tab :(
qweasd #
12:27
the tab home > add space managemend > prefix isnt right, i cant go back to the assigned addr
12:27
mz
KTO-TO_ #
12:29
qweasd: Hmm... Do have section "Navigation"? May be it's help?
qweasd #
12:29
when you press assigned address at the left menu bar, it opens a tab, in the tab theres a html link home > add space managemend > assigned addr, when you press the maintainers this html link change to home > add sp m > prefix acc , so you cant go back to assigned addr :D
12:29
hehe
KTO-TO_ #
12:30
qweasd: or. i see. try 'back' in browser? :)
qweasd #
12:31
all other menu structures seems to be working
12:32
the maintainers change link in assigned addresses links to prefix access page, so you cant go back anymore
12:32
boh cant explani it
12:32
=D
KTO-TO_ #
12:33
qweasd: i understand :) and yes, you can't ;( But you can return using 'back' in browser ;)
qweasd #
12:33
true
12:34
it was just jittering in my head
12:34
think idd the post-update screw the other pages, tried to install on debian but have the same :[
12:39
am i already being annoying:?)
dvolodin #
13:12
KTO-TO_: юзерскую тему до прорисовки выставлять можно, наверное, но это лишний запрос и более долгая загрузка клиента
KTO-TO_ #
13:20
dvolodin: да ну :) Это ж мелкий запрос про user properties. их же мало. и юзеров и значений. Не должно тормозить.
dvolodin #
13:20
delay
13:20
туда-обратно
13:20
ну попробуем сделать, ладно
KTO-TO_ #
13:21
dvolodin: А если без "туда-обратно", как ты говорил. в desktop.html? на этапе отдачи этого html...
Tweet
Share this page
Share this page: Tweet