purestorage-openconnect / flashstache Goto Github PK
View Code? Open in Web Editor NEWOne-step configuration for automating array querying, storing the query results, and visualizing them with Grafana
License: Apache License 2.0
One-step configuration for automating array querying, storing the query results, and visualizing them with Grafana
License: Apache License 2.0
Where pip is defaulting to 3.5 in some distros, or might for other configurations on ubuntu server boxes, the setup.sh needs to be explicit in which it's using. Currently, setup.sh expects that we are running python 2.7.x, so running with python3 pip inadvertently will cause dependency failures during install.
micheal.taylor@bubdev:~/FlashStache$ pip --version
pip 9.0.1 from /usr/local/lib/python3.5/dist-packages (python 3.5)
micheal.taylor@bubdev:~/FlashStache$ pip2 --version
pip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)
During installation, we failed to install django because we're trying to install on python2 specifically, but django's newer versions only support python3 (django 2.x+).
Error during install installing mysql-python during setup.sh run:
Collecting MySQL-python
Downloading MySQL-python-1.2.5.zip (108kB)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-xebzdk8g/MySQL-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/tmp/pip-build-xebzdk8g/MySQL-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
Repro happens any time we execute:
micheal.taylor@bubdev:~/FlashStache$ sudo -H pip install mysql-python
Collecting mysql-python
Downloading MySQL-python-1.2.5.zip (108kB)
100% |████████████████████████████████| 112kB 1.2MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-1lrjony6/mysql-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/tmp/pip-build-1lrjony6/mysql-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1lrjony6/mysql-python/
Suggestion would be to not use modals with iframes - but rather to open a new tab to the grafana dashboard (similar to how we open a new tab for the array GUI).
FlashStache/flash_stache/flash_stache
Line 6 in 8e412fc
micheal.taylor@bubdev:~/FlashStache$ sudo -H ./setup.sh
Installing FlashStache: (This will take several minutes)
- Please don't interrupt -
Please set a password for the Admin role:
Confirm password:
Admin Password Set.
Step 1: Installing dependencies.
- Updating Ubuntu
- Installing Python, MySQL client, Redis, etc.
Step 2: Installing Python modules.
Step 3: Starting and configuring MySQL Server.
send: spawn id exp4 not open
while executing
"send "<password>\r""
Step 4: Starting and configuring Grafana Server.
- Downloading Grafana dpkg.
- Installing Grafana
(Reading database ... 72356 files and directories currently installed.)
Preparing to unpack ./grafana_4.5.2_amd64.deb ...
Unpacking grafana (4.5.2) over (4.5.2) ...
Setting up grafana (4.5.2) ...
Restarting grafana-server service... OK
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
- Configuring Grafana and starting Services
Step 5: Starting and configuring web services.
- Configuring Web Server and Dependencies
- Configuring Nginx
- Starting Nginx
- Configuring boot time settings
- Starting services and worker tasks
This sets up to point to a non-existent directory for the nginx server:
micheal.taylor@bubdev:~/FlashStache$ cat /etc/nginx/sites-enabled/flash_stache
server {
listen 80;
server_name 10.204.116.216 ;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /flasharray;
}
location / {
include uwsgi_params;
uwsgi_pass unix:/run/uwsgi/flash_stache.sock;
}
}
Got this error could not get around it.
RuntimeError: support for python < 3.6 has been removed in setuptools_scm>=6.0.0
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
grafana_api_client doesn't appear to exist in the modules that are currently installed.
It looks like a requirements file might be needed for this to configure properly on install.
Traceback (most recent call last):
File "configure_grafana.py", line 5, in <module>
from grafana_api_client import GrafanaClient, GrafanaClientError, GrafanaUnauthorizedError
ImportError: No module named grafana_api_client
I looked at repository expecting to see a json file of a grafana dashboard. I cannot see one. Is this a standalone data viewing tool or is there a link to grafana ?
The reason I ask is we have a grafana install and I am pushing pure stats via the REST API to gather the stats to grafite so our grafana installation can dashboard. I am trying to figure out the link to figure out the extras that this brings to the party.
During installation with setup.sh we get an error that the installation failed:
dpkg: error: dpkg status database is locked by another process
It looks like this is just a simple lock contention issue because the wget hasn't finished saving the file completely before we attempt to run dpkg -i.
When clicking the link for a dashboard, it forwards to localhost, which is not correct if you've set up everything on a remote VM.
When I put in my IP address all I get is
This page is used to test the proper operation of the nginx HTTP server after it has been installed. If you can read this page, it means that the web server installed at this site is working properly.
Website Administrator
This is the default index.html page that is distributed with nginx on Fedora. It is located in /usr/share/nginx/html.
You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.