Skip to content
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

Unable to provision cloud instance #7144

Closed
agrare opened this issue Jun 17, 2020 · 2 comments
Closed

Unable to provision cloud instance #7144

agrare opened this issue Jun 17, 2020 · 2 comments

Comments

@agrare
Copy link
Member

agrare commented Jun 17, 2020

Attempting to provision a GCE instance from an image, loading the provision dialog bloats the session to 1.5MB and the session is dropped. Clicking on anything after this states that " Session was timed out due to inactivity. Please log in again. " and am redirected to the login screen.

Screenshot from 2020-06-17 14-52-15

[----] D, [2020-06-17T14:59:40.017225 #499410:aebc8] DEBUG -- :   MiqTemplate Load (0.5ms)  SELECT  "vms".* FROM "vms" WHERE "vms"."type" IN ('MiqTemplate', 'ManageIQ::Providers::CloudManager::Template', 'ManageIQ::Providers::InfraManager::Template', 'ManageIQ::Providers::Amazon::CloudManager::Template', 'ManageIQ::Providers::Azure::CloudManager::Template', 'ManageIQ::Providers::Google::CloudManager::Template', 'ManageIQ::Providers::Openstack::CloudManager::BaseTemplate', 'ManageIQ::Providers::Vmware::CloudManager::Template', 'ManageIQ::Providers::Openstack::CloudManager::Template', 'ManageIQ::Providers::Openstack::CloudManager::VolumeSnapshotTemplate', 'ManageIQ::Providers::Openstack::CloudManager::VolumeTemplate', 'ManageIQ::Providers::Vmware::InfraManager::Template', 'ManageIQ::Providers::Kubevirt::InfraManager::Template', 'ManageIQ::Providers::Redhat::InfraManager::Template', 'ManageIQ::Providers::Microsoft::InfraManager::Template', 'ManageIQ::Providers::Openstack::InfraManager::Template') AND "vms"."template" = $1 AND "vms"."id" = $2 LIMIT $3  [["template", true], ["id", 3885], ["LIMIT", 1]]
[----] D, [2020-06-17T14:59:40.017838 #499410:aebc8] DEBUG -- :   MiqTemplate Inst Including Associations (0.2ms - 1rows)
[----] I, [2020-06-17T14:59:40.018912 #499410:aebc8]  INFO -- :   Rendered /home/grare/adam/src/manageiq/manageiq-ui-classic/app/views/layouts/_breadcrumbs.html.haml (5.7ms)
Session:	 Hash of Size 1525991, Elements 35
=================================
MIQ(vm_cloud_controller-x_button): Session object size of 1.5 MB exceeds threshold of 100 KB
[----] D, [2020-06-17T14:59:40.081641 #499410:aebc8] DEBUG -- :    (0.5ms)  SELECT COUNT(*) FROM (SELECT DISTINCT "tags"."id" FROM "tags" LEFT OUTER JOIN "taggings" ON "taggings"."tag_id" = "tags"."id" WHERE "taggings"."taggable_type" = 'VmOrTemplate' AND "taggings"."taggable_id" = 3885 AND "tags"."name" ILIKE '/user/admin%') subquery_for_count
[----] D, [2020-06-17T14:59:40.082635 #499410:aebc8] DEBUG -- :   SQL (0.4ms)  SELECT  DISTINCT "tags"."id" FROM "tags" LEFT OUTER JOIN "taggings" ON "taggings"."tag_id" = "tags"."id" WHERE "taggings"."taggable_type" = 'VmOrTemplate' AND "taggings"."taggable_id" = 3885 AND "tags"."name" ILIKE '/user/admin%' LIMIT $1  [["LIMIT", 11]]
[----] I, [2020-06-17T14:59:40.555400 #499410:aebc8]  INFO -- : Completed 200 OK in 4319ms (Views: 0.5ms | ActiveRecord: 373.2ms)


Warning! ActionDispatch::Session::MemCacheStore failed to save session. Content dropped.
[----] D, [2020-06-17T14:59:40.611366 #499410:aebc8] DEBUG -- : PostgreSQLAdapter#log_after_checkin, connection_pool: size: 5, connections: 5, in use: 1, waiting_in_queue: 0
[----] I, [2020-06-17T15:00:02.934464 #499410:aeb50]  INFO -- : Started POST "/vm_cloud/pre_prov_continue?button=cancel" for 127.0.0.1 at 2020-06-17 15:00:02 -0400
[----] I, [2020-06-17T15:00:02.971926 #499410:aeb50]  INFO -- : Processing by VmCloudController#pre_prov_continue as JS
[----] I, [2020-06-17T15:00:02.972071 #499410:aeb50]  INFO -- :   Parameters: {"button"=>"cancel"}
[----] W, [2020-06-17T15:00:02.972711 #499410:aeb50]  WARN -- : Can't verify CSRF token authenticity.
[----] I, [2020-06-17T15:00:02.974461 #499410:aeb50]  INFO -- : Filter chain halted as :check_privileges rendered or redirected
[----] I, [2020-06-17T15:00:02.974707 #499410:aeb50]  INFO -- : Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)
@agrare
Copy link
Member Author

agrare commented Jun 18, 2020

cc @h-kataria

@jrafanie
Copy link
Member

jrafanie commented Oct 8, 2021

Closing as duplicate of #7877, which is the more general problem, that workflow objects are being stored directly in the session.

@jrafanie jrafanie closed this as completed Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants