|
| 1 | +## Providers |
| 2 | + |
| 3 | +### VMware vCenter Provider |
| 4 | + |
| 5 | +If you are having issues with a VMware provider you can enable extensive debug |
| 6 | +logging which will log the raw XML payloads for all requests and responses between |
| 7 | +the vCenter and {{ site.data.product.title_short }}. |
| 8 | + |
| 9 | +There are two settings that you have to enable in Advanced Settings |
| 10 | +1. log.level_vim must be set to debug |
| 11 | +2. ems.ems_vmware.debug_vim_requests must be set to true |
| 12 | + |
| 13 | +With these two settings enabled you will see the full XML payloads in the vim log, |
| 14 | +here is a sample Login action: |
| 15 | +``` |
| 16 | +[----] D, [2024-12-04T12:31:51.307304#554036:97f4] DEBUG -- vim: <?xml version='1.0' ?> |
| 17 | +<env:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> |
| 18 | + <env:Header /> |
| 19 | + <env:Body> |
| 20 | + <n1:Login xmlns:n1="urn:vim25"> |
| 21 | + <n1:_this type="SessionManager">SessionManager</n1:_this> |
| 22 | + <n1:userName>user</n1:userName> |
| 23 | + <n1:password>pass</n1:password> |
| 24 | + </n1:Login> |
| 25 | + </env:Body> |
| 26 | +</env:Envelope> |
| 27 | +[----] D, [2024-12-04T12:31:51.308114#554036:97f4] DEBUG -- vim: <?xml version="1.0" encoding="UTF-8"?> |
| 28 | +<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns: xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 29 | + <soapenv:Body> |
| 30 | + <LoginResponse xmlns="urn:vim25"> |
| 31 | + <returnval> |
| 32 | + <key>53e7183f-4db3-4e02-b62d-840b9a47fc31</key> |
| 33 | + <userName>user</userName> |
| 34 | + <fullName>user</fullName> |
| 35 | + <loginTime>2024-12-04T17:31:51.307621525Z</loginTime> |
| 36 | + <lastActiveTime>2024-12-04T12:31:51.307628585-05:00</lastActiveTime> |
| 37 | + <locale>en_US</locale> |
| 38 | + <messageLocale>en_US</messageLocale> |
| 39 | + <extensionSession>false</extensionSession> |
| 40 | + <ipAddress>127.0.0.1</ipAddress> |
| 41 | + <userAgent>HTTPClient/1.0 (2.8.3, ruby 3.3.5 (2024-09-03))</userAgent> |
| 42 | + <callCount>1</callCount> |
| 43 | + </returnval> |
| 44 | + </LoginResponse> |
| 45 | + </soapenv:Body> |
| 46 | +</soapenv:Envelope> |
| 47 | +
|
| 48 | +``` |
| 49 | + |
| 50 | +Depending on the payloads you are working with, they might overflow the journald `LineMax` and be cut off. |
| 51 | +If this is the case you can edit the `/etc/systemd/journald.conf` file and adjust the `LineMax` setting appropriately. |
0 commit comments