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: 26.07.2013
lexus-omsk #
02:56
Доброе утро!
02:56
У кого есть FM и бывают события, связанные с BGP - посмотрите, не валятся ли они в Failed?
infinityzxx #
03:33
what are my chances of getting someones wh speaks english in here ?
03:38
verry poor apparently. Maybe it's too late for you to actually answer something...
03:38
i'll try tomorrow morning
03:38
quit
lexus-omsk #
03:58
infinityzxx: no, I think it's too early yet - I guess most of noc users are from western part of Russia
04:04
infinityzxx: what questions do you have?
infinityzxx #
04:06
well, I'm having a hard time figuring out what causes an old working installation of no to fail after the removal of the "post-update scripts"
04:06
well, I'm having a hard time figuring out what causes an old working installation of noc** to fail after the removal of the "post-update scripts"
04:07
when i run the new upgrade script, it fetches and install all the required modules
04:07
and then, it runs "sync-db" apparently and this crashes violently:
04:08
Syncronizing database
04:08
Traceback (most recent call last):
04:08
File "manage.py", line 44, in <module>
04:08
execute_from_command_line(sys.argv)
04:08
File "/usr/local/noc/contrib/lib/django/core/management/__init__.py", line 443, in execute_from_command_line
04:08
utility.execute()
04:08
File "/usr/local/noc/contrib/lib/django/core/management/__init__.py", line 382, in execute
04:08
self.fetch_command(subcommand).run_from_argv(self.argv)
04:08
File "/usr/local/noc/contrib/lib/django/core/management/base.py", line 196, in run_from_argv
04:08
self.execute(*args, **options.__dict__)
04:08
File "/usr/local/noc/contrib/lib/django/core/management/base.py", line 231, in execute
04:08
self.validate()
04:08
File "/usr/local/noc/contrib/lib/django/core/management/base.py", line 266, in validate
04:08
num_errors = get_validation_errors(s, app)
04:08
File "/usr/local/noc/contrib/lib/django/core/management/validation.py", line 30, in get_validation_errors
04:08
for (app_name, error) in get_app_errors().items():
04:08
File "/usr/local/noc/contrib/lib/django/db/models/loading.py", line 158, in get_app_errors
04:08
self._populate()
04:08
File "/usr/local/noc/contrib/lib/django/db/models/loading.py", line 67, in _populate
04:08
self.load_app(app_name)
04:08
File "/usr/local/noc/contrib/lib/django/db/models/loading.py", line 88, in load_app
04:08
models = import_module('.models', app_name)
freee #
04:09
infinityzxx, use pastie
infinityzxx #
04:09
File "/usr/local/noc/contrib/lib/django/utils/importlib.py", line 35, in import_module
04:09
__import__(name)
04:09
File "/usr/local/noc/pm/models/__init__.py", line 9, in <module>
04:09
from db import PMDatabase
04:09
File "/usr/local/noc/pm/models/db.py", line 10, in <module>
04:09
from pymongo import MongoClient
lexus-omsk #
04:09
use services like pastebin for large pieces of code, please
infinityzxx #
04:09
ImportError: cannot import name MongoClient
04:09
upgrade-user: 36: syncdb failed
04:09
sorry, I should have used pastebin
freee #
04:09
lexus-omsk, надо правда наверное актокик сделать
04:10
на 7 строк
infinityzxx #
04:10
yeah I know, i did not want to paste the whole thing, it's on paste bin already
04:10
http://pastebin.com/Ff2Ent8r
04:11
and, btw, i dont read/understand russian
freee #
04:11
infinityzxx, upgrading after long time ?
infinityzxx #
04:11
yes
freee #
04:11
1. now need vitualenv
infinityzxx #
04:11
yeah it's there
freee #
04:12
2. ./scripts/upgrade
infinityzxx #
04:12
did that
04:12
its actually where it crashes
lexus-omsk #
04:12
seems like it can't find pymongo
freee #
04:12
./bin/pip freeze|grep mon
04:12
mongoengine==0.6.20
04:12
pymongo==2.5.2
infinityzxx #
04:12
yep, but pymongo imports just fine from python
04:13
[root@noc /usr/local/noc]# ./bin/pip freeze|grep mon
04:13
mongoengine==0.6.20
04:13
pymongo==2.5.1
freee #
04:14
./bin/python
infinityzxx #
04:14
editing /usr/local/noc/etc/requirements/noc.txt to have pymongo==2.5.2
freee #
04:14
from pymongo import MongoClient
infinityzxx #
04:14
doesnt change a thing
04:14
did that as well
04:14
works fine
freee #
04:14
pip seems doesnot deinstall previos version
infinityzxx #
04:15
http://pastebin.com/HHb8XXsP
04:15
I also tried to remove all packages beforehand with no luck
04:16
I'm quite confused at this point
freee #
04:16
./scripts/about
infinityzxx #
04:16
I also installed noc on another machine, its works fine there. but all the data is on that one...
04:17
http://pastebin.com/ZkgjWYZ4
freee #
04:19
i have |MongoDB|2.2.3 (64bit)|
04:19
may be need to upgrade ?
infinityzxx #
04:19
I can try that
freee #
04:20
and i have |NOC|0.7(4)r8101|
04:20
does't think it care, but..
04:21
after mongo update you should reinstall pymongo
infinityzxx #
04:21
i'll reinstall the whole thing, i'll just keep the "etc" folder
04:22
vitualenv should re-fetch everything right ?
freee #
04:22
dont' forget save personal modifications
04:22
hg diff
infinityzxx #
04:27
yeah, sure
04:27
thanks to you freee
04:28
I'll try to upgrade mongodb, we'll see
freee #
04:28
ok. thanks for thanks.
04:28
:)
infinityzxx #
04:31
I usually speak with dvolodin on skype but I dont want to take too mich of his time
04:31
:P
freee #
04:46
infinityzxx, wellcome to irc, then
guest-ru #
05:21
Смотрю тушенку полностью переделали. Теперь куда её в tests не ложат а в репозитории гдето хранят?
zi_rus #
05:21
да
guest-ru #
05:29
может и правильно, меньше хлама в НОКе будет.
05:40
Сегодня День Сисадмина! Поздравляю всех админов и себя ;)
zi_rus #
05:46
я и забыл
05:47
раньше следил, а сейчас что-то пропустил
mikevlz|3 #
05:47
уговорили, наливайте
e_zombie #
06:19
.
06:29
так как все спят - с праздником вас
Dmitry1 #
06:30
Не спят. Я допиваю чашку кофе. Уже один глаз приоткрылся
06:31
http://www.grosbein.pp.ru/admin-spotting.gif
e_zombie #
06:32
почти аналогично
06:33
https://kerbalspaceprogram.com/ рекомендую на сегодня. шикарная гама.
Dmitry1 #
06:34
Типа того. очередная грустная иистория с моим биллингом. звонит девочка, и говорит, что у меня он не считает итоги, потому как там ноль стоит. Садимся с калькулятором, подсчитываем сумму колонки, и таки ноль выходит. Вопрос: Хули она сама не могла освои
06:34
e_zombie: Просит html5 или flash.
06:35
У меня вроде есть и то, и то, но ему не нравится
zi_rus #
06:35
e_zombie, я демку ставил на компе, не понял что там делать надо, снес нафиг
e_zombie #
06:36
у нас вчера работа встала изза неё.
06:37
я под линем её гоняю
zi_rus #
06:37
я тоже
06:37
попытался разок
e_zombie #
06:37
я умудрился запустить на 200км чела а потом ужо чтото не получилось.
06:37
а напарник вчера чуть стыковку не сделал двух кораблей
zi_rus #
06:39
Dmitry1, ты наверное рад, там опять issue для циски постят :)
Dmitry1 #
06:40
Пусть постят. Все равно, пока Володина нету, все остановилось
zi_rus #
06:40
но это не длинки и не хуавеи и не прочее
06:41
еще неделю будем курить пока он придет
06:41
и еще неделю пока сделает
06:45
или нет
06:45
неделю пока приедет, неделю на уговоры, и неделю чтобы сделал
Dmitry1 #
07:40
типа того
e_zombie #
07:45
ууурааа . я первый раз вышел на круговую орбиту.
zi_rus #
07:57
если бы программисты были врачами, им бы пациенты говорили например "у меня болит нога", а они бы отвечали "ну не знаю, у меня такая же нога, а ничего не болит"
e_zombie #
07:58
:) это в любой ОСС читается между строк ежедневно
teroni #
10:17
Dmitry1: а почему все остановилось?? там некоторые вещи можно и сразу запустить :-)
zi_rus #
10:28
например
ufir #
11:41
что такое случилось, дискавери поломалось чтоли
11:41
2013-07-25 17:21:47,276 [inv.discovery] Running job id_discovery(jnr01-yla-gts)
11:41
2013-07-25 17:21:49,361 [inv.discovery: id_discovery(jnr01-yla-gts)] Identity found: Chassis MAC = None-None, hostname = None, router-id = None
11:41
совсем не дискаверит жунепер
11:43
а с консоли, сука, видит
11:43
2013-07-26 15:43:59,420 SCRIPT RESULT: Juniper.JUNOS.get_version(jnr01-yla-pet, 10.12.200.40)
11:43
{'platform': 'mx480', 'vendor': 'Juniper', 'version': '10.4R10.7'}
Dmitry1 #
11:53
ufir: Стопудово логин/пароль неверный
guest-ru #
12:15
Dmitry1: выложил тушонку для HP-1905 в NOC-950. Первый раз новую делал, может чё не так создалось..
Dmitry1 #
12:15
если NOC-950 pfrhsn? gthtjnrhjq tuj
12:15
переоткрой его
guest-ru #
12:17
Я его позавчера переоткрыл, когда прикрепил архив с новым профилем, смотри по дате архива, названия у них одинаковы.
Tweet
Share this page
Share this page: Tweet