openfaas-incubator / vcenter-connector

Extend vCenter with OpenFaaS
MIT License
28 stars 8 forks source link

Support request for connector on PKS #28

Closed ageoffron closed 4 years ago

ageoffron commented 4 years ago

hi,

I deployed openfaas on PKS. got embano1/pytag-fn:0.2 to run I can connect to the openfaas gui and confirm I have my openfaas-fn pytag-fn deployed. I deployed the vcenter connector, validated connection to vcenter is ok.

I'm getting a lot fo logs from: kubectl -n openfaas logs deploy/vcenter-connector -f

it however stops with the following error: 019/10/04 16:38:09 Event [3] &{{{{} 848138955 848138955 2019-10-04 16:38:09.8044 +0000 UTC 0xc0002dd1a0 0xc0002dd1d0 0xc0002dd200 Alarm 'Host hardware sensor state': an SNMP trap for entity xxx.xxx was sent } {{{{}} Host hardware sensor state} Alarm:alarm-1320}} {{{{}} xxx.xxx} HostSystem:host-224858}} 2019/10/04 16:38:09 message: {"topic":"alarm.snmp.completed","category":"info","source":"vcenter. xxx.xxx","createdTime":"2019-10-04T16:38:09.8044Z","objectName":"Host hardware sensor state","managedObjectReference":{"Type":"Alarm","Value":"alarm-1320"}} 2019/10/04 16:38:09 Message on topic: alarm.snmp.completed 2019/10/04 16:38:13 invalid character 'i' looking for beginning of value

I understand you may need more logs. just let me know what I can provide to help get root cause. At this point I'm not able to

alexellis commented 4 years ago

Hi @ageoffron

It sounds like you haven't configured basic auth properly, the i comes from the gateway invalid credentials.

2019/10/04 16:38:13 invalid character 'i' looking for beginning of value

Alex

alexellis commented 4 years ago

/set title: Support request for connector on PKS

alexellis commented 4 years ago

/add label: support

ageoffron commented 4 years ago

Thank you for your reply. indeed I fixed my issue, happy to report all is working. Confusion came from where to pull the secret from.

alexellis commented 4 years ago

Can you explain what you got wrong please?