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

Don't check for Rock-ons metadata when the service is disabled #1286

Closed
ScarabMonkey opened this Issue Apr 22, 2016 · 4 comments

Comments

Projects
None yet
4 participants
@ScarabMonkey
Contributor

ScarabMonkey commented Apr 22, 2016

I have never enabled the Rock-on service but my logs are full of failed attempts to connect to the rockons metastore.

[22/Apr/2016 13:41:48] ERROR [storageadmin.util:41] Error while processing remote metastore at http://rockstor.com/rockons/root.json. Lower level exception: HTTPConnectionPool(host='rockstor.com', port=80): Request timed out. (timeout=10)
[22/Apr/2016 13:41:48] ERROR [storageadmin.util:46] request path: /api/rockons/update method: POST data: <QueryDict: {}>
[22/Apr/2016 13:41:48] ERROR [storageadmin.util:47] exception: HTTPConnectionPool(host='rockstor.com', port=80): Request timed out. (timeout=10)
Traceback (most recent call last):
  File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 40, in _handle_exception
    yield
  File "/opt/rockstor/src/rockstor/storageadmin/views/rockon.py", line 353, in _get_available
    response = requests.get(remote_root, timeout=10)
  File "/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/api.py", line 55, in get
    return request('get', url, **kwargs)
  File "/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/sessions.py", line 279, in request
    resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies)
  File "/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/sessions.py", line 374, in send
    r = adapter.send(request, **kwargs)
  File "/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/adapters.py", line 215, in send
    raise Timeout(e)
Timeout: HTTPConnectionPool(host='rockstor.com', port=80): Request timed out. (timeout=10)
[22/Apr/2016 13:41:48] DEBUG [storageadmin.util:48] Current Rockstor version: 3.8-13
[22/Apr/2016 13:41:48] ERROR [smart_manager.data_collector:320] failed to update Rock-on metadata. low-level exception: Error while processing remote metastore at http://rockstor.com/rockons/root.json. Lower level exception: HTTPConnectionPool(host='rockstor.com', port=80): Request timed out. (timeout=10)
@phillxnet

This comment has been minimized.

Show comment
Hide comment
@phillxnet

phillxnet Apr 22, 2016

Member

@ScarabMonkey Another nice find. Thanks for opening an issue on this.

Member

phillxnet commented Apr 22, 2016

@ScarabMonkey Another nice find. Thanks for opening an issue on this.

@MFlyer

This comment has been minimized.

Show comment
Hide comment
@MFlyer

MFlyer Apr 22, 2016

Member

Cross ref to other issue #1281 because of network problems.

My opinion: My Rockstor dev env was under Watchguard firewall and i had similar problems till i moved it from "Trusted group" (having 4/5 particular block policies) to "optional group" (without blocking rules for zip, etc etc etc)

Flyer

Member

MFlyer commented Apr 22, 2016

Cross ref to other issue #1281 because of network problems.

My opinion: My Rockstor dev env was under Watchguard firewall and i had similar problems till i moved it from "Trusted group" (having 4/5 particular block policies) to "optional group" (without blocking rules for zip, etc etc etc)

Flyer

@ScarabMonkey

This comment has been minimized.

Show comment
Hide comment
@ScarabMonkey

ScarabMonkey Apr 22, 2016

Contributor

@MFlyer We keep all our internal servers secured from the Internet as much as possible ;)

Contributor

ScarabMonkey commented Apr 22, 2016

@MFlyer We keep all our internal servers secured from the Internet as much as possible ;)

@MFlyer

This comment has been minimized.

Show comment
Hide comment
@MFlyer

MFlyer Apr 22, 2016

Member

@ScarabMonkey and you do the right thing! 😄 - But some dependencies have particular requirements that probably break firewall rules (ex.: call for zip files)

Member

MFlyer commented Apr 22, 2016

@ScarabMonkey and you do the right thing! 😄 - But some dependencies have particular requirements that probably break firewall rules (ex.: call for zip files)

@schakrava schakrava self-assigned this Jun 13, 2016

@schakrava schakrava added this to the Pinnacles milestone Jun 13, 2016

schakrava added a commit to schakrava/rockstor-core that referenced this issue Jun 21, 2017

@schakrava schakrava closed this in #1738 Jun 21, 2017

@schakrava schakrava changed the title from Checking for Rock-ons metadata even with the service disabled to Don't check for Rock-ons metadata when the service is disabled Jul 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment