Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Aleksei Pilnik
@apilnik
@Fryguy Thanks a lot for the help, finally working
Jason Frey
@Fryguy
:tada: Glad to hear @Alexis3211
JVue
@JVue
image.png
Hello, I’m working with the lastest stable miq build (Laser-1) and when attempting to add a GIT repo in Automation > Automate > Import/Export, I get the following (see screen shot above). Evm log throws out: ERROR -- evm: MIQ(miq_ae_tools_controller-check_git_task): Error during repository fetch: undefined methodtime' for #<Rugged::Reference:0x0000557b9b8a8c40>`. I’ve tried adding via Rake as well but get the same error. Help?
Jason Frey
@Fryguy
Sounds like a bug - can you open an issue at github.com/ManageIQ/manageiq/issues ?
JVue
@JVue
Sounds good. Thanks!
Nick LaMuro
@NickLaMuro
@JVue Left a comment for you in your PR for things to try: ManageIQ/manageiq#21545
JVue
@JVue
Thanks @NickLaMuro … I’ll take a peek
JVue
@JVue
@NickLaMuro fyi - I tried the upgrade path and ended up downloading the latest lasker image I could find and got the same error. I’ve updated my finding here: ManageIQ/manageiq#21545 Thanks
Nick LaMuro
@NickLaMuro

@JVue Could you turn on debug logging for the evm.log or rails.log (whichever you are using):

(or both I guess)

And post a stacktrace for that error if one exists? Again, I think my guess is that it is a tag that is a reference, which we are not handling, but not sure

