-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fails on CentOS 7 and 8 #31
Comments
Hi, Yeah, I haven’t had a chance to test v1 on CentOS yet. I know it works as one of the folks in the Gitter group was able to get through the issues, I do remember python3-devel being one of them. I’ll get the install script fixed for CentOS/RHEL as soon as I can. Thanks, |
Hi I was able to work through the issues on centos 7. Here is some stuff i had to do to help you with the docs I followed your manual centos instructions. I had to do the following items as well before installing hyperglass then install hyperglass via pip command then enable and run redis-server Also disabled the built in firewall but users could allow the web port in as well |
Awesome, thanks! I will get these modifications into the docs and built into the install script ASAP. |
Tried installing this on CentOS 7 or 8 as that is our standard linux OS. Not a huge deal, I can run it on ubuntu for a while till things shake out, just wanted you to know i ran into some issues.
If fails a number of items along the way. First it fails building uvloop and it requires the python devel tools. yum install python36-devel. That moved past that problem. The next problem i ran into is the service refuses to install.
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
.wants/ or .requires/ directory.
a requirement dependency on it.
D-Bus, udev, scripted systemctl call, ...).
Then if i just attempt to start it using the config files from my ubuntu test it throws errors.
[ERROR] 20200410 15:31:25 | hyperglass.configuration.models._utils:161 | validate_image → /etc/hyperglass/static/images/hyperglass-light.png
[ERROR] 20200410 15:31:25 | hyperglass.configuration.models._utils:161 | validate_image → /etc/hyperglass/static/images/hyperglass-dark.png
[ERROR] 20200410 15:31:25 | hyperglass.configuration.models._utils:161 | validate_image → /etc/hyperglass/static/images/hyperglass-opengraph.png
[INFO] 20200410 15:31:25 | hyperglass.configuration:38 | → Configuration directory: /etc/hyperglass
[DEBUG] 20200410 15:31:25 | hyperglass.configuration:113 | _set_log_level → Debugging enabled
[DEBUG] 20200410 15:31:25 | hyperglass.configuration:148 | _config_commands → Unvalidated commands: {'cisco_xr': {'ipv4_default': {'bgp_aspath': "show bgp ipv4 unicast regexp {target} | utility egrep -v '\\(BGP |Table |Non-stop\\)'", 'bgp_community': "show bgp ipv4 unicast community {target} | utility egrep -v '\\(BGP |Table |Non-stop\\)'", 'bgp_route': "show bgp ipv4 unicast {target} | utility egrep '\\(BGP routing table entry|Path \\#|aggregated by|Origin |Community:|validity|from\\)'", 'ping': 'ping ipv4 {target} count 5', 'traceroute': 'traceroute ipv4 {target} timeout 1 probe 2'}, 'ipv4_vpn': {'bgp_aspath': 'show bgp vpnv4 unicast vrf {vrf} regexp {target} | utility egrep -v \\(BGP |Table |Non-stop\\)', 'bgp_community': 'show bgp vpnv4 unicast vrf {vrf} community {target} | utility egrep -v \\(BGP |Table |Non-stop\\)', 'bgp_route': 'show bgp vpnv4 unicast vrf {vrf} {target} | util egrep \\(BGP routing table entry|Path \\#|aggregated by|Origin |Community:|validity| from \\)', 'ping': 'ping vrf {vrf} {target} count 5 source {source}', 'traceroute': 'traceroute vrf {vrf} {target} timeout 1 probe 2 source {source}'}, 'ipv6_default': {'bgp_aspath': "show bgp ipv6 unicast regexp {target} | utility egrep -v '\\(BGP |Table |Non-stop\\)'", 'bgp_community': "show bgp ipv6 unicast community {target} | utility egrep -v '\\(BGP |Table |Non-stop\\)'", 'bgp_route': "show bgp ipv6 unicast {target} | utility egrep '\(BGP routing table entry|Path \#|aggregated by|Origin |Community:|validity|from\)'", 'ping': 'ping ipv6 {target} count 5', 'traceroute': 'traceroute ipv6 {target} timeout 1 probe 2'}, 'ipv6_vpn': {'bgp_aspath': 'show bgp vpnv6 unicast vrf {vrf} regexp {target} | utility egrep -v \\(BGP |Table |Non-stop\\)', 'bgp_community': 'show bgp vpnv6 unicast vrf {vrf} community {target} | utility egrep -v \\(BGP |Table |Non-stop\\)', 'bgp_route': 'show bgp vpnv6 unicast vrf {vrf} {target} | util egrep \\(BGP routing table entry|Path \\#|aggregated by|Origin |Community:|validity| from \\)', 'ping': 'ping vrf {vrf} {target} count 5 source {source}', 'traceroute': 'traceroute vrf {vrf} {target} timeout 1 probe 2 source {source}'}}}
[ERROR] 20200410 15:31:25 | hyperglass.exceptions:26 | init → [WARNING]
Traceback (most recent call last):
File "./hyperglass", line 11, in
sys.exit(CLI())
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/hyperglass/cli/commands.py", line 81, in start
from hyperglass.api import start, ASGI_PARAMS
File "/usr/local/lib/python3.6/site-packages/hyperglass/api/init.py", line 19, in
from hyperglass.api.events import on_startup, on_shutdown
File "/usr/local/lib/python3.6/site-packages/hyperglass/api/events.py", line 15, in
from hyperglass.configuration import (
File "/usr/local/lib/python3.6/site-packages/hyperglass/configuration/init.py", line 180, in
_user_devices = aiorun(_config_devices())
File "/usr/local/lib/python3.6/site-packages/hyperglass/compat.py", line 72, in _patched_run
return loop.run_until_complete(main)
File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
File "/usr/local/lib/python3.6/site-packages/hyperglass/configuration/init.py", line 164, in _config_devices
raise ConfigError(error_msg=str(yaml_error)) from None
hyperglass.exceptions.ConfigError
The text was updated successfully, but these errors were encountered: