
Алексей
12.06.2016
13:07:56
подтянул нужное ядро.
ну вы поняли да

Ilya
12.06.2016
13:08:45
Можно automotion замутить :)

Andrey
12.06.2016
13:09:06
по хорошему, надо стенд для нагрузочного тестирования собирать

Google

Andrey
12.06.2016
13:09:12
я так думаю

Алексей
12.06.2016
13:09:21
да был он стенд
толко его задачи были не посчитать конфиг для инстялятора для одного хоста

Ilya
12.06.2016
13:10:00
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
23968 root 20 0 118m 11m 2380 R 1.7 0.0 0:00.05 perl
15041 jboss 20 0 8583m 7.0g 28m S 1.0 22.6 69:37.69 java
```18646 opennms 25 5 9688m 800m 27m S 0.7 2.5 28:46.74 java
15 root 20 0 0 0 0 S 0.3 0.0 3:18.37 events/0
29 root 20 0 0 0 0 S 0.3 0.0 0:00.78 kblockd/0
552 root 20 0 12876 1452 956 S 0.3 0.0 5:04.23 top
5200 root -2 0 49836 6876 4696 S 0.3 0.0 0:37.88 heartbeat
12572 jboss 20 0 475m 50m 11m S 0.3 0.2 0:39.45 java
13525 root 20 0 155m 10m 4328 S 0.3 0.0 28:12.30 snmpd
14346 jboss 20 0 581m 151m 21m S 0.3 0.5 0:51.24 java
17329 postgres 20 0 265m 43m 42m S 0.3 0.1 0:03.69 postmaster
20360 root 20 0 12892 1436 956 R 0.3 0.0 0:00.05 top
23970 root 20 0 33980 5008 1712 R 0.3 0.0 0:00.01 perl
1 root 20 0 10368 752 624 S 0.0 0.0 0:13.49 init
Как вам сколько хавает jspace?


Phil
12.06.2016
13:10:15
fatal: [noc]: FAILED! => {"changed": false, "failed": true, "msg": "Error when trying to enable mongod: rc=1 Failed to execute operation: No such file or directory\n"}
hmm, mongodb is instantiatied in Services

Ilya
12.06.2016
13:10:47

Алексей
12.06.2016
13:11:25
такую вот штуку
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
23968 root 20 0 118m 11m 2380 R 1.7 0.0 0:00.05 perl
15041 jboss 20 0 8583m 7.0g 28m S 1.0 22.6 69:37.69 java
18646 opennms 25 5 9688m 800m 27m S 0.7 2.5 28:46.74 java
15 root 20 0 0 0 0 S 0.3 0.0 3:18.37 events/0
29 root 20 0 0 0 0 S 0.3 0.0 0:00.78 kblockd/0
552 root 20 0 12876 1452 956 S 0.3 0.0 5:04.23 top
5200 root -2 0 49836 6876 4696 S 0.3 0.0 0:37.88 heartbeat
12572 jboss 20 0 475m 50m 11m S 0.3 0.2 0:39.45 java
13525 root 20 0 155m 10m 4328 S 0.3 0.0 28:12.30 snmpd
14346 jboss 20 0 581m 151m 21m S 0.3 0.5 0:51.24 java
17329 postgres 20 0 265m 43m 42m S 0.3 0.1 0:03.69 postmaster
20360 root 20 0 12892 1436 956 R 0.3 0.0 0:00.05 top
23970 root 20 0 33980 5008 1712 R 0.3 0.0 0:00.01 perl
1 root 20 0 10368 752 624 S 0.0 0.0 0:13.49 init
хоть видно будет


Ilya
12.06.2016
13:12:26

Google

Алексей
12.06.2016
13:12:32
у ansible свой взгляд на то как надо себя вести если таск пропущен.
он при этом всё равно регистрирует переменную

Phil
12.06.2016
13:12:45
yes :)
Well, apparently it's not working :(

Алексей
12.06.2016
13:12:47
зачем то.

Phil
12.06.2016
13:13:23
TASK [mongod : include] 01:31skipping: [noc] TASK [mongod : Setting mongo.key permissions] 01:31ok: [noc] TASK [mongod : Install MongoDB logrotated config] 01:32ok: [noc] TASK [mongod : Enable MongoDB system service] 01:33fatal: [noc]: FAILED! => {"changed": false, "failed": true, "msg": "Error when trying to enable mongod: rc=1 Failed to execute operation: No such file or directory\n"}

Алексей
12.06.2016
13:13:30
@regnauld what is OS on node ?

Ilya
12.06.2016
13:17:50
@freeseacher
TASK [post : notify alerta of deployment] 03:16fatal: [db01]: FAILED! => {"changed": false, "failed": true, "msg": "unknown url type: /api/alert?api-key="} fatal: [st02]: FAILED! => {"changed": false, "failed": true, "msg": "unknown url type: /api/alert?api-key="} fatal: [st01]: FAILED! => {"changed": false, "failed": true, "msg": "unknown url type: /api/alert?api-key="}
notify alerta of deployment]00:04 skipping: [st01] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} skipping: [db01] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true} skipping: [st02] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}

Phil
12.06.2016
13:18:58
ok, no idea what the issue could be with mongodb ?

Misak
12.06.2016
14:13:56
let me search history

Phil
12.06.2016
14:14:31
I'm looking at the role that failed to understand what the issue is
name: "{{ mongod_system_service }}"
enabled: yes
state: started
might be that isn't the service name on 16.04
ah that's a variable

Misak
12.06.2016
14:16:47
isn't started means it's started?

Phil
12.06.2016
14:17:09
yes - state
but
root@noc:/opt/noc/ansible# service mongod start
Failed to start mongod.service: Unit mongod.service not found.
hmmm

Google

Phil
12.06.2016
14:17:41
ahh!
http://askubuntu.com/questions/770054/mongodb-3-2-doesnt-start-on-lubuntu-16-04lts-as-service
looks like an issues specific to 16.04 - I need to create a systemd startup profile

Misak
12.06.2016
14:18:40
sudo apt-get install -y mongodb-org ?
ah, ok

Phil
12.06.2016
14:18:59
it's already there - just missing the startup profile

Misak
12.06.2016
14:19:30
systemd migration stuff

Phil
12.06.2016
14:21:15
fix is here http://askubuntu.com/questions/767134/mongodb-3-2-6-init-script-is-missing
re-deploying
and... fatal: [noc]: FAILED! => {"changed": false, "failed": true, "msg": "Error when trying to enable nsqd: rc=1 Failed to execute operation: No such file or directory\n"}
seems like the same issue

Misak
12.06.2016
14:27:45
yes
maybe some global prefix value is missing

Phil
12.06.2016
14:30:19
hm
I don't see an ansible role to install nsqd
only install nsqd.conf
Thisis broken:
- name: install nsqd.service file
template:
src: etc/systemd/nsqd.service
dest: /etc/systemd/system/nsqd.service
register: nsqd_service
oh that's debian sorry
but I don't see a role installing nsqd on Ubuntu

Google


Phil
12.06.2016
14:38:13
ok, that seems to download directly a precompiled bniary from aws - it worked the second time
but now it fails on trying to create an admin user again in mongodb:
fatal: [noc]: FAILED! => {"changed": true, "cmd": "/usr/bin/mongo admin /opt/noc/var/etc/mongo/admininit.js", "delta": "0:00:00.192702", "end": "2016-06-12 14:34:05.064213", "failed": true, "rc": 253, "start": "2016-06-12 14:34:04.871511", "stderr": "", "stdout": "MongoDB shell version: 3.2.7\nconnecting to: admin\n2016-06-12T14:34:05.057+0000 E QUERY [thread1] Error: couldn't add user: User \"root@admin\" already exists :\n_getErrorWithCode@src/mongo/shell/utils.js:25:13\nDB.prototype.createUser@src/mongo/shell/db.js:1267:15\n@/opt/noc/var/etc/mongo/admininit.js:4:1\n\nfailed to load: /opt/noc/var/etc/mongo/admininit.js", "stdout_lines": ["MongoDB shell version: 3.2.7", "connecting to: admin", "2016-06-12T14:34:05.057+0000 E QUERY [thread1] Error: couldn't add user: User \"root@admin\" already exists :", "_getErrorWithCode@src/mongo/shell/utils.js:25:13", "DB.prototype.createUser@src/mongo/shell/db.js:1267:15", "@/opt/noc/var/etc/mongo/admininit.js:4:1", "", "failed to load: /opt/noc/var/etc/mongo/admininit.js"], "warnings": []}
this shouldn't faile


Илья
12.06.2016
14:39:13
User \"root@admin\" already exists

Phil
12.06.2016
14:40:20
yes - but it shouldn't fail

Алексей
12.06.2016
14:45:42
@buhaha а проверь плиз ubuntu
зачем там много ошибок у товарища
и сказать чего у тя там в alerta url

Phil
12.06.2016
15:04:02
rolled back the mongo user creation, deployed again, and:
fatal: [noc]: FAILED! => {"changed": false, "failed": true, "msg": "Error when trying to enable nsqd: rc=1 Failed to execute operation: No such file or directory\n"}
I give up for now :(
it's 16.04 specific I think
I can try with 14.04 later

Алексей
12.06.2016
15:19:02
yep i think so ubuntu have upstart instead of systemd
the only person understand how it works is @buhaha
but seems he is not avalaible today

Ilya
12.06.2016
15:49:50

Phil
12.06.2016
16:10:33
I'll try with 14.04
it's easy with containers :)

Google

Алексей
12.06.2016
16:17:58
are you trying to install noc to container ?

Phil
12.06.2016
16:18:19
yes, using lxd/lxc

Алексей
12.06.2016
16:19:20
oh i was not tested at all. but if your container has full init system it can go well

Phil
12.06.2016
16:19:34
lxc/lxd is a full image

Алексей
12.06.2016
16:19:46
not like docker yep ?

Phil
12.06.2016
16:19:55
not like docker
fast cloning using ZFS
standard in 16.04

Алексей
12.06.2016
16:20:52
oh. seems i misted something :) ok.

Phil
12.06.2016
16:31:05
question: does the Tower just parse the ansible roles and populate the UI with the services/roles ? Or is there additional description/code to define all the "services"

Алексей
12.06.2016
16:33:17
tower just parse ansible/config/services.yml file for roles and later generates inventory file for ansible-palybook

Phil
12.06.2016
16:33:56
interesting - so this could be reused to create an open source Tower ?

Алексей
12.06.2016
16:35:36
tower is opensourced at all :)
under BSD license

Phil
12.06.2016
16:36:38
?
And here I thought it was proprietary!

Алексей
12.06.2016
16:37:08
everything that can be done via tower can be done by hands. but some time it is tricky

Phil
12.06.2016
16:37:28
right - I use ansible, I just never realized Tower was OS

Алексей
12.06.2016
16:37:45
ansible tower is closed source.
but noc tower is separate project

Phil
12.06.2016
16:38:10
ooookay