Unable to connect to: ws://<maas IP>:/MAAS/ws
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Anthony Ochoa | ||
1.8 |
Fix Released
|
High
|
Blake Rouse | ||
1.9 |
Fix Released
|
High
|
Blake Rouse | ||
apache2 (Ubuntu) |
Invalid
|
High
|
Dave Chiluk | ||
Trusty |
Fix Released
|
High
|
Dave Chiluk |
Bug Description
[Impact]
* The Maas webui shows "Unable to connect to: ws://<maas IP>:/MAAS/ws" instead of listing the available machines.
* This is because apache proxy is attempting to reuse a socket for an ssl connection to the maas web server sitting on 5240. This is causing the maas server to throw an error 500.
* Similar results should be received from other web services that make use of the mod_proxy_wstunnel services and ssl.
* The upload fixes the bug by backporting an upstream commit that resolves this. It functions by preventing re-use of the socket connection.
[Test Case]
* Create a maas server, access webui repeatedly. Eventually the connections will get reused, and the error will be seen.
[Regression Potential]
* There is a potential performance regression for non-ssl proxy work, but that should be minimal.
* Patch has existed in vivid, wily, and xenial for a long while.
[Other Info]
* Upstream commit: https:/
-------
I have a set of servers that were transferred over to another maas servers so that the power credentials were no longer valid when back on our maas server. While to trying to get them working, I would see that check power state hangs because of the credentials being no longer valid. These would eventually time out and error out as expected.
However, after clicking on Nodes view and or trying to view nodes from a Zone, I would observe this error: "Unable to connect to: ws://<maas IP>:/MAAS/ws", then the view would eventually start load slowly while showing some nodes but not all of them. In one case it was stuck loading for > 10 minutes and it did not seem like it would load without me trying to reload from the browser.
I was initially doing this on firefox, then when I tried to start a session with chromium after problem was recreated, I got the same error followed by the nodes view being stuck while loading.
After a while, reloading the page from the browser would seem0 to work and everything would look ok.
I didn't see anything in the logs anything pointing to any issue with the cluster.
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 135 lines (+23/-18)2 files modifiedsrc/maasserver/static/js/angular/factories/region.js (+4/-4)
src/maasserver/static/js/angular/factories/tests/test_region.js (+19/-14)
- Gavin Panella (community): Approve
-
Diff: 135 lines (+23/-18)2 files modifiedsrc/maasserver/static/js/angular/factories/region.js (+4/-4)
src/maasserver/static/js/angular/factories/tests/test_region.js (+19/-14)
- Andres Rodriguez (community): Approve
-
Diff: 18 lines (+9/-2)1 file modifieddebian/changelog (+9/-2)
- Andres Rodriguez (community): Approve
- Gavin Panella (community): Approve
-
Diff: 41 lines (+19/-1)2 files modifiedsrc/maasserver/static/js/angular/factories/region.js (+6/-1)
src/maasserver/static/js/angular/factories/tests/test_region.js (+13/-0)
- Blake Rouse (community): Approve
-
Diff: 41 lines (+19/-1)2 files modifiedsrc/maasserver/static/js/angular/factories/region.js (+6/-1)
src/maasserver/static/js/angular/factories/tests/test_region.js (+13/-0)
- MAAS Maintainers: Pending requested
-
Diff: 4031 lines (+3119/-47) (has conflicts)40 files modifiedMakefile (+7/-0)
docs/changelog.rst (+72/-0)
docs/conf.py (+1/-1)
docs/index.rst (+1/-0)
docs/os-support.rst (+124/-0)
src/maasserver/api/tests/test_maas.py (+78/-0)
src/maasserver/clusterrpc/boot_images.py (+59/-0)
src/maasserver/clusterrpc/tests/test_boot_images.py (+62/-0)
src/maasserver/dns/tests/test_config.py (+4/-3)
src/maasserver/fields.py (+30/-0)
src/maasserver/migrations/0139_power_parameters_and_state_updated_field.py (+453/-0)
src/maasserver/models/tests/test_node.py (+5/-0)
src/maasserver/node_action.py (+13/-0)
src/maasserver/plugin.py (+14/-0)
src/maasserver/rpc/nodes.py (+31/-0)
src/maasserver/rpc/tests/test_nodes.py (+12/-1)
src/maasserver/rpc/tests/test_regionservice.py (+15/-0)
src/maasserver/static/css/maas-styles.css (+4/-0)
src/maasserver/static/img/icons/tag-close.svg (+18/-0)
src/maasserver/static/partials/node-details.html (+67/-0)
src/maasserver/static/partials/node-events.html (+4/-0)
src/maasserver/static/partials/nodes-list.html (+10/-0)
src/maasserver/static/scss/maas/components/_placeholders.scss (+4/-0)
src/maasserver/testing/factory.py (+17/-0)
src/maasserver/tests/test_fields.py (+38/-0)
src/maasserver/tests/test_node_action.py (+88/-32)
src/maasserver/tests/test_plugin.py (+22/-0)
src/maasserver/utils/osystems.py (+27/-0)
src/maasserver/utils/tests/test_osystems.py (+47/-0)
src/maasserver/views/tests/test_rpc.py (+13/-2)
src/maasserver/websockets/handlers/node.py (+32/-0)
src/provisioningserver/drivers/power/__init__.py (+4/-0)
src/provisioningserver/plugin.py (+7/-0)
src/provisioningserver/power/__init__.py (+170/-0)
src/provisioningserver/power/tests/test_power.py (+1001/-0)
src/provisioningserver/tests/test_plugin.py (+20/-8)
src/provisioningserver/utils/fs.py (+4/-0)
src/provisioningserver/utils/tests/test_fs.py (+14/-0)
src/provisioningserver/utils/tests/test_isc.py (+279/-0)
utilities/maas-region-support-dump (+248/-0)
- Mike Pontillo (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedcontrib/maas-http.conf (+1/-1)
- Mike Pontillo (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedcontrib/maas-http.conf (+1/-1)
description: | updated |
description: | updated |
Changed in maas: | |
status: | Incomplete → Confirmed |
importance: | Undecided → High |
milestone: | none → 1.9.0 |
Changed in maas: | |
status: | Confirmed → Fix Committed |
Changed in maas: | |
assignee: | nobody → Blake Rouse (blake-rouse) |
Changed in maas: | |
status: | Confirmed → Triaged |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
description: | updated |
Changed in apache2 (Ubuntu): | |
importance: | Undecided → High |
Changed in apache2 (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in apache2 (Ubuntu): | |
status: | Fix Released → Invalid |
Changed in apache2 (Ubuntu Trusty): | |
milestone: | none → trusty-updates |
Changed in apache2 (Ubuntu): | |
milestone: | trusty-updates → none |
Changed in apache2 (Ubuntu Trusty): | |
importance: | Undecided → High |
assignee: | nobody → Dave Chiluk (chiluk) |
no longer affects: | maas/1.10 |
Changed in maas: | |
assignee: | Blake Rouse (blake-rouse) → Anthony Ochoa (anthony1985) |
Here are the logs.