TECHZEN Zenoss User Community ARCHIVE  

Zenoss 5 and installing Zenpacks

Subject: Zenoss 5 and installing Zenpacks
Author: [Not Specified]
Posted: 2015-09-09 10:13

I had a question, I've got Zenoss 5 installed. I really like the new version. The look and feel is nice, the docker deploy was pretty simple. I have a question though, I want to install the AWS zenpack, however when I go into the docker instance and try to install it thought the instructions it gives me an error connecting to the local database. Is there an updated procedure that I'm missing. I will post the error on instruction below. Thanks.

Install instructions on this page.
http://wiki.zenoss.org/ZenPack:Amazon_Web_Services

Error:
WARNING:relstorage.adapters.mysql:Unable to connect: (2003, "Can't connect to MySQL server on '127.0.0.1' (111)")
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 812, in
zp.run()
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 211, in run
self.connect()
File "/opt/zenoss/Products/ZenUtils/ZenScriptBase.py", line 46, in connect
self.db, self.storage = connectionFactory.getConnection(**self.options.__dict__)
File "/opt/zenoss/Products/ZenUtils/MySqlZodbFactory.py", line 165, in getConnection
storage = relstorage.storage.RelStorage(adapter, **relstoreParams)
File "/opt/zenoss/lib/python2.7/site-packages/relstorage/storage.py", line 167, in __init__
self._adapter.schema.prepare()
File "/opt/zenoss/lib/python2.7/site-packages/relstorage/adapters/schema.py", line 856, in prepare
self.connmanager.open_and_call(callback)
File "/opt/zenoss/lib/python2.7/site-packages/relstorage/adapters/connmanager.py", line 73, in open_and_call
conn, cursor = self.open()
File "/opt/zenoss/Products/ZenUtils/patches/mysqladaptermonkey.py", line 70, in open
conn, cursor = original(self, *args, **kwargs)
File "/opt/zenoss/lib/python2.7/site-packages/relstorage/adapters/mysql.py", line 231, in open
conn = MySQLdb.connect(**self._params)
File "/opt/zenoss/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect
return Connection(*args, **kwargs)
File "/opt/zenoss/lib/python2.7/site-packages/MySQLdb/connections.py", line 187, in __init__
super(Connection, self).__init__(*args, **kwargs2)
OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' (111)")



Subject: Zenoss 5 is different - read
Author: Jan Garaj
Posted: 2015-09-09 10:40

Zenoss 5 is different - read zenpack installation section:
http://www.zenoss.com/sites/default/files/documentation/Zenoss_Core_Admi...

Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.

DevOps stack: Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform / Elasticsearch



Subject: Great, that looks a lot
Author: [Not Specified]
Posted: 2015-09-09 12:14

Great, that looks a lot better. However I'm now getting this error when I try the install. The sever is a RHEL 7.1 EC2 instance.

F0909 13:06:06.383898 16400 shell.go:227] Error committing container: 573a66239430d270c02bd269bfce5c4a45764a88402ed232b5c750eaebd08c80 (could not create subvolume: /opt/serviced/var/volumes (unable to run cmd:[btrfs subvolume create /opt/serviced/var/volumes] output:ERROR: '/opt/serviced/var/volumes' exists
error:exit status 1))



Subject: I figured out what the error
Author: [Not Specified]
Posted: 2015-09-11 10:28

I figured out what the error was, I didn't setup the storage correctly. There needs to be at least two more drives added with 60GB one the first and 2GB on the second. These drives need to have two partitions each and the first two need to be over 15 GB for brtfs to work correctly it seems. Just in case someone else run into this. Thanks for the help again.



Subject: Please read latest
Author: Jan Garaj
Posted: 2015-09-11 11:40

Please read latest installation guide (or use autodeploy script) - latest Zenoss v5.0.5 requires just one btrfs filesystem /opt/serviced/var/volumes. Doc: https://www.zenoss.com/resources/documentation

Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.

DevOps stack: Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform / Elasticsearch



Subject: Missing /opt/serviced/var/volumes mount. What to do?
Author: [Not Specified]
Posted: 2015-12-02 08:49

The person that installed our Zenoss 5 installation did not creat the btrfs mount for /opt/serviced/var/volumes. Now the commands to create ZenPacks fail with this error:

F1201 14:38:25.460065 33131 shell.go:227] Error committing container: 4ba649d246528163f74b623207c1436a27d803ae020df826d3e18e82f69d98a5 (could not create subvolume: /opt/serviced/var/volumes (unable to run cmd:[btrfs subvolume create /opt/serviced/var/volumes]  output:ERROR: '/opt/serviced/var/volumes' exists
error:exit status 1))

How do I fix this

Thanks in advance...


< Previous
monitoring VMware ESXi 5.5
  Next
ZenPacks.community.ConstructionKit example files missing
>