though... I would guess all tags are references... so not sure
point being, I think that that issue is something not being handled in either the GitWorktree#branch_info method, or the GitWorktree#tag_info methods, but unclear what without a stack trace
JVue
@JVue
@NickLaMuro The log again below (sry, formatting is a bit nasty) but with debug enabled as per your msg above:
[----] I, [2021-11-04T16:02:37.485623 #6949:2aba555d197c] INFO -- evm: MIQ(MiqTask#update_status) Task: [2] [Active] [Ok] [Task starting] [----] W, [2021-11-04T16:02:37.488227 #6948:2adb64e89968] WARN -- evm: MIQ(GitRepository#authentication_check_no_validation) type: [:default] for [2] [] Validation failed: error, undefined method `verify_credentials' for #<GitRepository:0x000055b6d6f2cb40> Did you mean? verify_ssl_in_database [----] W, [2021-11-04T16:02:37.488337 #6948:2adb64e89968] WARN -- evm: MIQ(AuthUseridPassword#validation_failed) [GitRepository] [2], previously valid on: , previous status: [] [----] I, [2021-11-04T16:02:37.489547 #6949:2aba555d197c] INFO -- evm: MIQ(GitRepository#clone_repo_if_missing) Cloning https://<my git path> to /var/www/miq/vmdb/data/git_repos/2... [----] I, [2021-11-04T16:02:37.494407 #6948:2adb64e89968] INFO -- evm: MIQ(MiqQueue#delivered) Message id: [2842], State: [ok], Delivered in [0.023723662] seconds [----] I, [2021-11-04T16:02:38.032279 #6949:2aba555d197c] INFO -- evm: MIQ(GitRepository#clone_repo_if_missing) Cloning https://<my git path> to /var/www/miq/vmdb/data/git_repos/2......Complete [----] I, [2021-11-04T16:02:38.032698 #6949:2aba555d197c] INFO -- evm: MIQ(GitRepository#update_repo) Updating https://<my git path> in /var/www/miq/vmdb/data/git_repos/2... [----] I, [2021-11-04T16:02:38.239932 #6949:2aba555d197c] INFO -- evm: MIQ(GitRepository#update_repo) Updating https://<my git path> in /var/www/miq/vmdb/data/git_repos/2......Complete [----] E, [2021-11-04T16:02:38.247409 #6949:2aba555d197c] ERROR -- evm: MIQ(MiqQueue#deliver) Message id: [2843], Error: [undefined method `time' for #<Rugged::Reference:0x00005574b908c388>] [----] I, [2021-11-04T16:02:38.247505 #6949:2aba555d197c] INFO -- evm: MIQ(MiqQueue#delivered) Message id: [2843], State: [error], Delivered in [0.77576763] seconds [----] I, [2021-11-04T16:02:38.248614 #6949:2aba555d197c] INFO -- evm: MIQ(MiqQueue#m_callback) Message id: [2843], Invoking Callback with args: ["Finished", "error", "undefined method `time' for #<Rugged::Reference:0x00005574b908c388>", "nil"] [----] I, [2021-11-04T16:02:38.248743 #6949:2aba555d197c] INFO -- evm: MIQ(MiqTask#update_status) Task: [2] [Finished] [Error] [undefined method `time' for #<Rugged::Reference:0x00005574b908c388>] [----] D, [2021-11-04T16:02:38.531730 #7021:2b1c8d95043c] DEBUG -- evm: MIQ(Rbac::Authorizer#role_allows?) Auth successful for user 'admin', role 'EvmRole-super_administrator', feature identifier 'miq_ae_class_import_export' [----] I, [2021-11-04T16:02:38.541578 #7021:2b1c8d95043c] INFO -- evm: MIQ(MiqQueue.put) Message id: [2848], id: [], Zone: [], Role: [], Server: [3f14d563-fa9f-45ac-89c4-16674bf71868], MiqTask id: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [GitRepository.delete_repo_dir], Timeout: [600], Priority: [100], State: [ready], Deliver On: [], Data: [], Args: [2, "/var/www/miq/vmdb/data/git_repos/2"] [----] E, [2021-11-04T16:02:38.542353 #7021:2b1c8d95043c] ERROR -- evm: MIQ(miq_ae_tools_controller-check_git_task): Error during repository fetch: undefined method `time' for #<Rugged::Reference:0x00005574b908c388>
Nick LaMuro
@NickLaMuro
@JVue Did you restart the server? Don't see a stack trace with that, unforunately
JVue
@JVue
@NickLaMuro I just rebooted and tried again, same logs. Did confirm the log settings are set to debug:
  :level: debug
  :level_audit: info
  :level_rails: debug
[----] I, [2021-11-04T16:43:12.563592 #2588:2af728d4395c]  INFO -- evm: MIQ(MiqTask#update_status) Task: [3] [Active] [Ok] [Task starting]
[----] I, [2021-11-04T16:43:12.567165 #2588:2af728d4395c]  INFO -- evm: MIQ(GitRepository#clone_repo_if_missing) Cloning https://<my git path> to /var/www/miq/vmdb/data/git_repos/3...
[----] W, [2021-11-04T16:43:12.673457 #2589:2aaaff087968]  WARN -- evm: MIQ(GitRepository#authentication_check_no_validation) type: [:default] for [3] [] Validation failed: error, undefined method `verify_credentials' for #<GitRepository:0x0000555604090510>
Did you mean?  verify_ssl_in_database
[----] W, [2021-11-04T16:43:12.673567 #2589:2aaaff087968]  WARN -- evm: MIQ(AuthUseridPassword#validation_failed) [GitRepository] [3], previously valid on: , previous status: []
[----] I, [2021-11-04T16:43:12.679685 #2589:2aaaff087968]  INFO -- evm: MIQ(MiqQueue#delivered) Message id: [3321], State: [ok], Delivered in [0.175462981] seconds
[----] I, [2021-11-04T16:43:13.384944 #2588:2af728d4395c]  INFO -- evm: MIQ(GitRepository#clone_repo_if_missing) Cloning https://<my git path> to /var/www/miq/vmdb/data/git_repos/3......Complete
[----] I, [2021-11-04T16:43:13.385435 #2588:2af728d4395c]  INFO -- evm: MIQ(GitRepository#update_repo) Updating https://<my git path> in /var/www/miq/vmdb/data/git_repos/3...
[----] I, [2021-11-04T16:43:13.644457 #2588:2af728d4395c]  INFO -- evm: MIQ(GitRepository#update_repo) Updating https://<my git path> in /var/www/miq/vmdb/data/git_repos/3......Complete
[----] E, [2021-11-04T16:43:13.653658 #2588:2af728d4395c] ERROR -- evm: MIQ(MiqQueue#deliver) Message id: [3322], Error: [undefined method `time' for #<Rugged::Reference:0x000055ee52abb2b0>]
[----] I, [2021-11-04T16:43:13.653756 #2588:2af728d4395c]  INFO -- evm: MIQ(MiqQueue#delivered) Message id: [3322], State: [error], Delivered in [1.14349393] seconds
[----] I, [2021-11-04T16:43:13.654950 #2588:2af728d4395c]  INFO -- evm: MIQ(MiqQueue#m_callback) Message id: [3322], Invoking Callback with args: ["Finished", "error", "undefined method `time' for #<Rugged::Reference:0x000055ee52abb2b0>", "nil"]
[----] I, [2021-11-04T16:43:13.655078 #2588:2af728d4395c]  INFO -- evm: MIQ(MiqTask#update_status) Task: [3] [Finished] [Error] [undefined method `time' for #<Rugged::Reference:0x000055ee52abb2b0>]
[----] D, [2021-11-04T16:43:13.974369 #2659:2af66b200648] DEBUG -- evm: MIQ(Rbac::Authorizer#role_allows?) Auth successful for user 'admin', role 'EvmRole-super_administrator', feature identifier 'miq_ae_class_import_export'
[----] I, [2021-11-04T16:43:14.003679 #2659:2af66b200648]  INFO -- evm: MIQ(MiqQueue.put) Message id: [3323],  id: [], Zone: [], Role: [], Server: [3f14d563-fa9f-45ac-89c4-16674bf71868], MiqTask id: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [GitRepository.delete_repo_dir], Timeout: [600], Priority: [100], State: [ready], Deliver On: [], Data: [], Args: [3, "/var/www/miq/vmdb/data/git_repos/3"]
[----] E, [2021-11-04T16:43:14.004408 #2659:2af66b200648] ERROR -- evm: MIQ(miq_ae_tools_controller-check_git_task): Error during repository fetch: undefined method `time' for #<Rugged::Reference:0x000055ee52abb2b0>
Nick LaMuro
@NickLaMuro
dang...
JVue
@JVue
no real stack/backtrace with details
Nick LaMuro
@NickLaMuro
@JVue can you try this on your appliance:
$ grep -R ref: /var/www/miq/vmdb/data/git_repos/3/refs
let me know if there is any output
JVue
@JVue
[root@miqappliance vmdb]# grep -R ref: /var/www/miq/vmdb/data/git_repos/3/refs
grep: /var/www/miq/vmdb/data/git_repos/3/refs: No such file or directory
Nick LaMuro
@NickLaMuro
hmmm... maybe just do:
$ grep -R ref: /var/www/miq/vmdb/data/git_repos/3
I might have assumed the directory structure wrong...
JVue
@JVue
[root@miqappliance vmdb]# grep -R ref: /var/www/miq/vmdb/data/git_repos/3
grep: /var/www/miq/vmdb/data/git_repos/3: No such file or directory
Nick LaMuro
@NickLaMuro
wat...
oh, is this a multi appliance deployment?
JVue
@JVue
No it’s not - single appliance with all the proper roles enabled to be specific (just a test box to add our repo from our hammer5 environment to start exploring)
Nick LaMuro
@NickLaMuro

well, the grep needs to run on the appliance that has the directory in question from your logs:

[----] I, [2021-11-04T16:43:13.644457 #2588:2af728d4395c]  INFO -- evm: MIQ(GitRepository#update_repo) Updating https://<my git path> in /var/www/miq/vmdb/data/git_repos/3......Complete

(Edit: Whoops, wrong line copy-pasta the first time I did this)

JVue
@JVue
Oops, I misread your question… it’s not a multi appliance… it’s a single appliance currently (with most of the roles enabled).
Nick LaMuro
@NickLaMuro
basically, /var/www/miq/vmdb/data/git_repos/3 is where we store the git repo locally
I am checking if any of the git objects files have ref: in them
JVue
@JVue
yes, when I look in there, all I see is the locks folder:
[root@miqappliance git_repos]# ls
locks
Nick LaMuro
@NickLaMuro
ah, so it is trying to clone, then deleting afterwards I guess
JVue
@JVue
yes the delete does happen… i believe i saw that in the logs
[----] I, [2021-11-04T16:43:15.692406 #2589:2aaaff087968]  INFO -- evm: MIQ(GitRepository.delete_repo_dir) Deleting GitRepository[3] in /var/www/miq/vmdb/data/git_repos/3 for MiqServer[1]…
Rohitsingh444
@Rohitsingh444
hello I need help i created docker container of manageiq image and trying to open in in browser but dashboard is not opening.
wallerz
@wallerz
1636508971(1).jpg
1636508971(1).jpg
1636508982(1).jpg
ManageIQ版本:版本 kasparov-1.20210203001902_15acbea 在基础架构添加VMware VCenter供应商,VMware VCenter版本是7.0,在仪表盘中扫描不出对应vm中的虚拟机,这是截图
请求帮助解决问题一下
Jason Frey
@Fryguy
@agrare this is the "unknown VMODL type VsanDatastoreInfo" ^
I think this was fixed, right? but probably not released yet?
Adam Grare
@agrare
correct it is fixed in the morphy branch already, just pending morphy-1 release
wallerz
@wallerz
@agrare @Fryguy 修复了我去哪里进行下载安装?
cymile
@cymile

Hi! I have a deployment of manageIQ ivanchuk-7 with postgresql ( pgpool + posgresql/repmgr) in a kubernetes cluster..all pods in the same node

NAME                                             READY   STATUS    RESTARTS   AGE   IP             NODE    NOMINATED NODE   READINESS GATES
manageiq-74fccdb898-crhn4                        1/1     Running   0          9h    10.233.92.32   node3   <none>           <none>
postgres-postgresql-ha-pgpool-84b46b758f-bxfx8   1/1     Running   0          10h   10.233.92.30   node3   <none>           <none>
postgres-postgresql-ha-postgresql-0              1/1     Running   0          10h   10.233.92.29   node3   <none>           <none>

and after some time I got 503 error using the UI. And the logs I got are:
In ManageIQ

[----] I, [2021-11-11T13:48:53.607610 #220:9ee5f8]  INFO -- : Q-task_id([job_dispatcher]) MIQ(InfraConversionThrottler.running_conversion_jobs) Running InfraConversionJob: 0
[----] I, [2021-11-11T13:48:53.618966 #220:9ee5f8]  INFO -- : Q-task_id([job_dispatcher]) MIQ(JobProxyDispatcher#dispatch) Complete - Timings: {:v2v_dispatching=>0.0039370059967041016, :v2v_limits=>0.0039043426513671875, :pending_container_jobs=>0.004796743392944336, :container_jobs_to_dispatch_count=>0, :container_dispatching=>0.004833221435546875, :pending_vm_jobs=>0.0010466575622558594, :vm_jobs_to_dispatch_count=>0, :total_time=>0.016845226287841797}
[----] I, [2021-11-11T13:48:53.619457 #220:9ee5f8]  INFO -- : Q-task_id([job_dispatcher]) MIQ(MiqQueue#delivered) Message id: [4330], State: [ok], Delivered in [0.017842446] seconds
[----] I, [2021-11-11T13:48:55.407403 #8205:9ee5f8]  INFO -- : MIQ(MiqReportingWorker::Runner#message_sync_config) MIQ(MiqReportingWorker::Runner) Synchronizing configuration...
[----] E, [2021-11-11T13:48:55.411007 #8205:9ee5f8] ERROR -- : MIQ(MiqReportingWorker::Runner) ID [115] PID [8205] GUID [80b29f9a-a86c-417c-94be-946217eae4b4] Error in update_worker_record_at_exit: PG::UnableToSend: no connection to the server
: SELECT  "miq_workers".* FROM "miq_workers" WHERE "miq_workers"."type" IN ('MiqReportingWorker') AND "miq_workers"."id" = $1 LIMIT $2
[----] E, [2021-11-11T13:48:55.412401 #8205:9ee5f8] ERROR -- : MIQ(MiqReportingWorker::Runner) ID [115] PID [8205] GUID [80b29f9a-a86c-417c-94be-946217eae4b4] Error heartbeating because ActiveRecord::StatementInvalid: PG::ConnectionBad: PQconsumeInput() server closed the connection unexpectedly
    This probably means the server terminated abnormally
    before or while processing the request.

In PGPOOL

2021-11-11 13:49:17: pid 17467: ERROR: unable to read data 2021-11-11 13:49:17: pid 17467: DETAIL: child connection forced to terminate due to client_idle_limit:3600 is reached 2021-11-11 13:49:18: pid 1980: ERROR: unable to read data 2021-11-11 13:49:18: pid 1980: DETAIL: child connection forced to terminate due to client_idle_limit:3600 is reached
is there a way to modify how manageiq handle database connections? It seems it is still using a dead connection o some help around this?

Jason Frey
@Fryguy
@wallerz Once we release beta1, we will announce it and it will be on the downloads page - hoping today
Daniel Berger
@djberg96
@cymile Found this, not sure if it's something you can configure within ManageIQ though: https://b-peng.blogspot.com/2020/07/connection-pooling-in-pgpool.html
Scottwake3
@Scottwake3
Hello, is there a method for only allowing subscriptions to be deleted once they are empty?